Instructions to use hf-internal-testing/tiny-random-RemBertForSequenceClassification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-RemBertForSequenceClassification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="hf-internal-testing/tiny-random-RemBertForSequenceClassification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-RemBertForSequenceClassification") model = AutoModelForSequenceClassification.from_pretrained("hf-internal-testing/tiny-random-RemBertForSequenceClassification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from hf-internal-testing/tiny-random-RemBertForSequenceClassification: direct link, hf CLI and curl.
- Browser
- Download file 663 Bytes
-
https://huggingface.co/hf-internal-testing/tiny-random-RemBertForSequenceClassification/resolve/d315ecf3be15d52df6d7a137702f896265f112b1/tokenizer_config.json
- Command line
-
hf download hf://hf-internal-testing/tiny-random-RemBertForSequenceClassification@d315ecf3be15d52df6d7a137702f896265f112b1/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/hf-internal-testing/tiny-random-RemBertForSequenceClassification/resolve/d315ecf3be15d52df6d7a137702f896265f112b1/tokenizer_config.json
663 Bytes
| { | |
| "bos_token": "[CLS]", | |
| "cls_token": "[CLS]", | |
| "do_lower_case": false, | |
| "eos_token": "[SEP]", | |
| "keep_accents": true, | |
| "mask_token": { | |
| "__type": "AddedToken", | |
| "content": "[MASK]", | |
| "lstrip": true, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "model_max_length": 512, | |
| "name_or_path": "google/rembert", | |
| "pad_token": "[PAD]", | |
| "remove_space": true, | |
| "sep_token": "[SEP]", | |
| "special_tokens_map_file": "/home/huggingface/.cache/huggingface/hub/models--google--rembert/snapshots/65da5133da36e29dfca67d4f0dd9f7f9db21b563/special_tokens_map.json", | |
| "tokenizer_class": "RemBertTokenizer", | |
| "unk_token": "[UNK]" | |
| } | |