Instructions to use optimum/tiny_random_bert_neuron with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use optimum/tiny_random_bert_neuron with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="optimum/tiny_random_bert_neuron")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("optimum/tiny_random_bert_neuron") model = AutoModel.from_pretrained("optimum/tiny_random_bert_neuron", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download added_tokens.json from optimum/tiny_random_bert_neuron: direct link, hf CLI and curl.
- Browser
- Download file 74 Bytes
-
https://huggingface.co/optimum/tiny_random_bert_neuron/resolve/9cf788962ade00a16df4a8a2ebc35a2fa1fafccd/added_tokens.json
- Command line
-
hf download hf://optimum/tiny_random_bert_neuron@9cf788962ade00a16df4a8a2ebc35a2fa1fafccd/added_tokens.json
-
curl -L -o added_tokens.json https://huggingface.co/optimum/tiny_random_bert_neuron/resolve/9cf788962ade00a16df4a8a2ebc35a2fa1fafccd/added_tokens.json
74 Bytes
| { | |
| "[CLS]": 2, | |
| "[MASK]": 4, | |
| "[PAD]": 0, | |
| "[SEP]": 3, | |
| "[UNK]": 1 | |
| } | |