Instructions to use xiaomi-research/GemmaX2-28-9B-Pretrain with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xiaomi-research/GemmaX2-28-9B-Pretrain with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("translation", model="xiaomi-research/GemmaX2-28-9B-Pretrain")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("xiaomi-research/GemmaX2-28-9B-Pretrain") model = AutoModelForCausalLM.from_pretrained("xiaomi-research/GemmaX2-28-9B-Pretrain", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -29,6 +29,6 @@
|
|
| 29 |
"sliding_window_size": 4096,
|
| 30 |
"torch_dtype": "bfloat16",
|
| 31 |
"transformers_version": "4.44.2",
|
| 32 |
-
"use_cache":
|
| 33 |
"vocab_size": 256000
|
| 34 |
}
|
|
|
|
| 29 |
"sliding_window_size": 4096,
|
| 30 |
"torch_dtype": "bfloat16",
|
| 31 |
"transformers_version": "4.44.2",
|
| 32 |
+
"use_cache": true,
|
| 33 |
"vocab_size": 256000
|
| 34 |
}
|