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.md
Browse files
README.md
CHANGED
|
@@ -14,7 +14,7 @@ English | [简体中文](README_zh-CN.md)
|
|
| 14 |
|
| 15 |
## Introduction
|
| 16 |
|
| 17 |
-
This is the
|
| 18 |
|
| 19 |
The ONNX version of the model is also available in the repository.
|
| 20 |
|
|
|
|
| 14 |
|
| 15 |
## Introduction
|
| 16 |
|
| 17 |
+
This is the Medium model of the NanoTranslator, currently supported only in **English to Chinese**.
|
| 18 |
|
| 19 |
The ONNX version of the model is also available in the repository.
|
| 20 |
|