Instructions to use pearsonkyle/ArtPrompter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pearsonkyle/ArtPrompter with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pearsonkyle/ArtPrompter")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("pearsonkyle/ArtPrompter") model = AutoModelForCausalLM.from_pretrained("pearsonkyle/ArtPrompter") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use pearsonkyle/ArtPrompter with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pearsonkyle/ArtPrompter" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pearsonkyle/ArtPrompter", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/pearsonkyle/ArtPrompter
- SGLang
How to use pearsonkyle/ArtPrompter with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "pearsonkyle/ArtPrompter" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pearsonkyle/ArtPrompter", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "pearsonkyle/ArtPrompter" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pearsonkyle/ArtPrompter", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use pearsonkyle/ArtPrompter with Docker Model Runner:
docker model run hf.co/pearsonkyle/ArtPrompter
Commit ·
0caaee9
1
Parent(s): 5de285b
update model card README.md
Browse files
README.md
CHANGED
|
@@ -10,52 +10,24 @@ model-index:
|
|
| 10 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 11 |
should probably proofread and complete it, then remove this comment. -->
|
| 12 |
|
| 13 |
-
#
|
| 14 |
|
| 15 |
-
|
| 16 |
|
| 17 |
-
|
| 18 |
-
from transformers import pipeline
|
| 19 |
-
|
| 20 |
-
ai = pipeline('text-generation',model='pearsonkyle/ArtPrompter', tokenizer='gpt2')
|
| 21 |
-
|
| 22 |
-
texts = ai('The', max_length=30, num_return_sequences=5)
|
| 23 |
-
|
| 24 |
-
for i in range(5):
|
| 25 |
-
print(texts[i]['generated_text']+'\n')
|
| 26 |
-
```
|
| 27 |
-
|
| 28 |
-
[](https://colab.research.google.com/drive/1HQOtD2LENTeXEaxHUfIhDKUaPIGd6oTR?usp=sharing)
|
| 29 |
|
|
|
|
| 30 |
|
| 31 |
## Intended uses & limitations
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
[](https://discord.gg/3S8Taqa2Xy)
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
[](https://discord.gg/3S8Taqa2Xy)
|
| 40 |
-
|
| 41 |
|
| 42 |
-
##
|
| 43 |
-
|
| 44 |
-
All text prompts below are generated with our language model
|
| 45 |
-
|
| 46 |
-
- *The entire universe is a simulation,a confessional with a smiling guy fawkes mask, symmetrical, inviting,hyper realistic*
|
| 47 |
-
|
| 48 |
-
- *a pug disguised as a teacher. Setting is a class room*
|
| 49 |
-
|
| 50 |
-
- *I wish I had an angel For one moment of love I wish I had your angel Your Virgin Mary undone Im in love with my desire Burning angelwings to dust*
|
| 51 |
-
|
| 52 |
-
- *The heart of a galaxy, surrounded by stars, magnetic fields, big bang, cinestill 800T,black background, hyper detail, 8k, black*
|
| 53 |
|
|
|
|
| 54 |
|
| 55 |
## Training procedure
|
| 56 |
|
| 57 |
-
~30 hour of finetune on RTX2080 with 212K unique prompts
|
| 58 |
-
|
| 59 |
### Training hyperparameters
|
| 60 |
|
| 61 |
The following hyperparameters were used during training:
|
|
@@ -67,8 +39,12 @@ The following hyperparameters were used during training:
|
|
| 67 |
- lr_scheduler_type: linear
|
| 68 |
- num_epochs: 50
|
| 69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
### Framework versions
|
| 71 |
|
| 72 |
- Transformers 4.25.1
|
| 73 |
- Pytorch 1.13.1
|
| 74 |
-
- Tokenizers 0.13.2
|
|
|
|
| 10 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 11 |
should probably proofread and complete it, then remove this comment. -->
|
| 12 |
|
| 13 |
+
# ArtPrompter
|
| 14 |
|
| 15 |
+
This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on an unknown dataset.
|
| 16 |
|
| 17 |
+
## Model description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
+
More information needed
|
| 20 |
|
| 21 |
## Intended uses & limitations
|
| 22 |
|
| 23 |
+
More information needed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
+
## Training and evaluation data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
+
More information needed
|
| 28 |
|
| 29 |
## Training procedure
|
| 30 |
|
|
|
|
|
|
|
| 31 |
### Training hyperparameters
|
| 32 |
|
| 33 |
The following hyperparameters were used during training:
|
|
|
|
| 39 |
- lr_scheduler_type: linear
|
| 40 |
- num_epochs: 50
|
| 41 |
|
| 42 |
+
### Training results
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
|
| 46 |
### Framework versions
|
| 47 |
|
| 48 |
- Transformers 4.25.1
|
| 49 |
- Pytorch 1.13.1
|
| 50 |
+
- Tokenizers 0.13.2
|