Text Generation
GGUF
English
tool-calling
function-calling
prism
synalux
memory-augmented
LoRA
Q4_K_M
conversational
Instructions to use dcostenco/prism-coder-32b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use dcostenco/prism-coder-32b with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="dcostenco/prism-coder-32b", filename="prism-coder-32b-q4km.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use dcostenco/prism-coder-32b with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf dcostenco/prism-coder-32b # Run inference directly in the terminal: llama-cli -hf dcostenco/prism-coder-32b
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf dcostenco/prism-coder-32b # Run inference directly in the terminal: llama-cli -hf dcostenco/prism-coder-32b
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 dcostenco/prism-coder-32b # Run inference directly in the terminal: ./llama-cli -hf dcostenco/prism-coder-32b
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 dcostenco/prism-coder-32b # Run inference directly in the terminal: ./build/bin/llama-cli -hf dcostenco/prism-coder-32b
Use Docker
docker model run hf.co/dcostenco/prism-coder-32b
- LM Studio
- Jan
- vLLM
How to use dcostenco/prism-coder-32b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dcostenco/prism-coder-32b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dcostenco/prism-coder-32b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/dcostenco/prism-coder-32b
- Ollama
How to use dcostenco/prism-coder-32b with Ollama:
ollama run hf.co/dcostenco/prism-coder-32b
- Unsloth Studio new
How to use dcostenco/prism-coder-32b 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 dcostenco/prism-coder-32b 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 dcostenco/prism-coder-32b to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for dcostenco/prism-coder-32b to start chatting
- Pi new
How to use dcostenco/prism-coder-32b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf dcostenco/prism-coder-32b
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "dcostenco/prism-coder-32b" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use dcostenco/prism-coder-32b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf dcostenco/prism-coder-32b
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 dcostenco/prism-coder-32b
Run Hermes
hermes
- Docker Model Runner
How to use dcostenco/prism-coder-32b with Docker Model Runner:
docker model run hf.co/dcostenco/prism-coder-32b
- Lemonade
How to use dcostenco/prism-coder-32b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull dcostenco/prism-coder-32b
Run and chat with the model
lemonade run user.prism-coder-32b-{{QUANT_TAG}}List all available models
lemonade list
docs: v27 prompt — 14B hits 98% (ties Claude Opus), labeled-category routing breakthrough
Browse files
README.md
CHANGED
|
@@ -14,73 +14,47 @@ tags:
|
|
| 14 |
- prism-coder
|
| 15 |
---
|
| 16 |
|
| 17 |
-
# prism-coder:32b (v19)
|
| 18 |
-
|
| 19 |
-
LoRA fine-tune of **Qwen/QwQ-32B** for offline MCP tool routing — Synalux Copilot's "reasoning tier
|
| 20 |
-
|
| 21 |
-
## Test results — Prism routing 100-case eval (May
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
|
| 26 |
-
|
|
| 27 |
-
|
|
| 28 |
-
|
|
| 29 |
-
|
|
| 30 |
-
|
|
| 31 |
-
|
|
| 32 |
-
|
|
| 33 |
-
|
|
| 34 |
-
|
|
| 35 |
-
|
|
| 36 |
-
|
|
| 37 |
-
|
|
| 38 |
-
|
|
| 39 |
-
|
|
| 40 |
-
|
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
**97.3% puts this model within 2 points of Claude Sonnet 4 (99%) on the same eval**, while running fully offline on a Mac.
|
| 47 |
-
|
| 48 |
-
Only 2 misroutes in 100 cases: "Convert 'good morning' to Japanese" → brave_web_search (edge case), and a multi-step ledger query.
|
| 49 |
-
|
| 50 |
-
**What this benchmark measures**: routing precision against the *exact* 7-tool Prism Coder taxonomy. **Not** a general-capability score. Methodology + runner: [github.com/dcostenco/prism-coder/tree/main/tests/benchmarks/prism-routing-100](https://github.com/dcostenco/prism-coder/tree/main/tests/benchmarks/prism-routing-100).
|
| 51 |
-
|
| 52 |
-
## Notes on QwQ-32B base
|
| 53 |
-
|
| 54 |
-
QwQ-32B natively emits `<think>...</think>` blocks. The Ollama Modelfile uses a `nothink` template (pre-closes the `<think>` block) to skip reasoning and go straight to the tool call.
|
| 55 |
-
|
| 56 |
-
## Training recipe (v19)
|
| 57 |
-
|
| 58 |
-
- **Base**: Qwen/QwQ-32B
|
| 59 |
-
- **LoRA**: r=32, α=64, dropout 0.05, all 7 target modules
|
| 60 |
-
- **Corpus**: ~14K-row composite (Phase 1 general + Phase 2 agentic + Phase 3 multi-turn XL)
|
| 61 |
-
- **Hardware**: RunPod A100 80GB / RTX 6000 Ada
|
| 62 |
-
- **Quantization**: published as Q4_K_M GGUF (~19 GB) and merged HF safetensors
|
| 63 |
|
| 64 |
## Usage
|
| 65 |
|
| 66 |
-
### Ollama (recommended)
|
| 67 |
-
|
| 68 |
```bash
|
| 69 |
ollama pull dcostenco/prism-coder:32b
|
| 70 |
-
ollama run dcostenco/prism-coder:32b "Save handoff for prism-coder — deployment complete"
|
| 71 |
```
|
| 72 |
|
| 73 |
-
### System prompt
|
| 74 |
-
|
| 75 |
-
Use the [v26 routing prompt](https://github.com/dcostenco/prism-coder/blob/main/tests/benchmarks/prism-routing-100/benchmark.py#L47) with the `nothink` template.
|
| 76 |
-
|
| 77 |
## Hardware requirements
|
| 78 |
|
| 79 |
-
- **Mac**: M2 Ultra+ with ≥48 GB unified memory
|
| 80 |
-
- **Linux + NVIDIA**: A100 40GB+, H100, B200
|
| 81 |
-
- **Inference speed**: ~2–3 s per 200-token response
|
| 82 |
- **Loaded VRAM**: ~22 GB
|
| 83 |
|
| 84 |
## License
|
| 85 |
|
| 86 |
-
|
|
|
|
| 14 |
- prism-coder
|
| 15 |
---
|
| 16 |
|
| 17 |
+
# prism-coder:32b (v19) — 97.3% routing accuracy
|
| 18 |
+
|
| 19 |
+
LoRA fine-tune of **Qwen/QwQ-32B** for offline MCP tool routing — Synalux Copilot's "reasoning tier."
|
| 20 |
+
|
| 21 |
+
## Test results — Prism routing 100-case eval (May 15 2026, 3-seed mean)
|
| 22 |
+
|
| 23 |
+
| Category | Score |
|
| 24 |
+
|---|---|
|
| 25 |
+
| **Overall** | **97.3% ± 0.6%** |
|
| 26 |
+
| session_load_context | 100% |
|
| 27 |
+
| session_save_ledger | 100% |
|
| 28 |
+
| session_search_memory | 100% |
|
| 29 |
+
| session_save_handoff | 100% |
|
| 30 |
+
| session_compact_ledger | 100% |
|
| 31 |
+
| brave_web_search | 100% |
|
| 32 |
+
| knowledge_search | 100% |
|
| 33 |
+
| AAC plain-text | 85% |
|
| 34 |
+
| translate plain-text | 83% |
|
| 35 |
+
| plain text (pred/irrel) | 100% |
|
| 36 |
+
| no-tool refusal | 100% |
|
| 37 |
+
| info / lookup | 100% |
|
| 38 |
+
| edge (multi-step) | 100% |
|
| 39 |
+
| **avg latency** | **2.4s** |
|
| 40 |
+
| **invented tools** | 0 |
|
| 41 |
+
|
| 42 |
+
All 7 MCP tools route correctly 100% of the time. Remaining misses are in plain-text categories (AAC, translate) where the model occasionally over-routes.
|
| 43 |
+
|
| 44 |
+
Uses `nothink` template + [v27 system prompt](https://github.com/dcostenco/prism-coder/blob/main/tests/benchmarks/prism-routing-100/benchmark.py#L47) with labeled category headers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
## Usage
|
| 47 |
|
|
|
|
|
|
|
| 48 |
```bash
|
| 49 |
ollama pull dcostenco/prism-coder:32b
|
|
|
|
| 50 |
```
|
| 51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
## Hardware requirements
|
| 53 |
|
| 54 |
+
- **Mac**: M2 Ultra+ with ≥48 GB unified memory
|
| 55 |
+
- **Linux + NVIDIA**: A100 40GB+, H100, B200
|
|
|
|
| 56 |
- **Loaded VRAM**: ~22 GB
|
| 57 |
|
| 58 |
## License
|
| 59 |
|
| 60 |
+
Apache-2.0 (inherits from QwQ-32B).
|