CoolFace
Modelpublic

OpenmindAGI/functiongemma-finetuned-g1

sourceHugging Faceapache-2.0updated 6mo agoView on Hugging Face
0likes18downloads
Model Card

FunctionGemma Robot Actions

A fine-tuned FunctionGemma 270M model that converts natural language into structured robot action and emotion function calls. Designed for real-time inference on edge devices like the NVIDIA Jetson AGX Thor.

Overview

This model takes a user's voice or text input and outputs two function calls:

  • `robot_action` — a physical action for the robot to perform
  • `show_emotion` — an emotion to display on the robot's avatar screen (Rive animations)

General conversation defaults to stand_still with a contextually appropriate emotion.

Example

Input:  "Can you shake hands with me?"
Output: robot_action(action_name="shake_hand") + show_emotion(emotion="happy")

Input:  "What is that?"
Output: robot_action(action_name="stand_still") + show_emotion(emotion="confused")

Input:  "I feel sad"
Output: robot_action(action_name="stand_still") + show_emotion(emotion="sad")

Supported Actions

ActionDescription
shake_handHandshake gesture
face_waveWave hello
hands_upRaise both hands
stand_stillStay idle (default for general conversation)
show_handShow open hand

Supported Emotions

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

Performance on NVIDIA Jetson AGX Thor

Benchmarked with constrained decoding (2 forward passes instead of 33 autoregressive steps):

MetricValue
Min latency52 ms
Max latency72 ms
Avg latency59 ms

Training Details

ParameterValue
Base modelgoogle/functiongemma-270m-it
MethodLoRA (rank 8, alpha 16)
Training data545 examples (490 train / 55 eval)
Epochs5
Learning rate2e-4
Batch size2 (effective 4 with gradient accumulation)
Max sequence length512
Precisionbf16

Quick Start

python
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

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

Citation

bibtex
@misc{openmindagi-functiongemma-robot-actions,
  title={FunctionGemma Robot Actions},
  author={OpenmindAGI},
  year={2025},
  url={https://huggingface.co/OpenmindAGI/functiongemma-robot-actions}
}