Instructions to use khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF", filename="Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-Q8_0.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-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 khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF: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 khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF: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 khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF:Q8_0
Use Docker
docker model run hf.co/khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF:Q8_0
- LM Studio
- Jan
- vLLM
How to use khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-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": "khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF:Q8_0
- Ollama
How to use khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF with Ollama:
ollama run hf.co/khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF:Q8_0
- Unsloth Studio
How to use khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF 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 khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF 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 khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF to start chatting
- Pi
How to use khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF: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": "khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-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 khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF: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 khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF:Q8_0
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF:Q8_0
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 "khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF:Q8_0" \ --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"
- Docker Model Runner
How to use khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF with Docker Model Runner:
docker model run hf.co/khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF:Q8_0
- Lemonade
How to use khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF:Q8_0
Run and chat with the model
lemonade run user.Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp-GGUF-Q8_0
List all available models
lemonade list
khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp
Note: The sharp drop in "Creative Writing" is an expected and accepted trade-off to maximize extreme logical reasoning and coding precision.
This model is a highly experimental and optimized reasoning model created through a surgical SLERP merge of two powerful 4B reasoning models. The goal of this merge was to combine the deep analytical capabilities of Kimi with the mathematical and structural precision of Qwen, while mitigating the catastrophic forgetting commonly seen in SFT model merges. After multiple iterations and layer-by-layer tensor analysis, we achieved a "1+1=3 Synergy Effect" in Logical Inference and Planning, outperforming both base models and the Qwen Thinking model.
The "Golden Path" (V5) Strategy
Standard SLERP merges often destroy RAG capabilities and syntax adherence. To solve this, this model utilizes a custom merge configuration:
- RAG/Vocabulary Fix:
embed_tokensandlm_headare strictly pinned to1.0(Qwen). The model reads and speaks purely using Qwen's vocabulary, completely eliminating the RAG degradation problem. - Gradient Attention: The intermediate attention and MLP layers follow a smooth gradient
[0, 0.1, 0.2, 0.3, 0.5, 0.7, 0.8, 0.9, 1]to prevent weight interference in deep reasoning steps.
Benchmark Performance (Multi-Domain Reasoning)
| Model | Score |
|---|---|
| khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Slerp | 77.18 |
| khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled | 76.09 |
| khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Distilled | 75.64 |
| Qwen/Qwen3-4B-Thinking-2507 | 73.73 |
- Benchmark: khazarai/Multi-Domain-Reasoning-Benchmark
- Total Questions: 100
💡 Intended Use Cases
- Ideal for: Complex logical deductions, Python code debugging, mathematical problem-solving, and strict RAG (Retrieval-Augmented Generation) pipelines.
- Not recommended for: Creative writing, poetry, or highly imaginative storytelling.
Models Merged
The following models were included in the merge:
Configuration
The following YAML configuration was used to produce this model:
models:
- model: khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled
- model: khazarai/Qwen3-4B-Qwen3.6-plus-Reasoning-Distilled
merge_method: slerp
base_model: khazarai/Qwen3-4B-Kimi2.5-Reasoning-Distilled
parameters:
t:
- filter: embed_tokens
value: 1
- filter: lm_head
value: 1
- value: 1
- filter: self
value: [0, 0.1, 0.2, 0.3, 0.5, 0.7, 0.8, 0.9, 1]
dtype: bfloat16
- Downloads last month
- 319
8-bit
16-bit
