Instructions to use ModelSpace/GemmaX2-28-2B-Pretrain with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ModelSpace/GemmaX2-28-2B-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="ModelSpace/GemmaX2-28-2B-Pretrain")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ModelSpace/GemmaX2-28-2B-Pretrain") model = AutoModelForCausalLM.from_pretrained("ModelSpace/GemmaX2-28-2B-Pretrain", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from ModelSpace/GemmaX2-28-2B-Pretrain: direct link, hf CLI and curl.
- Browser
- Download file 555 Bytes
-
https://huggingface.co/ModelSpace/GemmaX2-28-2B-Pretrain/resolve/b33d3018a8e95ed04efdac09945956f5e9deb01a/special_tokens_map.json
- Command line
-
hf download hf://ModelSpace/GemmaX2-28-2B-Pretrain@b33d3018a8e95ed04efdac09945956f5e9deb01a/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/ModelSpace/GemmaX2-28-2B-Pretrain/resolve/b33d3018a8e95ed04efdac09945956f5e9deb01a/special_tokens_map.json
555 Bytes
| { | |
| "bos_token": { | |
| "content": "<bos>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "content": "<eos>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "unk_token": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |