Instructions to use google/gemma-4-E4B-it with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/gemma-4-E4B-it with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("google/gemma-4-E4B-it", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update response schema
#16
by Rocketknight1 HF Staff - opened
- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
|
@@ -61,7 +61,7 @@
|
|
| 61 |
}
|
| 62 |
}
|
| 63 |
},
|
| 64 |
-
"x-regex": "(\\<\\|channel\\>thought\\n(?P<thinking>.*?)\\<channel\\|\\>)?(?P<
|
| 65 |
},
|
| 66 |
"soc_token": "<|channel>",
|
| 67 |
"sot_token": "<|turn>",
|
|
|
|
| 61 |
}
|
| 62 |
}
|
| 63 |
},
|
| 64 |
+
"x-regex": "(\\<\\|channel\\>thought\\n(?P<thinking>.*?)\\<channel\\|\\>)?(?P<tool_calls>\\<\\|tool_call\\>.*\\<tool_call\\|\\>)?(?P<content>(?:(?!\\<turn\\|\\>)(?!\\<\\|tool_response\\>).)+)?(?:\\<turn\\|\\>|\\<\\|tool_response\\>)?"
|
| 65 |
},
|
| 66 |
"soc_token": "<|channel>",
|
| 67 |
"sot_token": "<|turn>",
|