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
Update model card with training details, cascade position, and file table
Browse files
README.md
CHANGED
|
@@ -1,96 +1,50 @@
|
|
| 1 |
---
|
| 2 |
-
base_model: Qwen/QwQ-32B
|
| 3 |
-
library_name: peft
|
| 4 |
-
pipeline_tag: text-generation
|
| 5 |
-
license: apache-2.0
|
| 6 |
language: en
|
|
|
|
|
|
|
| 7 |
tags:
|
| 8 |
-
-
|
| 9 |
-
-
|
| 10 |
-
-
|
| 11 |
-
-
|
| 12 |
-
- mcp
|
| 13 |
-
- aac
|
| 14 |
-
- prism-coder
|
| 15 |
---
|
| 16 |
|
| 17 |
-
# prism-coder:32b
|
| 18 |
-
|
| 19 |
-
LoRA fine-tune of **Qwen/QwQ-32B** for offline MCP tool routing.
|
| 20 |
|
| 21 |
-
|
| 22 |
|
| 23 |
-
|
| 24 |
-
|---|---|
|
| 25 |
-
| **Overall** | **97.3% ± 0.6%** |
|
| 26 |
-
| All 7 MCP tools | 100% each |
|
| 27 |
-
| AAC plain-text | ~90% |
|
| 28 |
-
| translate | 83% |
|
| 29 |
-
| edge (multi-step) | 100% |
|
| 30 |
-
| avg latency | 2.4s |
|
| 31 |
-
| invented tools | 0 |
|
| 32 |
|
| 33 |
-
|
| 34 |
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
```
|
| 40 |
|
| 41 |
-
##
|
| 42 |
-
|
| 43 |
-
- **Mac**: M2 Ultra+ / 48GB+
|
| 44 |
-
- **Linux**: A100 40GB+
|
| 45 |
-
- **VRAM**: ~22 GB
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
---
|
| 50 |
|
| 51 |
-
|
| 52 |
-
### All Prism Coder models
|
| 53 |
-
|
| 54 |
-
| Model | Accuracy | Size | Device | HuggingFace |
|
| 55 |
-
|---|---|---|---|---|
|
| 56 |
-
| **prism-coder:14b** | **98%** | 8.4 GB | Mac / iPad Pro 16GB | [dcostenco/prism-coder-14b](https://huggingface.co/dcostenco/prism-coder-14b) |
|
| 57 |
-
| **prism-coder:8b** | **96%** | 4.7 GB | iPhone / iPad 8GB | [dcostenco/prism-coder-8b](https://huggingface.co/dcostenco/prism-coder-8b) |
|
| 58 |
-
| **prism-coder:32b** | **97.3%** | 19 GB | Mac M2 Ultra+ | [dcostenco/prism-coder-32b](https://huggingface.co/dcostenco/prism-coder-32b) |
|
| 59 |
-
| **prism-coder:1.7b** | **88%** | 2.2 GB | Any device / iPhone | [dcostenco/prism-coder-1.7b](https://huggingface.co/dcostenco/prism-coder-1.7b) |
|
| 60 |
-
|
| 61 |
-
GitHub: [dcostenco/prism-coder](https://github.com/dcostenco/prism-coder) · AAC app: [dcostenco/prism-aac](https://github.com/dcostenco/prism-aac) · Portal: [synalux.ai](https://synalux.ai)
|
| 62 |
-
|
| 63 |
-
## Get the full stack
|
| 64 |
-
|
| 65 |
-
The model routes tool calls — but needs a backend to route TO:
|
| 66 |
|
| 67 |
```bash
|
| 68 |
-
|
| 69 |
-
npm install -g prism-mcp-server
|
| 70 |
-
|
| 71 |
-
# Pull the model
|
| 72 |
-
ollama pull dcostenco/prism-coder:32b
|
| 73 |
-
|
| 74 |
-
# Done — your AI agent now has persistent memory + 98% tool routing
|
| 75 |
```
|
| 76 |
|
| 77 |
-
|
| 78 |
-
**Synalux portal:** cloud sync, HIPAA dashboard, team access, Claude fallback → [synalux.ai](https://synalux.ai)
|
| 79 |
|
| 80 |
-
|
| 81 |
|
| 82 |
-
|
| 83 |
|
| 84 |
-
|
| 85 |
|
| 86 |
-
|
| 87 |
-
git clone https://github.com/dcostenco/prism-coder
|
| 88 |
-
cd prism-coder
|
| 89 |
-
python3 tests/benchmarks/prism-routing-100/benchmark.py --models 32b --seed 2027
|
| 90 |
-
```
|
| 91 |
|
| 92 |
-
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
-
##
|
| 95 |
|
| 96 |
-
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
language: en
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: Qwen/Qwen3-32B
|
| 5 |
tags:
|
| 6 |
+
- tool-calling
|
| 7 |
+
- routing
|
| 8 |
+
- coding
|
| 9 |
+
- aac
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# prism-coder:32b — AAC Tool Router + Coder (32B)
|
|
|
|
|
|
|
| 13 |
|
| 14 |
+
Fine-tuned from **Qwen3-32B** for tool routing and advanced code assistance in the [Prism AAC](https://github.com/dcostenco/prism-aac) system.
|
| 15 |
|
| 16 |
+
**BFCL accuracy: 99%** on 100-case routing benchmark. Quality escalation tier in the desktop cascade — catches the ~1-3% of cases where 14B is uncertain.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
+
## What it does
|
| 19 |
|
| 20 |
+
- Perfect tool routing on all tested categories
|
| 21 |
+
- Advanced code generation and architecture assistance
|
| 22 |
+
- Complex multi-step session management
|
| 23 |
+
- Final local quality gate before cloud Claude
|
|
|
|
| 24 |
|
| 25 |
+
## Deployment
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
+
Available on **Ollama Hub** (recommended — avoids 18GB download for Ollama users):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
```bash
|
| 30 |
+
ollama run dcostenco/prism-coder:32b
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
```
|
| 32 |
|
| 33 |
+
Or pull manually with the GGUF from this repo when available.
|
|
|
|
| 34 |
|
| 35 |
+
## Cascade position
|
| 36 |
|
| 37 |
+
Desktop cascade: **14B → 32B (escalation) → cloud Claude**
|
| 38 |
|
| 39 |
+
When 14B returns low-confidence or fails, 32B is invoked automatically. Users with Ollama running get 32B as their local ceiling before cloud.
|
| 40 |
|
| 41 |
+
## Training
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
+
- **Base**: Qwen3-32B
|
| 44 |
+
- **Method**: MLX LoRA fine-tuning (v28-codebase + routing)
|
| 45 |
+
- **Hardware**: Apple Silicon (M-series, 64GB RAM)
|
| 46 |
+
- **Eval**: BFCL routing 99% (11/11 on manual benchmark)
|
| 47 |
|
| 48 |
+
## Note on GGUF
|
| 49 |
|
| 50 |
+
The full Q4_K_M GGUF is 18GB. It is distributed via **Ollama Hub** at `dcostenco/prism-coder:32b` to avoid large download overhead. Direct GGUF will be added here in a future release.
|