Instructions to use ichsanlook/qwen3-eagle with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use ichsanlook/qwen3-eagle with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="ichsanlook/qwen3-eagle", filename="eagle3_draft_f16.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 ichsanlook/qwen3-eagle 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 ichsanlook/qwen3-eagle:F16 # Run inference directly in the terminal: llama cli -hf ichsanlook/qwen3-eagle:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ichsanlook/qwen3-eagle:F16 # Run inference directly in the terminal: llama cli -hf ichsanlook/qwen3-eagle:F16
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 ichsanlook/qwen3-eagle:F16 # Run inference directly in the terminal: ./llama-cli -hf ichsanlook/qwen3-eagle:F16
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 ichsanlook/qwen3-eagle:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf ichsanlook/qwen3-eagle:F16
Use Docker
docker model run hf.co/ichsanlook/qwen3-eagle:F16
- LM Studio
- Jan
- Ollama
How to use ichsanlook/qwen3-eagle with Ollama:
ollama run hf.co/ichsanlook/qwen3-eagle:F16
- Unsloth Studio
How to use ichsanlook/qwen3-eagle 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 ichsanlook/qwen3-eagle 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 ichsanlook/qwen3-eagle to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ichsanlook/qwen3-eagle to start chatting
- Pi
How to use ichsanlook/qwen3-eagle with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ichsanlook/qwen3-eagle:F16
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": "ichsanlook/qwen3-eagle:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use ichsanlook/qwen3-eagle with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ichsanlook/qwen3-eagle:F16
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 ichsanlook/qwen3-eagle:F16
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use ichsanlook/qwen3-eagle with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ichsanlook/qwen3-eagle:F16
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 "ichsanlook/qwen3-eagle:F16" \ --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 ichsanlook/qwen3-eagle with Docker Model Runner:
docker model run hf.co/ichsanlook/qwen3-eagle:F16
- Lemonade
How to use ichsanlook/qwen3-eagle with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ichsanlook/qwen3-eagle:F16
Run and chat with the model
lemonade run user.qwen3-eagle-F16
List all available models
lemonade list
Qwen3-0.6B EAGLE-3 Draft Model
EAGLE-3 draft model trained for speculative decoding with Qwen3-0.6B as the target model.
Trained with a 60K Fortran-optimized vocabulary for 30 epochs on CPU (PyTorch), achieving:
- Train loss: 2.32
- Train accuracy: 79.7%
Files
| File | Format | Size | Description |
|---|---|---|---|
eagle3_draft_f16.gguf |
GGUF F16 | 470 MB | Draft model in F16 precision |
eagle3_draft_q8.gguf |
GGUF Q8_0 | 238 MB | Draft model quantized to Q8_0 |
hf_model/ |
safetensors | 896 MB | Hugging Face format for fine-tuning |
Usage with llama.cpp
# Basic usage with speculative decoding
llama-cli \
-m Qwen3-0.6B-target.gguf \
-md eagle3_draft_q8.gguf \
--spec-type draft-eagle3 \
--spec-draft-n-max 5 \
-p "Hello, how are you?" \
-n 200
# Server mode (enables Ollama-like API)
llama-server \
-m Qwen3-0.6B-target.gguf \
-md eagle3_draft_q8.gguf \
--spec-type draft-eagle3 \
--spec-draft-n-max 5 \
--port 8080
Usage with Ollama
- Pull the target model:
ollama pull qwen3:0.6b
Download the draft model GGUF from this repo
Create a Modelfile:
FROM qwen3:0.6b
DRAFT_MODEL ./eagle3_draft_q8.gguf
PARAMETER speculative_type draft-eagle3
PARAMETER speculative_draft_max 5
- Create and run:
ollama create qwen3-eagle -f Modelfile
ollama run qwen3-eagle
Benchmark (CPU-only, 16GB RAM)
| Config | Speed (t/s) | vs Baseline |
|---|---|---|
| Baseline (no draft) | 33.2 | 1.00x |
| Ngram (len=3) | 34.6 | 1.04x |
| EAGLE-3 (len=3) | 15.6 | 0.47x |
| EAGLE-3 (len=5) | 11.8 | 0.36x |
Note: EAGLE-3 speedup requires GPU acceleration. On CPU-only, the dual-model overhead outweighs speculation benefits for small models (0.6B). Speedup expected with GPU offloading or larger target models.
Training Details
- Target model: Qwen3-0.6B (1024 dim, 3072 FFN, 28 layers)
- Draft architecture: EAGLE-3 with 1 Eagle3Block (1024 hidden, 8 heads, 4 KV heads)
- Draft vocabulary: 60K tokens (Fortran-optimized selection)
- Training data: 500 ShareGPT conversations
- Loss: Cross-entropy with cosine annealing + warmup
- Hardware: CPU-only (no CUDA), PyTorch 2.13.0
- Fortran integration: Acceptance sampling, logit correction, and rejection sampling kernels
Architecture
EAGLE-3 extracts hidden states from target model layers [2, 14, 25], projects them through a feature compressor, and feeds them into a lightweight transformer block for draft prediction.
- Downloads last month
- 401
16-bit