Instructions to use gvij/qwen3-0.6b-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 gvij/qwen3-0.6b-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 gvij/qwen3-0.6b-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf gvij/qwen3-0.6b-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 gvij/qwen3-0.6b-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf gvij/qwen3-0.6b-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 gvij/qwen3-0.6b-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf gvij/qwen3-0.6b-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 gvij/qwen3-0.6b-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf gvij/qwen3-0.6b-gguf:Q4_K_M
Use Docker
docker model run hf.co/gvij/qwen3-0.6b-gguf:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use gvij/qwen3-0.6b-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gvij/qwen3-0.6b-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": "gvij/qwen3-0.6b-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/gvij/qwen3-0.6b-gguf:Q4_K_M
- Ollama
How to use gvij/qwen3-0.6b-gguf with Ollama:
ollama run hf.co/gvij/qwen3-0.6b-gguf:Q4_K_M
- Unsloth Studio
How to use gvij/qwen3-0.6b-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 gvij/qwen3-0.6b-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 gvij/qwen3-0.6b-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for gvij/qwen3-0.6b-gguf to start chatting
- Pi
How to use gvij/qwen3-0.6b-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf gvij/qwen3-0.6b-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": "gvij/qwen3-0.6b-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use gvij/qwen3-0.6b-gguf with Docker Model Runner:
docker model run hf.co/gvij/qwen3-0.6b-gguf:Q4_K_M
- Lemonade
How to use gvij/qwen3-0.6b-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull gvij/qwen3-0.6b-gguf:Q4_K_M
Run and chat with the model
lemonade run user.qwen3-0.6b-gguf-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use gvij/qwen3-0.6b-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 gvij/qwen3-0.6b-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 gvij/qwen3-0.6b-gguf:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use gvij/qwen3-0.6b-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf gvij/qwen3-0.6b-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 "gvij/qwen3-0.6b-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"
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf gvij/qwen3-0.6b-gguf:# Run inference directly in the terminal:
llama cli -hf gvij/qwen3-0.6b-gguf: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 gvij/qwen3-0.6b-gguf:# Run inference directly in the terminal:
./llama-cli -hf gvij/qwen3-0.6b-gguf: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 gvij/qwen3-0.6b-gguf:# Run inference directly in the terminal:
./build/bin/llama-cli -hf gvij/qwen3-0.6b-gguf:Use Docker
docker model run hf.co/gvij/qwen3-0.6b-gguf:Qwen3-0.6B GGUF
This repository contains GGUF (GPT-Generated Unified Format) conversions of the Qwen3-0.6B language model, optimized for efficient CPU inference using llama.cpp, Ollama, and other GGUF-compatible engines.
This model was converted by NEO - Fully autonomous ML Engineering Agent.
Model Overview
Qwen3-0.6B is a compact yet powerful 0.6 billion parameter causal language model from Alibaba's Qwen series, featuring:
- Dual-mode inference: Supports both thinking and non-thinking modes for flexible reasoning
- Enhanced reasoning: Improved logical reasoning and problem-solving capabilities
- Multilingual support: Proficient in 100+ languages
- Tool calling: Native support for function calling and agent workflows
- Extended context: 32,768 token context length
- Efficient architecture: GQA attention mechanism for optimized inference
Architecture Details
- Parameters: 0.6B total (0.44B non-embedding)
- Layers: 28 transformer layers
- Attention: Grouped Query Attention (GQA)
- 16 Query heads
- 8 Key-Value heads
- Context Length: 32,768 tokens
- Vocabulary Size: 151,936 tokens
- Original Precision: BF16
Quantization Variants
This repository provides 4 GGUF quantization variants optimized for different use cases:
| Model Variant | File Size | Quantization | Use Case | Quality |
|---|---|---|---|---|
| qwen3-0.6b-fp16.gguf | 1,439 MB | FP16 | Reference quality, GPU inference | Highest |
| qwen3-0.6b-q8_0.gguf | 767 MB | Q8_0 | High-quality CPU inference | Very High |
| qwen3-0.6b-q5_k_m.gguf | 526 MB | Q5_K_M | Production CPU deployment | High |
| qwen3-0.6b-q4_k_m.gguf | 462 MB | Q4_K_M | Edge devices, mobile, low memory | Good |
Quantization Recommendations
- FP16: Use for reference benchmarks or when GPU memory is available
- Q8_0: Best balance for CPU inference with minimal quality loss
- Q5_K_M: Recommended for production CPU deployments (best quality/size ratio)
- Q4_K_M: Optimal for resource-constrained environments (edge, mobile, IoT)
Usage Instructions
llama.cpp CLI
Download a model variant and run inference:
# Download model (replace with your preferred variant)
huggingface-cli download gvij/qwen3-0.6b-gguf qwen3-0.6b-q5_k_m.gguf --local-dir ./models
# Run inference
./llama-cli -m models/qwen3-0.6b-q5_k_m.gguf -p "Explain quantum computing:" -n 256 --temp 0.7
# Interactive chat mode
./llama-cli -m models/qwen3-0.6b-q5_k_m.gguf -cnv --color
Ollama Integration
Create a Modelfile:
FROM ./qwen3-0.6b-q5_k_m.gguf
PARAMETER temperature 0.7
PARAMETER top_p 0.9
PARAMETER stop "<|im_end|>"
PARAMETER stop "<|endoftext|>"
TEMPLATE """
<|im_start|>system
You are a helpful AI assistant.<|im_end|>
<|im_start|>user
{{ .Prompt }}<|im_end|>
<|im_start|>assistant
"""
Create and run the model:
ollama create qwen3-0.6b -f Modelfile
ollama run qwen3-0.6b "Write a Python function to calculate factorial"
Python with llama-cpp-python
from llama_cpp import Llama
llm = Llama(
model_path="qwen3-0.6b-q5_k_m.gguf",
n_ctx=32768,
n_threads=8,
n_gpu_layers=0
)
response = llm(
"Explain the theory of relativity in simple terms:",
max_tokens=256,
temperature=0.7,
top_p=0.9,
stop=["<|im_end|>", "<|endoftext|>"]
)
print(response['choices'][0]['text'])
Thinking Mode
Qwen3 supports explicit reasoning with thinking mode. Use the <think> tags:
prompt = """Think through this problem step by step:
<think>
What is 15% of 240?
</think>"""
response = llm(prompt, max_tokens=512)
Performance Characteristics
CPU Inference Speed (approximate, on modern x86-64 CPU):
- Q4_K_M: ~20-30 tokens/second
- Q5_K_M: ~18-25 tokens/second
- Q8_0: ~12-18 tokens/second
- FP16: ~8-12 tokens/second (CPU) / ~50-80 tokens/second (GPU)
Memory Requirements:
- Q4_K_M: ~600 MB RAM
- Q5_K_M: ~700 MB RAM
- Q8_0: ~1 GB RAM
- FP16: ~1.6 GB RAM
Note: Actual performance depends on CPU architecture, clock speed, and context length.
Features
✅ Thinking & Non-thinking Modes: Dynamic reasoning control
✅ Multilingual: 100+ languages supported
✅ Tool Calling: Native function calling for agent workflows
✅ Extended Context: 32K token context window
✅ CPU Optimized: GGUF format for efficient CPU inference
✅ Flexible Deployment: Compatible with llama.cpp, Ollama, LMStudio, MLX-LM
Model Source
- Original Model: Qwen/Qwen3-0.6B
- Model Family: Qwen3 Series
- Developer: Alibaba Cloud
- Conversion: HuggingFace → GGUF using llama.cpp conversion scripts
License
This model is released under the Apache 2.0 License, following the original Qwen3-0.6B license terms.
Citation
@misc{qwen3-0.6b-gguf,
title={Qwen3-0.6B GGUF},
author={Qwen Team},
year={2024},
url={https://huggingface.co/gvij/qwen3-0.6b-gguf}
}
Acknowledgments
- Qwen Team at Alibaba Cloud for the original model
- llama.cpp community for GGUF format and conversion tools
- Model conversion performed using llama.cpp conversion pipeline
For issues, questions, or feedback, please visit the original Qwen3-0.6B repository.
Authored and published by NEO
- Downloads last month
- 460
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf gvij/qwen3-0.6b-gguf:# Run inference directly in the terminal: llama cli -hf gvij/qwen3-0.6b-gguf: