Views
No views yet
ermiaazarkhalili/Qwen3-4B-Function-Calling-xLAM-Unsloth,
produced via Unsloth + llama.cpp's conversion scripts.| Field | Value |
|---|---|
| Source checkpoint | ermiaazarkhalili/Qwen3-4B-Function-Calling-xLAM-Unsloth |
| Base model | unsloth/qwen3-4b-unsloth-bnb-4bit |
| Dataset | Salesforce/xlam-function-calling-60k |
| Training | 1 full epoch (effective batch=8) |
| Final training loss | 0.2309 (job 36885894, runtime 2h 10m, peak VRAM 15.21 GB) |
| Conversion | Unsloth save_pretrained → llama.cpp convert_hf_to_gguf.py → llama-quantize |
| File | Bits | Size | Notes |
|---|---|---|---|
qwen3-4b-function-calling-xlam-unsloth.q2_k.gguf | 2-bit | 1.67 GB | Smallest; aggressive quality loss |
qwen3-4b-function-calling-xlam-unsloth.q3_k_m.gguf | 3-bit | 2.08 GB | Small; noticeable quality loss |
qwen3-4b-function-calling-xlam-unsloth.q4_k_m.gguf | 4-bit | 2.50 GB | Recommended — best size/quality balance |
qwen3-4b-function-calling-xlam-unsloth.q5_k_m.gguf | 5-bit | 2.89 GB | Near-full quality |
qwen3-4b-function-calling-xlam-unsloth.q6_k.gguf | 6-bit | 3.31 GB | Very close to Q8_0 at smaller size |
qwen3-4b-function-calling-xlam-unsloth.q8_0.gguf | 8-bit | 4.28 GB | Largest; closest to bf16 source |
Q4_K_M. For maximum fidelity, use Q8_0.llama-cli -hf ermiaazarkhalili/Qwen3-4B-Function-Calling-xLAM-Unsloth-GGUF --jinja -p "Find flights from SFO to NYC on December 25th" -n 256ollama run hf.co/ermiaazarkhalili/Qwen3-4B-Function-Calling-xLAM-Unsloth-GGUF:Q4_K_M1from llama_cpp import Llama
2llm = Llama.from_pretrained(
3 repo_id="ermiaazarkhalili/Qwen3-4B-Function-Calling-xLAM-Unsloth-GGUF",
4 filename="*q4_k_m.gguf",
5 n_ctx=2048,
6)
7out = llm.create_chat_completion(
8 messages=[{"role": "user", "content": "Find flights from SFO to NYC on December 25th"}],
9 max_tokens=256,
10)
11print(out["choices"][0]["message"]["content"])ermiaazarkhalili/Qwen3-4B-Function-Calling-xLAM-Unsloth).1@misc{ qwen3_4b_xlam_unsloth_2026_gguf ,
2 author = {Ermia Azarkhalili},
3 title = { Qwen3-4B-Function-Calling-xLAM-Unsloth — GGUF quantized },
4 year = {2026},
5 publisher = {Hugging Face},
6 howpublished = {\url{https://huggingface.co/ermiaazarkhalili/Qwen3-4B-Function-Calling-xLAM-Unsloth-GGUF}}
7}