Instructions to use michelecafagna26/gpt2-medium-finetuned-sst2-sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use michelecafagna26/gpt2-medium-finetuned-sst2-sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="michelecafagna26/gpt2-medium-finetuned-sst2-sentiment")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("michelecafagna26/gpt2-medium-finetuned-sst2-sentiment") model = AutoModelForSequenceClassification.from_pretrained("michelecafagna26/gpt2-medium-finetuned-sst2-sentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ยท
8855ff0
1
Parent(s): 78e4106
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,7 +11,7 @@ tags:
|
|
| 11 |
- text-classification
|
| 12 |
---
|
| 13 |
|
| 14 |
-
#
|
| 15 |
|
| 16 |
|
| 17 |
[OpenAI's GPT-2](https://openai.com/blog/tags/gpt-2/) medium fine-tuned on [SST-2](https://huggingface.co/datasets/st2) dataset for **Sentiment Analysis** downstream task.
|
|
|
|
| 11 |
- text-classification
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# GPT-2-medium fine-tuned for Sentiment Analysis ๐๐
|
| 15 |
|
| 16 |
|
| 17 |
[OpenAI's GPT-2](https://openai.com/blog/tags/gpt-2/) medium fine-tuned on [SST-2](https://huggingface.co/datasets/st2) dataset for **Sentiment Analysis** downstream task.
|