CoolFace
Modelpublic

0x3/functiongemma-finetuned-g1-multilingual

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes29downloads
Model Card

FunctionGemma Robot Actions (Multilingual)

A fine-tuned FunctionGemma 270M model that converts natural language into structured robot action and emotion function calls. Supports 6 languages with 98% accuracy at ~59ms on NVIDIA Jetson AGX Thor.

Supported Languages

πŸ‡¬πŸ‡§ English Β· πŸ‡¨πŸ‡³ δΈ­ζ–‡ Β· πŸ‡―πŸ‡΅ ζ—₯本θͺž Β· πŸ‡«πŸ‡· FranΓ§ais Β· πŸ‡©πŸ‡ͺ Deutsch Β· πŸ‡ͺπŸ‡Έ EspaΓ±ol

Example

Input:  "Can you shake hands with me?"     β†’ robot_action(shake_hand) + show_emotion(happy)
Input:  "θ·Ÿζˆ‘ζ‘ζ‰‹"                           β†’ robot_action(shake_hand) + show_emotion(happy)
Input:  "揑手してください"                     β†’ robot_action(shake_hand) + show_emotion(happy)
Input:  "Serrez-moi la main"               β†’ robot_action(shake_hand) + show_emotion(happy)
Input:  "Gib mir die Hand"                 β†’ robot_action(shake_hand) + show_emotion(happy)
Input:  "Dame la mano"                     β†’ robot_action(shake_hand) + show_emotion(happy)

Input:  "ζˆ‘δ»Šε€©εΏƒζƒ…δΈε₯½"                      β†’ robot_action(stand_still) + show_emotion(sad)
Input:  "γ‚γ‚Œγ―δ½•γ§γ™γ‹οΌŸ"                    β†’ robot_action(stand_still) + show_emotion(confused)
Input:  "Raconte-moi une blague"           β†’ robot_action(stand_still) + show_emotion(think)

Supported Actions

ActionDescription
shake_handHandshake gesture
face_waveWave hello / goodbye
hands_upRaise both hands
stand_stillStay idle (default for general conversation)
show_handShow open hand / present card for payment
do_paymentDo the payment / do the payment
down_paymentFinished the payment

Supported Emotions

EmotionAnimation
happyHappy.riv
sadSad.riv
excitedExcited.riv
confusedConfused.riv
curiousCurious.riv
thinkThink.riv

Constrained decoding uses 2 forward passes instead of 33 autoregressive steps, achieving ~18x speedup over standard model.generate().

Training Details

ParameterValue
Base modelgoogle/functiongemma-270m-it
MethodLoRA (rank 8, alpha 16)
Training data~6,000 examples (545 English + ~5,450 multilingual)
LanguagesEnglish, Chinese, Japanese, French, German, Spanish
Epochs3
Learning rate2e-4
Batch size4 (effective 16 with gradient accumulation)
Max sequence length512
Precisionbf16
HardwareNVIDIA RTX 5070 Ti (16 GB)

Multilingual training data was generated using Claude API β€” 2 natural phrasings per language per English prompt, resulting in diverse and natural expressions rather than literal translations.

Usage

Quick Start

python
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model = AutoModelForCausalLM.from_pretrained(
    "OpenmindAGI/functiongemma-finetuned-g1-multilingual",
    torch_dtype=torch.bfloat16,
    device_map="auto",
)
tokenizer = AutoTokenizer.from_pretrained("OpenmindAGI/functiongemma-finetuned-g1-multilingual")
model.eval()

Citation

bibtex
@misc{openmindagi-functiongemma-multilingual,
  title={FunctionGemma Robot Actions (Multilingual)},
  author={OpenmindAGI},
  year={2025},
  url={https://huggingface.co/OpenmindAGI/functiongemma-finetuned-g1-multilingual}
}

License

Fine-tuned from google/functiongemma-270m-it under Apache 2.0.