fancyzhx/amazon_polarity
Viewer • Updated • 4M • 13.5k • 51
How to use kaustavbhattacharjee/finetuning-DistillBERT-amazon-polarity with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="kaustavbhattacharjee/finetuning-DistillBERT-amazon-polarity") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("kaustavbhattacharjee/finetuning-DistillBERT-amazon-polarity")
model = AutoModelForSequenceClassification.from_pretrained("kaustavbhattacharjee/finetuning-DistillBERT-amazon-polarity", device_map="auto")This model is a fine-tuned version of distilbert-base-uncased on Amazon Polarity dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
Base model
distilbert/distilbert-base-uncased