Text Classification
Transformers
Safetensors
English
French
bert
myocardial-infarction
biomedical
classification
pubmed
scientific-literature
medical-research
text-embeddings-inference
Instructions to use slepape/ArticleTypePrediction with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use slepape/ArticleTypePrediction with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="slepape/ArticleTypePrediction")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("slepape/ArticleTypePrediction") model = AutoModelForSequenceClassification.from_pretrained("slepape/ArticleTypePrediction", device_map="auto") - Notebooks
- Google Colab
- Kaggle
🚀 Initial model upload - ArticleTypePredictionImproved
Browse files- .DS_Store +0 -0
- .gitattributes +1 -0
- README.md +109 -0
- checkpoint-2000/config.json +47 -0
- checkpoint-2000/model.safetensors +3 -0
- checkpoint-2000/optimizer.pt +3 -0
- checkpoint-2000/rng_state.pth +3 -0
- checkpoint-2000/scheduler.pt +3 -0
- checkpoint-2000/trainer_state.json +201 -0
- checkpoint-2000/training_args.bin +3 -0
- checkpoint-4000/config.json +47 -0
- checkpoint-4000/model.safetensors +3 -0
- checkpoint-4000/optimizer.pt +3 -0
- checkpoint-4000/rng_state.pth +3 -0
- checkpoint-4000/scheduler.pt +3 -0
- checkpoint-4000/trainer_state.json +359 -0
- checkpoint-4000/training_args.bin +3 -0
- config.json +47 -0
- confusion_matrix.png +3 -0
- evaluation_results.json +105 -0
- label_mapping.json +11 -0
- model.safetensors +3 -0
- special_tokens_map.json +37 -0
- tokenizer.json +0 -0
- tokenizer_config.json +65 -0
- training_args.bin +3 -0
- training_config.json +35 -0
- vocab.txt +0 -0
.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
confusion_matrix.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- fr
|
| 6 |
+
tags:
|
| 7 |
+
- covid-19
|
| 8 |
+
- biomedical
|
| 9 |
+
- classification
|
| 10 |
+
- pubmed
|
| 11 |
+
- scientific-literature
|
| 12 |
+
datasets:
|
| 13 |
+
- custom-covid19-publications
|
| 14 |
+
metrics:
|
| 15 |
+
- accuracy
|
| 16 |
+
- f1
|
| 17 |
+
library_name: transformers
|
| 18 |
+
pipeline_tag: text-classification
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# ArticleTypePredictionImproved - COVID-19 Publication Classifier
|
| 22 |
+
|
| 23 |
+
## Description
|
| 24 |
+
|
| 25 |
+
Ce modèle est un classificateur fine-tuné et optimisé spécialement pour identifier le type de publications scientifiques COVID-19.
|
| 26 |
+
Il est basé sur PubMedBERT et a été entraîné sur un dataset équilibré de publications COVID-19 provenant de PubMed avec des techniques d'optimisation avancées.
|
| 27 |
+
|
| 28 |
+
## Performance
|
| 29 |
+
|
| 30 |
+
- **Accuracy**: 93.80%
|
| 31 |
+
- **F1-Score**: 93.77%
|
| 32 |
+
- **Meilleur modèle**: checkpoint-2000
|
| 33 |
+
|
| 34 |
+
## Classes supportées
|
| 35 |
+
|
| 36 |
+
Le modèle peut classifier 9 types de publications :
|
| 37 |
+
|
| 38 |
+
0. **CASE_REPORTS** - Rapports de cas
|
| 39 |
+
1. **COMMENT** - Commentaires
|
| 40 |
+
2. **EDITORIAL** - Éditoriaux
|
| 41 |
+
3. **GUIDELINES** - Directives cliniques
|
| 42 |
+
4. **META_ANALYSIS** - Méta-analyses
|
| 43 |
+
5. **PROSPECTIVE** - Études prospectives
|
| 44 |
+
6. **RCT** - Essais contrôlés randomisés
|
| 45 |
+
7. **RETROSPECTIVE** - Études rétrospectives
|
| 46 |
+
8. **REVIEW** - Revues de littérature
|
| 47 |
+
|
| 48 |
+
## Utilisation
|
| 49 |
+
|
| 50 |
+
```python
|
| 51 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 52 |
+
import torch
|
| 53 |
+
|
| 54 |
+
# Charger le modèle
|
| 55 |
+
model_name = "slepape/ArticleTypePredictionImproved"
|
| 56 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 57 |
+
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
| 58 |
+
|
| 59 |
+
# Préparer le texte (titre + abstract)
|
| 60 |
+
title = "High-Flow Nasal Cannula Oxygen Therapy in COVID-19 Patients"
|
| 61 |
+
abstract = "This study evaluates the effectiveness of HFNC in COVID-19 patients..."
|
| 62 |
+
text = f"[TITLE] {title} [SEP] [ABSTRACT] {abstract}"
|
| 63 |
+
|
| 64 |
+
# Prédiction
|
| 65 |
+
inputs = tokenizer(text, return_tensors="pt", max_length=512, truncation=True, padding=True)
|
| 66 |
+
with torch.no_grad():
|
| 67 |
+
outputs = model(**inputs)
|
| 68 |
+
predictions = torch.softmax(outputs.logits, dim=-1)
|
| 69 |
+
predicted_class = torch.argmax(predictions, dim=-1).item()
|
| 70 |
+
|
| 71 |
+
# Mapping des classes
|
| 72 |
+
class_names = [
|
| 73 |
+
"CASE_REPORTS", "COMMENT", "EDITORIAL", "GUIDELINES",
|
| 74 |
+
"META_ANALYSIS", "PROSPECTIVE", "RCT", "RETROSPECTIVE", "REVIEW"
|
| 75 |
+
]
|
| 76 |
+
|
| 77 |
+
print(f"Type de publication prédit: {class_names[predicted_class]}")
|
| 78 |
+
print(f"Confiance: {predictions[0][predicted_class]:.3f}")
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
## Entraînement
|
| 82 |
+
|
| 83 |
+
- **Modèle de base**: microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract-fulltext
|
| 84 |
+
- **Dataset**: Publications COVID-19 équilibrées (9 classes)
|
| 85 |
+
- **Technique**: Fine-tuning avec optimisation des hyperparamètres
|
| 86 |
+
- **Combinaison**: Titre + Abstract avec tokens spéciaux [TITLE], [SEP], [ABSTRACT]
|
| 87 |
+
|
| 88 |
+
## Évaluation
|
| 89 |
+
|
| 90 |
+
Le modèle a été testé sur plusieurs types de publications COVID-19 avec d'excellents résultats :
|
| 91 |
+
- RCT: 100% de précision
|
| 92 |
+
- Confiance >90% sur 96% des prédictions
|
| 93 |
+
- Classification équilibrée sur toutes les classes
|
| 94 |
+
|
| 95 |
+
## Limitations
|
| 96 |
+
|
| 97 |
+
- Spécialisé pour les publications COVID-19
|
| 98 |
+
- Optimisé pour des textes en anglais (titres + abstracts PubMed)
|
| 99 |
+
- Performance optimale avec la structure [TITLE] ... [SEP] [ABSTRACT] ...
|
| 100 |
+
|
| 101 |
+
## Citation
|
| 102 |
+
|
| 103 |
+
Si vous utilisez ce modèle, merci de citer :
|
| 104 |
+
|
| 105 |
+
```
|
| 106 |
+
ArticleTypePredictionImproved - COVID-19 Publication Type Classifier
|
| 107 |
+
Optimized fine-tuned PubMedBERT for COVID-19 scientific literature classification
|
| 108 |
+
2024
|
| 109 |
+
```
|
checkpoint-2000/config.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"BertForSequenceClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"classifier_dropout": null,
|
| 7 |
+
"hidden_act": "gelu",
|
| 8 |
+
"hidden_dropout_prob": 0.1,
|
| 9 |
+
"hidden_size": 768,
|
| 10 |
+
"id2label": {
|
| 11 |
+
"0": "CASE_REPORT",
|
| 12 |
+
"1": "COMMENT",
|
| 13 |
+
"2": "EDITORIAL",
|
| 14 |
+
"3": "GUIDELINES",
|
| 15 |
+
"4": "META_ANALYSIS",
|
| 16 |
+
"5": "PROSPECTIVE",
|
| 17 |
+
"6": "RCT",
|
| 18 |
+
"7": "RETROSPECTIVE",
|
| 19 |
+
"8": "REVIEW"
|
| 20 |
+
},
|
| 21 |
+
"initializer_range": 0.02,
|
| 22 |
+
"intermediate_size": 3072,
|
| 23 |
+
"label2id": {
|
| 24 |
+
"CASE_REPORT": 0,
|
| 25 |
+
"COMMENT": 1,
|
| 26 |
+
"EDITORIAL": 2,
|
| 27 |
+
"GUIDELINES": 3,
|
| 28 |
+
"META_ANALYSIS": 4,
|
| 29 |
+
"PROSPECTIVE": 5,
|
| 30 |
+
"RCT": 6,
|
| 31 |
+
"RETROSPECTIVE": 7,
|
| 32 |
+
"REVIEW": 8
|
| 33 |
+
},
|
| 34 |
+
"layer_norm_eps": 1e-12,
|
| 35 |
+
"max_position_embeddings": 512,
|
| 36 |
+
"model_type": "bert",
|
| 37 |
+
"num_attention_heads": 12,
|
| 38 |
+
"num_hidden_layers": 12,
|
| 39 |
+
"pad_token_id": 0,
|
| 40 |
+
"position_embedding_type": "absolute",
|
| 41 |
+
"problem_type": "single_label_classification",
|
| 42 |
+
"torch_dtype": "float32",
|
| 43 |
+
"transformers_version": "4.55.4",
|
| 44 |
+
"type_vocab_size": 2,
|
| 45 |
+
"use_cache": true,
|
| 46 |
+
"vocab_size": 30522
|
| 47 |
+
}
|
checkpoint-2000/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8d5c5c3708cdfa9e9a61dfaa2e11b5a29c598444694702ceba0bab2ee4bd39b4
|
| 3 |
+
size 437980180
|
checkpoint-2000/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b66a9203d34f39e2fd46253120746b02bac6f77c0f5ae40aa39d04b0588cea43
|
| 3 |
+
size 876076171
|
checkpoint-2000/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dba4fde4ee04d2f472bb4dea96a48e8fdf7891d2b0694a8f012e8133a2e176ae
|
| 3 |
+
size 14455
|
checkpoint-2000/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a9eacf1e72c39a718e9cbac1ea19006f28f483695284b1b4e01710c3f626b127
|
| 3 |
+
size 1465
|
checkpoint-2000/trainer_state.json
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": 2000,
|
| 3 |
+
"best_metric": 0.9388425925925926,
|
| 4 |
+
"best_model_checkpoint": "myocardial_pubmedbert_mps_final_v3/checkpoint-2000",
|
| 5 |
+
"epoch": 0.37037037037037035,
|
| 6 |
+
"eval_steps": 1000,
|
| 7 |
+
"global_step": 2000,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"epoch": 0.018518518518518517,
|
| 14 |
+
"grad_norm": 2.475142478942871,
|
| 15 |
+
"learning_rate": 9.9e-08,
|
| 16 |
+
"loss": 0.1439,
|
| 17 |
+
"step": 100
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.037037037037037035,
|
| 21 |
+
"grad_norm": 1.806380271911621,
|
| 22 |
+
"learning_rate": 1.99e-07,
|
| 23 |
+
"loss": 0.1511,
|
| 24 |
+
"step": 200
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 0.05555555555555555,
|
| 28 |
+
"grad_norm": 1.5451908111572266,
|
| 29 |
+
"learning_rate": 2.9899999999999996e-07,
|
| 30 |
+
"loss": 0.1491,
|
| 31 |
+
"step": 300
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"epoch": 0.07407407407407407,
|
| 35 |
+
"grad_norm": 2.704113483428955,
|
| 36 |
+
"learning_rate": 3.99e-07,
|
| 37 |
+
"loss": 0.153,
|
| 38 |
+
"step": 400
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"epoch": 0.09259259259259259,
|
| 42 |
+
"grad_norm": 4.833273887634277,
|
| 43 |
+
"learning_rate": 4.99e-07,
|
| 44 |
+
"loss": 0.149,
|
| 45 |
+
"step": 500
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"epoch": 0.1111111111111111,
|
| 49 |
+
"grad_norm": 1.2810375690460205,
|
| 50 |
+
"learning_rate": 5.989999999999999e-07,
|
| 51 |
+
"loss": 0.1582,
|
| 52 |
+
"step": 600
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"epoch": 0.12962962962962962,
|
| 56 |
+
"grad_norm": 9.05034065246582,
|
| 57 |
+
"learning_rate": 6.989999999999999e-07,
|
| 58 |
+
"loss": 0.1711,
|
| 59 |
+
"step": 700
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"epoch": 0.14814814814814814,
|
| 63 |
+
"grad_norm": 7.097633361816406,
|
| 64 |
+
"learning_rate": 7.99e-07,
|
| 65 |
+
"loss": 0.1419,
|
| 66 |
+
"step": 800
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"epoch": 0.16666666666666666,
|
| 70 |
+
"grad_norm": 10.607206344604492,
|
| 71 |
+
"learning_rate": 8.99e-07,
|
| 72 |
+
"loss": 0.1298,
|
| 73 |
+
"step": 900
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"epoch": 0.18518518518518517,
|
| 77 |
+
"grad_norm": 1.5295910835266113,
|
| 78 |
+
"learning_rate": 9.989999999999999e-07,
|
| 79 |
+
"loss": 0.1401,
|
| 80 |
+
"step": 1000
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"epoch": 0.18518518518518517,
|
| 84 |
+
"eval_accuracy": 0.9386111111111111,
|
| 85 |
+
"eval_loss": 0.1337883323431015,
|
| 86 |
+
"eval_runtime": 906.5981,
|
| 87 |
+
"eval_samples_per_second": 47.651,
|
| 88 |
+
"eval_steps_per_second": 1.489,
|
| 89 |
+
"step": 1000
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"epoch": 0.2037037037037037,
|
| 93 |
+
"grad_norm": 7.718695163726807,
|
| 94 |
+
"learning_rate": 9.98132075471698e-07,
|
| 95 |
+
"loss": 0.1463,
|
| 96 |
+
"step": 1100
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"epoch": 0.2222222222222222,
|
| 100 |
+
"grad_norm": 2.2934257984161377,
|
| 101 |
+
"learning_rate": 9.962452830188678e-07,
|
| 102 |
+
"loss": 0.1505,
|
| 103 |
+
"step": 1200
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"epoch": 0.24074074074074073,
|
| 107 |
+
"grad_norm": 4.265007495880127,
|
| 108 |
+
"learning_rate": 9.943584905660378e-07,
|
| 109 |
+
"loss": 0.1451,
|
| 110 |
+
"step": 1300
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"epoch": 0.25925925925925924,
|
| 114 |
+
"grad_norm": 8.984698295593262,
|
| 115 |
+
"learning_rate": 9.924716981132075e-07,
|
| 116 |
+
"loss": 0.1412,
|
| 117 |
+
"step": 1400
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"epoch": 0.2777777777777778,
|
| 121 |
+
"grad_norm": 6.165067672729492,
|
| 122 |
+
"learning_rate": 9.905849056603772e-07,
|
| 123 |
+
"loss": 0.1354,
|
| 124 |
+
"step": 1500
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"epoch": 0.2962962962962963,
|
| 128 |
+
"grad_norm": 14.949434280395508,
|
| 129 |
+
"learning_rate": 9.886981132075472e-07,
|
| 130 |
+
"loss": 0.1305,
|
| 131 |
+
"step": 1600
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"epoch": 0.3148148148148148,
|
| 135 |
+
"grad_norm": 5.017131805419922,
|
| 136 |
+
"learning_rate": 9.86811320754717e-07,
|
| 137 |
+
"loss": 0.147,
|
| 138 |
+
"step": 1700
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"epoch": 0.3333333333333333,
|
| 142 |
+
"grad_norm": 6.54106330871582,
|
| 143 |
+
"learning_rate": 9.849245283018867e-07,
|
| 144 |
+
"loss": 0.1435,
|
| 145 |
+
"step": 1800
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"epoch": 0.35185185185185186,
|
| 149 |
+
"grad_norm": 10.726076126098633,
|
| 150 |
+
"learning_rate": 9.830377358490567e-07,
|
| 151 |
+
"loss": 0.1347,
|
| 152 |
+
"step": 1900
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"epoch": 0.37037037037037035,
|
| 156 |
+
"grad_norm": 7.49448299407959,
|
| 157 |
+
"learning_rate": 9.811509433962264e-07,
|
| 158 |
+
"loss": 0.1539,
|
| 159 |
+
"step": 2000
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"epoch": 0.37037037037037035,
|
| 163 |
+
"eval_accuracy": 0.9388425925925926,
|
| 164 |
+
"eval_loss": 0.13230355083942413,
|
| 165 |
+
"eval_runtime": 839.9501,
|
| 166 |
+
"eval_samples_per_second": 51.432,
|
| 167 |
+
"eval_steps_per_second": 1.607,
|
| 168 |
+
"step": 2000
|
| 169 |
+
}
|
| 170 |
+
],
|
| 171 |
+
"logging_steps": 100,
|
| 172 |
+
"max_steps": 54000,
|
| 173 |
+
"num_input_tokens_seen": 0,
|
| 174 |
+
"num_train_epochs": 10,
|
| 175 |
+
"save_steps": 1000,
|
| 176 |
+
"stateful_callbacks": {
|
| 177 |
+
"EarlyStoppingCallback": {
|
| 178 |
+
"args": {
|
| 179 |
+
"early_stopping_patience": 2,
|
| 180 |
+
"early_stopping_threshold": 0.0
|
| 181 |
+
},
|
| 182 |
+
"attributes": {
|
| 183 |
+
"early_stopping_patience_counter": 0
|
| 184 |
+
}
|
| 185 |
+
},
|
| 186 |
+
"TrainerControl": {
|
| 187 |
+
"args": {
|
| 188 |
+
"should_epoch_stop": false,
|
| 189 |
+
"should_evaluate": false,
|
| 190 |
+
"should_log": false,
|
| 191 |
+
"should_save": true,
|
| 192 |
+
"should_training_stop": false
|
| 193 |
+
},
|
| 194 |
+
"attributes": {}
|
| 195 |
+
}
|
| 196 |
+
},
|
| 197 |
+
"total_flos": 1.6840165883904e+16,
|
| 198 |
+
"train_batch_size": 32,
|
| 199 |
+
"trial_name": null,
|
| 200 |
+
"trial_params": null
|
| 201 |
+
}
|
checkpoint-2000/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:362c2471581c039504f3a963a573d5cf7219913796a671892f8544e81b705cfd
|
| 3 |
+
size 5713
|
checkpoint-4000/config.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"BertForSequenceClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"classifier_dropout": null,
|
| 7 |
+
"hidden_act": "gelu",
|
| 8 |
+
"hidden_dropout_prob": 0.1,
|
| 9 |
+
"hidden_size": 768,
|
| 10 |
+
"id2label": {
|
| 11 |
+
"0": "CASE_REPORT",
|
| 12 |
+
"1": "COMMENT",
|
| 13 |
+
"2": "EDITORIAL",
|
| 14 |
+
"3": "GUIDELINES",
|
| 15 |
+
"4": "META_ANALYSIS",
|
| 16 |
+
"5": "PROSPECTIVE",
|
| 17 |
+
"6": "RCT",
|
| 18 |
+
"7": "RETROSPECTIVE",
|
| 19 |
+
"8": "REVIEW"
|
| 20 |
+
},
|
| 21 |
+
"initializer_range": 0.02,
|
| 22 |
+
"intermediate_size": 3072,
|
| 23 |
+
"label2id": {
|
| 24 |
+
"CASE_REPORT": 0,
|
| 25 |
+
"COMMENT": 1,
|
| 26 |
+
"EDITORIAL": 2,
|
| 27 |
+
"GUIDELINES": 3,
|
| 28 |
+
"META_ANALYSIS": 4,
|
| 29 |
+
"PROSPECTIVE": 5,
|
| 30 |
+
"RCT": 6,
|
| 31 |
+
"RETROSPECTIVE": 7,
|
| 32 |
+
"REVIEW": 8
|
| 33 |
+
},
|
| 34 |
+
"layer_norm_eps": 1e-12,
|
| 35 |
+
"max_position_embeddings": 512,
|
| 36 |
+
"model_type": "bert",
|
| 37 |
+
"num_attention_heads": 12,
|
| 38 |
+
"num_hidden_layers": 12,
|
| 39 |
+
"pad_token_id": 0,
|
| 40 |
+
"position_embedding_type": "absolute",
|
| 41 |
+
"problem_type": "single_label_classification",
|
| 42 |
+
"torch_dtype": "float32",
|
| 43 |
+
"transformers_version": "4.55.4",
|
| 44 |
+
"type_vocab_size": 2,
|
| 45 |
+
"use_cache": true,
|
| 46 |
+
"vocab_size": 30522
|
| 47 |
+
}
|
checkpoint-4000/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:12374cf2d9664e7b18f8441d22ebb3d4fdd87418489116e8d9944e378959f4ff
|
| 3 |
+
size 437980180
|
checkpoint-4000/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c6b9b94786801649429d988aa2cd717776e7f215638b2537db536033065d5c42
|
| 3 |
+
size 876076171
|
checkpoint-4000/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:71b1e5ce7a350c52ef18aceb7dce8450b476076d04fd51abbdfbe08e044226c5
|
| 3 |
+
size 14455
|
checkpoint-4000/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:001f3626f1d9238e748ea3a7d088d8a4ad01e1e409314110838f01ca1f59b98f
|
| 3 |
+
size 1465
|
checkpoint-4000/trainer_state.json
ADDED
|
@@ -0,0 +1,359 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": 2000,
|
| 3 |
+
"best_metric": 0.9388425925925926,
|
| 4 |
+
"best_model_checkpoint": "myocardial_pubmedbert_mps_final_v3/checkpoint-2000",
|
| 5 |
+
"epoch": 0.7407407407407407,
|
| 6 |
+
"eval_steps": 1000,
|
| 7 |
+
"global_step": 4000,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"epoch": 0.018518518518518517,
|
| 14 |
+
"grad_norm": 2.475142478942871,
|
| 15 |
+
"learning_rate": 9.9e-08,
|
| 16 |
+
"loss": 0.1439,
|
| 17 |
+
"step": 100
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.037037037037037035,
|
| 21 |
+
"grad_norm": 1.806380271911621,
|
| 22 |
+
"learning_rate": 1.99e-07,
|
| 23 |
+
"loss": 0.1511,
|
| 24 |
+
"step": 200
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 0.05555555555555555,
|
| 28 |
+
"grad_norm": 1.5451908111572266,
|
| 29 |
+
"learning_rate": 2.9899999999999996e-07,
|
| 30 |
+
"loss": 0.1491,
|
| 31 |
+
"step": 300
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"epoch": 0.07407407407407407,
|
| 35 |
+
"grad_norm": 2.704113483428955,
|
| 36 |
+
"learning_rate": 3.99e-07,
|
| 37 |
+
"loss": 0.153,
|
| 38 |
+
"step": 400
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"epoch": 0.09259259259259259,
|
| 42 |
+
"grad_norm": 4.833273887634277,
|
| 43 |
+
"learning_rate": 4.99e-07,
|
| 44 |
+
"loss": 0.149,
|
| 45 |
+
"step": 500
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"epoch": 0.1111111111111111,
|
| 49 |
+
"grad_norm": 1.2810375690460205,
|
| 50 |
+
"learning_rate": 5.989999999999999e-07,
|
| 51 |
+
"loss": 0.1582,
|
| 52 |
+
"step": 600
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"epoch": 0.12962962962962962,
|
| 56 |
+
"grad_norm": 9.05034065246582,
|
| 57 |
+
"learning_rate": 6.989999999999999e-07,
|
| 58 |
+
"loss": 0.1711,
|
| 59 |
+
"step": 700
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"epoch": 0.14814814814814814,
|
| 63 |
+
"grad_norm": 7.097633361816406,
|
| 64 |
+
"learning_rate": 7.99e-07,
|
| 65 |
+
"loss": 0.1419,
|
| 66 |
+
"step": 800
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"epoch": 0.16666666666666666,
|
| 70 |
+
"grad_norm": 10.607206344604492,
|
| 71 |
+
"learning_rate": 8.99e-07,
|
| 72 |
+
"loss": 0.1298,
|
| 73 |
+
"step": 900
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"epoch": 0.18518518518518517,
|
| 77 |
+
"grad_norm": 1.5295910835266113,
|
| 78 |
+
"learning_rate": 9.989999999999999e-07,
|
| 79 |
+
"loss": 0.1401,
|
| 80 |
+
"step": 1000
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"epoch": 0.18518518518518517,
|
| 84 |
+
"eval_accuracy": 0.9386111111111111,
|
| 85 |
+
"eval_loss": 0.1337883323431015,
|
| 86 |
+
"eval_runtime": 906.5981,
|
| 87 |
+
"eval_samples_per_second": 47.651,
|
| 88 |
+
"eval_steps_per_second": 1.489,
|
| 89 |
+
"step": 1000
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"epoch": 0.2037037037037037,
|
| 93 |
+
"grad_norm": 7.718695163726807,
|
| 94 |
+
"learning_rate": 9.98132075471698e-07,
|
| 95 |
+
"loss": 0.1463,
|
| 96 |
+
"step": 1100
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"epoch": 0.2222222222222222,
|
| 100 |
+
"grad_norm": 2.2934257984161377,
|
| 101 |
+
"learning_rate": 9.962452830188678e-07,
|
| 102 |
+
"loss": 0.1505,
|
| 103 |
+
"step": 1200
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"epoch": 0.24074074074074073,
|
| 107 |
+
"grad_norm": 4.265007495880127,
|
| 108 |
+
"learning_rate": 9.943584905660378e-07,
|
| 109 |
+
"loss": 0.1451,
|
| 110 |
+
"step": 1300
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"epoch": 0.25925925925925924,
|
| 114 |
+
"grad_norm": 8.984698295593262,
|
| 115 |
+
"learning_rate": 9.924716981132075e-07,
|
| 116 |
+
"loss": 0.1412,
|
| 117 |
+
"step": 1400
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"epoch": 0.2777777777777778,
|
| 121 |
+
"grad_norm": 6.165067672729492,
|
| 122 |
+
"learning_rate": 9.905849056603772e-07,
|
| 123 |
+
"loss": 0.1354,
|
| 124 |
+
"step": 1500
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"epoch": 0.2962962962962963,
|
| 128 |
+
"grad_norm": 14.949434280395508,
|
| 129 |
+
"learning_rate": 9.886981132075472e-07,
|
| 130 |
+
"loss": 0.1305,
|
| 131 |
+
"step": 1600
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"epoch": 0.3148148148148148,
|
| 135 |
+
"grad_norm": 5.017131805419922,
|
| 136 |
+
"learning_rate": 9.86811320754717e-07,
|
| 137 |
+
"loss": 0.147,
|
| 138 |
+
"step": 1700
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"epoch": 0.3333333333333333,
|
| 142 |
+
"grad_norm": 6.54106330871582,
|
| 143 |
+
"learning_rate": 9.849245283018867e-07,
|
| 144 |
+
"loss": 0.1435,
|
| 145 |
+
"step": 1800
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"epoch": 0.35185185185185186,
|
| 149 |
+
"grad_norm": 10.726076126098633,
|
| 150 |
+
"learning_rate": 9.830377358490567e-07,
|
| 151 |
+
"loss": 0.1347,
|
| 152 |
+
"step": 1900
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"epoch": 0.37037037037037035,
|
| 156 |
+
"grad_norm": 7.49448299407959,
|
| 157 |
+
"learning_rate": 9.811509433962264e-07,
|
| 158 |
+
"loss": 0.1539,
|
| 159 |
+
"step": 2000
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"epoch": 0.37037037037037035,
|
| 163 |
+
"eval_accuracy": 0.9388425925925926,
|
| 164 |
+
"eval_loss": 0.13230355083942413,
|
| 165 |
+
"eval_runtime": 839.9501,
|
| 166 |
+
"eval_samples_per_second": 51.432,
|
| 167 |
+
"eval_steps_per_second": 1.607,
|
| 168 |
+
"step": 2000
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"epoch": 0.3888888888888889,
|
| 172 |
+
"grad_norm": 6.918424129486084,
|
| 173 |
+
"learning_rate": 9.792641509433961e-07,
|
| 174 |
+
"loss": 0.1403,
|
| 175 |
+
"step": 2100
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"epoch": 0.4074074074074074,
|
| 179 |
+
"grad_norm": 13.528965950012207,
|
| 180 |
+
"learning_rate": 9.77377358490566e-07,
|
| 181 |
+
"loss": 0.166,
|
| 182 |
+
"step": 2200
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"epoch": 0.42592592592592593,
|
| 186 |
+
"grad_norm": 19.130395889282227,
|
| 187 |
+
"learning_rate": 9.754905660377358e-07,
|
| 188 |
+
"loss": 0.1436,
|
| 189 |
+
"step": 2300
|
| 190 |
+
},
|
| 191 |
+
{
|
| 192 |
+
"epoch": 0.4444444444444444,
|
| 193 |
+
"grad_norm": 6.962574481964111,
|
| 194 |
+
"learning_rate": 9.736037735849056e-07,
|
| 195 |
+
"loss": 0.136,
|
| 196 |
+
"step": 2400
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"epoch": 0.46296296296296297,
|
| 200 |
+
"grad_norm": 3.4236555099487305,
|
| 201 |
+
"learning_rate": 9.717169811320755e-07,
|
| 202 |
+
"loss": 0.1409,
|
| 203 |
+
"step": 2500
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"epoch": 0.48148148148148145,
|
| 207 |
+
"grad_norm": 4.90040397644043,
|
| 208 |
+
"learning_rate": 9.698301886792453e-07,
|
| 209 |
+
"loss": 0.1341,
|
| 210 |
+
"step": 2600
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"epoch": 0.5,
|
| 214 |
+
"grad_norm": 1.5071120262145996,
|
| 215 |
+
"learning_rate": 9.67943396226415e-07,
|
| 216 |
+
"loss": 0.1329,
|
| 217 |
+
"step": 2700
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"epoch": 0.5185185185185185,
|
| 221 |
+
"grad_norm": 5.357398509979248,
|
| 222 |
+
"learning_rate": 9.660566037735848e-07,
|
| 223 |
+
"loss": 0.1429,
|
| 224 |
+
"step": 2800
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"epoch": 0.5370370370370371,
|
| 228 |
+
"grad_norm": 6.533838748931885,
|
| 229 |
+
"learning_rate": 9.641698113207547e-07,
|
| 230 |
+
"loss": 0.1474,
|
| 231 |
+
"step": 2900
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"epoch": 0.5555555555555556,
|
| 235 |
+
"grad_norm": 6.865920066833496,
|
| 236 |
+
"learning_rate": 9.622830188679245e-07,
|
| 237 |
+
"loss": 0.1443,
|
| 238 |
+
"step": 3000
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"epoch": 0.5555555555555556,
|
| 242 |
+
"eval_accuracy": 0.9375462962962963,
|
| 243 |
+
"eval_loss": 0.13121084868907928,
|
| 244 |
+
"eval_runtime": 878.1919,
|
| 245 |
+
"eval_samples_per_second": 49.192,
|
| 246 |
+
"eval_steps_per_second": 1.537,
|
| 247 |
+
"step": 3000
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"epoch": 0.5740740740740741,
|
| 251 |
+
"grad_norm": 25.085233688354492,
|
| 252 |
+
"learning_rate": 9.603962264150942e-07,
|
| 253 |
+
"loss": 0.1256,
|
| 254 |
+
"step": 3100
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"epoch": 0.5925925925925926,
|
| 258 |
+
"grad_norm": 2.6678526401519775,
|
| 259 |
+
"learning_rate": 9.585094339622642e-07,
|
| 260 |
+
"loss": 0.1551,
|
| 261 |
+
"step": 3200
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"epoch": 0.6111111111111112,
|
| 265 |
+
"grad_norm": 2.9341561794281006,
|
| 266 |
+
"learning_rate": 9.56622641509434e-07,
|
| 267 |
+
"loss": 0.1515,
|
| 268 |
+
"step": 3300
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"epoch": 0.6296296296296297,
|
| 272 |
+
"grad_norm": 5.913675785064697,
|
| 273 |
+
"learning_rate": 9.547358490566037e-07,
|
| 274 |
+
"loss": 0.1433,
|
| 275 |
+
"step": 3400
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"epoch": 0.6481481481481481,
|
| 279 |
+
"grad_norm": 0.7116216421127319,
|
| 280 |
+
"learning_rate": 9.528490566037735e-07,
|
| 281 |
+
"loss": 0.1361,
|
| 282 |
+
"step": 3500
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"epoch": 0.6666666666666666,
|
| 286 |
+
"grad_norm": 0.6480686068534851,
|
| 287 |
+
"learning_rate": 9.509622641509434e-07,
|
| 288 |
+
"loss": 0.1358,
|
| 289 |
+
"step": 3600
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"epoch": 0.6851851851851852,
|
| 293 |
+
"grad_norm": 3.0181212425231934,
|
| 294 |
+
"learning_rate": 9.490754716981132e-07,
|
| 295 |
+
"loss": 0.1501,
|
| 296 |
+
"step": 3700
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"epoch": 0.7037037037037037,
|
| 300 |
+
"grad_norm": 2.563554048538208,
|
| 301 |
+
"learning_rate": 9.47188679245283e-07,
|
| 302 |
+
"loss": 0.1347,
|
| 303 |
+
"step": 3800
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"epoch": 0.7222222222222222,
|
| 307 |
+
"grad_norm": 5.095635414123535,
|
| 308 |
+
"learning_rate": 9.453018867924528e-07,
|
| 309 |
+
"loss": 0.1425,
|
| 310 |
+
"step": 3900
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"epoch": 0.7407407407407407,
|
| 314 |
+
"grad_norm": 7.968899250030518,
|
| 315 |
+
"learning_rate": 9.434150943396227e-07,
|
| 316 |
+
"loss": 0.143,
|
| 317 |
+
"step": 4000
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"epoch": 0.7407407407407407,
|
| 321 |
+
"eval_accuracy": 0.938587962962963,
|
| 322 |
+
"eval_loss": 0.13063164055347443,
|
| 323 |
+
"eval_runtime": 772.4302,
|
| 324 |
+
"eval_samples_per_second": 55.927,
|
| 325 |
+
"eval_steps_per_second": 1.748,
|
| 326 |
+
"step": 4000
|
| 327 |
+
}
|
| 328 |
+
],
|
| 329 |
+
"logging_steps": 100,
|
| 330 |
+
"max_steps": 54000,
|
| 331 |
+
"num_input_tokens_seen": 0,
|
| 332 |
+
"num_train_epochs": 10,
|
| 333 |
+
"save_steps": 1000,
|
| 334 |
+
"stateful_callbacks": {
|
| 335 |
+
"EarlyStoppingCallback": {
|
| 336 |
+
"args": {
|
| 337 |
+
"early_stopping_patience": 2,
|
| 338 |
+
"early_stopping_threshold": 0.0
|
| 339 |
+
},
|
| 340 |
+
"attributes": {
|
| 341 |
+
"early_stopping_patience_counter": 2
|
| 342 |
+
}
|
| 343 |
+
},
|
| 344 |
+
"TrainerControl": {
|
| 345 |
+
"args": {
|
| 346 |
+
"should_epoch_stop": false,
|
| 347 |
+
"should_evaluate": false,
|
| 348 |
+
"should_log": false,
|
| 349 |
+
"should_save": true,
|
| 350 |
+
"should_training_stop": true
|
| 351 |
+
},
|
| 352 |
+
"attributes": {}
|
| 353 |
+
}
|
| 354 |
+
},
|
| 355 |
+
"total_flos": 3.3680331767808e+16,
|
| 356 |
+
"train_batch_size": 32,
|
| 357 |
+
"trial_name": null,
|
| 358 |
+
"trial_params": null
|
| 359 |
+
}
|
checkpoint-4000/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:362c2471581c039504f3a963a573d5cf7219913796a671892f8544e81b705cfd
|
| 3 |
+
size 5713
|
config.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"BertForSequenceClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"classifier_dropout": null,
|
| 7 |
+
"hidden_act": "gelu",
|
| 8 |
+
"hidden_dropout_prob": 0.1,
|
| 9 |
+
"hidden_size": 768,
|
| 10 |
+
"id2label": {
|
| 11 |
+
"0": "CASE_REPORT",
|
| 12 |
+
"1": "COMMENT",
|
| 13 |
+
"2": "EDITORIAL",
|
| 14 |
+
"3": "GUIDELINES",
|
| 15 |
+
"4": "META_ANALYSIS",
|
| 16 |
+
"5": "PROSPECTIVE",
|
| 17 |
+
"6": "RCT",
|
| 18 |
+
"7": "RETROSPECTIVE",
|
| 19 |
+
"8": "REVIEW"
|
| 20 |
+
},
|
| 21 |
+
"initializer_range": 0.02,
|
| 22 |
+
"intermediate_size": 3072,
|
| 23 |
+
"label2id": {
|
| 24 |
+
"CASE_REPORT": 0,
|
| 25 |
+
"COMMENT": 1,
|
| 26 |
+
"EDITORIAL": 2,
|
| 27 |
+
"GUIDELINES": 3,
|
| 28 |
+
"META_ANALYSIS": 4,
|
| 29 |
+
"PROSPECTIVE": 5,
|
| 30 |
+
"RCT": 6,
|
| 31 |
+
"RETROSPECTIVE": 7,
|
| 32 |
+
"REVIEW": 8
|
| 33 |
+
},
|
| 34 |
+
"layer_norm_eps": 1e-12,
|
| 35 |
+
"max_position_embeddings": 512,
|
| 36 |
+
"model_type": "bert",
|
| 37 |
+
"num_attention_heads": 12,
|
| 38 |
+
"num_hidden_layers": 12,
|
| 39 |
+
"pad_token_id": 0,
|
| 40 |
+
"position_embedding_type": "absolute",
|
| 41 |
+
"problem_type": "single_label_classification",
|
| 42 |
+
"torch_dtype": "float32",
|
| 43 |
+
"transformers_version": "4.55.4",
|
| 44 |
+
"type_vocab_size": 2,
|
| 45 |
+
"use_cache": true,
|
| 46 |
+
"vocab_size": 30522
|
| 47 |
+
}
|
confusion_matrix.png
ADDED
|
Git LFS Details
|
evaluation_results.json
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"test_accuracy": 0.937962962962963,
|
| 3 |
+
"classification_report": " precision recall f1-score support\n\n CASE_REPORT 0.9657 0.9663 0.9660 6000\n COMMENT 0.8575 0.8357 0.8465 6000\n EDITORIAL 0.8386 0.8660 0.8521 6000\n GUIDELINES 0.9962 1.0000 0.9981 6000\nMETA_ANALYSIS 0.9071 0.9877 0.9457 6000\n PROSPECTIVE 0.9601 0.9898 0.9747 6000\n RCT 0.9884 0.9768 0.9826 6000\nRETROSPECTIVE 0.9857 0.9653 0.9754 6000\n REVIEW 0.9480 0.8540 0.8986 6000\n\n accuracy 0.9380 54000\n macro avg 0.9386 0.9380 0.9377 54000\n weighted avg 0.9386 0.9380 0.9377 54000\n",
|
| 4 |
+
"confusion_matrix": [
|
| 5 |
+
[
|
| 6 |
+
5798,
|
| 7 |
+
12,
|
| 8 |
+
2,
|
| 9 |
+
0,
|
| 10 |
+
1,
|
| 11 |
+
0,
|
| 12 |
+
7,
|
| 13 |
+
2,
|
| 14 |
+
178
|
| 15 |
+
],
|
| 16 |
+
[
|
| 17 |
+
0,
|
| 18 |
+
5014,
|
| 19 |
+
974,
|
| 20 |
+
12,
|
| 21 |
+
0,
|
| 22 |
+
0,
|
| 23 |
+
0,
|
| 24 |
+
0,
|
| 25 |
+
0
|
| 26 |
+
],
|
| 27 |
+
[
|
| 28 |
+
0,
|
| 29 |
+
804,
|
| 30 |
+
5196,
|
| 31 |
+
0,
|
| 32 |
+
0,
|
| 33 |
+
0,
|
| 34 |
+
0,
|
| 35 |
+
0,
|
| 36 |
+
0
|
| 37 |
+
],
|
| 38 |
+
[
|
| 39 |
+
0,
|
| 40 |
+
0,
|
| 41 |
+
0,
|
| 42 |
+
6000,
|
| 43 |
+
0,
|
| 44 |
+
0,
|
| 45 |
+
0,
|
| 46 |
+
0,
|
| 47 |
+
0
|
| 48 |
+
],
|
| 49 |
+
[
|
| 50 |
+
0,
|
| 51 |
+
5,
|
| 52 |
+
0,
|
| 53 |
+
0,
|
| 54 |
+
5926,
|
| 55 |
+
1,
|
| 56 |
+
25,
|
| 57 |
+
0,
|
| 58 |
+
43
|
| 59 |
+
],
|
| 60 |
+
[
|
| 61 |
+
0,
|
| 62 |
+
0,
|
| 63 |
+
0,
|
| 64 |
+
0,
|
| 65 |
+
0,
|
| 66 |
+
5939,
|
| 67 |
+
0,
|
| 68 |
+
61,
|
| 69 |
+
0
|
| 70 |
+
],
|
| 71 |
+
[
|
| 72 |
+
1,
|
| 73 |
+
8,
|
| 74 |
+
6,
|
| 75 |
+
0,
|
| 76 |
+
14,
|
| 77 |
+
33,
|
| 78 |
+
5861,
|
| 79 |
+
17,
|
| 80 |
+
60
|
| 81 |
+
],
|
| 82 |
+
[
|
| 83 |
+
0,
|
| 84 |
+
0,
|
| 85 |
+
0,
|
| 86 |
+
0,
|
| 87 |
+
0,
|
| 88 |
+
208,
|
| 89 |
+
0,
|
| 90 |
+
5792,
|
| 91 |
+
0
|
| 92 |
+
],
|
| 93 |
+
[
|
| 94 |
+
205,
|
| 95 |
+
4,
|
| 96 |
+
18,
|
| 97 |
+
11,
|
| 98 |
+
592,
|
| 99 |
+
5,
|
| 100 |
+
37,
|
| 101 |
+
4,
|
| 102 |
+
5124
|
| 103 |
+
]
|
| 104 |
+
]
|
| 105 |
+
}
|
label_mapping.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"CASE_REPORT": 0,
|
| 3 |
+
"COMMENT": 1,
|
| 4 |
+
"EDITORIAL": 2,
|
| 5 |
+
"GUIDELINES": 3,
|
| 6 |
+
"META_ANALYSIS": 4,
|
| 7 |
+
"PROSPECTIVE": 5,
|
| 8 |
+
"RCT": 6,
|
| 9 |
+
"RETROSPECTIVE": 7,
|
| 10 |
+
"REVIEW": 8
|
| 11 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8d5c5c3708cdfa9e9a61dfaa2e11b5a29c598444694702ceba0bab2ee4bd39b4
|
| 3 |
+
size 437980180
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cls_token": {
|
| 3 |
+
"content": "[CLS]",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"mask_token": {
|
| 10 |
+
"content": "[MASK]",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": {
|
| 17 |
+
"content": "[PAD]",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"sep_token": {
|
| 24 |
+
"content": "[SEP]",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
},
|
| 30 |
+
"unk_token": {
|
| 31 |
+
"content": "[UNK]",
|
| 32 |
+
"lstrip": false,
|
| 33 |
+
"normalized": false,
|
| 34 |
+
"rstrip": false,
|
| 35 |
+
"single_word": false
|
| 36 |
+
}
|
| 37 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"0": {
|
| 4 |
+
"content": "[PAD]",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false,
|
| 9 |
+
"special": true
|
| 10 |
+
},
|
| 11 |
+
"1": {
|
| 12 |
+
"content": "[UNK]",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"2": {
|
| 20 |
+
"content": "[CLS]",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false,
|
| 25 |
+
"special": true
|
| 26 |
+
},
|
| 27 |
+
"3": {
|
| 28 |
+
"content": "[SEP]",
|
| 29 |
+
"lstrip": false,
|
| 30 |
+
"normalized": false,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"single_word": false,
|
| 33 |
+
"special": true
|
| 34 |
+
},
|
| 35 |
+
"4": {
|
| 36 |
+
"content": "[MASK]",
|
| 37 |
+
"lstrip": false,
|
| 38 |
+
"normalized": false,
|
| 39 |
+
"rstrip": false,
|
| 40 |
+
"single_word": false,
|
| 41 |
+
"special": true
|
| 42 |
+
}
|
| 43 |
+
},
|
| 44 |
+
"clean_up_tokenization_spaces": true,
|
| 45 |
+
"cls_token": "[CLS]",
|
| 46 |
+
"do_basic_tokenize": true,
|
| 47 |
+
"do_lower_case": true,
|
| 48 |
+
"extra_special_tokens": {},
|
| 49 |
+
"mask_token": "[MASK]",
|
| 50 |
+
"max_length": 512,
|
| 51 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 52 |
+
"never_split": null,
|
| 53 |
+
"pad_to_multiple_of": null,
|
| 54 |
+
"pad_token": "[PAD]",
|
| 55 |
+
"pad_token_type_id": 0,
|
| 56 |
+
"padding_side": "right",
|
| 57 |
+
"sep_token": "[SEP]",
|
| 58 |
+
"stride": 0,
|
| 59 |
+
"strip_accents": null,
|
| 60 |
+
"tokenize_chinese_chars": true,
|
| 61 |
+
"tokenizer_class": "BertTokenizer",
|
| 62 |
+
"truncation_side": "right",
|
| 63 |
+
"truncation_strategy": "longest_first",
|
| 64 |
+
"unk_token": "[UNK]"
|
| 65 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:362c2471581c039504f3a963a573d5cf7219913796a671892f8544e81b705cfd
|
| 3 |
+
size 5713
|
training_config.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_name": "microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract-fulltext",
|
| 3 |
+
"task": "text-classification",
|
| 4 |
+
"num_labels": 9,
|
| 5 |
+
"classes": [
|
| 6 |
+
"CASE_REPORTS",
|
| 7 |
+
"COMMENT",
|
| 8 |
+
"EDITORIAL",
|
| 9 |
+
"GUIDELINES",
|
| 10 |
+
"META_ANALYSIS",
|
| 11 |
+
"PROSPECTIVE",
|
| 12 |
+
"RCT",
|
| 13 |
+
"RETROSPECTIVE",
|
| 14 |
+
"REVIEW"
|
| 15 |
+
],
|
| 16 |
+
"training_details": {
|
| 17 |
+
"final_accuracy": 0.937962962962963,
|
| 18 |
+
"final_f1": 0.9377,
|
| 19 |
+
"total_samples": 54000,
|
| 20 |
+
"epochs": 10,
|
| 21 |
+
"learning_rate": 0.0001,
|
| 22 |
+
"batch_size": 32,
|
| 23 |
+
"max_length": 512,
|
| 24 |
+
"best_checkpoint": "checkpoint-2000"
|
| 25 |
+
},
|
| 26 |
+
"text_preprocessing": {
|
| 27 |
+
"format": "[TITLE] {title} [SEP] [ABSTRACT] {abstract}",
|
| 28 |
+
"special_tokens": [
|
| 29 |
+
"[TITLE]",
|
| 30 |
+
"[SEP]",
|
| 31 |
+
"[ABSTRACT]"
|
| 32 |
+
],
|
| 33 |
+
"truncation_strategy": "optimized_title_abstract_split"
|
| 34 |
+
}
|
| 35 |
+
}
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|