Instructions to use hf-tiny-model-private/tiny-random-FunnelForTokenClassification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-tiny-model-private/tiny-random-FunnelForTokenClassification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="hf-tiny-model-private/tiny-random-FunnelForTokenClassification")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("hf-tiny-model-private/tiny-random-FunnelForTokenClassification") model = AutoModelForTokenClassification.from_pretrained("hf-tiny-model-private/tiny-random-FunnelForTokenClassification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "bos_token": "<s>", | |
| "clean_text": true, | |
| "clean_up_tokenization_spaces": true, | |
| "cls_token": "<cls>", | |
| "do_basic_tokenize": true, | |
| "do_lower_case": true, | |
| "eos_token": "</s>", | |
| "mask_token": "<mask>", | |
| "model_max_length": 512, | |
| "never_split": null, | |
| "pad_token": "<pad>", | |
| "sep_token": "<sep>", | |
| "special_tokens_map_file": "/home/runner/.cache/huggingface/hub/models--funnel-transformer--small/snapshots/ff0f4c11e46720ca10aa2dd668c2c58fe00ad214/special_tokens_map.json", | |
| "strip_accents": null, | |
| "tokenize_chinese_chars": true, | |
| "tokenizer_class": "FunnelTokenizer", | |
| "unk_token": "<unk>", | |
| "wordpieces_prefix": "##" | |
| } | |