Instructions to use cooperdk/TagForge-0.5B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use cooperdk/TagForge-0.5B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="cooperdk/TagForge-0.5B-GGUF", filename="TagForge-0.5B-Q8_0.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use cooperdk/TagForge-0.5B-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf cooperdk/TagForge-0.5B-GGUF:Q8_0 # Run inference directly in the terminal: llama-cli -hf cooperdk/TagForge-0.5B-GGUF:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf cooperdk/TagForge-0.5B-GGUF:Q8_0 # Run inference directly in the terminal: llama-cli -hf cooperdk/TagForge-0.5B-GGUF:Q8_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf cooperdk/TagForge-0.5B-GGUF:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf cooperdk/TagForge-0.5B-GGUF:Q8_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf cooperdk/TagForge-0.5B-GGUF:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf cooperdk/TagForge-0.5B-GGUF:Q8_0
Use Docker
docker model run hf.co/cooperdk/TagForge-0.5B-GGUF:Q8_0
- LM Studio
- Jan
- Ollama
How to use cooperdk/TagForge-0.5B-GGUF with Ollama:
ollama run hf.co/cooperdk/TagForge-0.5B-GGUF:Q8_0
- Unsloth Studio
How to use cooperdk/TagForge-0.5B-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for cooperdk/TagForge-0.5B-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for cooperdk/TagForge-0.5B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for cooperdk/TagForge-0.5B-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use cooperdk/TagForge-0.5B-GGUF with Docker Model Runner:
docker model run hf.co/cooperdk/TagForge-0.5B-GGUF:Q8_0
- Lemonade
How to use cooperdk/TagForge-0.5B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull cooperdk/TagForge-0.5B-GGUF:Q8_0
Run and chat with the model
lemonade run user.TagForge-0.5B-GGUF-Q8_0
List all available models
lemonade list
output = llm(
"Once upon a time,",
max_tokens=512,
echo=True
)
print(output)TagForge-0.4B
Version 0.7
Decoder-only transformer that generates structured Danbooru tag sets for single-character images. It adheres mostly to Danbooru styling tags, so it generates outfits based on actual, working outfit mixes โ describe a style (if known) or just part of an outfit, and it completes a coherent character/clothing set across every body zone. Supports NSFW tags fully, but only designed to handle a solo character - interaction tags will be handled by an intelligent module in the node pack.
Part of the TagForgeSuite ComfyUI node pack, but usable in any LLM inferencing tool.
Architecture
| Parameter | Value |
|---|---|
| Vocab size | 153,728 |
| Embedding dim | 1024 |
| Transformer layers | 16 |
| Attention heads | 16 |
| FFN dim | 4,096 |
| Parameters | ~361M |
| Dtype | bfloat16 |
The embedding and output head are tied (one token per tag).
Usage
Load via the TagForge Loader node in TagForgeSuite. The node uses the original-format
tagforge_tokenizer.json (included). For raw transformers use, tokenizer.json is the
HuggingFace WordLevel tokenizer.
Commands: GEN, FILL, EDIT to generate; CLASSIFY to sort tags into their body/scene zones.
Example โ [GEN] 1girl, tomboy, petite, overalls, small_breasts, red_hair, pixie_cut, blue_eyes, t-shirt
might output:
RATING : s | SUBJECT : 1girl , petite , tomboy | BODY : breasts , small_breasts | META : simple_background , white_background | HAIR : pixie_cut , red_hair | FACE : blue_eyes | UPPER_BODY : ATTIRE : overalls , shirt , t-shirt | LOWER_BODY : ATTIRE : shorts | EXPRESSION : blush , looking_at_viewer , smile | ACTION : STATE : standing
Add a RATING in your input (g, s, q, e โ as on Danbooru) - like this: "..., RATING : q, ..." and the model adheres to it without dropping the tags you gave it. g = general/SFW, s = sensitive, q = questionable, e = explicit (very).
License
GPL-3.0
- Downloads last month
- 26
8-bit
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="cooperdk/TagForge-0.5B-GGUF", filename="TagForge-0.5B-Q8_0.gguf", )