Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,22 +1,45 @@
|
|
| 1 |
---
|
| 2 |
-
base_model: unsloth/gemma-2-9b-it-bnb-4bit
|
| 3 |
-
tags:
|
| 4 |
-
- text-generation-inference
|
| 5 |
-
- transformers
|
| 6 |
-
- unsloth
|
| 7 |
-
- gemma2
|
| 8 |
-
- trl
|
| 9 |
license: apache-2.0
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
-
|
| 17 |
-
- **License:** apache-2.0
|
| 18 |
-
- **Finetuned from model :** unsloth/gemma-2-9b-it-bnb-4bit
|
| 19 |
|
| 20 |
-
|
|
|
|
| 21 |
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
+
base_model: google/gemma-2-9b-it
|
| 4 |
+
tags:
|
| 5 |
+
- code
|
| 6 |
+
- agent
|
| 7 |
+
- tool-use
|
| 8 |
+
- lora
|
| 9 |
+
- sft
|
| 10 |
+
datasets:
|
| 11 |
+
- focustiki/sft-coding-agent-traces
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# eigentiki
|
| 15 |
+
|
| 16 |
+
I trained this LoRA adapter on top of google/gemma-2-9b-it.
|
| 17 |
+
I used 6,625 examples of real coding agent work (tool calls, bash, reasoning).
|
| 18 |
+
|
| 19 |
+
## Training
|
| 20 |
+
|
| 21 |
+
- Method: QLoRA (4-bit) with Unsloth
|
| 22 |
+
- Data: focustiki/sft-coding-agent-traces
|
| 23 |
+
- I ran a sweep of 3 configs and picked the best by eval loss.
|
| 24 |
+
- Winner: run_1 (eval_loss=4.5200)
|
| 25 |
+
- Settings: lr=0.0002, LoRA r=16, seq_len=4096
|
| 26 |
+
|
| 27 |
+
## Sweep Results
|
| 28 |
+
|
| 29 |
+
| Run | LR | LoRA r | Seq Len | Eval Loss | Train Loss |
|
| 30 |
+
|-----|-----|--------|---------|-----------|------------|
|
| 31 |
+
| run_1 | 0.0002 | 16 | 4096 | 4.5200 | 5.6922 |
|
| 32 |
+
| run_2 | 0.0001 | 32 | 8192 | 4.6942 | 5.9130 |
|
| 33 |
+
| run_3 | 5e-05 | 64 | 8192 | 4.8814 | 6.1487 |
|
| 34 |
|
| 35 |
+
## How to Use
|
|
|
|
|
|
|
| 36 |
|
| 37 |
+
```python
|
| 38 |
+
from unsloth import FastLanguageModel
|
| 39 |
|
| 40 |
+
model, tokenizer = FastLanguageModel.from_pretrained(
|
| 41 |
+
model_name="focustiki/eigentiki",
|
| 42 |
+
max_seq_length=8192,
|
| 43 |
+
load_in_4bit=True,
|
| 44 |
+
)
|
| 45 |
+
```
|