Training in progress, epoch 1 5cf521a
Simon Graf commited on
How to use sgraf202/finetuning-sentiment-model-3000-samples with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="sgraf202/finetuning-sentiment-model-3000-samples") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("sgraf202/finetuning-sentiment-model-3000-samples")
model = AutoModelForSequenceClassification.from_pretrained("sgraf202/finetuning-sentiment-model-3000-samples", device_map="auto")