Instructions to use curt-tigges/gpt2-imdb-sentiment-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use curt-tigges/gpt2-imdb-sentiment-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="curt-tigges/gpt2-imdb-sentiment-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("curt-tigges/gpt2-imdb-sentiment-classifier") model = AutoModelForSequenceClassification.from_pretrained("curt-tigges/gpt2-imdb-sentiment-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from curt-tigges/gpt2-imdb-sentiment-classifier: direct link, hf CLI and curl.
- Browser
- Download file 510 MB
-
https://huggingface.co/curt-tigges/gpt2-imdb-sentiment-classifier/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://curt-tigges/gpt2-imdb-sentiment-classifier/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/curt-tigges/gpt2-imdb-sentiment-classifier/resolve/main/pytorch_model.bin
510 MB
- Xet hash:
- 72e06d2bc69416beae9938a76be3355500bd69469e6d48c5a2ad4cc5f045b917
- Size of remote file:
- 510 MB
- SHA256:
- 1471b5cc0c62ffe3f81322fd34ab9608bac6b99c65a951e17f44ae25f377189b
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.