Text Generation
Safetensors
GGUF
English
Chinese
qwen3_5_text
anime
text-to-image
prompt-expansion
danbooru
qwen3_5
non-commercial
conversational
Instructions to use hvgfgh/PromptGacha with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use hvgfgh/PromptGacha with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf hvgfgh/PromptGacha:Q5_K_M # Run inference directly in the terminal: llama cli -hf hvgfgh/PromptGacha:Q5_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf hvgfgh/PromptGacha:Q5_K_M # Run inference directly in the terminal: llama cli -hf hvgfgh/PromptGacha:Q5_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf hvgfgh/PromptGacha:Q5_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf hvgfgh/PromptGacha:Q5_K_M
Use Docker
docker model run hf.co/hvgfgh/PromptGacha:Q5_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use hvgfgh/PromptGacha with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hvgfgh/PromptGacha" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hvgfgh/PromptGacha", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/hvgfgh/PromptGacha:Q5_K_M
- Ollama
How to use hvgfgh/PromptGacha with Ollama:
ollama run hf.co/hvgfgh/PromptGacha:Q5_K_M
- Unsloth Desktop
- Docker Model Runner
How to use hvgfgh/PromptGacha with Docker Model Runner:
docker model run hf.co/hvgfgh/PromptGacha:Q5_K_M
- Lemonade
How to use hvgfgh/PromptGacha with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull hvgfgh/PromptGacha:Q5_K_M
Run and chat with the model
lemonade run user.PromptGacha-Q5_K_M
List all available models
lemonade list
- Atomic Chat
docs: add GGUF quantization table, llama-server launch cmd, and json_schema tip
Browse filesFiles changed (2)
- README.md+16
- README_zh.md+16
156 unmodified lines157158159160161162163164165166167168169170171172173174175176177178156 unmodified lines ```text You convert anime image tags or structured scene and character inputs into vivid, natural English image-generation prompts. Follow all explicit visible details, character counts, genders, named characters, rating, and optional length, aspect ratio, or style controls. When framing or occlusion hides parts of a character (such as close-up, upper body, from behind, or closed eyes), omit out-of-frame or occluded features from your output. Output pure English prose by default; when output_format is json, return a single valid JSON object with aspect_ratio and prompt (or scene and characters when split_characters is true). ```- **Strict JSON Output Tip**: When calling Mode B (especially `split` with very long character sheets) via `llama-server` or OpenAI-compatible APIs, pass `response_format: {"type": "json_schema", ...}` to guarantee 100% valid JSON without falling back to prose.
## GGUF Quantizations
Standard GGUF quantizations (without imatrix calibration) are hosted directly in this repository for `llama.cpp`, LM Studio, and Ollama:
| File | Quant | Size | Notes ||---|---|---:|---|| `PromptGacha-4B-v0.1-Q8_0.gguf` | `Q8_0` | `4.17 GiB` | **Recommended default**, near-lossless, fits full GPU offload on 6GB+ VRAM || `PromptGacha-4B-v0.1-Q6_K.gguf` | `Q6_K` | `3.23 GiB` | Very low loss, great balance for running alongside image-gen models || `PromptGacha-4B-v0.1-Q5_K_M.gguf` | `Q5_K_M` | `2.86 GiB` | Compact low-VRAM option (below Q5 is not recommended for this 4B hybrid model) |
Quick launch with `llama.cpp`:```bashllama-server -hf hvgfgh/PromptGacha:Q8_0 -ngl 99 -c 2048 --host 127.0.0.1 --port 8080 --jinja```
## Performance & Benchmarks
139 unmodified lines140141142143144145146147148149150151152153154155156157158159160161139 unmodified lines ```text You convert anime image tags or structured scene and character inputs into vivid, natural English image-generation prompts. Follow all explicit visible details, character counts, genders, named characters, rating, and optional length, aspect ratio, or style controls. When framing or occlusion hides parts of a character (such as close-up, upper body, from behind, or closed eyes), omit out-of-frame or occluded features from your output. Output pure English prose by default; when output_format is json, return a single valid JSON object with aspect_ratio and prompt (or scene and characters when split_characters is true). ```- **JSON 强约束建议**:通过 `llama-server` / OpenAI 兼容接口调用 Mode B(尤其是超长角色设定卡 + `split` 分栏)时,建议配合 `response_format: {"type": "json_schema", ...}`,可确保 100% 合法 JSON 输出、避免回落为纯文本。
## GGUF 量化版本
本仓库已直接提供以下未校准的标准 GGUF 量化文件(与 BF16 原权重同仓托管,适合 `llama.cpp` / LM Studio / Ollama 等本地推理后端):
| 文件 | 量化档位 | 大小 | 说明 ||---|---|---:|---|| `PromptGacha-4B-v0.1-Q8_0.gguf` | `Q8_0` | `4.17 GiB` | **首选日常档**,几乎零损,6GB+ 显存即可全层 GPU 运行 || `PromptGacha-4B-v0.1-Q6_K.gguf` | `Q6_K` | `3.23 GiB` | 极低损,体积与速度均衡,适合与生图模型同驻 || `PromptGacha-4B-v0.1-Q5_K_M.gguf` | `Q5_K_M` | `2.86 GiB` | 轻量省显存档(暂不建议低于 Q5,4B 混合架构在 4-bit 以下易出现长文复读) |
`llama.cpp` 快速启动示例:```bashllama-server -hf hvgfgh/PromptGacha:Q8_0 -ngl 99 -c 2048 --host 127.0.0.1 --port 8080 --jinja```
## 性能
README.md+16
README_zh.md+16