Downloads · 30 days
106
2% of all-time downloads
JANGQ-AI/Gemma-4-31B-it-JANG_4M
Gemma-4-31B-it-JANG_4M is a text generation model from JANGQ-AI. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as gemma.
🚨 IMPORTANT — RE-DOWNLOAD tokenizerconfig.json IF YOU GOT INFINITE LOOPS Fixed 2026-04-13. Earlier versions of this repo had a tokenizer bug that caused the model to loop forever in stock mlxlm and other loaders. Gem…
Downloads · 30 days
106
2% of all-time downloads
All-time downloads
4.7K
Public
Parameters
20.2B
22.7 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors22.7 GB · 100%
How the weights are stored.
U3219.6B · 97%
From the Hugging Face model README
🚨 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 stock
mlx_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 update
tokenizer_config.json.
JANG quantized Gemma-4 MoE for Apple Silicon. See JANGQ-AI for the full collection.