Instructions to use Jaren/EntityT5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jaren/EntityT5 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Jaren/EntityT5") model = AutoModelForSeq2SeqLM.from_pretrained("Jaren/EntityT5", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from Jaren/EntityT5: direct link, hf CLI and curl.
- Browser
- Download file 141 Bytes
-
https://huggingface.co/Jaren/EntityT5/resolve/refs%2Fpr%2F1/special_tokens_map.json
- Command line
-
hf download hf://Jaren/EntityT5@refs/pr/1/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/Jaren/EntityT5/resolve/refs%2Fpr%2F1/special_tokens_map.json
141 Bytes
| {"eos_token": "</s>", "unk_token": "<unk>", "pad_token": "<pad>", "additional_special_tokens": ["<speaker1>", "<speaker2>", "<find_entity>"]} |