Instructions to use OsaurusAI/Raptor-0.6.1-preview-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use OsaurusAI/Raptor-0.6.1-preview-GGUF 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 OsaurusAI/Raptor-0.6.1-preview-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf OsaurusAI/Raptor-0.6.1-preview-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf OsaurusAI/Raptor-0.6.1-preview-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf OsaurusAI/Raptor-0.6.1-preview-GGUF: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 OsaurusAI/Raptor-0.6.1-preview-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf OsaurusAI/Raptor-0.6.1-preview-GGUF: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 OsaurusAI/Raptor-0.6.1-preview-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf OsaurusAI/Raptor-0.6.1-preview-GGUF:Q4_K_M
Use Docker
docker model run hf.co/OsaurusAI/Raptor-0.6.1-preview-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use OsaurusAI/Raptor-0.6.1-preview-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OsaurusAI/Raptor-0.6.1-preview-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OsaurusAI/Raptor-0.6.1-preview-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/OsaurusAI/Raptor-0.6.1-preview-GGUF:Q4_K_M
- Ollama
How to use OsaurusAI/Raptor-0.6.1-preview-GGUF with Ollama:
ollama run hf.co/OsaurusAI/Raptor-0.6.1-preview-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use OsaurusAI/Raptor-0.6.1-preview-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf OsaurusAI/Raptor-0.6.1-preview-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "OsaurusAI/Raptor-0.6.1-preview-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use OsaurusAI/Raptor-0.6.1-preview-GGUF with Docker Model Runner:
docker model run hf.co/OsaurusAI/Raptor-0.6.1-preview-GGUF:Q4_K_M
- Lemonade
How to use OsaurusAI/Raptor-0.6.1-preview-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull OsaurusAI/Raptor-0.6.1-preview-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Raptor-0.6.1-preview-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use OsaurusAI/Raptor-0.6.1-preview-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf OsaurusAI/Raptor-0.6.1-preview-GGUF:Q4_K_M
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 OsaurusAI/Raptor-0.6.1-preview-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use OsaurusAI/Raptor-0.6.1-preview-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf OsaurusAI/Raptor-0.6.1-preview-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "OsaurusAI/Raptor-0.6.1-preview-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Raptor 0.6.1 preview — GGUF
imatrix-calibrated GGUF builds of Raptor 0.6.1 preview, a lightly tuned Spark-X2.5-4B.
| file | size | mean KLD vs bf16 ↓ | same top-1 ↑ |
|---|---|---|---|
Raptor-0.6.1-preview-Q6_K.gguf |
3.38 GB | 0.00469 ± 0.00033 | 98.27 ± 0.08 % |
Raptor-0.6.1-preview-Q4_K_M.gguf |
2.60 GB | 0.03994 ± 0.00126 | 94.92 ± 0.14 % |
raptor-0.6.1-preview.imatrix.gguf |
3.6 MB | the importance matrix, for re-quantizing yourself |
Both quants were produced with the importance matrix applied. Measured against the model's own bf16 weights on a held-out corpus (100 chunks x 512 tokens) that is disjoint from the imatrix corpus — 9,166 overlapping rows were dropped and the eval asserts the result is non-empty rather than trusting the paths.
Reference perplexity of the bf16 source on that held-out text: 2.1935 ± 0.0129.
Requires a llama.cpp with spark2_5 support
spark2_5 is a new architecture. It is not in upstream llama.cpp — there is no LLM_ARCH_SPARK2_5 in any upstream release — so stock llama.cpp, Ollama and LM Studio will refuse these files until they carry the architecture. The graph needs the fused q_k_v_proj, the per-head sigmoid attention output gate (g_proj), a gelu MLP, plain RMSNorm with no +1 shift, 27 sliding / 9 full attention at window 512, and a different rope per layer type (full: theta 5e6 over 64 of 256 dims; sliding: theta 1e4 over all 256).
This is not an Osaurus bundle. Osaurus serves MLX, not GGUF. For Osaurus use OsaurusAI/Raptor-0.6.1-preview-JANG_6M instead. These files are for llama.cpp-family runtimes.
Serving contract — verified on the shipped Q4_K_M, not assumed
Run llama-server with --jinja so the embedded chat template drives tool and reasoning parsing.
- Sampling defaults ship inside the GGUF:
general.sampling.temp = 1.0,general.sampling.top_p = 0.95,general.sampling.top_k = -1. These match the sourcegeneration_config.jsonexactly. No repetition penalty. - Token ids: bos 0, eos 1, unk 5, pad 2;
add_bos_tokenandadd_eos_tokenboth false, because the template emits the sentence markers itself. - Reasoning is ON by default — the template force-opens the rail, so the generation prompt ends with
<|Bot|><think>.<think>and</think>are control tokens (ids 3 and 4). With--jinja, llama.cpp separates the trace intoreasoning_content, leavingcontentclean:
reasoning_content: 'We are asked: "What is 84 * 3 / 2?" ...'
content: 'The expression \(84 \times 3 \div 2\) is evaluated left to right...'
Pass "chat_template_kwargs": {"enable_thinking": false} to close the rail; reasoning_content then comes back empty. A reasoning parser that waits for a literal <think> in the output stream will never see one — the opener is in the prompt.
- Tool calls parse to standard OpenAI JSON. The model emits the Spark XML dialect (
<tool_call>NAME<arg_key>k</arg_key><arg_value>v</arg_value></tool_call>) and llama.cpp converts it:
{"finish_reason":"tool_calls",
"message":{"tool_calls":[{"type":"function","function":{"name":"get_weather","arguments":"{\"city\":\"Seoul\"}"}}]}}
- Tools render into the first system block. Adding or removing a tool rewrites the system prefix, so a tool-set change is a full re-prefill, not a suffix append — prefix-cache accounting must treat it that way.
- Reasoning can need more than 8192 output tokens on hard prompts. Budget real input plus output inside the context window.
What the calibration did, and what it did not
The imatrix was captured over 600 chunks x 512 tokens of code, agentic/tool-call transcripts, academic multiple-choice, general chat, Chinese, long-context, science and security text.
Three arms were built at each width and measured against the same bf16 reference, so the effect of each treatment is a controlled comparison rather than an assumption:
| arm | Q6_K mean KLD | Q4_K_M mean KLD |
|---|---|---|
| plain + imatrix (shipped) | 0.004691 ± 0.00033 | 0.039944 ± 0.00126 |
| plain, no imatrix | 0.004745 ± 0.00025 | 0.043528 ± 0.00137 |
| AWQ-folded + imatrix | 0.004985 ± 0.00039 | 0.042827 ± 0.00143 |
- imatrix earns its place at Q4_K_M (0.0399 vs 0.0435, an 8% reduction) and is within noise at Q6_K, where the format is already near-lossless.
- An AWQ fold was built, measured and dropped. Activation-aware scaling was captured on GPU (1,500,201 tokens, 72/72 fold sites, verified function-preserving to 3.6e-07 and to top-1 35/35 on real logits) and folded into the bf16 before conversion. It made the k-quants worse at both widths — it is redundant on top of a k-quant that already does per-super-block scaling with importance weighting, and its channel rescale widens the dynamic range inside a block. Recorded here because a negative result measured with a control is worth more than an untested claim on the card.
Known limits
Raptor 0.6.1 preview is a practical checkpoint with documented rough edges — long-context recall is not guaranteed, ordinary agentic mistakes remain, and identity responses are not enforced. The full list, plus the mid-conversation tool-call measurement, is on the JANG_6M card and applies to these weights unchanged.
Provenance
Quantized by Jinho Jang (eric@osaurus.ai). Base model XHToken/Spark-X2.5-4B, apache-2.0.
Built from the same merged bf16 checkpoint as the JANG_6M bundle.
- Downloads last month
- 323
