You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Gemma 4 models not supported in ADK model registry #5237
Gemma 4 models (e.g. gemma-4-31b-it) are available via the Gemini API but cannot be used through ADK because the model registry does not match them.
The Gemma class in google/adk/models/gemma_llm.py registers only r'gemma-3.*' as its supported model pattern. This means any Gemma 4 model name fails with:
ValueError: Model gemma-4-31b-it not found.
Similarly, the Gemma3Ollama subclass only registers r'ollama/gemma3.*'.
You can use Gemma with the ADK. We recommend reviewing this documentation page in ADK docs, which will guide you through implementation Gemma 4 models with Google ADK.
Activity
llalitkumarrr commentedon Apr 13, 2026
Hello @mikkokirvesoja ,
You can use Gemma with the ADK. We recommend reviewing this documentation page in ADK docs, which will guide you through implementation Gemma 4 models with Google ADK.
Kindly let us know if this worked for you or not.
mikkokirvesoja commentedon Apr 13, 2026
Got it working, thanks!
Gemma.supported_models()only matchesgemma-3.*#5156