Text Classification
Transformers
PyTorch
Enawené-Nawé
roberta
Trained with AutoTrain
text-embeddings-inference
Instructions to use sasha/autotrain-roberta-base-imdb-1275248776 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sasha/autotrain-roberta-base-imdb-1275248776 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="sasha/autotrain-roberta-base-imdb-1275248776")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("sasha/autotrain-roberta-base-imdb-1275248776") model = AutoModelForSequenceClassification.from_pretrained("sasha/autotrain-roberta-base-imdb-1275248776", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model Trained Using AutoTrain
- Problem type: Binary Classification
- Model ID: 1275248776
- CO2 Emissions (in grams): 14.8634
Validation Metrics
- Loss: 0.240
- Accuracy: 0.903
- Precision: 0.896
- Recall: 0.913
- AUC: 0.966
- F1: 0.904
Usage
You can use cURL to access this model:
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/models/sasha/autotrain-roberta-base-imdb-1275248776
Or Python API:
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("sasha/autotrain-roberta-base-imdb-1275248776", use_auth_token=True)
tokenizer = AutoTokenizer.from_pretrained("sasha/autotrain-roberta-base-imdb-1275248776", use_auth_token=True)
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
outputs = model(**inputs)
- Downloads last month
- 11