Translation
Transformers
Safetensors
English
Chinese
llama
text-generation
text-generation-inference
Instructions to use Mxode/NanoTranslator-S with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mxode/NanoTranslator-S 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-S")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Mxode/NanoTranslator-S") model = AutoModelForCausalLM.from_pretrained("Mxode/NanoTranslator-S", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README_zh-CN.md
Browse files- README_zh-CN.md +1 -1
README_zh-CN.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
|
| 5 |
## Introduction
|
| 6 |
|
| 7 |
-
这是 NanoTranslator 的
|
| 8 |
|
| 9 |
|
| 10 |
| Size | Params. | V. | H. | I. | L. | Att. H. | KV H. | Tie Emb. |
|
|
|
|
| 4 |
|
| 5 |
## Introduction
|
| 6 |
|
| 7 |
+
这是 NanoTranslator 的 Medium 型号,目前仅支持**英译中**。仓库中同时提供了 ONNX 版本的模型。
|
| 8 |
|
| 9 |
|
| 10 |
| Size | Params. | V. | H. | I. | L. | Att. H. | KV H. | Tie Emb. |
|