Text Classification
Transformers
Safetensors
PEFT
English
distilbert
medical-triage
lora
healthcare
symptom-checker
natural-language-processing
academic-project
Eval Results (legacy)
text-embeddings-inference
Instructions to use cristian-untaru/lora-distilbert-medical-triage with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cristian-untaru/lora-distilbert-medical-triage with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="cristian-untaru/lora-distilbert-medical-triage")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("cristian-untaru/lora-distilbert-medical-triage") model = AutoModelForSequenceClassification.from_pretrained("cristian-untaru/lora-distilbert-medical-triage", device_map="auto") - PEFT
How to use cristian-untaru/lora-distilbert-medical-triage with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Add merged LoRA DistilBERT medical triage model
Browse files- README.md +9 -9
- model.safetensors +1 -1
- training_config.json +3 -3
README.md
CHANGED
|
@@ -34,21 +34,21 @@ The classifier predicts one of three triage labels:
|
|
| 34 |
- LoRA alpha: 32
|
| 35 |
- LoRA dropout: 0.10
|
| 36 |
- Max sequence length: 128
|
| 37 |
-
- Epochs:
|
| 38 |
- Best checkpoint selected by validation macro F1
|
| 39 |
|
| 40 |
## Test metrics
|
| 41 |
|
| 42 |
```json
|
| 43 |
{
|
| 44 |
-
"eval_loss": 0.
|
| 45 |
-
"eval_accuracy": 0.
|
| 46 |
-
"eval_precision": 0.
|
| 47 |
-
"eval_recall": 0.
|
| 48 |
-
"eval_f1": 0.
|
| 49 |
-
"eval_auc": 0.
|
| 50 |
-
"eval_specificity": 0.
|
| 51 |
-
"eval_iou": 0.
|
| 52 |
}
|
| 53 |
```
|
| 54 |
|
|
|
|
| 34 |
- LoRA alpha: 32
|
| 35 |
- LoRA dropout: 0.10
|
| 36 |
- Max sequence length: 128
|
| 37 |
+
- Epochs: 8
|
| 38 |
- Best checkpoint selected by validation macro F1
|
| 39 |
|
| 40 |
## Test metrics
|
| 41 |
|
| 42 |
```json
|
| 43 |
{
|
| 44 |
+
"eval_loss": 0.5353153944015503,
|
| 45 |
+
"eval_accuracy": 0.8491,
|
| 46 |
+
"eval_precision": 0.849,
|
| 47 |
+
"eval_recall": 0.849,
|
| 48 |
+
"eval_f1": 0.849,
|
| 49 |
+
"eval_auc": 0.9197,
|
| 50 |
+
"eval_specificity": 0.924,
|
| 51 |
+
"eval_iou": 0.7408
|
| 52 |
}
|
| 53 |
```
|
| 54 |
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 267835644
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b21e87abb29a24ce2472f4a0a8528fd7f2b59a904462db957c8510dd666dd2d4
|
| 3 |
size 267835644
|
training_config.json
CHANGED
|
@@ -15,14 +15,14 @@
|
|
| 15 |
],
|
| 16 |
"num_labels": 3,
|
| 17 |
"max_length": 128,
|
| 18 |
-
"num_train_epochs":
|
| 19 |
-
"learning_rate": 0.
|
| 20 |
"batch_size_train": 16,
|
| 21 |
"batch_size_eval": 32,
|
| 22 |
"weight_decay": 0.01,
|
| 23 |
"warmup_ratio": 0.1,
|
| 24 |
"fp16": true,
|
| 25 |
-
"early_stopping_patience":
|
| 26 |
"metric_for_best_model": "f1",
|
| 27 |
"train_size": 490,
|
| 28 |
"validation_size": 105,
|
|
|
|
| 15 |
],
|
| 16 |
"num_labels": 3,
|
| 17 |
"max_length": 128,
|
| 18 |
+
"num_train_epochs": 8,
|
| 19 |
+
"learning_rate": 0.0002,
|
| 20 |
"batch_size_train": 16,
|
| 21 |
"batch_size_eval": 32,
|
| 22 |
"weight_decay": 0.01,
|
| 23 |
"warmup_ratio": 0.1,
|
| 24 |
"fp16": true,
|
| 25 |
+
"early_stopping_patience": 3,
|
| 26 |
"metric_for_best_model": "f1",
|
| 27 |
"train_size": 490,
|
| 28 |
"validation_size": 105,
|