Instructions to use hf-internal-testing/tiny-random-MistralForSequenceClassification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-MistralForSequenceClassification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="hf-internal-testing/tiny-random-MistralForSequenceClassification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-MistralForSequenceClassification") model = AutoModelForSequenceClassification.from_pretrained("hf-internal-testing/tiny-random-MistralForSequenceClassification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from hf-internal-testing/tiny-random-MistralForSequenceClassification: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/hf-internal-testing/tiny-random-MistralForSequenceClassification/resolve/676384679bc5da7e2d6f64fb8fc56c3e0d1d8aa0/tokenizer_config.json
- Command line
-
hf download hf://hf-internal-testing/tiny-random-MistralForSequenceClassification@676384679bc5da7e2d6f64fb8fc56c3e0d1d8aa0/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/hf-internal-testing/tiny-random-MistralForSequenceClassification/resolve/676384679bc5da7e2d6f64fb8fc56c3e0d1d8aa0/tokenizer_config.json
1.1 kB
| { | |
| "add_bos_token": true, | |
| "add_eos_token": false, | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "additional_special_tokens": [], | |
| "bos_token": "<s>", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "</s>", | |
| "legacy": true, | |
| "model_max_length": 512, | |
| "pad_token": null, | |
| "sp_model_kwargs": {}, | |
| "spaces_between_special_tokens": false, | |
| "tokenizer_class": "LlamaTokenizer", | |
| "tokenizer_file": "/home/runner/.cache/huggingface/hub/models--mistralai--Mistral-7B-v0.1/snapshots/78814a934d8ce59ee93599378f3e929ff137da06/tokenizer.json", | |
| "unk_token": "<unk>", | |
| "use_default_system_prompt": true | |
| } | |