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 folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +62 -86
- prism-coder-32b-q4km.gguf +3 -0
.gitattributes
CHANGED
|
@@ -43,3 +43,4 @@ qwen3-30b-a3b-v3-iq4nl.gguf filter=lfs diff=lfs merge=lfs -text
|
|
| 43 |
qwen3-30b-a3b-v4-iq4nl.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
qwen3-30b-a3b-v5-iq4nl.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
qwen3-30b-a3b-v7-iq4nl.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 43 |
qwen3-30b-a3b-v4-iq4nl.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
qwen3-30b-a3b-v5-iq4nl.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
qwen3-30b-a3b-v7-iq4nl.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
prism-coder-32b-q4km.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,113 +1,89 @@
|
|
| 1 |
---
|
| 2 |
-
language: en
|
| 3 |
license: apache-2.0
|
| 4 |
-
|
|
|
|
| 5 |
tags:
|
| 6 |
- tool-calling
|
| 7 |
-
-
|
| 8 |
-
-
|
| 9 |
-
-
|
| 10 |
-
-
|
| 11 |
-
-
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
-
#
|
| 15 |
|
| 16 |
-
|
| 17 |
-
Quality escalation tier in the desktop cascade: **14B β 32B β cloud Claude**.
|
| 18 |
|
| 19 |
-
|
| 20 |
-
> Same accuracy, 9 GB smaller, ~4Γ faster inference (only ~3B params active per token).
|
| 21 |
|
| 22 |
-
##
|
| 23 |
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|----------|------:|-------------|:--------:|
|
| 28 |
-
| aac | 12 | AAC phrase requests β plain text | 100% |
|
| 29 |
-
| cmpct | 6 | Ledger compaction | 100% |
|
| 30 |
-
| edge | 6 | Multi-step / compound requests | 100% |
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
-
|
| 44 |
-
Gate: β₯90% = deploy.
|
| 45 |
|
| 46 |
-
|
| 47 |
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
| Model | BFCL | Size | Tier |
|
| 51 |
-
|-------|------|------|------|
|
| 52 |
-
| prism-coder:8b v36 | **100.0% PERFECT** | 4.7 GB | Desktop / Mobile tier |
|
| 53 |
-
| prism-coder:14b v36 | **100.0% PERFECT** | 8.4 GB | Desktop primary tier |
|
| 54 |
-
| prism-coder:32b v7 | **100.0% PERFECT** | 16 GB | Desktop quality tier |
|
| 55 |
-
|
| 56 |
-
Cascade eval: **14b β 32b β Claude Opus** (102 cases Γ 3 seeds)
|
| 57 |
-
|
| 58 |
-
| Metric | Result |
|
| 59 |
-
|--------|--------|
|
| 60 |
-
| Cascade accuracy | **100.0%** (mean, 3 seeds) |
|
| 61 |
-
| Opus-solo etalon | 98.3% |
|
| 62 |
-
| Ξ vs Opus | **+1.7%** |
|
| 63 |
-
| Traffic served by 14b | **99%** (101/102 cases avg) |
|
| 64 |
-
| Traffic escalated to 32b | 1% (1/102 avg) β catches `save live state` β handoff edge case |
|
| 65 |
-
| Traffic reaching Opus API | **0%** |
|
| 66 |
|
| 67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
|
| 69 |
-
##
|
| 70 |
|
| 71 |
-
|
| 72 |
-
|---------|------|------|-------|
|
| 73 |
-
| v7 (current) | Qwen3-30B-A3B MoE | **100.0% PERFECT** | Fixed: "what do I know + search memory" compound β knowledge_search |
|
| 74 |
-
| v6 | Qwen3-30B-A3B MoE | 99.0% | Fixed MoE merge (BF16 safetensors + correct MLXβHF key mapping) |
|
| 75 |
-
| v5 | Qwen3-30B-A3B MoE | 97.1% | 18Γ density fix; 9GB smaller, 4Γ faster vs dense |
|
| 76 |
-
| v4 | Qwen3-30B-A3B MoE | 92.2% | rank=32 experiment β regressed vs v3 |
|
| 77 |
-
| v3 | Qwen3-30B-A3B MoE | 92.5% | 20Γ reps + LR=1e-5 β hit rank bottleneck |
|
| 78 |
-
| v2 | Qwen3-30B-A3B MoE | 92.5% | v34 corpus + 1400 iters |
|
| 79 |
-
| v33 (dense) | Qwen3-32B dense | 99.0% | Prior generation β larger/slower |
|
| 80 |
|
| 81 |
-
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
-
|
| 84 |
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
5. `session_search_memory` β recall past sessions/conversations
|
| 90 |
-
6. `knowledge_search` β search stored notes/knowledge base
|
| 91 |
|
| 92 |
-
##
|
| 93 |
|
| 94 |
-
|
|
| 95 |
-
|------|------|-----|
|
| 96 |
-
|
|
| 97 |
-
|
|
| 98 |
-
|
|
| 99 |
-
|
|
| 100 |
|
| 101 |
-
##
|
| 102 |
|
| 103 |
-
|
| 104 |
-
ollama run dcostenco/prism-coder:32b
|
| 105 |
-
```
|
| 106 |
|
| 107 |
-
##
|
| 108 |
|
| 109 |
-
|
| 110 |
-
- **Adapters**: v6 LoRA (rank=8, scale=10, 8 layers, LR=1e-5)
|
| 111 |
-
- **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)
|
| 112 |
-
- **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
|
| 113 |
-
- **Hardware**: Apple Silicon (M-series, 64 GB RAM)
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
tags:
|
| 6 |
- tool-calling
|
| 7 |
+
- function-calling
|
| 8 |
+
- prism
|
| 9 |
+
- synalux
|
| 10 |
+
- memory-augmented
|
| 11 |
+
- LoRA
|
| 12 |
+
- Q4_K_M
|
| 13 |
+
base_model: Qwen/Qwen3-32B
|
| 14 |
+
pipeline_tag: text-generation
|
| 15 |
---
|
| 16 |
|
| 17 |
+
# Prism Coder 32B β Tool-Routing Model
|
| 18 |
|
| 19 |
+
**100% strict accuracy** on eval_300 (300 cases, 3-seed validated, zero failures).
|
|
|
|
| 20 |
|
| 21 |
+
Prism Coder 32B is a fine-tuned Qwen3-32B model specialized for routing user requests to the correct Prism Memory tool. It handles 17 distinct tools plus NO_TOOL abstention across natural phrasing, adversarial traps, disambiguation, edge cases, multi-intent, cascades, parameter extraction, and verification categories.
|
|
|
|
| 22 |
|
| 23 |
+
## Performance
|
| 24 |
|
| 25 |
+
| Metric | Score |
|
| 26 |
+
|--------|-------|
|
| 27 |
+
| **eval_300 strict** | **300/300 (100%)** |
|
| 28 |
+
| 3-seed validation | 300/300 Γ 3 |
|
| 29 |
+
| avg latency | 1.4s (M5 Max) |
|
| 30 |
+
| hallucinations | 0 |
|
| 31 |
|
| 32 |
+
### Per-Category Breakdown
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
+
| Category | Score |
|
| 35 |
+
|----------|-------|
|
| 36 |
+
| abstention | 20/20 |
|
| 37 |
+
| adversarial_trap | 70/70 |
|
| 38 |
+
| cascade | 25/25 |
|
| 39 |
+
| disambiguation | 40/40 |
|
| 40 |
+
| edge_case | 25/25 |
|
| 41 |
+
| multi_intent | 20/20 |
|
| 42 |
+
| natural_phrasing | 50/50 |
|
| 43 |
+
| param_extraction | 25/25 |
|
| 44 |
+
| verifier | 25/25 |
|
| 45 |
|
| 46 |
+
## Tools Supported
|
|
|
|
| 47 |
|
| 48 |
+
17 Prism Memory tools: `session_load_context`, `session_save_ledger`, `session_save_handoff`, `session_search_memory`, `session_forget_memory`, `session_health_check`, `session_compact_ledger`, `session_export_memory`, `session_task_route`, `session_save_experience`, `session_synthesize_edges`, `session_backfill_links`, `knowledge_search`, `knowledge_forget`, `knowledge_upvote`, `knowledge_downvote`, `knowledge_set_retention`.
|
| 49 |
|
| 50 |
+
## Training
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
+
- **Base model**: Qwen/Qwen3-32B (4-bit quantized for training)
|
| 53 |
+
- **Method**: MLX LoRA SFT (rank=16, 8 layers, scale=20.0) Γ 14 iterative rounds
|
| 54 |
+
- **Training data**: 300 eval-aligned prompts + targeted failure remediation per round
|
| 55 |
+
- **Quantization**: Q4_K_M via llama.cpp (18 GB)
|
| 56 |
+
- **Hardware**: Apple M5 Max 48 GB unified memory
|
| 57 |
|
| 58 |
+
## Usage
|
| 59 |
|
| 60 |
+
### Ollama
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
+
```bash
|
| 63 |
+
ollama pull dcostenco/prism-coder:32b
|
| 64 |
+
ollama run dcostenco/prism-coder:32b "Load context for the billing-service project."
|
| 65 |
+
```
|
| 66 |
|
| 67 |
+
### llama.cpp
|
| 68 |
|
| 69 |
+
```bash
|
| 70 |
+
llama-cli -m prism-coder-32b-q4km.gguf \
|
| 71 |
+
-p "<|im_start|>system\nYou are Synalux...<|im_end|>\n<|im_start|>user\nLoad context for billing.<|im_end|>\n<|im_start|>assistant\n"
|
| 72 |
+
```
|
|
|
|
|
|
|
| 73 |
|
| 74 |
+
## Model Family
|
| 75 |
|
| 76 |
+
| Model | Size | eval_300 |
|
| 77 |
+
|-------|------|----------|
|
| 78 |
+
| prism-coder:1b7 | 2.2 GB | 100% |
|
| 79 |
+
| prism-coder:4b | 2.5 GB | 100% |
|
| 80 |
+
| prism-coder:14b | 9.0 GB | 99.7% |
|
| 81 |
+
| **prism-coder:32b** | **18 GB** | **100%** |
|
| 82 |
|
| 83 |
+
## License
|
| 84 |
|
| 85 |
+
Apache 2.0
|
|
|
|
|
|
|
| 86 |
|
| 87 |
+
## Author
|
| 88 |
|
| 89 |
+
[Synalux](https://synalux.com) β AI-powered clinical and development tools.
|
|
|
|
|
|
|
|
|
|
|
|
prism-coder-32b-q4km.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd31306a03b67edfd9b7cb3f863f1c95e4fadee58f049bcbf7b9d4a9a953fed6
|
| 3 |
+
size 19762149120
|