Instructions to use succinctly/text2image-prompt-generator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use succinctly/text2image-prompt-generator with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="succinctly/text2image-prompt-generator")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("succinctly/text2image-prompt-generator") model = AutoModelForCausalLM.from_pretrained("succinctly/text2image-prompt-generator") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use succinctly/text2image-prompt-generator with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "succinctly/text2image-prompt-generator" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "succinctly/text2image-prompt-generator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/succinctly/text2image-prompt-generator
- SGLang
How to use succinctly/text2image-prompt-generator 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 "succinctly/text2image-prompt-generator" \ --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": "succinctly/text2image-prompt-generator", "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 "succinctly/text2image-prompt-generator" \ --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": "succinctly/text2image-prompt-generator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use succinctly/text2image-prompt-generator with Docker Model Runner:
docker model run hf.co/succinctly/text2image-prompt-generator
Change license to creative commons 2.0
Browse files
README.md
CHANGED
|
@@ -5,7 +5,7 @@ thumbnail: "https://drive.google.com/uc?export=view&id=1JWwrxQbr1s5vYpIhPna_p2IG
|
|
| 5 |
tags:
|
| 6 |
- text2image
|
| 7 |
- prompting
|
| 8 |
-
license: "
|
| 9 |
datasets:
|
| 10 |
- "succinctly/midjourney-prompts"
|
| 11 |
---
|
|
@@ -16,4 +16,7 @@ This prompt generator can be sued to auto-complete prompts for any text-to-image
|
|
| 16 |

|
| 17 |
|
| 18 |
|
| 19 |
-
Note that, while this model can be used together with any text-to-image model, it occasionally produces Midjourney-specific tags. Users can specify certain requirements via [double-dashed parameters](https://midjourney.gitbook.io/docs/imagine-parameters) (e.g. `--ar 16:9` sets the aspect ratio to 16:9, and `--no snake` asks the model to exclude snakes from the generated image) or set the importance of various entities in the image via [explicit weights](https://midjourney.gitbook.io/docs/user-manual#advanced-text-weights) (e.g. `hot dog::1.5 food::-1` is likely to produce the image of an animal instead of a frankfurter).
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
tags:
|
| 6 |
- text2image
|
| 7 |
- prompting
|
| 8 |
+
license: "cc-by-2.0"
|
| 9 |
datasets:
|
| 10 |
- "succinctly/midjourney-prompts"
|
| 11 |
---
|
|
|
|
| 16 |

|
| 17 |
|
| 18 |
|
| 19 |
+
Note that, while this model can be used together with any text-to-image model, it occasionally produces Midjourney-specific tags. Users can specify certain requirements via [double-dashed parameters](https://midjourney.gitbook.io/docs/imagine-parameters) (e.g. `--ar 16:9` sets the aspect ratio to 16:9, and `--no snake` asks the model to exclude snakes from the generated image) or set the importance of various entities in the image via [explicit weights](https://midjourney.gitbook.io/docs/user-manual#advanced-text-weights) (e.g. `hot dog::1.5 food::-1` is likely to produce the image of an animal instead of a frankfurter).
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
When using this model, please attribute credit to [Succinctly AI](https://succinctly.ai).
|