ddecosmo/hw_text_dataset
Viewer • Updated • 1.2k • 30
How to use george2cool36/hw2_text_finetune_distilbert with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="george2cool36/hw2_text_finetune_distilbert") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("george2cool36/hw2_text_finetune_distilbert")
model = AutoModelForSequenceClassification.from_pretrained("george2cool36/hw2_text_finetune_distilbert")Fine-tuned DistilBERT for text classification on a classmate's HW1 dataset.
ddecosmo/hw_text_datasetTextlabel (classes: ['asu', 'bucknell', 'cmu', 'duq', 'ucsd'])distilbert-base-uncasedThis notebook used ChatGPT for scaffolding code and documentation. All dataset selection, training, evaluation, and uploads were performed by the student.