Text Classification
Transformers
Safetensors
PyTorch
English
distilbert
sentiment-analysis
imdb
text-embeddings-inference
Instructions to use smd20/imdb-distilbert-sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use smd20/imdb-distilbert-sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="smd20/imdb-distilbert-sentiment")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("smd20/imdb-distilbert-sentiment") model = AutoModelForSequenceClassification.from_pretrained("smd20/imdb-distilbert-sentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -36,15 +36,3 @@ from transformers import pipeline
|
|
| 36 |
classifier = pipeline("text-classification", model="smd20/imdb-distilbert-sentiment")
|
| 37 |
result = classifier("This movie was absolutely fantastic!")
|
| 38 |
print(result)
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
Training Procedure
|
| 42 |
-
Epochs: 2
|
| 43 |
-
|
| 44 |
-
Batch Size: 16
|
| 45 |
-
|
| 46 |
-
Learning Rate: Default AdamW (5e-5)
|
| 47 |
-
|
| 48 |
-
Max Token Length: 256
|
| 49 |
-
|
| 50 |
-
Framework: PyTorch + Hugging Face Transformers
|
|
|
|
| 36 |
classifier = pipeline("text-classification", model="smd20/imdb-distilbert-sentiment")
|
| 37 |
result = classifier("This movie was absolutely fantastic!")
|
| 38 |
print(result)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|