Views
No views yet
ermiaazarkhalili/Gemma4-E4B-Function-Calling-xLAM-Unsloth,
produced via Unsloth + llama.cpp's conversion scripts.| Field | Value |
|---|---|
| Source checkpoint | ermiaazarkhalili/Gemma4-E4B-Function-Calling-xLAM-Unsloth |
| Base model | google/gemma-4-E4B-it |
| Dataset | Salesforce/xlam-function-calling-60k |
| Training | N=1 full epoch (7,500 steps, effective batch=8) |
| Conversion | Unsloth save_pretrained → llama.cpp convert_hf_to_gguf.py → llama-quantize |
| Quantization tool | llama.cpp llama-quantize (cached toolchain) |
| File | Bits | Notes |
|---|---|---|
gemma4-e4b-function-calling-xlam-unsloth.q2_k.gguf | 2-bit | Smallest; aggressive quality loss |
gemma4-e4b-function-calling-xlam-unsloth.q3_k_m.gguf | 3-bit | Small; noticeable quality loss |
gemma4-e4b-function-calling-xlam-unsloth.q4_k_m.gguf | 4-bit | Recommended — best size/quality balance |
gemma4-e4b-function-calling-xlam-unsloth.q5_k_m.gguf | 5-bit | Near-full quality |
gemma4-e4b-function-calling-xlam-unsloth.q6_k.gguf | 6-bit | Very close to Q8_0 at smaller size |
gemma4-e4b-function-calling-xlam-unsloth.q8_0.gguf | 8-bit | Largest; closest to bf16 source |
Q4_K_M (4-bit, K-quant medium). For maximum fidelity, use Q8_0.1# Text-only
2llama-cli -hf ermiaazarkhalili/Gemma4-E4B-Function-Calling-xLAM-Unsloth-GGUF --jinja -p "Find flights from SFO to NYC on December 25th" -n 256
3
4# Interactive chat
5llama-cli -hf ermiaazarkhalili/Gemma4-E4B-Function-Calling-xLAM-Unsloth-GGUF --jinja -cnvollama run hf.co/ermiaazarkhalili/Gemma4-E4B-Function-Calling-xLAM-Unsloth-GGUF:Q4_K_M1from llama_cpp import Llama
2llm = Llama.from_pretrained(
3 repo_id="ermiaazarkhalili/Gemma4-E4B-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"])Q5_K_M, Q6_K, or Q8_0 for best fidelity.ermiaazarkhalili/Gemma4-E4B-Function-Calling-xLAM-Unsloth).1@misc{ gemma4_e4b_xlam_unsloth_2026_gguf ,
2 author = {Ermia Azarkhalili},
3 title = { Gemma4-E4B-xLAM-Unsloth — GGUF quantized },
4 year = {2026},
5 publisher = {Hugging Face},
6 howpublished = {\url{https://huggingface.co/ermiaazarkhalili/Gemma4-E4B-Function-Calling-xLAM-Unsloth-GGUF}}
7}