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
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
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: v5 MoE 97.1%, full cascade results, version history
Browse files
README.md
CHANGED
|
@@ -1,23 +1,27 @@
|
|
| 1 |
---
|
| 2 |
language: en
|
| 3 |
license: apache-2.0
|
| 4 |
-
base_model: Qwen/Qwen3-
|
| 5 |
tags:
|
| 6 |
- tool-calling
|
| 7 |
- routing
|
| 8 |
- aac
|
| 9 |
- qwen3
|
|
|
|
| 10 |
- gguf
|
| 11 |
---
|
| 12 |
|
| 13 |
# prism-coder:32b β Tool Routing Model (Desktop Quality Tier)
|
| 14 |
|
| 15 |
-
Fine-tuned Qwen3-
|
| 16 |
Quality escalation tier in the desktop cascade: **14B β 32B β cloud Claude**.
|
| 17 |
|
| 18 |
-
|
|
|
|
| 19 |
|
| 20 |
-
|
|
|
|
|
|
|
| 21 |
|
| 22 |
| Category | Description | Accuracy |
|
| 23 |
|----------|-------------|:--------:|
|
|
@@ -31,19 +35,30 @@ Quality escalation tier in the desktop cascade: **14B β 32B β cloud Claude**
|
|
| 31 |
| load | Session context loading | 100% |
|
| 32 |
| pred | Factual / knowledge queries β plain text | 100% |
|
| 33 |
| save | Session ledger save | 100% |
|
| 34 |
-
| smem | Session memory search |
|
| 35 |
| tran | Translation requests β plain text | 100% |
|
| 36 |
|
| 37 |
Eval: Ollama inference, temperature=0, Qwen3 thinking suppressed (`<think>\n\n</think>`), num_predict=160.
|
| 38 |
Gate: β₯90% = deploy.
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
## Version History
|
| 41 |
|
| 42 |
-
| Version | BFCL | Notes |
|
| 43 |
-
|---------|------|-------|
|
| 44 |
-
|
|
| 45 |
-
|
|
| 46 |
-
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
## Tools
|
| 49 |
|
|
@@ -60,12 +75,9 @@ The model routes between exactly 6 tools:
|
|
| 60 |
|
| 61 |
| File | Size | Use |
|
| 62 |
|------|------|-----|
|
| 63 |
-
| `qwen3-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
Quality escalation tier. Invoked when 14B has low confidence or fails.
|
| 68 |
-
Handles complex multi-step requests and edge cases before escalating to cloud Claude.
|
| 69 |
|
| 70 |
## Usage (Ollama)
|
| 71 |
|
|
@@ -75,7 +87,9 @@ ollama run dcostenco/prism-coder:32b
|
|
| 75 |
|
| 76 |
## Training
|
| 77 |
|
| 78 |
-
- **Base**: `mlx-community/Qwen3-
|
| 79 |
-
- **Adapters**:
|
| 80 |
-
- **
|
|
|
|
| 81 |
- **Hardware**: Apple Silicon (M-series, 64 GB RAM)
|
|
|
|
|
|
| 1 |
---
|
| 2 |
language: en
|
| 3 |
license: apache-2.0
|
| 4 |
+
base_model: Qwen/Qwen3-30B-A3B
|
| 5 |
tags:
|
| 6 |
- tool-calling
|
| 7 |
- routing
|
| 8 |
- aac
|
| 9 |
- qwen3
|
| 10 |
+
- moe
|
| 11 |
- gguf
|
| 12 |
---
|
| 13 |
|
| 14 |
# prism-coder:32b β Tool Routing Model (Desktop Quality Tier)
|
| 15 |
|
| 16 |
+
Fine-tuned Qwen3-30B-A3B (MoE) for 6-tool routing in the [Prism AAC](https://github.com/dcostenco/prism-aac) system.
|
| 17 |
Quality escalation tier in the desktop cascade: **14B β 32B β cloud Claude**.
|
| 18 |
|
| 19 |
+
> **v5 (May 2026)**: Switched base from dense Qwen3-32B to Qwen3-30B-A3B (MoE).
|
| 20 |
+
> Same accuracy, 9 GB smaller, ~4Γ faster inference (only ~3B params active per token).
|
| 21 |
|
| 22 |
+
## BFCL Routing Benchmark β v5 MoE (Current)
|
| 23 |
+
|
| 24 |
+
**Mean: 97.1%** (3-seed average, seeds 2027/2028/2029, 102 cases each)
|
| 25 |
|
| 26 |
| Category | Description | Accuracy |
|
| 27 |
|----------|-------------|:--------:|
|
|
|
|
| 35 |
| load | Session context loading | 100% |
|
| 36 |
| pred | Factual / knowledge queries β plain text | 100% |
|
| 37 |
| save | Session ledger save | 100% |
|
| 38 |
+
| smem | Session memory search | 100% |
|
| 39 |
| tran | Translation requests β plain text | 100% |
|
| 40 |
|
| 41 |
Eval: Ollama inference, temperature=0, Qwen3 thinking suppressed (`<think>\n\n</think>`), num_predict=160.
|
| 42 |
Gate: β₯90% = deploy.
|
| 43 |
|
| 44 |
+
## Full Cascade Benchmark (May 2026)
|
| 45 |
+
|
| 46 |
+
| Model | BFCL | Size | Latency | Tier |
|
| 47 |
+
|-------|------|------|---------|------|
|
| 48 |
+
| prism-coder:8b v35 | **98.0%** | 4.7 GB | ~0.8s | Mobile tier 2 |
|
| 49 |
+
| prism-coder:32b v5 MoE | **97.1%** | 17 GB | ~0.8s | Desktop tier 2 |
|
| 50 |
+
| prism-coder:14b v33 | **97.1%** | 9.3 GB | ~1.1s | Desktop tier 1 |
|
| 51 |
+
| prism-coder:1b7 v41 | **94.1%** | 1.1 GB | ~0.5s | On-device |
|
| 52 |
+
|
| 53 |
## Version History
|
| 54 |
|
| 55 |
+
| Version | Base | BFCL | Notes |
|
| 56 |
+
|---------|------|------|-------|
|
| 57 |
+
| v5 (current) | Qwen3-30B-A3B MoE | **97.1%** | 18x density fix on all 8 failing cases; 9GB smaller, 4Γ faster |
|
| 58 |
+
| v4 | Qwen3-30B-A3B MoE | 92.2% | rank=32 experiment β regressed vs v3 |
|
| 59 |
+
| v3 | Qwen3-30B-A3B MoE | 92.5% | 20x reps + LR=1e-5 β hit rank bottleneck |
|
| 60 |
+
| v2 | Qwen3-30B-A3B MoE | 92.5% | v34 corpus + 1400 iters |
|
| 61 |
+
| v33 (dense) | Qwen3-32B dense | 99.0% | Prior generation β larger/slower |
|
| 62 |
|
| 63 |
## Tools
|
| 64 |
|
|
|
|
| 75 |
|
| 76 |
| File | Size | Use |
|
| 77 |
|------|------|-----|
|
| 78 |
+
| `qwen3-30b-a3b-v5-iq4nl.gguf` | 17 GB | **Current β recommended** |
|
| 79 |
+
| `qwen3-30b-a3b-v4-iq4nl.gguf` | 17 GB | Previous (92.2%) |
|
| 80 |
+
| `qwen3-32b-v33-q6k.gguf` | 25 GB | Dense predecessor (99.0%, legacy) |
|
|
|
|
|
|
|
|
|
|
| 81 |
|
| 82 |
## Usage (Ollama)
|
| 83 |
|
|
|
|
| 87 |
|
| 88 |
## Training
|
| 89 |
|
| 90 |
+
- **Base**: `mlx-community/Qwen3-30B-A3B-4bit` (MoE, ~3B active params/token, 128 experts)
|
| 91 |
+
- **Adapters**: v5 LoRA (rank=8, scale=20, 8 layers, LR=1e-5, 800 iters)
|
| 92 |
+
- **Data**: v36 corpus β 615 train examples, 18Γ density on all 8 exact failing prompts
|
| 93 |
+
- **Merge**: Direct safetensors manipulation (attn/gate: delta = scale/rank Γ B^T A^T; experts: delta[i] = scale/rank Γ B[i] A[i])
|
| 94 |
- **Hardware**: Apple Silicon (M-series, 64 GB RAM)
|
| 95 |
+
- **Key insight**: MoE ceiling at 92.5% was data density (1-3 reps per failing case); fixed with 18Γ reps matching the 32B v32β99% approach
|