Instructions to use VertexAGI/prism-lyric-1-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use VertexAGI/prism-lyric-1-mini with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("VertexAGI/prism-lyric-1-mini") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use VertexAGI/prism-lyric-1-mini 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 VertexAGI/prism-lyric-1-mini:Q4_K_M # Run inference directly in the terminal: llama cli -hf VertexAGI/prism-lyric-1-mini:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf VertexAGI/prism-lyric-1-mini:Q4_K_M # Run inference directly in the terminal: llama cli -hf VertexAGI/prism-lyric-1-mini:Q4_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 VertexAGI/prism-lyric-1-mini:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf VertexAGI/prism-lyric-1-mini:Q4_K_M
Use Docker
docker model run hf.co/VertexAGI/prism-lyric-1-mini:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use VertexAGI/prism-lyric-1-mini with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "VertexAGI/prism-lyric-1-mini" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VertexAGI/prism-lyric-1-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/VertexAGI/prism-lyric-1-mini:Q4_K_M
- Ollama
How to use VertexAGI/prism-lyric-1-mini with Ollama:
ollama run hf.co/VertexAGI/prism-lyric-1-mini:Q4_K_M
- Unsloth Desktop
- Pi
How to use VertexAGI/prism-lyric-1-mini with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "VertexAGI/prism-lyric-1-mini"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "VertexAGI/prism-lyric-1-mini" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use VertexAGI/prism-lyric-1-mini with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "VertexAGI/prism-lyric-1-mini"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "VertexAGI/prism-lyric-1-mini" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VertexAGI/prism-lyric-1-mini", "messages": [ {"role": "user", "content": "Hello"} ] }' - Docker Model Runner
How to use VertexAGI/prism-lyric-1-mini with Docker Model Runner:
docker model run hf.co/VertexAGI/prism-lyric-1-mini:Q4_K_M
- Lemonade
How to use VertexAGI/prism-lyric-1-mini with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull VertexAGI/prism-lyric-1-mini:Q4_K_M
Run and chat with the model
lemonade run user.prism-lyric-1-mini-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use VertexAGI/prism-lyric-1-mini with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "VertexAGI/prism-lyric-1-mini"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default VertexAGI/prism-lyric-1-mini
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use VertexAGI/prism-lyric-1-mini with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "VertexAGI/prism-lyric-1-mini"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "VertexAGI/prism-lyric-1-mini" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Prism Lyric 1 Mini
Prism Lyric 1 Mini is a small song-lyric writer fine-tuned from Qwen3-4B. You give it a short brief (genre, mood, theme, perspective, and one of three fixed section structures) and it writes a complete, titled set of lyrics with bracketed section tags, ready to hand to a songwriter or to an AI music generator that reads [Verse 1] / [Chorus] tags.
Part of the Prism family of single-purpose specialist models, from a small, independent, nonprofit-spirited AI lab that works in the open.
Available formats
Everything below lives in this one repository: pick the format that matches your runtime.
| Format | File / folder | Precision | Size | Works with |
|---|---|---|---|---|
| MLX | model.safetensors (repo root) |
mixed: tuned layers 8-bit, the rest 4-bit | 3.07 GB | mlx-lm / MLX on Apple Silicon |
| GGUF | prism_lyric_1_mini_Q4_K_M.gguf |
Q4_K_M (4-bit) | 2.50 GB | llama.cpp, Ollama, LM Studio |
| GGUF | prism_lyric_1_mini_Q8_0.gguf |
Q8_0 (8-bit) | 4.28 GB | llama.cpp, Ollama, LM Studio |
The three structures
| # | Structure |
|---|---|
| 1 | Verse - Chorus - Verse - Chorus - Bridge - Chorus - Outro |
| 2 | Verse - Pre-Chorus - Chorus - Verse - Pre-Chorus - Chorus - Bridge - Chorus |
| 3 | Intro - Verse - Chorus - Instrumental - Verse - Chorus - Outro |
How to prompt it
Use exactly this system prompt and this user-message layout (the model was trained on it; Extra: lines are optional and can repeat):
System: You are Prism Lyric, a songwriter. You write complete, singable song lyrics in exactly the section structure the user asks for, using bracketed section tags on their own lines ([Verse 1], [Chorus], [Pre-Chorus], [Bridge], [Intro], [Instrumental], [Outro]). Start with a 'Title:' line. Output only the title and the lyrics, with no commentary.
User:
Write song lyrics.
Structure 1: Verse - Chorus - Verse - Chorus - Bridge - Chorus - Outro
Genre: indie folk
Mood: wistful
Theme: a grandfather's pocketknife found in a coat he left behind
Perspective: first person
from mlx_lm import load, generate
model, tok = load("VertexAGI/prism-lyric-1-mini")
msgs = [{"role": "system", "content": SYSTEM}, {"role": "user", "content": USER}] # the two strings above
text = tok.apply_chat_template(msgs, add_generation_prompt=True, tokenize=False)
print(generate(model, tok, prompt=text, max_tokens=1000))
For llama.cpp / Ollama / LM Studio use the GGUF files and the same two messages (default Qwen3 chat template; the output may start with an empty think block, strip it). We sampled at temperature 0.7, top-p 0.9.
Results (held-out set)
36 hand-written briefs (12 per structure) that were never used to build the training data. The training briefs were generated separately, and the evaluation briefs were written by hand and never shown to any teacher.
| Qwen3-4B base | Prism Lyric 1 Mini | Much larger reference model | |
|---|---|---|---|
| Exactly the requested structure (code check) | 8.3% | 80.6% | 10.7% |
| Mean soft craft score (0-1, code check) | 0.744 | 0.916 | 0.926 |
| Average words per song | 285 | 264 | 430 |
The structure check is code, not a judge: exact tag order, line counts per section, repeated chorus, no stray markdown or foreign-script characters.
Lyric quality (LLM judges). Two judge models ranked the base, this model and a much larger reference model on each brief (anonymised, shuffled, "do not reward length"). Between the base and Prism Lyric 1 Mini, the tuned model was ranked higher in 23 of 36 comparisons by Nemotron-3 Ultra and 17 of 20 by Mistral Large 4 (which answered only 20 of the 36 briefs; the rest of its calls failed or timed out and were not counted). Both judges agreed on 15 of the 20 briefs they both ranked in the tuned model's favour, and on 2 in the base's. The larger reference model was ranked above Prism Lyric 1 Mini in every comparison, so this is a clear step up from the base and not a substitute for a large model. The tuned model's songs are slightly shorter than the base's (264 vs 285 words), so the result is not a length effect. LLM judges are noisy and can favour their own family; read some of the songs yourself.
Shipped builds, same briefs (structure check): MLX 8-bit/4-bit mixed 91.7%, GGUF Q8_0 91.7%, GGUF Q4_K_M 80.6%. (The 80.6% above was measured on the unmerged LoRA; sampling is random, so a few percentage points of run-to-run noise is expected.)
Known weaknesses (please read)
- Hooks can be lazy. Choruses sometimes repeat one line several times, or reuse a clause across sections.
- Imagery is uneven. There are concrete, fresh lines, and there is filler and the occasional line that does not make sense.
- Mostly English. Briefs in other languages come out with grammar mistakes.
- Briefs with unusual formats are followed loosely. For example "dialogue between two people" tends to come out as one voice.
- It is a draft writer. Treat the output as a first draft for a human or an AI music generator, not finished lyrics.
- Validation loss was lowest after the first 200 steps and drifted up slightly afterwards (1.661 at step 200, 1.697 at the end), so it is mildly overfit to the training style.
Training
| Base | mlx-community/Qwen3-4B-4bit (from Qwen/Qwen3-4B) |
| Method | LoRA, rank 16, scale 20, 16 layers, lr 5e-5, 2 epochs (744 steps, batch 4), mask-prompt loss, MLX on Apple Silicon |
| Data | 1,567 best-of-N winners (1,489 train / 78 validation). For each brief, candidate songs came from two teacher models (Nemotron-3 Ultra and Laguna XS 2.1), passed a code structure check, and were ranked by a two-judge panel; only winners were kept. The teachers' craft guide was never part of the training prompt. |
| Briefs | ~2,400 generated premises across genres/moods/perspectives (training), separate from the 36 hand-written evaluation briefs |
| Shipped weights | The LoRA is merged at fp16 into the 16 adapted layers and re-quantized at 8-bit; every other layer stays at the base model's original 4-bit. (A plain 4-bit merge re-quantizes the fine-tune away.) |
License
Apache-2.0, inherited from Qwen3-4B. The training text was generated by the teacher models named above and filtered by code and judges.
- Downloads last month
- 511
4-bit