fancyzhx/ag_news
Viewer • Updated • 128k • 107k • 190
How to use imamassi/fine-tuning-learning with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="imamassi/fine-tuning-learning") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("imamassi/fine-tuning-learning")
model = AutoModelForSequenceClassification.from_pretrained("imamassi/fine-tuning-learning")Label 0: World
Label 1: Sports
Label 2: Business
Label 3: Sci/Tech
Epoch Training Loss Validation Loss 0 No log 0.199586
Fine tuned using bert-base-uncased model and ag_news dataset