Instructions to use kiddothe2b/longformer-mini-1024 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kiddothe2b/longformer-mini-1024 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="kiddothe2b/longformer-mini-1024")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("kiddothe2b/longformer-mini-1024") model = AutoModelForMaskedLM.from_pretrained("kiddothe2b/longformer-mini-1024", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from kiddothe2b/longformer-mini-1024: direct link, hf CLI and curl.
- Browser
- Download file 373 Bytes
-
https://huggingface.co/kiddothe2b/longformer-mini-1024/resolve/02f8e3bb72df7ac5243d36a0ea7fc9add5d411c3/tokenizer_config.json
- Command line
-
hf download hf://kiddothe2b/longformer-mini-1024@02f8e3bb72df7ac5243d36a0ea7fc9add5d411c3/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/kiddothe2b/longformer-mini-1024/resolve/02f8e3bb72df7ac5243d36a0ea7fc9add5d411c3/tokenizer_config.json
373 Bytes
| {"do_lower_case": true, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 1024, "special_tokens_map_file": null, "name_or_path": "data/PLMs/longformer", "do_basic_tokenize": true, "never_split": null, "tokenizer_class": "BertTokenizer"} |