Image-Text-to-Text
MLX
Safetensors
Transformers
English
gemma4
text-generation-inference
unsloth
reasoning
conversational
4-bit precision

No tool calling, and printing weird stuff

#1
by Ahmed-mohamed067 - opened

I downloaded this model and run it using oMLX and It can't perform a successful tool call ( Opencode, ZCode, Reasonix, all Of them ) , and sometimes it repeats itself even with the repetition penalty 1.1 , I feel that there is something I need to do can you point me to it ?

here is an example of the problem :

thought call:Bash{command:<|"|>flutter --version | head -n 1<|"|>,description:<|"|>Check installed flutter version - first line only<|"|>}call:Bash{command:<|"|>which flutter which dart flutter doctor --version<|"|>,description:<|"|>Check paths and basic version info<|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{command: flutter --version | head -n 1 <|"|>}call:bash{comman

I am actually not sure… You could try using Google’s base chat template, see if that resolves the issue:
https://huggingface.co/google/gemma-4-26B-A4B-it/raw/main/chat_template.jinja

Sign up or log in to comment