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
- Xet hash:
- e2da9497362d9ad6329030e6ed69aa5c66835d2529fff81ba507e41f57a31f03
- Size of remote file:
- 1.44 GB
- SHA256:
- 92c72391e9ee36b9ce633602a28b33bdbc8c248de47b6922d7b318712988fa6b
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.