Spaces:
Sleeping
Sleeping
Upload 2 files
Browse files- README.md +25 -7
- requirements.txt +0 -1
README.md
CHANGED
|
@@ -1,13 +1,31 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
-
python_version: '3.13'
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
---
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: FunctionGemma 270M Mobile Actions SFT
|
| 3 |
+
emoji: 📱
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: indigo
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 5.49.1
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# FunctionGemma 270M — Mobile Actions SFT
|
| 13 |
+
|
| 14 |
+
Full fine-tune of `google/functiongemma-270m-it` for function calling on the
|
| 15 |
+
`google/mobile-actions` dataset, using TRL's `SFTTrainer`
|
| 16 |
+
(prompt/completion format, `completion_only_loss=True`).
|
| 17 |
+
|
| 18 |
+
## Setup
|
| 19 |
+
|
| 20 |
+
1. Accept the licenses for both gated repos:
|
| 21 |
+
- https://huggingface.co/google/functiongemma-270m-it
|
| 22 |
+
- https://huggingface.co/datasets/google/mobile-actions
|
| 23 |
+
2. Add your token as a Space secret named `HF_TOKEN` (Settings -> Secrets).
|
| 24 |
+
3. Use a **GPU** Space (T4/L4/A10G or better). On CPU, training and scoring are slow —
|
| 25 |
+
shrink the train/eval subsets.
|
| 26 |
+
|
| 27 |
+
## Why gradio is pinned to 5.x
|
| 28 |
+
|
| 29 |
+
`gradio` 6.x requires `huggingface_hub >= 1.2.0`, but `transformers==4.57.1`
|
| 30 |
+
requires `huggingface_hub < 1.0`. Pinning the SDK to `5.49.1` lets pip resolve a
|
| 31 |
+
`huggingface_hub` 0.x that satisfies both.
|
requirements.txt
CHANGED
|
@@ -5,4 +5,3 @@ datasets==4.4.1
|
|
| 5 |
accelerate
|
| 6 |
sentencepiece
|
| 7 |
matplotlib
|
| 8 |
-
gradio
|
|
|
|
| 5 |
accelerate
|
| 6 |
sentencepiece
|
| 7 |
matplotlib
|
|
|