Instructions to use hf-internal-testing/tiny-random-FSMTModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-FSMTModel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="hf-internal-testing/tiny-random-FSMTModel")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-FSMTModel") model = AutoModel.from_pretrained("hf-internal-testing/tiny-random-FSMTModel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from hf-internal-testing/tiny-random-FSMTModel: direct link, hf CLI and curl.
- Browser
- Download file 300 Bytes
-
https://huggingface.co/hf-internal-testing/tiny-random-FSMTModel/resolve/1353e06cce6138deefdd9bc0af25eaf35f6803bf/tokenizer_config.json
- Command line
-
hf download hf://hf-internal-testing/tiny-random-FSMTModel@1353e06cce6138deefdd9bc0af25eaf35f6803bf/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/hf-internal-testing/tiny-random-FSMTModel/resolve/1353e06cce6138deefdd9bc0af25eaf35f6803bf/tokenizer_config.json
300 Bytes
| { | |
| "bos_token": "<s>", | |
| "do_lower_case": false, | |
| "langs": [ | |
| "en", | |
| "ru" | |
| ], | |
| "model_max_length": 20, | |
| "name_or_path": "facebook/wmt19-en-ru", | |
| "pad_token": "<pad>", | |
| "sep_token": "</s>", | |
| "special_tokens_map_file": null, | |
| "tokenizer_class": "FSMTTokenizer", | |
| "unk_token": "<unk>" | |
| } | |