victor/functiongemma-270m-agent-sft-lora
035
FunctionGemma-270M LoRA — agentic tool-calling
LoRA adapter (r=16, alpha=32) fine-tuned from `unsloth/functiongemma-270m-it` on `victor/functiongemma-agent-sft` (7,500 agentic tool-calling examples), for generating valid FunctionGemma-style tool calls (read_file, write_file, edit_file, glob, bash).
Loss is computed over the model (assistant) turns only — the developer turn, tool declarations, user prompts, and tool responses are excluded from the loss so the adapter learns to emit correct calls rather than memorize context.
Load
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = "unsloth/functiongemma-270m-it"
tokenizer = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(base, torch_dtype=torch.bfloat16)
model = PeftModel.from_pretrained(model, "victor/functiongemma-270m-agent-sft-lora")Training
Results (held-out 750 examples, assistant-turn tokens only)
Eval split is held out from the same synthetic dataset, so these numbers show fit to the target distribution, not zero-shot generalization to unseen tool scenarios.
