Views
No views yet
🚨 IMPORTANT — RE-DOWNLOAD
tokenizer_config.jsonIF YOU GOT INFINITE LOOPSFixed 2026-04-13. Earlier versions of this repo had a tokenizer bug that caused the model to loop forever in stockmlx_lmand other loaders.Gemma-4 emits<end_of_turn>(id 106) at the end of an assistant turn, but the originaltokenizer_config.jsononly listed<eos>(id 1) as the stop token. Stock loaders never detected the actual end-of-turn marker → infinite loop.How to fix:
Option A — Re-download just the tokenizer config (fastest)
huggingface-cli download JANGQ-AI/Gemma-4-31B-it-JANG_4M tokenizer_config.json --local-dir ./your-model-dirOption B — Re-download the whole repo
huggingface-cli download JANGQ-AI/Gemma-4-31B-it-JANG_4M --local-dir ./your-model-dirOption C — Pass the stop tokens manually
stop_token_ids = [1, 106, 50] # <eos>, <end_of_turn>, <end_of_image>The model weights are unchanged — you only need to updatetokenizer_config.json.