Qwen3-ik_llama.cpp
Collection
1 item • Updated
How to use Melvin56/Qwen3-4B-ik_GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Melvin56/Qwen3-4B-ik_GGUF", filename="qwen3-4b-0IQ4_K.gguf", )
llm.create_chat_completion(
messages = [
{
"role": "user",
"content": "What is the capital of France?"
}
]
)How to use Melvin56/Qwen3-4B-ik_GGUF with llama.cpp:
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Melvin56/Qwen3-4B-ik_GGUF:BF16 # Run inference directly in the terminal: llama-cli -hf Melvin56/Qwen3-4B-ik_GGUF:BF16
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Melvin56/Qwen3-4B-ik_GGUF:BF16 # Run inference directly in the terminal: llama-cli -hf Melvin56/Qwen3-4B-ik_GGUF:BF16
# 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 Melvin56/Qwen3-4B-ik_GGUF:BF16 # Run inference directly in the terminal: ./llama-cli -hf Melvin56/Qwen3-4B-ik_GGUF:BF16
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 Melvin56/Qwen3-4B-ik_GGUF:BF16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Melvin56/Qwen3-4B-ik_GGUF:BF16
docker model run hf.co/Melvin56/Qwen3-4B-ik_GGUF:BF16
How to use Melvin56/Qwen3-4B-ik_GGUF with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Melvin56/Qwen3-4B-ik_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": "Melvin56/Qwen3-4B-ik_GGUF",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/Melvin56/Qwen3-4B-ik_GGUF:BF16
How to use Melvin56/Qwen3-4B-ik_GGUF with Ollama:
ollama run hf.co/Melvin56/Qwen3-4B-ik_GGUF:BF16
How to use Melvin56/Qwen3-4B-ik_GGUF with Unsloth Studio:
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 Melvin56/Qwen3-4B-ik_GGUF to start chatting
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 Melvin56/Qwen3-4B-ik_GGUF to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Melvin56/Qwen3-4B-ik_GGUF to start chatting
How to use Melvin56/Qwen3-4B-ik_GGUF with Pi:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Melvin56/Qwen3-4B-ik_GGUF:BF16
# 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": "Melvin56/Qwen3-4B-ik_GGUF:BF16"
}
]
}
}
}# Start Pi in your project directory: pi
How to use Melvin56/Qwen3-4B-ik_GGUF with Hermes Agent:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Melvin56/Qwen3-4B-ik_GGUF:BF16
# 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 Melvin56/Qwen3-4B-ik_GGUF:BF16
hermes
How to use Melvin56/Qwen3-4B-ik_GGUF with Docker Model Runner:
docker model run hf.co/Melvin56/Qwen3-4B-ik_GGUF:BF16
How to use Melvin56/Qwen3-4B-ik_GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Melvin56/Qwen3-4B-ik_GGUF:BF16
lemonade run user.Qwen3-4B-ik_GGUF-BF16
lemonade list
Build: 3680 (a2d24c97)
Original Model : Qwen/Qwen3-4B
I used imatrix to create all these quants using this Dataset.
I tested all quants using ik_llama.cpp build 3680 (a2d24c97)
ik_llama.cpp/build/bin/llama-perplexity \
-m .gguf \
--ctx-size 512 \
--ubatch-size 512 \
-f wikitext-2-raw/wiki.test.raw \
-fa \
-ngl 999
| Quant | Size (GB) | PPL |
|---|---|---|
| BF16 | 8.05 | 14.3308 +/- 0.13259 |
| IQ6_K | 3.34 | 14.2810 +/- 0.13159 |
| IQ5_K | 2.82 | 14.5004 +/- 0.13465 |
| IQ4_K | 2.38 | 14.5280 +/- 0.13414 |
| IQ4_KS | 2.22 | 15.2121 +/- 0.14294 |
| CPU (AVX2) | CPU (ARM NEON) | Metal | cuBLAS | rocBLAS | SYCL | CLBlast | Vulkan | Kompute | |
|---|---|---|---|---|---|---|---|---|---|
| K-quants | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ 🐢5 | ✅ 🐢5 | ❌ |
| I-quants | ✅ 🐢4 | ✅ 🐢4 | ✅ 🐢4 | ✅ | ✅ | Partial¹ | ❌ | ❌ | ❌ |
✅: feature works
🚫: feature does not work
❓: unknown, please contribute if you can test it youself
🐢: feature is slow
¹: IQ3_S and IQ1_S, see #5886
²: Only with -ngl 0
³: Inference is 50% slower
⁴: Slower than K-quants of comparable size
⁵: Slower than cuBLAS/rocBLAS on similar cards
⁶: Only q8_0 and iq4_nl
4-bit
6-bit
16-bit