From 93176bf0a22bc32c74a5250e7c972e98f308c88f Mon Sep 17 00:00:00 2001 From: ModelHub XC Date: Sun, 21 Jun 2026 09:47:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=EF=BC=8C=E7=94=B1ModelHub=20XC=E7=A4=BE=E5=8C=BA=E6=8F=90?= =?UTF-8?q?=E4=BE=9B=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Model: ermiaazarkhalili/Qwen3-8B-Function-Calling-xLAM-Unsloth-GGUF Source: Original Platform --- .gitattributes | 41 +++++++ README.md | 106 ++++++++++++++++++ ...8b-function-calling-xlam-unsloth.q2_k.gguf | 3 + ...-function-calling-xlam-unsloth.q3_k_m.gguf | 3 + ...-function-calling-xlam-unsloth.q4_k_m.gguf | 3 + ...-function-calling-xlam-unsloth.q5_k_m.gguf | 3 + ...8b-function-calling-xlam-unsloth.q6_k.gguf | 3 + ...8b-function-calling-xlam-unsloth.q8_0.gguf | 3 + 8 files changed, 165 insertions(+) create mode 100644 .gitattributes create mode 100644 README.md create mode 100644 qwen3-8b-function-calling-xlam-unsloth.q2_k.gguf create mode 100644 qwen3-8b-function-calling-xlam-unsloth.q3_k_m.gguf create mode 100644 qwen3-8b-function-calling-xlam-unsloth.q4_k_m.gguf create mode 100644 qwen3-8b-function-calling-xlam-unsloth.q5_k_m.gguf create mode 100644 qwen3-8b-function-calling-xlam-unsloth.q6_k.gguf create mode 100644 qwen3-8b-function-calling-xlam-unsloth.q8_0.gguf diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..72274df --- /dev/null +++ b/.gitattributes @@ -0,0 +1,41 @@ +*.7z filter=lfs diff=lfs merge=lfs -text +*.arrow filter=lfs diff=lfs merge=lfs -text +*.bin filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.ckpt filter=lfs diff=lfs merge=lfs -text +*.ftz filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.h5 filter=lfs diff=lfs merge=lfs -text +*.joblib filter=lfs diff=lfs merge=lfs -text +*.lfs.* filter=lfs diff=lfs merge=lfs -text +*.mlmodel filter=lfs diff=lfs merge=lfs -text +*.model filter=lfs diff=lfs merge=lfs -text +*.msgpack filter=lfs diff=lfs merge=lfs -text +*.npy filter=lfs diff=lfs merge=lfs -text +*.npz filter=lfs diff=lfs merge=lfs -text +*.onnx filter=lfs diff=lfs merge=lfs -text +*.ot filter=lfs diff=lfs merge=lfs -text +*.parquet filter=lfs diff=lfs merge=lfs -text +*.pb filter=lfs diff=lfs merge=lfs -text +*.pickle filter=lfs diff=lfs merge=lfs -text +*.pkl filter=lfs diff=lfs merge=lfs -text +*.pt filter=lfs diff=lfs merge=lfs -text +*.pth filter=lfs diff=lfs merge=lfs -text +*.rar filter=lfs diff=lfs merge=lfs -text +*.safetensors filter=lfs diff=lfs merge=lfs -text +saved_model/**/* filter=lfs diff=lfs merge=lfs -text +*.tar.* filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tflite filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.wasm filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text +*tfevents* filter=lfs diff=lfs merge=lfs -text +qwen3-8b-function-calling-xlam-unsloth.q2_k.gguf filter=lfs diff=lfs merge=lfs -text +qwen3-8b-function-calling-xlam-unsloth.q3_k_m.gguf filter=lfs diff=lfs merge=lfs -text +qwen3-8b-function-calling-xlam-unsloth.q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text +qwen3-8b-function-calling-xlam-unsloth.q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text +qwen3-8b-function-calling-xlam-unsloth.q6_k.gguf filter=lfs diff=lfs merge=lfs -text +qwen3-8b-function-calling-xlam-unsloth.q8_0.gguf filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md new file mode 100644 index 0000000..69d7695 --- /dev/null +++ b/README.md @@ -0,0 +1,106 @@ +--- +base_model: ermiaazarkhalili/Qwen3-8B-Function-Calling-xLAM-Unsloth +tags: +- gguf +- llama.cpp +- unsloth +- qwen3 +- function-calling +- quantized +license: apache-2.0 +language: +- en +datasets: +- Salesforce/xlam-function-calling-60k +pipeline_tag: text-generation +--- + +# Qwen3-8B-xLAM-Unsloth — GGUF quantized + +GGUF quantizations of [`ermiaazarkhalili/Qwen3-8B-Function-Calling-xLAM-Unsloth`](https://huggingface.co/ermiaazarkhalili/Qwen3-8B-Function-Calling-xLAM-Unsloth), +produced via [Unsloth](https://github.com/unslothai/unsloth) + llama.cpp's conversion scripts. + +| Field | Value | +|---|---| +| **Source checkpoint** | [`ermiaazarkhalili/Qwen3-8B-Function-Calling-xLAM-Unsloth`](https://huggingface.co/ermiaazarkhalili/Qwen3-8B-Function-Calling-xLAM-Unsloth) | +| **Base model** | [`unsloth/qwen3-8b-unsloth-bnb-4bit`](https://huggingface.co/unsloth/qwen3-8b-unsloth-bnb-4bit) | +| **Dataset** | [`Salesforce/xlam-function-calling-60k`](https://huggingface.co/datasets/Salesforce/xlam-function-calling-60k) | +| **Training** | 1 full epoch (effective batch=8 via per_device=1 × grad_accum=8) | +| **Final training loss** | 0.219 (job 36885898, runtime 3h 48m on H100 MIG 3g.40gb) | +| **Conversion** | Unsloth `save_pretrained` → llama.cpp `convert_hf_to_gguf.py` → `llama-quantize` | +| **Quantization tool** | llama.cpp `llama-quantize` (cached toolchain) | + +## Available quantizations + +| File | Bits | Size | Notes | +|---|---|---|---| +| `qwen3-8b-function-calling-xlam-unsloth.q2_k.gguf` | 2-bit | 3.28 GB | Smallest; aggressive quality loss | +| `qwen3-8b-function-calling-xlam-unsloth.q3_k_m.gguf` | 3-bit | 4.12 GB | Small; noticeable quality loss | +| `qwen3-8b-function-calling-xlam-unsloth.q4_k_m.gguf` | 4-bit | 5.03 GB | **Recommended** — best size/quality balance | +| `qwen3-8b-function-calling-xlam-unsloth.q5_k_m.gguf` | 5-bit | 5.85 GB | Near-full quality | +| `qwen3-8b-function-calling-xlam-unsloth.q6_k.gguf` | 6-bit | 6.73 GB | Very close to Q8_0 at smaller size | +| `qwen3-8b-function-calling-xlam-unsloth.q8_0.gguf` | 8-bit | 8.71 GB | Largest; closest to bf16 source | + +**Recommended default:** `Q4_K_M` (4-bit, K-quant medium). For maximum fidelity, use `Q8_0`. + +## Usage + +### llama.cpp + +```bash +# Text-only +llama-cli -hf ermiaazarkhalili/Qwen3-8B-Function-Calling-xLAM-Unsloth-GGUF --jinja -p "Find flights from SFO to NYC on December 25th" -n 256 + +# Interactive chat +llama-cli -hf ermiaazarkhalili/Qwen3-8B-Function-Calling-xLAM-Unsloth-GGUF --jinja -cnv +``` + +### Ollama + +```bash +ollama run hf.co/ermiaazarkhalili/Qwen3-8B-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-8B-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 only. Outputs should be independently verified before any downstream use. + +## Limitations + +- GGUF quantizations have unavoidable quality loss relative to the source bfloat16 checkpoint. Use `Q5_K_M`, `Q6_K`, or `Q8_0` for best fidelity. +- Inherits all limitations of the source merged checkpoint ([`ermiaazarkhalili/Qwen3-8B-Function-Calling-xLAM-Unsloth`](https://huggingface.co/ermiaazarkhalili/Qwen3-8B-Function-Calling-xLAM-Unsloth)). +- Limited to the function schemas covered in the xLAM-60K training dataset; performance on novel APIs may degrade. + +## Citation + +```bibtex +@misc{ qwen3_8b_xlam_unsloth_2026_gguf , + author = {Ermia Azarkhalili}, + title = { Qwen3-8B-xLAM-Unsloth — GGUF quantized }, + year = {2026}, + publisher = {Hugging Face}, + howpublished = {\url{https://huggingface.co/ermiaazarkhalili/Qwen3-8B-Function-Calling-xLAM-Unsloth-GGUF}} +} +``` + +--- + +This qwen3 model was trained 2× faster with [Unsloth](https://github.com/unslothai/unsloth) and Hugging Face's TRL library. + +[](https://github.com/unslothai/unsloth) diff --git a/qwen3-8b-function-calling-xlam-unsloth.q2_k.gguf b/qwen3-8b-function-calling-xlam-unsloth.q2_k.gguf new file mode 100644 index 0000000..3a4fb70 --- /dev/null +++ b/qwen3-8b-function-calling-xlam-unsloth.q2_k.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:613de1d4d67fecd8b335d9f52836d2accbb23d6aeab2848182c7d530838b001f +size 3281732800 diff --git a/qwen3-8b-function-calling-xlam-unsloth.q3_k_m.gguf b/qwen3-8b-function-calling-xlam-unsloth.q3_k_m.gguf new file mode 100644 index 0000000..41718d8 --- /dev/null +++ b/qwen3-8b-function-calling-xlam-unsloth.q3_k_m.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4bb4e514d8c0bcca097f961803865b106575aedda100ad49095bfae2fa2e9f2 +size 4124161216 diff --git a/qwen3-8b-function-calling-xlam-unsloth.q4_k_m.gguf b/qwen3-8b-function-calling-xlam-unsloth.q4_k_m.gguf new file mode 100644 index 0000000..6b185ed --- /dev/null +++ b/qwen3-8b-function-calling-xlam-unsloth.q4_k_m.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68503192e83098089abbfa0f627fa107aa30227278b95ea0776afacf0bf04639 +size 5027783872 diff --git a/qwen3-8b-function-calling-xlam-unsloth.q5_k_m.gguf b/qwen3-8b-function-calling-xlam-unsloth.q5_k_m.gguf new file mode 100644 index 0000000..44f3415 --- /dev/null +++ b/qwen3-8b-function-calling-xlam-unsloth.q5_k_m.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fc20ebd5ae234761a1ba0cacbc3b3d5e4070722292314fe285773eda027f5519 +size 5851112640 diff --git a/qwen3-8b-function-calling-xlam-unsloth.q6_k.gguf b/qwen3-8b-function-calling-xlam-unsloth.q6_k.gguf new file mode 100644 index 0000000..8b684af --- /dev/null +++ b/qwen3-8b-function-calling-xlam-unsloth.q6_k.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:53e518a5e457351b46930f7cd621e22657ce4f0875f14bfdaacc19ceb24a66e5 +size 6725899456 diff --git a/qwen3-8b-function-calling-xlam-unsloth.q8_0.gguf b/qwen3-8b-function-calling-xlam-unsloth.q8_0.gguf new file mode 100644 index 0000000..fd1af8a --- /dev/null +++ b/qwen3-8b-function-calling-xlam-unsloth.q8_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a9a8823098778c223a8e82b0466d5f5eea3e702d02868a78c60bff99b86eb02 +size 8709518528