Instructions to use hf-internal-testing/tiny-random-GPT2ForTokenClassification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-GPT2ForTokenClassification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="hf-internal-testing/tiny-random-GPT2ForTokenClassification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-GPT2ForTokenClassification") model = AutoModelForTokenClassification.from_pretrained("hf-internal-testing/tiny-random-GPT2ForTokenClassification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from hf-internal-testing/tiny-random-GPT2ForTokenClassification: direct link, hf CLI and curl.
- Browser
- Download file 1.67 MB
-
https://huggingface.co/hf-internal-testing/tiny-random-GPT2ForTokenClassification/resolve/bb9a17d4a1098b0e45f99492321156f5a21d64ff/pytorch_model.bin
- Command line
-
hf download hf://hf-internal-testing/tiny-random-GPT2ForTokenClassification@bb9a17d4a1098b0e45f99492321156f5a21d64ff/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/hf-internal-testing/tiny-random-GPT2ForTokenClassification/resolve/bb9a17d4a1098b0e45f99492321156f5a21d64ff/pytorch_model.bin
1.67 MB
- Xet hash:
- 354955c49d2a2fae2c3f8d65daa3d87dc6cff058940e507ae7f9ffe170339bda
- Size of remote file:
- 1.67 MB
- SHA256:
- 196c0ff3e441e1d28eeb2969bf893b14c3ecb86df6ea1190891dbad46170f21a
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.