Downloads · 30 days
31
13% of all-time downloads
metga97/functiongemma-270m-ar-tooluse
functiongemma-270m-ar-tooluse is a text generation model from metga97. Use it when you need the model to write or continue text. It is set up for transformers.
language: - ar tags: - function-calling - tool-use - arabic - instruction-tuning - gemma - transformers license: apache-2.0 basemodel: google/functiongemma-270m-it ---
Downloads · 30 days
31
13% of all-time downloads
All-time downloads
244
Public
Parameters
268M
2.3 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors536 MB · 93%
From the Hugging Face model README
language:
This model is a finetuned version of google/functiongemma-270m-it for Arabic tool use / function calling across multiple dialects and domains.
It is trained to produce exactly one tool call when a tool is required, using FunctionGemma-native tool formatting (special function-call tokens) and structured JSON arguments.
google/functiongemma-270m-itmetga97/arabic-tooluse-functiongemma-v1When a tool is required, generation should include a FunctionGemma tool call pattern such as:
<start_function_call>call:TOOL_NAME{ ...json args... }<end_function_call>For non-tool requests, it returns a short Arabic reply.
Evaluated on the test split of metga97/arabic-tooluse-functiongemma-v1.
Set:
tokenizer.padding_side = "left"tokenizer.pad_token = tokenizer.eos_token (if missing)apply_chat_template(..., tools=tools_list)This is critical for FunctionGemma-style function calling.
Example outline:
apply_chat_template including tools=tools_list.generate() deterministically (do_sample=False, temperature=0.0).