Translation
Transformers
Safetensors
English
French
marian
text2text-generation
seq2seq
Eval Results (legacy)
Instructions to use rdj-034/lab2_efficient with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rdj-034/lab2_efficient 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="rdj-034/lab2_efficient")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("rdj-034/lab2_efficient") model = AutoModelForSeq2SeqLM.from_pretrained("rdj-034/lab2_efficient", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 883 Bytes
9a21579 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | {
"added_tokens_decoder": {
"0": {
"content": "</s>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"1": {
"content": "<unk>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"59513": {
"content": "<pad>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
}
},
"additional_special_tokens": null,
"backend": "custom",
"eos_token": "</s>",
"is_local": false,
"model_max_length": 512,
"pad_token": "<pad>",
"return_tensors": "pt",
"separate_vocabs": false,
"source_lang": "en",
"sp_model_kwargs": {},
"target_lang": "fr",
"tokenizer_class": "MarianTokenizer",
"unk_token": "<unk>"
}
|