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")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Mxode/NanoTranslator-XS") model = AutoModelForCausalLM.from_pretrained("Mxode/NanoTranslator-XS") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 24678ba488b3b38a77569d12ff8729c43c1fd8f83b0cb8d6b70fce8ad533b5b7
- Size of remote file:
- 9.54 MB
- SHA256:
- 90fe15e9fed9c741b8a982d9797dd366b843a8c94405ae8ce9b34de168a497c1
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.