Instructions to use ChetanFernandis/distilbert_cls-lora-IMDB with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ChetanFernandis/distilbert_cls-lora-IMDB with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ChetanFernandis/distilbert_cls-lora-IMDB")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ChetanFernandis/distilbert_cls-lora-IMDB", dtype="auto") - PEFT
How to use ChetanFernandis/distilbert_cls-lora-IMDB with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -137,7 +137,9 @@ prediction = outputs.logits.argmax(dim=-1).item()
|
|
| 137 |
label_map = {0: "NEGATIVE", 1: "POSITIVE"}
|
| 138 |
print(label_map[prediction])
|
| 139 |
|
| 140 |
-
|
|
|
|
|
|
|
| 141 |
Training Data
|
| 142 |
|
| 143 |
Dataset: IMDB Movie Reviews
|
|
|
|
| 137 |
label_map = {0: "NEGATIVE", 1: "POSITIVE"}
|
| 138 |
print(label_map[prediction])
|
| 139 |
|
| 140 |
+
---
|
| 141 |
+
|
| 142 |
+
## Training Details
|
| 143 |
Training Data
|
| 144 |
|
| 145 |
Dataset: IMDB Movie Reviews
|