Andrew Dang commited on
Commit
118bf69
1 Parent(s): d8bd943

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ base_model: Qwen/Qwen1.5-MoE-A2.7B
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: out
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: Qwen/Qwen1.5-MoE-A2.7B
20
+ trust_remote_code: true
21
+
22
+ load_in_8bit: false
23
+ load_in_4bit: false
24
+ strict: false
25
+
26
+ datasets:
27
+ - path: Drewskidang/chatlaw
28
+ type: sharegpt
29
+ - path: swag/articles_and_summaries.jsonl
30
+ ds_type: json # see other options below
31
+ type: summarizetldr
32
+
33
+ dataset_prepared_path:
34
+ val_set_size: 0.05
35
+ output_dir: ./out
36
+
37
+ sequence_len: 4096 # supports up to 32k
38
+ sample_packing: true
39
+ pad_to_sequence_len: true
40
+ eval_sample_packing: false
41
+
42
+ wandb_project: Qwen Qwen
43
+ wandb_entity:
44
+ wandb_watch:
45
+ wandb_name:
46
+ wandb_log_model:
47
+
48
+ gradient_accumulation_steps: 8
49
+ micro_batch_size: 4
50
+ num_epochs: 3
51
+ optimizer: adamw_8bit
52
+ lr_scheduler: cosine
53
+ learning_rate: 0.0002
54
+
55
+ train_on_inputs: false
56
+ group_by_length: false
57
+ bf16: auto
58
+ fp16:
59
+ tf32: true
60
+
61
+ gradient_checkpointing: true
62
+ gradient_checkpointing_kwargs:
63
+ use_reentrant: false
64
+ early_stopping_patience:
65
+ resume_from_checkpoint:
66
+ local_rank:
67
+ logging_steps: 1
68
+ xformers_attention:
69
+ flash_attention: true
70
+
71
+ warmup_steps: 10
72
+ evals_per_epoch: 4
73
+ saves_per_epoch: 1
74
+ debug:
75
+ deepspeed:
76
+ weight_decay: 0.0
77
+ fsdp:
78
+ fsdp_config:
79
+ special_tokens:
80
+
81
+ ```
82
+
83
+ </details><br>
84
+
85
+ # out
86
+
87
+ This model is a fine-tuned version of [Qwen/Qwen1.5-MoE-A2.7B](https://huggingface.co/Qwen/Qwen1.5-MoE-A2.7B) on the None dataset.
88
+ It achieves the following results on the evaluation set:
89
+ - Loss: 0.8947
90
+
91
+ ## Model description
92
+
93
+ More information needed
94
+
95
+ ## Intended uses & limitations
96
+
97
+ More information needed
98
+
99
+ ## Training and evaluation data
100
+
101
+ More information needed
102
+
103
+ ## Training procedure
104
+
105
+ ### Training hyperparameters
106
+
107
+ The following hyperparameters were used during training:
108
+ - learning_rate: 0.0002
109
+ - train_batch_size: 4
110
+ - eval_batch_size: 4
111
+ - seed: 42
112
+ - distributed_type: multi-GPU
113
+ - num_devices: 8
114
+ - gradient_accumulation_steps: 8
115
+ - total_train_batch_size: 256
116
+ - total_eval_batch_size: 32
117
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
118
+ - lr_scheduler_type: cosine
119
+ - lr_scheduler_warmup_steps: 10
120
+ - num_epochs: 3
121
+
122
+ ### Training results
123
+
124
+ | Training Loss | Epoch | Step | Validation Loss |
125
+ |:-------------:|:-----:|:----:|:---------------:|
126
+ | 1.6446 | 0.13 | 1 | 1.6456 |
127
+ | 1.639 | 0.26 | 2 | 1.3070 |
128
+ | 1.1786 | 0.52 | 4 | 1.1381 |
129
+ | 1.0398 | 0.79 | 6 | 1.0396 |
130
+ | 1.0073 | 1.02 | 8 | 1.0162 |
131
+ | 0.9318 | 1.28 | 10 | 1.0095 |
132
+ | 0.9704 | 1.54 | 12 | 0.9867 |
133
+ | 0.8477 | 1.8 | 14 | 0.9405 |
134
+ | 0.7665 | 2.03 | 16 | 0.9073 |
135
+ | 0.6283 | 2.3 | 18 | 0.9021 |
136
+ | 0.6257 | 2.56 | 20 | 0.8947 |
137
+
138
+
139
+ ### Framework versions
140
+
141
+ - Transformers 4.40.0.dev0
142
+ - Pytorch 2.1.1
143
+ - Datasets 2.18.0
144
+ - Tokenizers 0.15.0
added_tokens.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "<|endoftext|>": 151643,
3
+ "<|im_end|>": 151645,
4
+ "<|im_start|>": 151644
5
+ }
config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Qwen/Qwen1.5-MoE-A2.7B",
3
+ "architectures": [
4
+ "Qwen2MoeForCausalLM"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "decoder_sparse_step": 1,
8
+ "eos_token_id": 151643,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 2048,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 5632,
13
+ "max_position_embeddings": 8192,
14
+ "max_window_layers": 21,
15
+ "model_type": "qwen2_moe",
16
+ "moe_intermediate_size": 1408,
17
+ "norm_topk_prob": false,
18
+ "num_attention_heads": 16,
19
+ "num_experts": 60,
20
+ "num_experts_per_tok": 4,
21
+ "num_hidden_layers": 24,
22
+ "num_key_value_heads": 16,
23
+ "output_router_logits": false,
24
+ "rms_norm_eps": 1e-06,
25
+ "rope_theta": 1000000.0,
26
+ "router_aux_loss_coef": 0.001,
27
+ "shared_expert_intermediate_size": 5632,
28
+ "sliding_window": 32768,
29
+ "tie_word_embeddings": false,
30
+ "torch_dtype": "bfloat16",
31
+ "transformers_version": "4.40.0.dev0",
32
+ "use_cache": false,
33
+ "use_sliding_window": false,
34
+ "vocab_size": 151936
35
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 151645,
6
+ 151643
7
+ ],
8
+ "pad_token_id": 151643,
9
+ "transformers_version": "4.40.0.dev0"
10
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4039ac946c0d91053136e79d2aa3decc6c006b7655f73adf25ea6e1a4e92ae6e
3
+ size 28632253308
special_tokens_map.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>"
5
+ ],
6
+ "eos_token": {
7
+ "content": "<|endoftext|>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "pad_token": {
14
+ "content": "<|endoftext|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ }
20
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "151643": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "151644": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "151645": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ }
28
+ },
29
+ "additional_special_tokens": [
30
+ "<|im_start|>",
31
+ "<|im_end|>"
32
+ ],
33
+ "bos_token": null,
34
+ "chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
35
+ "clean_up_tokenization_spaces": false,
36
+ "eos_token": "<|endoftext|>",
37
+ "errors": "replace",
38
+ "model_max_length": 32768,
39
+ "pad_token": "<|endoftext|>",
40
+ "split_special_tokens": false,
41
+ "tokenizer_class": "Qwen2Tokenizer",
42
+ "unk_token": null
43
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff