ddecosmo/hw_text_dataset
Viewer โข Updated โข 1.2k โข 22
Run george2cool36/hw2_text_finetune_distilbert on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/george2cool36/hw2_text_finetune_distilbert. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/george2cool36/hw2_text_finetune_distilbert on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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") # pip install -U transformers accelerate
# 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", device_map="auto")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.