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
Update README.md
Browse files
README.md
CHANGED
|
@@ -15,6 +15,6 @@ widget:
|
|
| 15 |
|
| 16 |
from transformers import DistilBertForSequenceClassification, Trainer, TrainingArguments
|
| 17 |
|
| 18 |
-
model = DistilBertForSequenceClassification.from_pretrained(
|
| 19 |
-
tokenizer = tokenizer.from_pretrained(
|
| 20 |
|
|
|
|
| 15 |
|
| 16 |
from transformers import DistilBertForSequenceClassification, Trainer, TrainingArguments
|
| 17 |
|
| 18 |
+
model = DistilBertForSequenceClassification.from_pretrained('./imdbsentdistilbertmodel')
|
| 19 |
+
tokenizer = tokenizer.from_pretrained('./imdbsentdistilbertmodel')
|
| 20 |
|