Text Classification
Transformers
Safetensors
English
deberta-v2
multilabel-classification
deberta-v3
opp115
text-embeddings-inference
Instructions to use Hacktrix-121/deberta-v3-base-opp115-multilabel-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hacktrix-121/deberta-v3-base-opp115-multilabel-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Hacktrix-121/deberta-v3-base-opp115-multilabel-v2")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Hacktrix-121/deberta-v3-base-opp115-multilabel-v2") model = AutoModelForSequenceClassification.from_pretrained("Hacktrix-121/deberta-v3-base-opp115-multilabel-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add complete model card with metrics
Browse files
README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
language: en
|
| 4 |
+
library_name: transformers
|
| 5 |
+
tags:
|
| 6 |
+
- multilabel-classification
|
| 7 |
+
- deberta-v3
|
| 8 |
+
- opp115
|
| 9 |
+
metrics:
|
| 10 |
+
- macro_f1
|
| 11 |
+
- micro_f1
|
| 12 |
+
- weighted_f1
|
| 13 |
+
- macro_precision
|
| 14 |
+
- macro_recall
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# DeBERTaV3 Base — OPP115 Multilabel (v2)
|
| 18 |
+
|
| 19 |
+
Fine-tuned DeBERTaV3 model for multi-label classification on the OPP115 dataset.
|
| 20 |
+
|
| 21 |
+
## 📊 Evaluation Metrics
|
| 22 |
+
|
| 23 |
+
| Metric | Score |
|
| 24 |
+
|--------|--------|
|
| 25 |
+
| **Macro F1** | 0.8092 |
|
| 26 |
+
| **Micro F1** | 0.8565 |
|
| 27 |
+
| **Weighted F1** | 0.8531 |
|
| 28 |
+
| **Macro Precision** | 0.8657 |
|
| 29 |
+
| **Macro Recall** | 0.7697 |
|
| 30 |
+
|
| 31 |
+
## 🧪 Usage
|
| 32 |
+
|
| 33 |
+
```python
|
| 34 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 35 |
+
import torch
|
| 36 |
+
|
| 37 |
+
model = AutoModelForSequenceClassification.from_pretrained("Hacktrix-121/deberta-v3-base-opp115-multilabel-v2")
|
| 38 |
+
tokenizer = AutoTokenizer.from_pretrained("Hacktrix-121/deberta-v3-base-opp115-multilabel-v2")
|
| 39 |
+
|
| 40 |
+
text = "Your input text here"
|
| 41 |
+
inputs = tokenizer(text, return_tensors="pt")
|
| 42 |
+
logits = model(**inputs).logits
|
| 43 |
+
probs = torch.sigmoid(logits)
|