202 points · by canyon289 · 1y ago · 32 comments
You don't need to take our word for it! We were waiting for an external and independent validation from the Berkeley team, and they just published their results. You can use their metrics to get a rough sense of performance, and of course try it out yourself in AIstudio or locally with your own prompts.
https://gorilla.cs.berkeley.edu/leaderboard.html
Hope you all enjoy the models!
With Gemma, or any open model, you can use the open libraries in conjunction to get what you want. Some inference frameworks like Ollama include structured output as part of their functionality.
But you mentioned all of this already in your question so I feel like I'm missing something. Let me know!
But I think you already mentioned all this in your response so I might be missing the question?
Edit: per simonw’s sibling comment, ollama also has this feature.
Under the hood, it is using the llama.cpp grammars mechanism that restricts allowed logits at each step, similar to Outlines.
- We can constrain the output of a JSON grammar (old school llama.cpp)
- We can format inputs to make sure it matches the model format.
- Both of these combined is what llama.cpp does, via @ochafik, in inter alia, https://github.com/ggml-org/llama.cpp/pull/9639.
- ollama isn't plugged into this system AFAIK
To OP's question, specifying a format in the model unlocks training the model specifically had on functions calling: what I sometimes call an "agentic loop", i.e. we're dramatically increasing the odds we're singing in the right tune for the model to do the right thing in this situation.
I find it a bit frustrating when details of the training is not known and one has to guess what kinds of prompts the model has been tuned with.
Specifically though I want to thank you for leaving a comment. We're reading all this feedback and its informing what we can do next to reduce frustration and create the best model experience the community
I would imagine training with a specific, perhaps structured, prompt could make the function calling a bit more robust.
Sigh Taps the sign:
--- start quote ---
To put it succinctly, prompt engineering is nothing but an attempt to reverse-engineer a non-deterministic black box for which any of the parameters below are unknown:
- training set
- weights
- constraints on the model
- layers between you and the model that transform both your input and the model's output that can change at any time availability of compute for your specific query
- and definitely some more details I haven't thought of
"Prompt engineers" will tell you that some specific ways of prompting some specific models will result in a "better result"... without any criteria for what a "better result" might signify.
https://dmitriid.com/prompting-llms-is-not-engineering
--- end quote ---
With the advent of agents/MCP, the low level workflow has only become more confusing.
Right now the space is moving fast so new concepts and things are getting introduced quite fast, and the ecosystem hasn't settled.
https://en.wikipedia.org/wiki/OSI_model#Layer_architecture
But like all other things with computers, like shells, terminals, GUIs etc we're getting there. Just faster than ever.
Yesterday I started exploring a smaller Gemma3 model locally with Ollama, and it's clearly a level up from the previous model I was using (Llama3) in terms of instruction comprehension and the sophistication of responses. It's faster, smaller, and smarter.
I very much appreciate how such innovative technology is available for non-experts to benefit from and participate in. I think one of the best things about the emergence and evolution of LLMs is the power of open source, open standards, and the ideal of democratizing artificial intelligence and access to it. The age-old dream of machines augmenting the human intellect (Vannevar Bush, Doug Englebart, et al) is being realized in a surprising way, and seeing the foundational layers being developed in real time is wonderful.
Regarding the device theme in the browser, I'll ask some folks what's going on there.
https://www.llama.com/docs/model-cards-and-prompt-formats/ll...