Update README.md
Browse files
README.md
CHANGED
|
@@ -1,58 +1,79 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
-
|
| 8 |
-
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
-
#
|
| 13 |
|
| 14 |
-
|
| 15 |
-
|
|
|
|
| 16 |
|
| 17 |
-
|
|
|
|
|
|
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
|
| 23 |
-
generator = pipeline("text-generation", model="independently-platform/functiongemma-tasky", device="cuda")
|
| 24 |
-
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
| 25 |
-
print(output["generated_text"])
|
| 26 |
-
```
|
| 27 |
|
| 28 |
-
|
|
|
|
| 29 |
|
| 30 |
-
|
| 31 |
|
| 32 |
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
-
|
| 36 |
|
| 37 |
-
-
|
| 38 |
-
- Transformers: 4.57.3
|
| 39 |
-
- Pytorch: 2.9.1+cu128
|
| 40 |
-
- Datasets: 4.4.2
|
| 41 |
-
- Tokenizers: 0.22.2
|
| 42 |
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
| 44 |
|
|
|
|
| 45 |
|
|
|
|
|
|
|
| 46 |
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- it
|
| 5 |
+
base_model: google/functiongemma-270m-it
|
| 6 |
+
tags:
|
| 7 |
+
- function-calling
|
| 8 |
+
- tool-calling
|
| 9 |
+
- task-management
|
| 10 |
+
- todo
|
| 11 |
+
- synthetic
|
| 12 |
+
- transformers
|
| 13 |
+
library_name: transformers
|
| 14 |
+
pipeline_tag: text-generation
|
| 15 |
+
---
|
| 16 |
|
| 17 |
+
# Tasky
|
| 18 |
|
| 19 |
+
## Model Summary
|
| 20 |
+
This model is a fine-tuned **function-calling assistant** for a todo/task application. It maps user requests to one of four tools and produces valid tool
|
| 21 |
+
arguments according to the schema in `AI-TRAINING-TOOLS.md`.
|
| 22 |
|
| 23 |
+
- **Base model:** `google/functiongemma-270m-it`
|
| 24 |
+
- **Primary languages:** English and Italian (with light spelling errors/typos to mimic real users)
|
| 25 |
+
- **Task:** Structured tool selection + argument generation
|
| 26 |
|
| 27 |
+
## Intended Use
|
| 28 |
+
Use this model to translate natural language task requests into tool calls for:
|
| 29 |
+
- `create_tasks`
|
| 30 |
+
- `search_tasks`
|
| 31 |
+
- `update_tasks`
|
| 32 |
+
- `delete_tasks`
|
| 33 |
|
| 34 |
+
It is designed for **task/todo management** workflows and should be paired with strict validation of tool arguments before execution.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
+
### Example
|
| 37 |
+
**Input (user):**
|
| 38 |
|
| 39 |
+
Aggiungi un task per pagare la bolletta della luce domani mattina
|
| 40 |
|
| 41 |
|
| 42 |
+
**Expected output (model):**
|
| 43 |
+
```json
|
| 44 |
+
{
|
| 45 |
+
"tool_name": "create_tasks",
|
| 46 |
+
"tool_arguments": "{\"tasks\":[{\"content\":\"pagare la bolletta della luce\",\"dueDate\":\"2026-01-13T09:00:00.000Z\"}]}"
|
| 47 |
+
}
|
| 48 |
|
| 49 |
+
## Training Data
|
| 50 |
|
| 51 |
+
Synthetic, bilingual tool-calling data built from the tool schema, including:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
+
- Multiple phrasings and paraphrases
|
| 54 |
+
- Mixed English/Italian prompts
|
| 55 |
+
- Light typos and user mistakes in user_content
|
| 56 |
+
- Broad coverage of optional parameters
|
| 57 |
|
| 58 |
+
Splits:
|
| 59 |
|
| 60 |
+
- Train: 1,500 examples
|
| 61 |
+
- Eval: 500 examples
|
| 62 |
|
| 63 |
+
## Training Procedure
|
| 64 |
+
|
| 65 |
+
- Fine-tuning on synthetic tool-calling samples
|
| 66 |
+
- Deduplicated examples
|
| 67 |
+
- Balanced coverage of all tools and key parameters
|
| 68 |
+
|
| 69 |
+
## Evaluation
|
| 70 |
+
|
| 71 |
+
Reported success rate: 99.5% on the 500‑example eval split vs 0% base model.
|
| 72 |
+
Success was measured as exact match on the predicted tool name and the JSON arguments after normalization.
|
| 73 |
+
|
| 74 |
+
## Limitations
|
| 75 |
+
|
| 76 |
+
- Trained for a specific tool schema; not a general-purpose assistant.
|
| 77 |
+
- Outputs may include incorrect or incomplete tool arguments; validate before execution.
|
| 78 |
+
- Language coverage is strongest in English and Italian.
|
| 79 |
+
- Synthetic data may not capture all real-world user phrasing or ambiguity.
|