Instructions to use token-classifier/roBERTa-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use token-classifier/roBERTa-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="token-classifier/roBERTa-v2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("token-classifier/roBERTa-v2") model = AutoModelForTokenClassification.from_pretrained("token-classifier/roBERTa-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download training_args.bin from token-classifier/roBERTa-v2: direct link, hf CLI and curl.
- Browser
- Download file 4.03 kB
-
https://huggingface.co/token-classifier/roBERTa-v2/resolve/refs%2Fpr%2F1/training_args.bin
- Command line
-
hf download hf://token-classifier/roBERTa-v2@refs/pr/1/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/token-classifier/roBERTa-v2/resolve/refs%2Fpr%2F1/training_args.bin
4.03 kB
- Xet hash:
- cdb2c6bbb76e87ecdf376a098cd4d5996ed699fdff79d77a5baf862e73d4cf6e
- Size of remote file:
- 4.03 kB
- SHA256:
- 39aa12d85e488381487d7ec5d67c4ca9f37c095f50415203129b922a68756564
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.