Instructions to use AnonymousNLP/pretrained-model-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AnonymousNLP/pretrained-model-2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("AnonymousNLP/pretrained-model-2") model = AutoModel.from_pretrained("AnonymousNLP/pretrained-model-2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from AnonymousNLP/pretrained-model-2: direct link, hf CLI and curl.
- Browser
- Download file 238 Bytes
-
https://huggingface.co/AnonymousNLP/pretrained-model-2/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://AnonymousNLP/pretrained-model-2/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/AnonymousNLP/pretrained-model-2/resolve/main/special_tokens_map.json
238 Bytes
| {"bos_token": "<bos>", "eos_token": "<eos>", "unk_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "pad_token": "<pad>", "additional_special_tokens": ["<system>", "<user>"]} |