Instructions to use hf-internal-testing/tiny-random-PersimmonForSequenceClassification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-PersimmonForSequenceClassification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="hf-internal-testing/tiny-random-PersimmonForSequenceClassification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-PersimmonForSequenceClassification") model = AutoModelForSequenceClassification.from_pretrained("hf-internal-testing/tiny-random-PersimmonForSequenceClassification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from hf-internal-testing/tiny-random-PersimmonForSequenceClassification: direct link, hf CLI and curl.
- Browser
- Download file 661 Bytes
-
https://huggingface.co/hf-internal-testing/tiny-random-PersimmonForSequenceClassification/resolve/1d2674846543a181ca67bafa8b8f3a48bd2eefd1/tokenizer_config.json
- Command line
-
hf download hf://hf-internal-testing/tiny-random-PersimmonForSequenceClassification@1d2674846543a181ca67bafa8b8f3a48bd2eefd1/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/hf-internal-testing/tiny-random-PersimmonForSequenceClassification/resolve/1d2674846543a181ca67bafa8b8f3a48bd2eefd1/tokenizer_config.json
661 Bytes
| { | |
| "add_bos_token": true, | |
| "add_eos_token": false, | |
| "bos_token": { | |
| "__type": "AddedToken", | |
| "content": "|ENDOFTEXT|", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": null, | |
| "legacy": null, | |
| "model_max_length": 512, | |
| "pad_token": null, | |
| "sp_model_kwargs": {}, | |
| "spaces_between_special_tokens": false, | |
| "tokenizer_class": "LlamaTokenizer", | |
| "unk_token": { | |
| "__type": "AddedToken", | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "use_default_system_prompt": true | |
| } | |