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
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -19,44 +19,46 @@ Quality escalation tier in the desktop cascade: **14B β 32B β cloud Claude**
|
|
| 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 β
|
| 23 |
-
|
| 24 |
-
**Mean:
|
| 25 |
-
|
| 26 |
-
| Category | Description | Accuracy |
|
| 27 |
-
|----------|-------------|:--------:|
|
| 28 |
-
| aac | AAC phrase requests β plain text | 100% |
|
| 29 |
-
| cmpct | Ledger compaction | 100% |
|
| 30 |
-
| edge | Multi-step / compound requests |
|
| 31 |
-
| hand | Agent handoff / relay | 100% |
|
| 32 |
-
| info | General facts β plain text | 100% |
|
| 33 |
-
| irrel | Irrelevant / live queries β plain text | 100% |
|
| 34 |
-
| know | Knowledge base search | 100% |
|
| 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 |
-
|
|
|
|
|
|
|
| 42 |
Gate: β₯90% = deploy.
|
| 43 |
|
| 44 |
## Full Cascade Benchmark (May 2026)
|
| 45 |
|
| 46 |
-
| Model | BFCL | Size |
|
| 47 |
-
|-------|------|------|------
|
| 48 |
-
| prism-coder:8b
|
| 49 |
-
| prism-coder:
|
| 50 |
-
| prism-coder:
|
| 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 |
-
|
|
|
|
|
| 58 |
| v4 | Qwen3-30B-A3B MoE | 92.2% | rank=32 experiment β regressed vs v3 |
|
| 59 |
-
| v3 | Qwen3-30B-A3B MoE | 92.5% |
|
| 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 |
|
|
@@ -75,8 +77,8 @@ The model routes between exactly 6 tools:
|
|
| 75 |
|
| 76 |
| File | Size | Use |
|
| 77 |
|------|------|-----|
|
| 78 |
-
| `qwen3-30b-a3b-
|
| 79 |
-
| `qwen3-30b-a3b-
|
| 80 |
| `qwen3-32b-v33-q6k.gguf` | 25 GB | Dense predecessor (99.0%, legacy) |
|
| 81 |
|
| 82 |
## Usage (Ollama)
|
|
@@ -87,9 +89,8 @@ ollama run dcostenco/prism-coder:32b
|
|
| 87 |
|
| 88 |
## Training
|
| 89 |
|
| 90 |
-
- **Base**:
|
| 91 |
-
- **Adapters**:
|
| 92 |
-
- **
|
| 93 |
-
- **
|
| 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
|
|
|
|
| 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 β v6 (Current)
|
| 23 |
+
|
| 24 |
+
**Mean: 99.0%** (3-seed average, seeds 2027/2028/2029, 102 cases each)
|
| 25 |
+
|
| 26 |
+
| Category | Count | Description | Accuracy |
|
| 27 |
+
|----------|------:|-------------|:--------:|
|
| 28 |
+
| aac | 12 | AAC phrase requests β plain text | 100% |
|
| 29 |
+
| cmpct | 6 | Ledger compaction | 100% |
|
| 30 |
+
| edge | 6 | Multi-step / compound requests | 83% |
|
| 31 |
+
| hand | 8 | Agent handoff / relay | 100% |
|
| 32 |
+
| info | 5 | General facts β plain text | 100% |
|
| 33 |
+
| irrel | 10 | Irrelevant / live queries β plain text | 100% |
|
| 34 |
+
| know | 7 | Knowledge base search | 100% |
|
| 35 |
+
| load | 9 | Session context loading | 100% |
|
| 36 |
+
| pred | 8 | Factual / knowledge queries β plain text | 100% |
|
| 37 |
+
| save | 13 | Session ledger save | 100% |
|
| 38 |
+
| smem | 12 | Session memory search | 100% |
|
| 39 |
+
| tran | 6 | Translation requests β plain text | 100% |
|
| 40 |
+
|
| 41 |
+
Remaining failure (1/102, edge): `'What do I know about iOS? Search memory too'` β compound prompt mixing `knowledge_search` + `session_search_memory`; model routes to smem instead of know.
|
| 42 |
+
|
| 43 |
+
Eval: MLX inference + thinking, temperature=0, 3-seed mean.
|
| 44 |
Gate: β₯90% = deploy.
|
| 45 |
|
| 46 |
## Full Cascade Benchmark (May 2026)
|
| 47 |
|
| 48 |
+
| Model | BFCL | Size | Tier |
|
| 49 |
+
|-------|------|------|------|
|
| 50 |
+
| prism-coder:8b v36 | **100.0% PERFECT** | 4.7 GB | Desktop tier 1 / Mobile tier 2 |
|
| 51 |
+
| prism-coder:14b v36 | **100.0% PERFECT** | 8.4 GB | Desktop tier 1 |
|
| 52 |
+
| prism-coder:32b v6 | **99.0%** | 17 GB | Desktop quality tier |
|
|
|
|
| 53 |
|
| 54 |
## Version History
|
| 55 |
|
| 56 |
| Version | Base | BFCL | Notes |
|
| 57 |
|---------|------|------|-------|
|
| 58 |
+
| v6 (current) | Qwen3-30B-A3B MoE | **99.0%** | Fixed 30b MoE merge (BF16 safetensors + correct MLXβHF key mapping); 1 edge case remaining |
|
| 59 |
+
| v5 | Qwen3-30B-A3B MoE | 97.1% | 18Γ density fix; 9GB smaller, 4Γ faster vs dense |
|
| 60 |
| v4 | Qwen3-30B-A3B MoE | 92.2% | rank=32 experiment β regressed vs v3 |
|
| 61 |
+
| v3 | Qwen3-30B-A3B MoE | 92.5% | 20Γ reps + LR=1e-5 β hit rank bottleneck |
|
| 62 |
| v2 | Qwen3-30B-A3B MoE | 92.5% | v34 corpus + 1400 iters |
|
| 63 |
| v33 (dense) | Qwen3-32B dense | 99.0% | Prior generation β larger/slower |
|
| 64 |
|
|
|
|
| 77 |
|
| 78 |
| File | Size | Use |
|
| 79 |
|------|------|-----|
|
| 80 |
+
| `qwen3-30b-a3b-v6-iq4nl.gguf` | 17 GB | **Current β recommended** |
|
| 81 |
+
| `qwen3-30b-a3b-v5-iq4nl.gguf` | 17 GB | Previous (97.1%) |
|
| 82 |
| `qwen3-32b-v33-q6k.gguf` | 25 GB | Dense predecessor (99.0%, legacy) |
|
| 83 |
|
| 84 |
## Usage (Ollama)
|
|
|
|
| 89 |
|
| 90 |
## Training
|
| 91 |
|
| 92 |
+
- **Base**: Qwen/Qwen3-30B-A3B (HF BF16, ~57 GB)
|
| 93 |
+
- **Adapters**: v6 LoRA (rank=8, scale=10, 8 layers, LR=1e-5)
|
| 94 |
+
- **Merge**: Direct safetensors merge on HF BF16 base; delta = (scale/rank) Γ B^T A^T for attn/gate; delta[i] = (scale/rank) Γ B[i] A[i] for MoE experts (128 experts stacked)
|
| 95 |
+
- **Key fix**: v5 merge used wrong base (MLX 4-bit, can't apply float LoRA delta) and uppercase regex `lora_[AB]` vs actual lowercase `lora_a`/`lora_b` adapter keys
|
| 96 |
- **Hardware**: Apple Silicon (M-series, 64 GB RAM)
|
|
|