Translation
Transformers
Safetensors
English
Chinese
llama
text-generation
text-generation-inference
Instructions to use Mxode/NanoTranslator-XS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mxode/NanoTranslator-XS 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="Mxode/NanoTranslator-XS")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Mxode/NanoTranslator-XS") model = AutoModelForCausalLM.from_pretrained("Mxode/NanoTranslator-XS", device_map="auto") - Notebooks
- Google Colab
- Kaggle
update
Browse files- README.md +1 -1
- README_zh-CN.md +1 -1
README.md
CHANGED
|
@@ -13,7 +13,7 @@ license: gpl-3.0
|
|
| 13 |
| :--: | :-----: | :--: | :--: | :--: | :--: | :-----: | :---: | :------: |
|
| 14 |
| XL | 50 M | 8000 | 320 | 1792 | 24 | 16 | 4 | True |
|
| 15 |
| L | 22 M | 8000 | 256 | 1408 | 16 | 16 | 4 | True |
|
| 16 |
-
| M |
|
| 17 |
| S | 2 M | 2000 | 96 | 512 | 12 | 12 | 4 | True |
|
| 18 |
|
| 19 |
- **V.** - vocab size
|
|
|
|
| 13 |
| :--: | :-----: | :--: | :--: | :--: | :--: | :-----: | :---: | :------: |
|
| 14 |
| XL | 50 M | 8000 | 320 | 1792 | 24 | 16 | 4 | True |
|
| 15 |
| L | 22 M | 8000 | 256 | 1408 | 16 | 16 | 4 | True |
|
| 16 |
+
| M | 9 M | 4000 | 168 | 896 | 16 | 12 | 4 | True |
|
| 17 |
| S | 2 M | 2000 | 96 | 512 | 12 | 12 | 4 | True |
|
| 18 |
|
| 19 |
- **V.** - vocab size
|
README_zh-CN.md
CHANGED
|
@@ -13,7 +13,7 @@ license: gpl-3.0
|
|
| 13 |
| :--: | :-----: | :--: | :--: | :--: | :--: | :-----: | :---: | :------: |
|
| 14 |
| XL | 50 M | 8000 | 320 | 1792 | 24 | 16 | 4 | True |
|
| 15 |
| L | 22 M | 8000 | 256 | 1408 | 16 | 16 | 4 | True |
|
| 16 |
-
| M |
|
| 17 |
| S | 2 M | 2000 | 96 | 512 | 12 | 12 | 4 | True |
|
| 18 |
|
| 19 |
- **V.** - vocab size
|
|
|
|
| 13 |
| :--: | :-----: | :--: | :--: | :--: | :--: | :-----: | :---: | :------: |
|
| 14 |
| XL | 50 M | 8000 | 320 | 1792 | 24 | 16 | 4 | True |
|
| 15 |
| L | 22 M | 8000 | 256 | 1408 | 16 | 16 | 4 | True |
|
| 16 |
+
| M | 9 M | 4000 | 168 | 896 | 16 | 12 | 4 | True |
|
| 17 |
| S | 2 M | 2000 | 96 | 512 | 12 | 12 | 4 | True |
|
| 18 |
|
| 19 |
- **V.** - vocab size
|