Instructions to use nelise/lab2_efficient with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nelise/lab2_efficient with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("nelise/lab2_efficient") model = AutoModelForSeq2SeqLM.from_pretrained("nelise/lab2_efficient", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from nelise/lab2_efficient: direct link, hf CLI and curl.
- Browser
- Download file 883 Bytes
-
https://huggingface.co/nelise/lab2_efficient/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://nelise/lab2_efficient/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/nelise/lab2_efficient/resolve/main/tokenizer_config.json
883 Bytes
| { | |
| "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>" | |
| } | |