Translation
Transformers
Safetensors
Tooro
Nyoro
Ganda
m2m_100
text2text-generation
nllb-200
rutooro
Instructions to use cle-13/nllb-tooro-ttj-patched with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cle-13/nllb-tooro-ttj-patched 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="cle-13/nllb-tooro-ttj-patched")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("cle-13/nllb-tooro-ttj-patched") model = AutoModelForSeq2SeqLM.from_pretrained("cle-13/nllb-tooro-ttj-patched", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from cle-13/nllb-tooro-ttj-patched: direct link, hf CLI and curl.
- Browser
- Download file 916 Bytes
-
https://huggingface.co/cle-13/nllb-tooro-ttj-patched/resolve/719d624a95bb873bcd0085f3e280071e9e6f942e/config.json
- Command line
-
hf download hf://cle-13/nllb-tooro-ttj-patched@719d624a95bb873bcd0085f3e280071e9e6f942e/config.json
-
curl -L -o config.json https://huggingface.co/cle-13/nllb-tooro-ttj-patched/resolve/719d624a95bb873bcd0085f3e280071e9e6f942e/config.json
916 Bytes
| { | |
| "_name_or_path": "/content/drive/MyDrive/rutooro-mt-models/nllb-tooro", | |
| "activation_dropout": 0.0, | |
| "activation_function": "relu", | |
| "architectures": [ | |
| "M2M100ForConditionalGeneration" | |
| ], | |
| "attention_dropout": 0.1, | |
| "bos_token_id": 0, | |
| "d_model": 1024, | |
| "decoder_attention_heads": 16, | |
| "decoder_ffn_dim": 4096, | |
| "decoder_layerdrop": 0, | |
| "decoder_layers": 12, | |
| "decoder_start_token_id": 2, | |
| "dropout": 0.1, | |
| "encoder_attention_heads": 16, | |
| "encoder_ffn_dim": 4096, | |
| "encoder_layerdrop": 0, | |
| "encoder_layers": 12, | |
| "eos_token_id": 2, | |
| "init_std": 0.02, | |
| "is_encoder_decoder": true, | |
| "max_length": null, | |
| "max_position_embeddings": 1024, | |
| "model_type": "m2m_100", | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 1, | |
| "scale_embedding": true, | |
| "tokenizer_class": "NllbTokenizer", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.42.4", | |
| "use_cache": true, | |
| "vocab_size": 256205 | |
| } | |