Instructions to use ValkyriaLenneth/longformer_zh with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ValkyriaLenneth/longformer_zh with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="ValkyriaLenneth/longformer_zh")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("ValkyriaLenneth/longformer_zh") model = AutoModel.from_pretrained("ValkyriaLenneth/longformer_zh", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from ValkyriaLenneth/longformer_zh: direct link, hf CLI and curl.
- Browser
- Download file 112 Bytes
-
https://huggingface.co/ValkyriaLenneth/longformer_zh/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://ValkyriaLenneth/longformer_zh/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/ValkyriaLenneth/longformer_zh/resolve/main/special_tokens_map.json
112 Bytes
| {"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"} |