Just when I spend 2 weeks researching how to improve natively Gemma's tools calls they fix them lol

#134
by Coronelo - opened

I am a Gemma4 supporter and my experience with tool calling had been awful and those around me don't even use the little brat anymore because of that.

So I went down a rabbit hole to figure out why (I am sharing here what i found in case it helps to keep working in the templates).

Posted here my initial findings, which are half wrong.
https://github.com/nnnarvaez/Exploring-Gemma4-and-Gemini/blob/main/tutorials/gemma4-tool_call.md

And based on those kept playing until I figured it better:
https://github.com/nnnarvaez/Exploring-Gemma4-and-Gemini/blob/main/tutorials/Gemma4_Tool_Calling_2.md

And made a discord harness for the Gemma4 based on all these findings with 90% tool call success. (using reminders between calls in the payload and every trick on the book)

Recently the only failures are Gemma4 missing to write properly an argument for a command, but 0 tool call loops or reasoning loops.

I was proud, now I guess I gotta start again.

image

Sign up or log in to comment