Instructions to use haochenhe/lab1_finetuning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use haochenhe/lab1_finetuning with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("haochenhe/lab1_finetuning") model = AutoModelForSeq2SeqLM.from_pretrained("haochenhe/lab1_finetuning") - Notebooks
- Google Colab
- Kaggle
File size: 842 Bytes
b2fb6dc | 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 | {
"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
}
},
"clean_up_tokenization_spaces": true,
"eos_token": "</s>",
"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>"
}
|