joseagmz commited on
Commit
a2d7021
1 Parent(s): fe40655

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: mistralai/Mistral-7B-v0.1
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: mistral-7B-MedText-epochs-2-lr-000002
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ [<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
15
+ <details><summary>See axolotl config</summary>
16
+
17
+ axolotl version: `0.4.0`
18
+ ```yaml
19
+ base_model: mistralai/Mistral-7B-v0.1
20
+ model_type: MistralForCausalLM
21
+ tokenizer_type: LlamaTokenizer
22
+ is_mistral_derived_model: true
23
+
24
+ load_in_8bit: false
25
+ load_in_4bit: false
26
+ strict: false
27
+
28
+ datasets:
29
+ - path: utrgvseniorproject/medtext
30
+ type: completion
31
+ dataset_prepared_path: last_run_prepared
32
+ val_set_size: 0.05
33
+ output_dir: ./mistral-7B-MedText-epochs-2-lr-000002
34
+
35
+ sequence_len: 4096
36
+ sample_packing: true
37
+ pad_to_sequence_len: true
38
+
39
+ adapter:
40
+ lora_model_dir:
41
+ lora_r:
42
+ lora_alpha:
43
+ lora_dropout:
44
+ lora_target_linear:
45
+ lora_fan_in_fan_out:
46
+
47
+ wandb_project: mistral-7B-MedText
48
+ wandb_entity: utrgvmedai
49
+ wandb_watch:
50
+ wandb_name: mistral-7B-MedText-epochs-2-lr-000002
51
+ wandb_log_model:
52
+
53
+ gradient_accumulation_steps: 1
54
+ micro_batch_size: 1
55
+ num_epochs: 2
56
+ optimizer: adamw_bnb_8bit
57
+ lr_scheduler: cosine
58
+ learning_rate: 0.000002
59
+
60
+ train_on_inputs: true
61
+ group_by_length: false
62
+ bf16: auto
63
+ fp16:
64
+ tf32: false
65
+
66
+ gradient_checkpointing: false
67
+ early_stopping_patience:
68
+ #resume_from_checkpoint: true
69
+ local_rank:
70
+ logging_steps: 1
71
+ xformers_attention:
72
+ flash_attention: true
73
+ flash_attn_cross_entropy: false
74
+ flash_attn_rms_norm: true
75
+ flash_attn_fuse_qkv: false
76
+ flash_attn_fuse_mlp: true
77
+
78
+ warmup_steps: 100
79
+ evals_per_epoch: 4
80
+ eval_table_size:
81
+ eval_sample_packing: False
82
+ saves_per_epoch: 1
83
+ debug:
84
+ deepspeed: /home/josegomez15/axolotl/deepspeed_configs/zero2.json
85
+ weight_decay: 0.1
86
+ fsdp:
87
+ fsdp_config:
88
+ special_tokens:
89
+
90
+ ```
91
+
92
+ </details><br>
93
+
94
+ # mistral-7B-MedText-epochs-2-lr-000002
95
+
96
+ This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on the None dataset.
97
+ It achieves the following results on the evaluation set:
98
+ - Loss: 1.5485
99
+
100
+ ## Model description
101
+
102
+ More information needed
103
+
104
+ ## Intended uses & limitations
105
+
106
+ More information needed
107
+
108
+ ## Training and evaluation data
109
+
110
+ More information needed
111
+
112
+ ## Training procedure
113
+
114
+ ### Training hyperparameters
115
+
116
+ The following hyperparameters were used during training:
117
+ - learning_rate: 2e-06
118
+ - train_batch_size: 1
119
+ - eval_batch_size: 1
120
+ - seed: 42
121
+ - distributed_type: multi-GPU
122
+ - num_devices: 8
123
+ - total_train_batch_size: 8
124
+ - total_eval_batch_size: 8
125
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
126
+ - lr_scheduler_type: cosine
127
+ - lr_scheduler_warmup_steps: 100
128
+ - num_epochs: 2
129
+
130
+ ### Training results
131
+
132
+ | Training Loss | Epoch | Step | Validation Loss |
133
+ |:-------------:|:-----:|:----:|:---------------:|
134
+ | 1.5029 | 0.02 | 1 | 1.5677 |
135
+ | 1.5889 | 0.26 | 11 | 1.5675 |
136
+ | 1.2972 | 0.51 | 22 | 1.5647 |
137
+ | 1.6404 | 0.77 | 33 | 1.5587 |
138
+ | 1.4796 | 1.02 | 44 | 1.5533 |
139
+ | 1.428 | 1.23 | 55 | 1.5506 |
140
+ | 1.5635 | 1.49 | 66 | 1.5492 |
141
+ | 1.2457 | 1.74 | 77 | 1.5485 |
142
+
143
+
144
+ ### Framework versions
145
+
146
+ - Transformers 4.38.0
147
+ - Pytorch 2.0.1+cu117
148
+ - Datasets 2.17.0
149
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "mistralai/Mistral-7B-v0.1",
3
+ "architectures": [
4
+ "MistralForCausalLM"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 1,
8
+ "eos_token_id": 2,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 4096,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 14336,
13
+ "max_position_embeddings": 32768,
14
+ "model_type": "mistral",
15
+ "num_attention_heads": 32,
16
+ "num_hidden_layers": 32,
17
+ "num_key_value_heads": 8,
18
+ "rms_norm_eps": 1e-05,
19
+ "rope_theta": 10000.0,
20
+ "sliding_window": 4096,
21
+ "tie_word_embeddings": false,
22
+ "torch_dtype": "bfloat16",
23
+ "transformers_version": "4.38.0",
24
+ "use_cache": false,
25
+ "vocab_size": 32000
26
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "do_sample": true,
5
+ "eos_token_id": 2,
6
+ "transformers_version": "4.38.0"
7
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81d91d749cbc23d5da34e8385355709e793537b1bc3804e45747b01e2cc52bf4
3
+ size 14483504421
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
3
+ size 493443
tokenizer_config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": true,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ }
30
+ },
31
+ "additional_special_tokens": [],
32
+ "bos_token": "<s>",
33
+ "clean_up_tokenization_spaces": false,
34
+ "eos_token": "</s>",
35
+ "legacy": true,
36
+ "model_max_length": 1000000000000000019884624838656,
37
+ "pad_token": "</s>",
38
+ "sp_model_kwargs": {},
39
+ "spaces_between_special_tokens": false,
40
+ "tokenizer_class": "LlamaTokenizer",
41
+ "unk_token": "<unk>",
42
+ "use_default_system_prompt": false,
43
+ "use_fast": true
44
+ }