Instructions to use ydshieh/tiny-random-LiltForSequenceClassification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ydshieh/tiny-random-LiltForSequenceClassification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ydshieh/tiny-random-LiltForSequenceClassification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ydshieh/tiny-random-LiltForSequenceClassification") model = AutoModelForSequenceClassification.from_pretrained("ydshieh/tiny-random-LiltForSequenceClassification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from ydshieh/tiny-random-LiltForSequenceClassification: direct link, hf CLI and curl.
- Browser
- Download file 1.6 kB
-
https://huggingface.co/ydshieh/tiny-random-LiltForSequenceClassification/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://ydshieh/tiny-random-LiltForSequenceClassification/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/ydshieh/tiny-random-LiltForSequenceClassification/resolve/main/tokenizer_config.json
1.6 kB
| { | |
| "add_prefix_space": true, | |
| "bos_token": { | |
| "__type": "AddedToken", | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "cls_token": { | |
| "__type": "AddedToken", | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "cls_token_box": [ | |
| 0, | |
| 0, | |
| 0, | |
| 0 | |
| ], | |
| "eos_token": { | |
| "__type": "AddedToken", | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "errors": "replace", | |
| "mask_token": { | |
| "__type": "AddedToken", | |
| "content": "<mask>", | |
| "lstrip": true, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "model_max_length": 512, | |
| "name_or_path": "temp/dummy/lilt/processors", | |
| "only_label_first_subword": true, | |
| "pad_token": { | |
| "__type": "AddedToken", | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token_box": [ | |
| 0, | |
| 0, | |
| 0, | |
| 0 | |
| ], | |
| "pad_token_label": -100, | |
| "sep_token": { | |
| "__type": "AddedToken", | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "sep_token_box": [ | |
| 0, | |
| 0, | |
| 0, | |
| 0 | |
| ], | |
| "special_tokens_map_file": null, | |
| "tokenizer_class": "LayoutLMv3Tokenizer", | |
| "trim_offsets": true, | |
| "unk_token": { | |
| "__type": "AddedToken", | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |