CoolFace
Modelpublic

ermiaazarkhalili/Qwen3-4B-Function-Calling-xLAM-Unsloth-GGUF

sourceHugging Faceapache-2.0updated 5mo agoView on Hugging Face
0likes197downloads
Model Card

Qwen3-4B-Function-Calling-xLAM-Unsloth — GGUF quantized

GGUF quantizations of `ermiaazarkhalili/Qwen3-4B-Function-Calling-xLAM-Unsloth`, produced via Unsloth + llama.cpp's conversion scripts.

FieldValue
Source checkpoint`ermiaazarkhalili/Qwen3-4B-Function-Calling-xLAM-Unsloth`
Base model`unsloth/qwen3-4b-unsloth-bnb-4bit`
Dataset`Salesforce/xlam-function-calling-60k`
Training1 full epoch (effective batch=8)
Final training loss0.2309 (job 36885894, runtime 2h 10m, peak VRAM 15.21 GB)
ConversionUnsloth save_pretrained → llama.cpp convert_hf_to_gguf.py → llama-quantize

Available quantizations

FileBitsSizeNotes
qwen3-4b-function-calling-xlam-unsloth.q2_k.gguf2-bit1.67 GBSmallest; aggressive quality loss
qwen3-4b-function-calling-xlam-unsloth.q3_k_m.gguf3-bit2.08 GBSmall; noticeable quality loss
qwen3-4b-function-calling-xlam-unsloth.q4_k_m.gguf4-bit2.50 GBRecommended — best size/quality balance
qwen3-4b-function-calling-xlam-unsloth.q5_k_m.gguf5-bit2.89 GBNear-full quality
qwen3-4b-function-calling-xlam-unsloth.q6_k.gguf6-bit3.31 GBVery close to Q8_0 at smaller size
qwen3-4b-function-calling-xlam-unsloth.q8_0.gguf8-bit4.28 GBLargest; closest to bf16 source

Recommended default: Q4_K_M. For maximum fidelity, use Q8_0.

Usage

llama.cpp

bash
llama-cli -hf ermiaazarkhalili/Qwen3-4B-Function-Calling-xLAM-Unsloth-GGUF --jinja -p "Find flights from SFO to NYC on December 25th" -n 256

Ollama

bash
ollama run hf.co/ermiaazarkhalili/Qwen3-4B-Function-Calling-xLAM-Unsloth-GGUF:Q4_K_M

llama-cpp-python

python
from llama_cpp import Llama
llm = Llama.from_pretrained(
    repo_id="ermiaazarkhalili/Qwen3-4B-Function-Calling-xLAM-Unsloth-GGUF",
    filename="*q4_k_m.gguf",
    n_ctx=2048,
)
out = llm.create_chat_completion(
    messages=[{"role": "user", "content": "Find flights from SFO to NYC on December 25th"}],
    max_tokens=256,
)
print(out["choices"][0]["message"]["content"])

Intended use

For research and non-commercial experimentation. Outputs should be independently verified before any downstream use.

Limitations

Citation

bibtex
@misc{ qwen3_4b_xlam_unsloth_2026_gguf ,
  author = {Ermia Azarkhalili},
  title = { Qwen3-4B-Function-Calling-xLAM-Unsloth — GGUF quantized },
  year = {2026},
  publisher = {Hugging Face},
  howpublished = {\url{https://huggingface.co/ermiaazarkhalili/Qwen3-4B-Function-Calling-xLAM-Unsloth-GGUF}}
}

This qwen3 model was trained 2× faster with Unsloth and Hugging Face's TRL library.

<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>