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")# 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
upload onnx model
Browse files- generation_config.json +0 -6
- model.safetensors → model.onnx +2 -2
generation_config.json
DELETED
|
@@ -1,6 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"_from_model_config": true,
|
| 3 |
-
"bos_token_id": 1,
|
| 4 |
-
"eos_token_id": 2,
|
| 5 |
-
"transformers_version": "4.42.4"
|
| 6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
model.safetensors → model.onnx
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:224c4ce90f8a746edccaeddf5f7c568506a7c80e5f766307f081e0b9bea900a6
|
| 3 |
+
size 37095257
|