Instructions to use ModelSpace/GemmaX2-28-2B-v0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ModelSpace/GemmaX2-28-2B-v0.1 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-v0.1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ModelSpace/GemmaX2-28-2B-v0.1") model = AutoModelForCausalLM.from_pretrained("ModelSpace/GemmaX2-28-2B-v0.1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md (#1)
Browse files- Update README.md (59a5f99d043b77307868c0bde9656d7a0f47c5cd)
Co-authored-by: Pengzhi Gao <gpengzhi@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
| 3 |
license_name: license
|
| 4 |
license_link: LICENSE
|
| 5 |
metrics:
|
| 6 |
- bleu
|
|
|
|
| 7 |
base_model:
|
| 8 |
-
-
|
| 9 |
pipeline_tag: translation
|
| 10 |
library_name: transformers
|
| 11 |
---
|
|
|
|
| 1 |
---
|
| 2 |
+
license: gemma
|
| 3 |
license_name: license
|
| 4 |
license_link: LICENSE
|
| 5 |
metrics:
|
| 6 |
- bleu
|
| 7 |
+
- comet
|
| 8 |
base_model:
|
| 9 |
+
- ModelSpace/GemmaX2-28-2B-Pretrain
|
| 10 |
pipeline_tag: translation
|
| 11 |
library_name: transformers
|
| 12 |
---
|