Instructions to use hell0ks/gemma-4-26B-A4B-it-multitool with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- Unsloth Desktop
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license:
|
| 3 |
+
- apache-2.0
|
| 4 |
+
- cc-by-nc-2.0
|
| 5 |
+
datasets:
|
| 6 |
+
- stepfun-ai/Step-3.5-Flash-SFT
|
| 7 |
+
base_model:
|
| 8 |
+
- trohrbaugh/gemma-4-26B-A4B-it-heretic-ara
|
| 9 |
+
- google/gemma-4-26B-A4B-it
|
| 10 |
+
base_model_relation: finetune
|
| 11 |
+
pipeline_tag: image-text-to-text
|
| 12 |
+
tags:
|
| 13 |
+
- unsloth
|
| 14 |
+
---
|
| 15 |
+
# Gemma 4 26B A4B IT Multitool
|
| 16 |
+
|
| 17 |
+
**An attempt to tool-friendly Gemma 4.**
|
| 18 |
+
|
| 19 |
+
Problem was simple: The model knows how to use the functions and it does use it, but *lazy* way.
|
| 20 |
+
|
| 21 |
+
1. It prioritize its knowledge than search tool.
|
| 22 |
+
2. It does not like to call multiple tools for one task.
|
| 23 |
+
|
| 24 |
+
So, I thought it might good chance to do some fine-tune, and I did.
|
| 25 |
+
|
| 26 |
+
The result was somewhat mixed bag:
|
| 27 |
+
* Good thing: It get attracted to use search functions now, even with multiple calls!
|
| 28 |
+
* Bad thing: It thinks longer than before when using tools.
|
| 29 |
+
|
| 30 |
+
I think it's acceptable. That's why I upload this finetune.
|
| 31 |
+
|
| 32 |
+
## SFT Data Source
|
| 33 |
+
|
| 34 |
+
| Item | Details |
|
| 35 |
+
|---|---|
|
| 36 |
+
| Base model | [trohrbaugh/gemma-4-26B-A4B-it-heretic-ara](https://huggingface.co/trohrbaugh/gemma-4-26B-A4B-it-heretic-ara) |
|
| 37 |
+
| Training method | LoRA SFT |
|
| 38 |
+
| Training library | Unsloth Studio |
|
| 39 |
+
| Source dataset | [stepfun-ai/Step-3.5-Flash-SFT](https://huggingface.co/datasets/stepfun-ai/Step-3.5-Flash-SFT) |
|
| 40 |
+
| Training samples | 1,500 |
|
| 41 |
+
|
| 42 |
+
## Dataset preparation
|
| 43 |
+
1. Normalize messages, tool definitions, arguments, and call identifiers.
|
| 44 |
+
2. Remove duplicate samples.
|
| 45 |
+
3. Check message structure and argument schemas.
|
| 46 |
+
4. Apply model-assisted quality review. (GPT-6 Luna, Low)
|
| 47 |
+
|
| 48 |
+
## SFT Data Mix
|
| 49 |
+
|
| 50 |
+
| Target action | Share | Training samples |
|
| 51 |
+
|---|---:|---:|
|
| 52 |
+
| First tool call | 20% | 300 |
|
| 53 |
+
| Further call after a tool result | **50%** | **750** |
|
| 54 |
+
| Final answer or task completion | 20% | 300 |
|
| 55 |
+
| No tool call or clarification | 10% | 150 |
|
| 56 |
+
| **Total** | **100%** | **1,500** |
|
| 57 |
+
|
| 58 |
+
## Benchmarks
|
| 59 |
+
|
| 60 |
+
### [Tool-Eval-Bench](https://github.com/SeraphimSerapis/tool-eval-bench)
|
| 61 |
+
|
| 62 |
+
All models used FP8 inference and identical sampling parameters. Percentages specify the merge strength of the same trained LoRA adapter.
|
| 63 |
+
|
| 64 |
+
| Model | Score /100 | Raw points /136 | Reasoning limit failures |
|
| 65 |
+
|---|---:|---:|---|
|
| 66 |
+
| Original | 83 | 113 | 0 |
|
| 67 |
+
| LoRA 100% | 72 | 98 | 10 |
|
| 68 |
+
| LoRA 50% | 84 | 114 | 2 |
|
| 69 |
+
| **LoRA 75%** | 83 | 113 | 3 |
|
| 70 |
+
|
| 71 |
+
This is LoRA 75% checkpoint. Reason: 100% one was too aggressive and 50% one was still lazy.
|
| 72 |
+
|
| 73 |
+
# License
|
| 74 |
+
|
| 75 |
+
It's Apache 2.0 **and** CC-BY-NC 2.0, followed by used dataseet.
|