Instructions to use stamsam/Instella-Prometheus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use stamsam/Instella-Prometheus with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="stamsam/Instella-Prometheus", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("stamsam/Instella-Prometheus", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("stamsam/Instella-Prometheus", trust_remote_code=True, device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use stamsam/Instella-Prometheus with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf stamsam/Instella-Prometheus:Q4_K_M # Run inference directly in the terminal: llama cli -hf stamsam/Instella-Prometheus:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf stamsam/Instella-Prometheus:Q4_K_M # Run inference directly in the terminal: llama cli -hf stamsam/Instella-Prometheus:Q4_K_M
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 stamsam/Instella-Prometheus:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf stamsam/Instella-Prometheus:Q4_K_M
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 stamsam/Instella-Prometheus:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf stamsam/Instella-Prometheus:Q4_K_M
Use Docker
docker model run hf.co/stamsam/Instella-Prometheus:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use stamsam/Instella-Prometheus with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "stamsam/Instella-Prometheus" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "stamsam/Instella-Prometheus", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/stamsam/Instella-Prometheus:Q4_K_M
- SGLang
How to use stamsam/Instella-Prometheus with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "stamsam/Instella-Prometheus" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "stamsam/Instella-Prometheus", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "stamsam/Instella-Prometheus" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "stamsam/Instella-Prometheus", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use stamsam/Instella-Prometheus with Ollama:
ollama run hf.co/stamsam/Instella-Prometheus:Q4_K_M
- Unsloth Studio
How to use stamsam/Instella-Prometheus 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 stamsam/Instella-Prometheus 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 stamsam/Instella-Prometheus to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for stamsam/Instella-Prometheus to start chatting
- Atomic Chat new
- Docker Model Runner
How to use stamsam/Instella-Prometheus with Docker Model Runner:
docker model run hf.co/stamsam/Instella-Prometheus:Q4_K_M
- Lemonade
How to use stamsam/Instella-Prometheus with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull stamsam/Instella-Prometheus:Q4_K_M
Run and chat with the model
lemonade run user.Instella-Prometheus-Q4_K_M
List all available models
lemonade list
Instella-Prometheus 🔥
Stole code-fire from the gods. Gave it to the people.
No system prompt. No thinking tags. No decoder bans. No adapter dependencies. Just a bare user prompt and clean Python.
stamsam/Instella-Prometheus — 16B total / 2.8B active parameters — fine-tuned on powerhouse Python code traces from four teacher models and fused permanently into the base weights. It loads with a single from_pretrained() call and zero extra dependencies.
Four Ways to Run It
This repository contains four downloadable weight variants. Choose the one that fits your hardware and runtime:
| Variant | File | Approx. size | Best for |
|---|---|---|---|
| Full Transformers weights | 7 model-0000X-of-00007.safetensors shards |
~30 GB | transformers, training, maximum flexibility |
| Q8_0 GGUF | Instella-Prometheus-Q8_0.gguf |
~16.9 GB | Near-full-quality llama.cpp inference |
| Q4_K_M GGUF | Instella-Prometheus-Q4_K_M.gguf |
~9.4 GB | Best quality/size balance |
| Q3_K_M GGUF | Instella-Prometheus-Q3_K_M.gguf |
~8.2 GB | Lower-memory llama.cpp inference |
The three .gguf files are in the repository root so Hugging Face can identify them as quantized variants. The GGUF files are standalone: they include the model metadata needed by llama.cpp and do not require the Transformers weights.
The Theft
The gods kept their fire locked away — DeepSeek V4, Qwen 3 Coder 480B, Claude Opus, and the competitive programming pantheon. Each held a piece of what it means to write clean, functional Python. Prometheus stole from all of them, distilled their fire into 26,028 records of AST-valid, think-free, code-first answers, and baked it into a single 30GB artifact that answers to no system prompt and bows to no decoder ban.
The Proof
| Metric | Base Instella | Instella-Prometheus | Bar |
|---|---|---|---|
| Code blocks generated | 2 / 12 | 12 / 12 | — |
| Syntax valid | 2 / 12 | 12 / 12 | — |
| Functional passes | 2 / 12 | 10 / 12 | ≥9 ✅ |
| Think tag leak | 12 / 12 | 0 / 12 | ≤3 ✅ |
| Natural EOS | 2 / 12 | 12 / 12 | — |
The base Instella-MoE-SFT produces almost no code under a bare prompt — it defaults to thinking tags and narrative text. Prometheus writes clean, functional Python directly, with zero thinking leakage and perfect EOS completion. That's a 5× improvement in functional passes and a complete elimination of think-tag leakage — no system prompt, no decoder bans, no adapter dependencies.
The Training
Three phases, each building on the last:
- v1 — 4,000 records from agentic coding traces (kimi-k3, fable-5, hermes-agent). Proved the concept: 4/12 functional, 11/12 think leak.
- v2 — 300 steps continuation from v1 checkpoint-500. Same data, bare prompt. Hit 11/12 functional, 0/12 think — but the dataset was too small to bake it in permanently.
- v3 (powerhouse) — 300 steps from v2 checkpoint-100 on a 26,028-record powerhouse pool. The LoRA was merged permanently into the base weights. The result: 10/12 functional, 0/12 think, 12/12 EOS — standalone, no crutches.
| Source | Teacher | Records | License |
|---|---|---|---|
| Competitive-Programming-python-blend | Contest problems (multi) | 15,014 | Permissive mix |
| qwen3-coder-480b-distill-mini | Qwen 3 Coder 480B | 8,303 | Apache-2.0 |
| DeepSeek-V4-Distill-8000x | DeepSeek V4 | 2,148 | MIT |
| Claude-Opus 4.6/4.7 (code split) | Claude Opus | 454 | Apache-2.0 |
| v1 unique carryover | (kimi-k3, fable-5, hermes) | 109 | CC-BY-4.0 |
Every record: AST-valid Python, no thinking tags, code-first, provenance preserved.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"stamsam/Instella-Prometheus",
trust_remote_code=True,
torch_dtype="auto",
device_map="auto",
)
tokenizer = AutoTokenizer.from_pretrained(
"stamsam/Instella-Prometheus",
trust_remote_code=True,
)
# No system prompt. No thinking preamble. Just the task.
prompt = "Write a function to merge overlapping intervals."
messages = [{"role": "user", "content": prompt}]
inputs = tokenizer.apply_chat_template(
messages, tokenize=True, add_generation_prompt=True, return_tensors="pt"
).to(model.device)
output = model.generate(
inputs,
max_new_tokens=1024,
do_sample=False,
eos_token_id=tokenizer.eos_token_id,
pad_token_id=tokenizer.eos_token_id,
)
print(tokenizer.decode(output[0][inputs.shape[1]:], skip_special_tokens=True))
GGUF Quantizations
The three GGUF quantizations are in the repository root and are suitable for llama.cpp and its bindings.
| File | Size | BPW |
|---|---|---|
Instella-Prometheus-Q8_0.gguf |
16.9 GB | 8.94 |
Instella-Prometheus-Q4_K_M.gguf |
9.4 GB | 5.28 |
Instella-Prometheus-Q3_K_M.gguf |
8.2 GB | 4.14 |
For the original Transformers format, use the seven model-0000X-of-00007.safetensors shards plus model.safetensors.index.json.
Release note: This repository is the canonical full-weights release. The standalone GGUF companion is available at stamsam/Instella-Prometheus-GGUF.
License
Apache-2.0. The base model (Instella-MoE-16B-A3B-SFT) is released by AMD under a research-permissive license. Training data sources carry their own licenses (CC-BY-4.0, Apache-2.0, MIT, BSD) — all permissive for redistribution.
Acknowledgements
Built on the shoulders of giants: AMD (Instella-MoE), greghavens (coding traces), Jackrong (distillation datasets), angrygiraffe (Opus reasoning traces), and the open-source community. The fire belongs to them. The torch is yours.
- Downloads last month
- 13
Model tree for stamsam/Instella-Prometheus
Base model
amd/Instella-MoE-16B-A3B-SFTDatasets used to train stamsam/Instella-Prometheus
Jackrong/DeepSeek-V4-Distill-8000x
Jackrong/Competitive-Programming-python-blend
Evaluation results
- Functional Passes (12 tasks) on 12-task Python Code Suiteself-reported10.000
- Code Blocks Generated on 12-task Python Code Suiteself-reported12.000
- Syntax Valid on 12-task Python Code Suiteself-reported12.000
- Think Tag Leak on 12-task Python Code Suiteself-reported0.000
- Natural EOS Completion on 12-task Python Code Suiteself-reported12.000
