Instructions to use zbigi/gpt2-sentiment_analysis with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use zbigi/gpt2-sentiment_analysis with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("openai-community/gpt2") model = PeftModel.from_pretrained(base_model, "zbigi/gpt2-sentiment_analysis") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from zbigi/gpt2-sentiment_analysis: direct link, hf CLI and curl.
- Browser
- Download file 2.11 MB
-
https://huggingface.co/zbigi/gpt2-sentiment_analysis/resolve/main/tokenizer.json
- Command line
-
hf download hf://zbigi/gpt2-sentiment_analysis/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/zbigi/gpt2-sentiment_analysis/resolve/main/tokenizer.json
2.11 MB
File too large to display, you can check the raw version instead.