mlynatom commited on
Commit
3c46f6c
·
verified ·
1 Parent(s): abe3f6a
README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: chandar-lab/NeoBERT
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: NeoBERT_druglib_regression_6ep_5e-06lr
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # NeoBERT_druglib_regression_6ep_5e-06lr
18
+
19
+ This model is a fine-tuned version of [chandar-lab/NeoBERT](https://huggingface.co/chandar-lab/NeoBERT) on the None dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.9323
22
+ - Accuracy: 0.6284
23
+ - Macro Precision: 0.6396
24
+ - Macro Recall: 0.5598
25
+ - Macro F1: 0.5573
26
+
27
+ ## Model description
28
+
29
+ More information needed
30
+
31
+ ## Intended uses & limitations
32
+
33
+ More information needed
34
+
35
+ ## Training and evaluation data
36
+
37
+ More information needed
38
+
39
+ ## Training procedure
40
+
41
+ ### Training hyperparameters
42
+
43
+ The following hyperparameters were used during training:
44
+ - learning_rate: 5e-06
45
+ - train_batch_size: 8
46
+ - eval_batch_size: 8
47
+ - seed: 42
48
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
49
+ - lr_scheduler_type: linear
50
+ - lr_scheduler_warmup_ratio: 0.2
51
+ - num_epochs: 6
52
+ - mixed_precision_training: Native AMP
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Macro Precision | Macro Recall | Macro F1 |
57
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------------:|:------------:|:--------:|
58
+ | 1.2053 | 1.0 | 311 | 1.0258 | 0.5900 | 0.5546 | 0.4409 | 0.4394 |
59
+ | 0.743 | 2.0 | 622 | 0.8838 | 0.6527 | 0.6404 | 0.5392 | 0.5352 |
60
+ | 0.5941 | 3.0 | 933 | 0.9091 | 0.6624 | 0.6102 | 0.5566 | 0.5674 |
61
+ | 0.4384 | 4.0 | 1244 | 1.0823 | 0.6592 | 0.6108 | 0.5464 | 0.5493 |
62
+ | 0.138 | 5.0 | 1555 | 1.3475 | 0.6543 | 0.5926 | 0.5503 | 0.5600 |
63
+ | 0.0683 | 6.0 | 1866 | 1.4926 | 0.6495 | 0.5865 | 0.5571 | 0.5668 |
64
+
65
+
66
+ ### Framework versions
67
+
68
+ - Transformers 4.47.0
69
+ - Pytorch 2.5.1+cu121
70
+ - Datasets 3.3.1
71
+ - Tokenizers 0.21.0
config.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "chandar-lab/NeoBERT",
3
+ "architectures": [
4
+ "NeoBERTForSequenceClassification"
5
+ ],
6
+ "auto_map": {
7
+ "AutoConfig": "chandar-lab/NeoBERT--model.NeoBERTConfig",
8
+ "AutoModel": "chandar-lab/NeoBERT--model.NeoBERT",
9
+ "AutoModelForMaskedLM": "chandar-lab/NeoBERT--model.NeoBERTLMHead",
10
+ "AutoModelForSequenceClassification": "chandar-lab/NeoBERT--model.NeoBERTForSequenceClassification"
11
+ },
12
+ "classifier_init_range": 0.02,
13
+ "decoder_init_range": 0.02,
14
+ "dim_head": 64,
15
+ "embedding_init_range": 0.02,
16
+ "hidden_size": 768,
17
+ "id2label": {
18
+ "0": "LABEL_0",
19
+ "1": "LABEL_1",
20
+ "2": "LABEL_2",
21
+ "3": "LABEL_3",
22
+ "4": "LABEL_4"
23
+ },
24
+ "intermediate_size": 3072,
25
+ "kwargs": {
26
+ "_commit_hash": "a4fbc49a61db10ff2db66140ae59c09d96c027f9",
27
+ "architectures": [
28
+ "NeoBERTLMHead"
29
+ ],
30
+ "attn_implementation": null,
31
+ "auto_map": {
32
+ "AutoConfig": "chandar-lab/NeoBERT--model.NeoBERTConfig",
33
+ "AutoModel": "chandar-lab/NeoBERT--model.NeoBERT",
34
+ "AutoModelForMaskedLM": "chandar-lab/NeoBERT--model.NeoBERTLMHead",
35
+ "AutoModelForSequenceClassification": "chandar-lab/NeoBERT--model.NeoBERTForSequenceClassification"
36
+ },
37
+ "classifier_init_range": 0.02,
38
+ "dim_head": 64,
39
+ "kwargs": {
40
+ "classifier_init_range": 0.02,
41
+ "pretrained_model_name_or_path": "google-bert/bert-base-uncased",
42
+ "trust_remote_code": true
43
+ },
44
+ "model_type": "neobert",
45
+ "pretrained_model_name_or_path": "google-bert/bert-base-uncased",
46
+ "torch_dtype": "float32",
47
+ "transformers_version": "4.48.2",
48
+ "trust_remote_code": true
49
+ },
50
+ "label2id": {
51
+ "LABEL_0": 0,
52
+ "LABEL_1": 1,
53
+ "LABEL_2": 2,
54
+ "LABEL_3": 3,
55
+ "LABEL_4": 4
56
+ },
57
+ "max_length": 4096,
58
+ "model_type": "neobert",
59
+ "norm_eps": 1e-05,
60
+ "num_attention_heads": 12,
61
+ "num_hidden_layers": 28,
62
+ "pad_token_id": 0,
63
+ "pretrained_model_name_or_path": "google-bert/bert-base-uncased",
64
+ "problem_type": "single_label_classification",
65
+ "torch_dtype": "float32",
66
+ "transformers_version": "4.47.0",
67
+ "trust_remote_code": true,
68
+ "vocab_size": 30522
69
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ac01ccad99ef27afdb4b62034f50fc8bad0b0e71d4bb018775daf02b938f21b
3
+ size 889059812
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,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
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": false,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": true,
47
+ "extra_special_tokens": {},
48
+ "mask_token": "[MASK]",
49
+ "model_input_names": [
50
+ "input_ids",
51
+ "attention_mask"
52
+ ],
53
+ "model_max_length": 4096,
54
+ "pad_token": "[PAD]",
55
+ "sep_token": "[SEP]",
56
+ "strip_accents": null,
57
+ "tokenize_chinese_chars": true,
58
+ "tokenizer_class": "BertTokenizer",
59
+ "unk_token": "[UNK]",
60
+ "vocab_size": 30522
61
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:718435625e87777a919da05820612c2f6b1d3204a732ac4cf49fc44b7ca19a84
3
+ size 5368
vocab.txt ADDED
The diff for this file is too large to render. See raw diff