Run this model with HF Jobs
Run pearsonkyle/ArtPrompter on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/pearsonkyle/ArtPrompter. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/pearsonkyle/ArtPrompter on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/pearsonkyle/ArtPrompter. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/pearsonkyle/ArtPrompter. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("pearsonkyle/ArtPrompter") model = AutoModelForCausalLM.from_pretrained("pearsonkyle/ArtPrompter", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- 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 ·
58c9ff6
1
Parent(s): 54c2e21
Update README.md
Browse files9 unmodified lines1011121314151617181920212223242526272829303132335 unmodified lines3940414243444546474849509 unmodified lines<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. --># ArtPrompterThis model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on an unknown dataset.## Model descriptionMore information needed## Intended uses & limitationsMore information needed## Training and evaluation dataMore information needed## Training procedure### Training hyperparametersThe following hyperparameters were used during training:5 unmodified lines- lr_scheduler_type: linear- num_epochs: 50### Training results### Framework versions- Transformers 4.25.1- Pytorch 1.13.1- Tokenizers 0.13.29 unmodified lines101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960615 unmodified lines67686970717273749 unmodified lines<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. --># [ArtPrompter](https://pearsonkyle.github.io/Art-Prompter/)A [gpt2](https://huggingface.co/gpt2) powered predictive keyboard for making descriptive text prompts for A.I. image generators (e.g. MidJourney, Stable Diffusion, ArtBot, etc). The model was trained on a custom dataset containing 521K MidJourney images corresponding to 212K unique prompts.```pythonfrom transformers import pipelineai = pipeline('text-generation',model='pearsonkyle/ArtPrompter', tokenizer='gpt2')texts = ai('The', max_length=30, num_return_sequences=5)for i in range(5):print(texts[i]['generated_text']+'\n')```[](https://colab.research.google.com/drive/1HQOtD2LENTeXEaxHUfIhDKUaPIGd6oTR?usp=sharing)## Intended uses & limitationsBuild prompts and generate images on Discord](https://discord.gg/3S8Taqa2Xy)[](https://discord.gg/3S8Taqa2Xy)## ExamplesAll text prompts below are generated with our language model- *The entire universe is a simulation,a confessional with a smiling guy fawkes mask, symmetrical, inviting,hyper realistic*- *a pug disguised as a teacher. Setting is a class room*- *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*- *The heart of a galaxy, surrounded by stars, magnetic fields, big bang, cinestill 800T,black background, hyper detail, 8k, black*## Training procedure~1 hour of finetune on RTX2080 with 113K unique prompts### Training hyperparametersThe following hyperparameters were used during training:5 unmodified lines- lr_scheduler_type: linear- num_epochs: 50### Framework versions- Transformers 4.25.1- Pytorch 1.13.1- Tokenizers 0.13.2
README.md+36-12