Instructions to use facebook/data2vec-text-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/data2vec-text-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="facebook/data2vec-text-base")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("facebook/data2vec-text-base") model = AutoModel.from_pretrained("facebook/data2vec-text-base", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from facebook/data2vec-text-base: direct link, hf CLI and curl.
- Browser
- Download file 772 Bytes
-
https://huggingface.co/facebook/data2vec-text-base/resolve/2ab9480c456bbc67d0964bd68c190beb9dae2f49/special_tokens_map.json
- Command line
-
hf download hf://facebook/data2vec-text-base@2ab9480c456bbc67d0964bd68c190beb9dae2f49/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/facebook/data2vec-text-base/resolve/2ab9480c456bbc67d0964bd68c190beb9dae2f49/special_tokens_map.json
772 Bytes
| {"bos_token": {"content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "eos_token": {"content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "unk_token": {"content": "<unk>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "sep_token": {"content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "pad_token": {"content": "<pad>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "cls_token": {"content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true}} |