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 ·
acef463
1
Parent(s): d0ce5a5
Adding `safetensors` variant of this model (#1)
Browse files- Adding `safetensors` variant of this model (83fb54868781c330534fbfc99af4d110fa872b64)
Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>
- model.safetensors +3 -0
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3b84956a19c002b868fc34dd7d2add19266c28f7b6c71ab7d302c57a4051272d
|
| 3 |
+
size 1444502022
|