Fischerboot commited on
Commit
89504db
1 Parent(s): afe925e

Upload 9 files

Browse files
README.md CHANGED
@@ -1,3 +1,171 @@
1
- ---
2
- license: unknown
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ library_name: peft
4
+ tags:
5
+ - generated_from_trainer
6
+ base_model: intervitens/internlm2-limarp-chat-20b
7
+ model-index:
8
+ - name: outputs/qlora-out
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ [<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)
16
+ <details><summary>See axolotl config</summary>
17
+
18
+ axolotl version: `0.4.0`
19
+ ```yaml
20
+ mlflow_tracking_uri: http://127.0.0.1:2340
21
+ mlflow_experiment_name: Default
22
+
23
+ base_model: intervitens/internlm2-limarp-chat-20b
24
+ model_type: AutoModelForCausalLM
25
+ tokenizer_type: AutoTokenizer
26
+
27
+ load_in_8bit: true
28
+ load_in_4bit: false
29
+ strict: false
30
+
31
+ datasets:
32
+ - path: ResplendentAI/Alpaca_NSFW_Shuffled
33
+ type: alpaca
34
+ - path: diffnamehard/toxic-dpo-v0.1-NoWarning-alpaca
35
+ type: alpaca
36
+ dataset_prepared_path: last_run_prepared
37
+ val_set_size: 0.1
38
+ output_dir: ./outputs/qlora-out
39
+
40
+ adapter: lora
41
+ lora_model_dir:
42
+
43
+ sequence_len: 8192
44
+ sample_packing: false
45
+ pad_to_sequence_len: true
46
+
47
+ lora_r: 32
48
+ lora_alpha: 16
49
+ lora_dropout: 0.05
50
+ lora_target_linear: true
51
+ lora_fan_in_fan_out:
52
+ lora_target_modules:
53
+ - gate_proj
54
+ - down_proj
55
+ - up_proj
56
+ - q_proj
57
+ - v_proj
58
+ - k_proj
59
+ - o_proj
60
+
61
+ wandb_project:
62
+ wandb_entity:
63
+ wandb_watch:
64
+ wandb_name:
65
+ wandb_log_model:
66
+
67
+ gradient_accumulation_steps: 4
68
+ micro_batch_size: 2
69
+ num_epochs: 4
70
+ optimizer: adamw_bnb_8bit
71
+ lr_scheduler: cosine
72
+ learning_rate: 0.0002
73
+
74
+ train_on_inputs: false
75
+ group_by_length: false
76
+ bf16: auto
77
+ fp16:
78
+ tf32: false
79
+
80
+ gradient_checkpointing: true
81
+ early_stopping_patience:
82
+ resume_from_checkpoint:
83
+ local_rank:
84
+ logging_steps: 1
85
+ xformers_attention:
86
+ flash_attention: true
87
+
88
+ loss_watchdog_threshold: 5.0
89
+ loss_watchdog_patience: 3
90
+
91
+ warmup_steps: 10
92
+ evals_per_epoch: 4
93
+ eval_table_size:
94
+ eval_max_new_tokens: 128
95
+ saves_per_epoch: 1
96
+ debug:
97
+ deepspeed:
98
+ weight_decay: 0.0
99
+ fsdp:
100
+ fsdp_config:
101
+ special_tokens:
102
+
103
+ ```
104
+
105
+ </details><br>
106
+
107
+ # outputs/qlora-out
108
+
109
+ This model is a fine-tuned version of [intervitens/internlm2-limarp-chat-20b](https://huggingface.co/intervitens/internlm2-limarp-chat-20b) on the None dataset.
110
+ It achieves the following results on the evaluation set:
111
+ - Loss: 0.9868
112
+
113
+ ## Model description
114
+
115
+ More information needed
116
+
117
+ ## Intended uses & limitations
118
+
119
+ More information needed
120
+
121
+ ## Training and evaluation data
122
+
123
+ More information needed
124
+
125
+ ## Training procedure
126
+
127
+ ### Training hyperparameters
128
+
129
+ The following hyperparameters were used during training:
130
+ - learning_rate: 0.0002
131
+ - train_batch_size: 2
132
+ - eval_batch_size: 2
133
+ - seed: 42
134
+ - distributed_type: multi-GPU
135
+ - num_devices: 7
136
+ - gradient_accumulation_steps: 4
137
+ - total_train_batch_size: 56
138
+ - total_eval_batch_size: 14
139
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
140
+ - lr_scheduler_type: cosine
141
+ - lr_scheduler_warmup_steps: 10
142
+ - num_epochs: 4
143
+
144
+ ### Training results
145
+
146
+ | Training Loss | Epoch | Step | Validation Loss |
147
+ |:-------------:|:------:|:----:|:---------------:|
148
+ | 1.465 | 0.0476 | 1 | 1.4508 |
149
+ | 1.3472 | 0.2857 | 6 | 1.4126 |
150
+ | 1.1997 | 0.5714 | 12 | 1.1998 |
151
+ | 1.0735 | 0.8571 | 18 | 1.1192 |
152
+ | 1.077 | 1.1429 | 24 | 1.0703 |
153
+ | 1.0478 | 1.4286 | 30 | 1.0410 |
154
+ | 0.9997 | 1.7143 | 36 | 1.0259 |
155
+ | 0.9696 | 2.0 | 42 | 1.0091 |
156
+ | 0.8861 | 2.2857 | 48 | 1.0042 |
157
+ | 0.8961 | 2.5714 | 54 | 0.9928 |
158
+ | 0.8615 | 2.8571 | 60 | 0.9889 |
159
+ | 0.8603 | 3.1429 | 66 | 0.9860 |
160
+ | 0.7825 | 3.4286 | 72 | 0.9877 |
161
+ | 0.9228 | 3.7143 | 78 | 0.9860 |
162
+ | 0.8684 | 4.0 | 84 | 0.9868 |
163
+
164
+
165
+ ### Framework versions
166
+
167
+ - PEFT 0.10.0
168
+ - Transformers 4.40.2
169
+ - Pytorch 2.3.0
170
+ - Datasets 2.19.1
171
+ - Tokenizers 0.19.1
adapter_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "intervitens/internlm2-limarp-chat-20b",
5
+ "bias": "none",
6
+ "fan_in_fan_out": null,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 16,
14
+ "lora_dropout": 0.05,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 32,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "up_proj",
24
+ "down_proj",
25
+ "o_proj",
26
+ "q_proj",
27
+ "gate_proj",
28
+ "v_proj",
29
+ "k_proj"
30
+ ],
31
+ "task_type": "CAUSAL_LM",
32
+ "use_dora": false,
33
+ "use_rslora": false
34
+ }
adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad1dbd641384e8fc937d3cb160a75aee5b1039d881d84af9b8e8379f02321790
3
+ size 327262138
config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "intervitens/internlm2-limarp-chat-20b",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bias": false,
9
+ "bos_token_id": 1,
10
+ "eos_token_id": 2,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 6144,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 16384,
15
+ "max_position_embeddings": 32768,
16
+ "model_type": "llama",
17
+ "num_attention_heads": 48,
18
+ "num_hidden_layers": 48,
19
+ "num_key_value_heads": 8,
20
+ "pad_token_id": 2,
21
+ "pretraining_tp": 1,
22
+ "quantization_config": {
23
+ "_load_in_4bit": false,
24
+ "_load_in_8bit": true,
25
+ "bnb_4bit_compute_dtype": "float32",
26
+ "bnb_4bit_quant_storage": "uint8",
27
+ "bnb_4bit_quant_type": "fp4",
28
+ "bnb_4bit_use_double_quant": false,
29
+ "llm_int8_enable_fp32_cpu_offload": false,
30
+ "llm_int8_has_fp16_weight": false,
31
+ "llm_int8_skip_modules": null,
32
+ "llm_int8_threshold": 6.0,
33
+ "load_in_4bit": false,
34
+ "load_in_8bit": true,
35
+ "quant_method": "bitsandbytes"
36
+ },
37
+ "rms_norm_eps": 1e-05,
38
+ "rope_scaling": null,
39
+ "rope_theta": 1000000,
40
+ "tie_word_embeddings": false,
41
+ "torch_dtype": "bfloat16",
42
+ "transformers_version": "4.40.2",
43
+ "use_cache": false,
44
+ "vocab_size": 92544
45
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0900749e0d05d0c0e553d5a3cb7ece0b58d481f4a31720dac0ec388ad94d19e6
3
+ size 1477770
tokenizer_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "bos_token": "<s>",
31
+ "clean_up_tokenization_spaces": true,
32
+ "eos_token": "</s>",
33
+ "legacy": true,
34
+ "model_max_length": 1000000000000000019884624838656,
35
+ "pad_token": "</s>",
36
+ "sp_model_kwargs": {},
37
+ "spaces_between_special_tokens": false,
38
+ "tokenizer_class": "LlamaTokenizer",
39
+ "trust_remote_code": false,
40
+ "unk_token": "<unk>",
41
+ "use_default_system_prompt": false
42
+ }