Instructions to use loraxian/model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use loraxian/model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="loraxian/model")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("loraxian/model") model = AutoModelForSequenceClassification.from_pretrained("loraxian/model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +27 -23
- config.json +2 -3
- model.safetensors +1 -1
- tokenizer.json +0 -0
- tokenizer_config.json +7 -12
- training_args.bin +1 -1
- vocab.txt +0 -0
README.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
| 3 |
-
base_model:
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
metrics:
|
| 7 |
-
-
|
|
|
|
| 8 |
model-index:
|
| 9 |
- name: model
|
| 10 |
results: []
|
|
@@ -15,10 +16,11 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 15 |
|
| 16 |
# model
|
| 17 |
|
| 18 |
-
This model is a fine-tuned version of [
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
-
- Loss: 0.
|
| 21 |
-
-
|
|
|
|
| 22 |
|
| 23 |
## Model description
|
| 24 |
|
|
@@ -37,31 +39,33 @@ More information needed
|
|
| 37 |
### Training hyperparameters
|
| 38 |
|
| 39 |
The following hyperparameters were used during training:
|
| 40 |
-
- learning_rate:
|
| 41 |
-
- train_batch_size:
|
| 42 |
-
- eval_batch_size:
|
| 43 |
- seed: 42
|
| 44 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 45 |
- lr_scheduler_type: linear
|
| 46 |
-
- num_epochs:
|
| 47 |
|
| 48 |
### Training results
|
| 49 |
|
| 50 |
-
| Training Loss | Epoch | Step | Validation Loss |
|
| 51 |
-
|:-------------:|:-----:|:----:|:---------------:|:------:|
|
| 52 |
-
| No log | 1.0 |
|
| 53 |
-
| No log | 2.0 |
|
| 54 |
-
| No log | 3.0 |
|
| 55 |
-
|
|
| 56 |
-
|
|
| 57 |
-
| 0.
|
| 58 |
-
| 0.
|
| 59 |
-
| 0.
|
|
|
|
|
|
|
| 60 |
|
| 61 |
|
| 62 |
### Framework versions
|
| 63 |
|
| 64 |
-
- Transformers 4.35.
|
| 65 |
- Pytorch 2.0.0
|
| 66 |
-
- Datasets 2.
|
| 67 |
-
- Tokenizers 0.
|
|
|
|
| 1 |
---
|
| 2 |
+
license: mit
|
| 3 |
+
base_model: Tsubasaz/clinical-pubmed-bert-base-512
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
metrics:
|
| 7 |
+
- precision
|
| 8 |
+
- recall
|
| 9 |
model-index:
|
| 10 |
- name: model
|
| 11 |
results: []
|
|
|
|
| 16 |
|
| 17 |
# model
|
| 18 |
|
| 19 |
+
This model is a fine-tuned version of [Tsubasaz/clinical-pubmed-bert-base-512](https://huggingface.co/Tsubasaz/clinical-pubmed-bert-base-512) on the None dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.3511
|
| 22 |
+
- Precision: 0.6103
|
| 23 |
+
- Recall: 0.5640
|
| 24 |
|
| 25 |
## Model description
|
| 26 |
|
|
|
|
| 39 |
### Training hyperparameters
|
| 40 |
|
| 41 |
The following hyperparameters were used during training:
|
| 42 |
+
- learning_rate: 3e-06
|
| 43 |
+
- train_batch_size: 32
|
| 44 |
+
- eval_batch_size: 32
|
| 45 |
- seed: 42
|
| 46 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 47 |
- lr_scheduler_type: linear
|
| 48 |
+
- num_epochs: 10
|
| 49 |
|
| 50 |
### Training results
|
| 51 |
|
| 52 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall |
|
| 53 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|
|
| 54 |
+
| No log | 1.0 | 128 | 0.4393 | 0.0 | 0.0 |
|
| 55 |
+
| No log | 2.0 | 256 | 0.3958 | 0.5714 | 0.1706 |
|
| 56 |
+
| No log | 3.0 | 384 | 0.3785 | 0.5690 | 0.3128 |
|
| 57 |
+
| 0.4046 | 4.0 | 512 | 0.3676 | 0.5789 | 0.5213 |
|
| 58 |
+
| 0.4046 | 5.0 | 640 | 0.3606 | 0.6532 | 0.3839 |
|
| 59 |
+
| 0.4046 | 6.0 | 768 | 0.3597 | 0.6549 | 0.4408 |
|
| 60 |
+
| 0.4046 | 7.0 | 896 | 0.3584 | 0.6376 | 0.4502 |
|
| 61 |
+
| 0.3046 | 8.0 | 1024 | 0.3518 | 0.6310 | 0.5024 |
|
| 62 |
+
| 0.3046 | 9.0 | 1152 | 0.3511 | 0.6133 | 0.5261 |
|
| 63 |
+
| 0.3046 | 10.0 | 1280 | 0.3511 | 0.6103 | 0.5640 |
|
| 64 |
|
| 65 |
|
| 66 |
### Framework versions
|
| 67 |
|
| 68 |
+
- Transformers 4.35.2
|
| 69 |
- Pytorch 2.0.0
|
| 70 |
+
- Datasets 2.15.0
|
| 71 |
+
- Tokenizers 0.15.0
|
config.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"architectures": [
|
| 4 |
"BertForSequenceClassification"
|
| 5 |
],
|
| 6 |
"attention_probs_dropout_prob": 0.1,
|
| 7 |
"classifier_dropout": null,
|
| 8 |
-
"gradient_checkpointing": false,
|
| 9 |
"hidden_act": "gelu",
|
| 10 |
"hidden_dropout_prob": 0.1,
|
| 11 |
"hidden_size": 768,
|
|
@@ -28,7 +27,7 @@
|
|
| 28 |
"position_embedding_type": "absolute",
|
| 29 |
"problem_type": "single_label_classification",
|
| 30 |
"torch_dtype": "float32",
|
| 31 |
-
"transformers_version": "4.35.
|
| 32 |
"type_vocab_size": 2,
|
| 33 |
"use_cache": true,
|
| 34 |
"vocab_size": 30522
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "Tsubasaz/clinical-pubmed-bert-base-512",
|
| 3 |
"architectures": [
|
| 4 |
"BertForSequenceClassification"
|
| 5 |
],
|
| 6 |
"attention_probs_dropout_prob": 0.1,
|
| 7 |
"classifier_dropout": null,
|
|
|
|
| 8 |
"hidden_act": "gelu",
|
| 9 |
"hidden_dropout_prob": 0.1,
|
| 10 |
"hidden_size": 768,
|
|
|
|
| 27 |
"position_embedding_type": "absolute",
|
| 28 |
"problem_type": "single_label_classification",
|
| 29 |
"torch_dtype": "float32",
|
| 30 |
+
"transformers_version": "4.35.2",
|
| 31 |
"type_vocab_size": 2,
|
| 32 |
"use_cache": true,
|
| 33 |
"vocab_size": 30522
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 437958648
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed415934ece8ee8a90b151152495720a03450bf2c3caf5d7f4faf9f0e7a0927f
|
| 3 |
size 437958648
|
tokenizer.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
| 8 |
"single_word": false,
|
| 9 |
"special": true
|
| 10 |
},
|
| 11 |
-
"
|
| 12 |
"content": "[UNK]",
|
| 13 |
"lstrip": false,
|
| 14 |
"normalized": false,
|
|
@@ -16,7 +16,7 @@
|
|
| 16 |
"single_word": false,
|
| 17 |
"special": true
|
| 18 |
},
|
| 19 |
-
"
|
| 20 |
"content": "[CLS]",
|
| 21 |
"lstrip": false,
|
| 22 |
"normalized": false,
|
|
@@ -24,7 +24,7 @@
|
|
| 24 |
"single_word": false,
|
| 25 |
"special": true
|
| 26 |
},
|
| 27 |
-
"
|
| 28 |
"content": "[SEP]",
|
| 29 |
"lstrip": false,
|
| 30 |
"normalized": false,
|
|
@@ -32,7 +32,7 @@
|
|
| 32 |
"single_word": false,
|
| 33 |
"special": true
|
| 34 |
},
|
| 35 |
-
"
|
| 36 |
"content": "[MASK]",
|
| 37 |
"lstrip": false,
|
| 38 |
"normalized": false,
|
|
@@ -43,20 +43,15 @@
|
|
| 43 |
},
|
| 44 |
"clean_up_tokenization_spaces": true,
|
| 45 |
"cls_token": "[CLS]",
|
|
|
|
| 46 |
"do_lower_case": true,
|
| 47 |
"mask_token": "[MASK]",
|
| 48 |
-
"
|
| 49 |
-
"
|
| 50 |
-
"pad_to_multiple_of": null,
|
| 51 |
"pad_token": "[PAD]",
|
| 52 |
-
"pad_token_type_id": 0,
|
| 53 |
-
"padding_side": "right",
|
| 54 |
"sep_token": "[SEP]",
|
| 55 |
-
"stride": 0,
|
| 56 |
"strip_accents": null,
|
| 57 |
"tokenize_chinese_chars": true,
|
| 58 |
"tokenizer_class": "BertTokenizer",
|
| 59 |
-
"truncation_side": "right",
|
| 60 |
-
"truncation_strategy": "longest_first",
|
| 61 |
"unk_token": "[UNK]"
|
| 62 |
}
|
|
|
|
| 8 |
"single_word": false,
|
| 9 |
"special": true
|
| 10 |
},
|
| 11 |
+
"1": {
|
| 12 |
"content": "[UNK]",
|
| 13 |
"lstrip": false,
|
| 14 |
"normalized": false,
|
|
|
|
| 16 |
"single_word": false,
|
| 17 |
"special": true
|
| 18 |
},
|
| 19 |
+
"2": {
|
| 20 |
"content": "[CLS]",
|
| 21 |
"lstrip": false,
|
| 22 |
"normalized": false,
|
|
|
|
| 24 |
"single_word": false,
|
| 25 |
"special": true
|
| 26 |
},
|
| 27 |
+
"3": {
|
| 28 |
"content": "[SEP]",
|
| 29 |
"lstrip": false,
|
| 30 |
"normalized": false,
|
|
|
|
| 32 |
"single_word": false,
|
| 33 |
"special": true
|
| 34 |
},
|
| 35 |
+
"4": {
|
| 36 |
"content": "[MASK]",
|
| 37 |
"lstrip": false,
|
| 38 |
"normalized": false,
|
|
|
|
| 43 |
},
|
| 44 |
"clean_up_tokenization_spaces": true,
|
| 45 |
"cls_token": "[CLS]",
|
| 46 |
+
"do_basic_tokenize": true,
|
| 47 |
"do_lower_case": true,
|
| 48 |
"mask_token": "[MASK]",
|
| 49 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 50 |
+
"never_split": null,
|
|
|
|
| 51 |
"pad_token": "[PAD]",
|
|
|
|
|
|
|
| 52 |
"sep_token": "[SEP]",
|
|
|
|
| 53 |
"strip_accents": null,
|
| 54 |
"tokenize_chinese_chars": true,
|
| 55 |
"tokenizer_class": "BertTokenizer",
|
|
|
|
|
|
|
| 56 |
"unk_token": "[UNK]"
|
| 57 |
}
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4091
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f4faeefaa88f45ece3a78c6e7619be4f3b8c192526b2a92369a65a46abb2586
|
| 3 |
size 4091
|
vocab.txt
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|