How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="wizardoftrap/functiongemma-270m-it-mobile-actions")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("wizardoftrap/functiongemma-270m-it-mobile-actions")
model = AutoModelForCausalLM.from_pretrained("wizardoftrap/functiongemma-270m-it-mobile-actions")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Uploaded finetuned model

Overview

  • This gemma3_text model was trained 2x faster with Unsloth and Huggingface's TRL library.
  • FunctionGemma is a lightweight, open model from Google, built as a foundation for creating your own specialized function calling models.
  • Also this model was converted into a Litertlm format and used in Google's Edge Gallery App on android.
  • This model was fine tuned on Google Colab with T4 GPU

Downloads last month
7
Safetensors
Model size
0.3B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for wizardoftrap/functiongemma-270m-it-mobile-actions

Dataset used to train wizardoftrap/functiongemma-270m-it-mobile-actions