Instructions to use dcostenco/prism-coder-1.7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use dcostenco/prism-coder-1.7b with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="dcostenco/prism-coder-1.7b", filename="prism-aac-1b7-q4km.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use dcostenco/prism-coder-1.7b 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-1.7b:Q8_0 # Run inference directly in the terminal: llama-cli -hf dcostenco/prism-coder-1.7b:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf dcostenco/prism-coder-1.7b:Q8_0 # Run inference directly in the terminal: llama-cli -hf dcostenco/prism-coder-1.7b:Q8_0
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-1.7b:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf dcostenco/prism-coder-1.7b:Q8_0
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-1.7b:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf dcostenco/prism-coder-1.7b:Q8_0
Use Docker
docker model run hf.co/dcostenco/prism-coder-1.7b:Q8_0
- LM Studio
- Jan
- Ollama
How to use dcostenco/prism-coder-1.7b with Ollama:
ollama run hf.co/dcostenco/prism-coder-1.7b:Q8_0
- Unsloth Studio
How to use dcostenco/prism-coder-1.7b 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-1.7b 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-1.7b 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-1.7b to start chatting
- Pi
How to use dcostenco/prism-coder-1.7b 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-1.7b:Q8_0
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-1.7b:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use dcostenco/prism-coder-1.7b 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-1.7b:Q8_0
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-1.7b:Q8_0
Run Hermes
hermes
- Docker Model Runner
How to use dcostenco/prism-coder-1.7b with Docker Model Runner:
docker model run hf.co/dcostenco/prism-coder-1.7b:Q8_0
- Lemonade
How to use dcostenco/prism-coder-1.7b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull dcostenco/prism-coder-1.7b:Q8_0
Run and chat with the model
lemonade run user.prism-coder-1.7b-Q8_0
List all available models
lemonade list
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -4,76 +4,90 @@ license: apache-2.0
|
|
| 4 |
tags:
|
| 5 |
- tool-routing
|
| 6 |
- function-calling
|
| 7 |
-
- prism-
|
| 8 |
- qwen3
|
| 9 |
- gguf
|
|
|
|
| 10 |
base_model: Qwen/Qwen3-1.7B
|
| 11 |
---
|
| 12 |
|
| 13 |
-
# prism-coder:
|
| 14 |
|
| 15 |
-
Fine-tuned Qwen3-1.7B for
|
| 16 |
-
Primary deployment: **any
|
| 17 |
|
| 18 |
-
##
|
| 19 |
|
| 20 |
-
**
|
| 21 |
|
| 22 |
| Category | Count | Description | Accuracy |
|
| 23 |
|----------|------:|-------------|:--------:|
|
| 24 |
-
|
|
| 25 |
-
|
|
| 26 |
-
|
|
| 27 |
-
|
|
| 28 |
-
|
|
| 29 |
-
|
|
| 30 |
-
|
|
| 31 |
-
|
|
| 32 |
-
|
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
| tran | 6 | Translation requests β plain text | 100% |
|
| 36 |
-
|
| 37 |
-
Eval: MLX inference + thinking, temperature=0, 3-seed mean.
|
| 38 |
-
Gate: β₯90% = deploy.
|
| 39 |
-
|
| 40 |
-
## Version History
|
| 41 |
-
|
| 42 |
-
| Version | BFCL | Notes |
|
| 43 |
-
|---------|------|-------|
|
| 44 |
-
| v42 | **100.0%** | Fixed 4 deterministic failures: cmpct tool name, compound edge, write-code irrel, pull-context load |
|
| 45 |
-
| v41 | 96.1% | Proper safetensors merge β fixes mlx_lm.fuse LoRA loss |
|
| 46 |
-
| v36 | 94.1% | LoRA rank=16, all 28 layers, mask-prompt |
|
| 47 |
-
| v19 | ~88% | Baseline 1.7B routing |
|
| 48 |
|
| 49 |
## Tools
|
| 50 |
|
| 51 |
-
|
| 52 |
|
| 53 |
| Tool | Trigger |
|
| 54 |
|------|---------|
|
| 55 |
-
| `session_load_context` | Load/resume
|
| 56 |
-
| `session_save_ledger` |
|
| 57 |
-
| `session_save_handoff` |
|
| 58 |
-
| `
|
| 59 |
-
| `
|
| 60 |
-
| `
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
-
|
|
|
|
|
|
|
| 63 |
|
| 64 |
## Model Details
|
| 65 |
|
| 66 |
-
- **Base**: Qwen/Qwen3-1.7B
|
| 67 |
-
- **Format**: GGUF
|
| 68 |
-
- **Context**:
|
| 69 |
-
- **
|
| 70 |
-
- **
|
| 71 |
|
| 72 |
## Usage
|
| 73 |
|
| 74 |
```bash
|
| 75 |
ollama pull dcostenco/prism-coder:1b7
|
| 76 |
-
ollama run prism-coder:1b7
|
| 77 |
```
|
| 78 |
|
| 79 |
-
Or
|
|
|
|
| 4 |
tags:
|
| 5 |
- tool-routing
|
| 6 |
- function-calling
|
| 7 |
+
- prism-coder
|
| 8 |
- qwen3
|
| 9 |
- gguf
|
| 10 |
+
- synalux
|
| 11 |
base_model: Qwen/Qwen3-1.7B
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# prism-coder:1b7 β 17-Tool Memory Agent (Always-Fits Tier)
|
| 15 |
|
| 16 |
+
Fine-tuned Qwen3-1.7B for full Prism Memory tool routing in the [Prism Coder](https://ollama.com/dcostenco/prism-coder) system.
|
| 17 |
+
Primary deployment: **any device** via llama.cpp GGUF β the ultra-lightweight tier.
|
| 18 |
|
| 19 |
+
## eval_300 Benchmark β swe43 (Current)
|
| 20 |
|
| 21 |
+
**300/300 Γ 3 shuffled runs = 100.0%, 0 flaky**
|
| 22 |
|
| 23 |
| Category | Count | Description | Accuracy |
|
| 24 |
|----------|------:|-------------|:--------:|
|
| 25 |
+
| natural_phrasing | 50 | Natural language β correct tool | 100% |
|
| 26 |
+
| adversarial_trap | 70 | Coding/CS questions β plain text (no tool) | 100% |
|
| 27 |
+
| disambiguation | 40 | Ambiguous session vs knowledge ops | 100% |
|
| 28 |
+
| edge_case | 25 | Self-description, capability queries β plain text | 100% |
|
| 29 |
+
| verifier | 25 | Verify-then-act chains | 100% |
|
| 30 |
+
| param_extraction | 25 | Extract project/query from prompt | 100% |
|
| 31 |
+
| cascade | 25 | Multi-step tool chains | 100% |
|
| 32 |
+
| multi_intent | 20 | Compound instructions | 100% |
|
| 33 |
+
| abstention | 20 | Greetings, math, creative requests β plain text | 100% |
|
| 34 |
+
|
| 35 |
+
300 test cases, 3 shuffled runs, temperature=0, 0 hallucinations across all runs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
## Tools
|
| 38 |
|
| 39 |
+
Routes to 17 Prism Memory tools + knows when NOT to call any tool:
|
| 40 |
|
| 41 |
| Tool | Trigger |
|
| 42 |
|------|---------|
|
| 43 |
+
| `session_load_context` | Load/resume project context, "starting fresh" |
|
| 44 |
+
| `session_save_ledger` | Log/record completed work |
|
| 45 |
+
| `session_save_handoff` | Create handoff note for next session |
|
| 46 |
+
| `session_search_memory` | Recall prior discussions |
|
| 47 |
+
| `session_forget_memory` | Delete a memory entry |
|
| 48 |
+
| `session_health_check` | Check session system health |
|
| 49 |
+
| `session_compact_ledger` | Compact/prune session ledger |
|
| 50 |
+
| `session_export_memory` | Export session data |
|
| 51 |
+
| `session_task_route` | Route task: local vs cloud |
|
| 52 |
+
| `session_save_experience` | Save a notable experience |
|
| 53 |
+
| `session_synthesize_edges` | Build session graph edges |
|
| 54 |
+
| `session_backfill_links` | Repair dangling session links |
|
| 55 |
+
| `knowledge_search` | Search stored knowledge base |
|
| 56 |
+
| `knowledge_forget` | Remove a knowledge entry |
|
| 57 |
+
| `knowledge_upvote` | Upvote knowledge entry |
|
| 58 |
+
| `knowledge_downvote` | Downvote knowledge entry |
|
| 59 |
+
| `knowledge_set_retention` | Set retention policy |
|
| 60 |
+
|
| 61 |
+
**Abstains (plain text)** for: coding questions, CS concepts, arithmetic, greetings, capability queries, creative requests, general knowledge.
|
| 62 |
+
|
| 63 |
+
## Version History
|
| 64 |
+
|
| 65 |
+
| Version | eval_300 | Notes |
|
| 66 |
+
|---------|---------|-------|
|
| 67 |
+
| swe43 | **300/300 Γ 3 runs = 100.0%** | Fresh rank=32 LoRA + `<think>` routing, Q8_0 GGUF |
|
| 68 |
+
| swe30 | 280/300 = 93.3% | Q8_0 first round (fixed Q4KM quantization erasure) |
|
| 69 |
+
| v43l | 203/300 = 67.7% | Baseline before SWE training |
|
| 70 |
+
| v42 | 100% BFCL 6-tool | Previous 6-tool routing model |
|
| 71 |
+
|
| 72 |
+
## Key Training Insights
|
| 73 |
|
| 74 |
+
- **Q8_0 quantization required** β Q4KM erased LoRA deltas for soft abstain patterns (87%β93% at R30)
|
| 75 |
+
- **Adapter saturation** β After 39 cumulative rounds at rank=8, adapter was saturated. Fresh rank=32 on R39-merged base broke plateau in one round (93.3%β99.7%)
|
| 76 |
+
- **`<think>` routing blocks** β Added CoT reasoning to abstain examples activates Qwen3's pretrained thinking circuit, providing explicit gradient path for the routing decision
|
| 77 |
|
| 78 |
## Model Details
|
| 79 |
|
| 80 |
+
- **Base**: Qwen/Qwen3-1.7B β merged through 43 SWE training rounds
|
| 81 |
+
- **Format**: GGUF Q8_0 (2.2 GB)
|
| 82 |
+
- **Context**: 8,192 tokens
|
| 83 |
+
- **Final adapter**: MLX LoRA rank=32, all 28 layers, LR=3e-6β8e-7, 1,267 train rows/round
|
| 84 |
+
- **Total training**: 43 rounds of cumulative SFT + 4 fresh rank=32 rounds
|
| 85 |
|
| 86 |
## Usage
|
| 87 |
|
| 88 |
```bash
|
| 89 |
ollama pull dcostenco/prism-coder:1b7
|
| 90 |
+
ollama run dcostenco/prism-coder:1b7
|
| 91 |
```
|
| 92 |
|
| 93 |
+
Or via the [Synalux Prism MCP server](https://github.com/dcostenco/prism-mcp) which routes tool calls automatically.
|