Instructions to use Sakil/imdbsentdistilbertmodel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sakil/imdbsentdistilbertmodel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Sakil/imdbsentdistilbertmodel")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Sakil/imdbsentdistilbertmodel") model = AutoModelForSequenceClassification.from_pretrained("Sakil/imdbsentdistilbertmodel") - Notebooks
- Google Colab
- Kaggle
- IMDBSentimentDistilBertModel:
- I have used IMDB movie review dataset to create custom model by using DistilBertForSequenceClassification.
from transformers import DistilBertForSequenceClassification, Trainer, TrainingArguments
model = DistilBertForSequenceClassification.from_pretrained('./imdbsentdistilbertmodel')
- Downloads last month
- 6