Instructions to use hf-internal-testing/tiny-random-PLBartForSequenceClassification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-PLBartForSequenceClassification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="hf-internal-testing/tiny-random-PLBartForSequenceClassification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-PLBartForSequenceClassification") model = AutoModelForSequenceClassification.from_pretrained("hf-internal-testing/tiny-random-PLBartForSequenceClassification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from hf-internal-testing/tiny-random-PLBartForSequenceClassification: direct link, hf CLI and curl.
- Browser
- Download file 580 Bytes
-
https://huggingface.co/hf-internal-testing/tiny-random-PLBartForSequenceClassification/resolve/02063b3d9707fcff619a4e37a0d6e58f76e39b18/tokenizer_config.json
- Command line
-
hf download hf://hf-internal-testing/tiny-random-PLBartForSequenceClassification@02063b3d9707fcff619a4e37a0d6e58f76e39b18/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/hf-internal-testing/tiny-random-PLBartForSequenceClassification/resolve/02063b3d9707fcff619a4e37a0d6e58f76e39b18/tokenizer_config.json
580 Bytes
| { | |
| "additional_special_tokens": null, | |
| "bos_token": "<s>", | |
| "cls_token": "<s>", | |
| "eos_token": "</s>", | |
| "language_codes": "base", | |
| "mask_token": { | |
| "__type": "AddedToken", | |
| "content": "<mask>", | |
| "lstrip": true, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "model_max_length": 100, | |
| "name_or_path": "uclanlp/plbart-base", | |
| "pad_token": "<pad>", | |
| "sep_token": "</s>", | |
| "sp_model_kwargs": {}, | |
| "special_tokens_map_file": null, | |
| "src_lang": null, | |
| "tgt_lang": null, | |
| "tokenizer_class": "PLBartTokenizer", | |
| "unk_token": "<unk>" | |
| } | |