yimingliang commited on
Commit
9180178
1 Parent(s): 70aaedb

Upload 168 files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. qwen14B_models/qwen_14B_d0_iter1_model/README.md +69 -0
  2. qwen14B_models/qwen_14B_d0_iter1_model/adapter_config.json +34 -0
  3. qwen14B_models/qwen_14B_d0_iter1_model/adapter_model.safetensors +3 -0
  4. qwen14B_models/qwen_14B_d0_iter1_model/added_tokens.json +5 -0
  5. qwen14B_models/qwen_14B_d0_iter1_model/all_results.json +12 -0
  6. qwen14B_models/qwen_14B_d0_iter1_model/eval_results.json +7 -0
  7. qwen14B_models/qwen_14B_d0_iter1_model/lora.log +0 -0
  8. qwen14B_models/qwen_14B_d0_iter1_model/merge.log +7 -0
  9. qwen14B_models/qwen_14B_d0_iter1_model/merges.txt +0 -0
  10. qwen14B_models/qwen_14B_d0_iter1_model/runs/Jul15_08-39-17_t-20240715144206-zn57g-worker-0/events.out.tfevents.1721032863.t-20240715144206-zn57g-worker-0.53949.0 +3 -0
  11. qwen14B_models/qwen_14B_d0_iter1_model/runs/Jul15_08-39-17_t-20240715144206-zn57g-worker-0/events.out.tfevents.1721034091.t-20240715144206-zn57g-worker-0.53949.1 +3 -0
  12. qwen14B_models/qwen_14B_d0_iter1_model/special_tokens_map.json +27 -0
  13. qwen14B_models/qwen_14B_d0_iter1_model/tokenizer_config.json +45 -0
  14. qwen14B_models/qwen_14B_d0_iter1_model/train_results.json +8 -0
  15. qwen14B_models/qwen_14B_d0_iter1_model/trainer_log.jsonl +38 -0
  16. qwen14B_models/qwen_14B_d0_iter1_model/trainer_state.json +297 -0
  17. qwen14B_models/qwen_14B_d0_iter1_model/training_args.bin +3 -0
  18. qwen14B_models/qwen_14B_d0_iter1_model/training_eval_loss.png +0 -0
  19. qwen14B_models/qwen_14B_d0_iter1_model/training_loss.png +0 -0
  20. qwen14B_models/qwen_14B_d0_iter1_model/vocab.json +0 -0
  21. qwen14B_models/qwen_14B_d1_iter2_model/README.md +69 -0
  22. qwen14B_models/qwen_14B_d1_iter2_model/adapter_config.json +34 -0
  23. qwen14B_models/qwen_14B_d1_iter2_model/adapter_model.safetensors +3 -0
  24. qwen14B_models/qwen_14B_d1_iter2_model/added_tokens.json +5 -0
  25. qwen14B_models/qwen_14B_d1_iter2_model/all_results.json +12 -0
  26. qwen14B_models/qwen_14B_d1_iter2_model/eval_results.json +7 -0
  27. qwen14B_models/qwen_14B_d1_iter2_model/lora.log +0 -0
  28. qwen14B_models/qwen_14B_d1_iter2_model/merge.log +7 -0
  29. qwen14B_models/qwen_14B_d1_iter2_model/merges.txt +0 -0
  30. qwen14B_models/qwen_14B_d1_iter2_model/runs/Jul15_11-17-33_t-20240715144206-zn57g-worker-0/events.out.tfevents.1721042359.t-20240715144206-zn57g-worker-0.113434.0 +3 -0
  31. qwen14B_models/qwen_14B_d1_iter2_model/runs/Jul15_11-17-33_t-20240715144206-zn57g-worker-0/events.out.tfevents.1721043608.t-20240715144206-zn57g-worker-0.113434.1 +3 -0
  32. qwen14B_models/qwen_14B_d1_iter2_model/special_tokens_map.json +27 -0
  33. qwen14B_models/qwen_14B_d1_iter2_model/tokenizer_config.json +45 -0
  34. qwen14B_models/qwen_14B_d1_iter2_model/train_results.json +8 -0
  35. qwen14B_models/qwen_14B_d1_iter2_model/trainer_log.jsonl +38 -0
  36. qwen14B_models/qwen_14B_d1_iter2_model/trainer_state.json +297 -0
  37. qwen14B_models/qwen_14B_d1_iter2_model/training_args.bin +3 -0
  38. qwen14B_models/qwen_14B_d1_iter2_model/training_eval_loss.png +0 -0
  39. qwen14B_models/qwen_14B_d1_iter2_model/training_loss.png +0 -0
  40. qwen14B_models/qwen_14B_d1_iter2_model/vocab.json +0 -0
  41. qwen14B_models/qwen_14B_d2_iter3_model/README.md +69 -0
  42. qwen14B_models/qwen_14B_d2_iter3_model/adapter_config.json +34 -0
  43. qwen14B_models/qwen_14B_d2_iter3_model/adapter_model.safetensors +3 -0
  44. qwen14B_models/qwen_14B_d2_iter3_model/added_tokens.json +5 -0
  45. qwen14B_models/qwen_14B_d2_iter3_model/all_results.json +12 -0
  46. qwen14B_models/qwen_14B_d2_iter3_model/eval_results.json +7 -0
  47. qwen14B_models/qwen_14B_d2_iter3_model/lora.log +0 -0
  48. qwen14B_models/qwen_14B_d2_iter3_model/merge.log +7 -0
  49. qwen14B_models/qwen_14B_d2_iter3_model/merges.txt +0 -0
  50. qwen14B_models/qwen_14B_d2_iter3_model/runs/Jul15_14-01-40_t-20240715144206-zn57g-worker-0/events.out.tfevents.1721052207.t-20240715144206-zn57g-worker-0.174136.0 +3 -0
qwen14B_models/qwen_14B_d0_iter1_model/README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ library_name: peft
4
+ tags:
5
+ - llama-factory
6
+ - lora
7
+ - generated_from_trainer
8
+ base_model: /ML-A100/team/mm/eamon/self_instruction/models/Qwen1_5_14B
9
+ model-index:
10
+ - name: qwen_14B_d0_iter1_model
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
+ # qwen_14B_d0_iter1_model
18
+
19
+ This model is a fine-tuned version of [/ML-A100/team/mm/eamon/self_instruction/models/Qwen1_5_14B](https://huggingface.co//ML-A100/team/mm/eamon/self_instruction/models/Qwen1_5_14B) on the qwen_14B_d0_iter1_model dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.6997
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 5e-05
41
+ - train_batch_size: 1
42
+ - eval_batch_size: 1
43
+ - seed: 42
44
+ - distributed_type: multi-GPU
45
+ - num_devices: 8
46
+ - gradient_accumulation_steps: 2
47
+ - total_train_batch_size: 16
48
+ - total_eval_batch_size: 8
49
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
+ - lr_scheduler_type: cosine
51
+ - lr_scheduler_warmup_steps: 20
52
+ - num_epochs: 2.0
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss |
57
+ |:-------------:|:------:|:----:|:---------------:|
58
+ | 0.6716 | 0.5917 | 100 | 0.7039 |
59
+ | 0.5798 | 1.1834 | 200 | 0.7010 |
60
+ | 0.5292 | 1.7751 | 300 | 0.6997 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - PEFT 0.10.0
66
+ - Transformers 4.41.2
67
+ - Pytorch 2.1.2+cu121
68
+ - Datasets 2.18.0
69
+ - Tokenizers 0.19.1
qwen14B_models/qwen_14B_d0_iter1_model/adapter_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "/ML-A100/team/mm/eamon/self_instruction/models/Qwen1_5_14B",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
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": 8,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "gate_proj",
24
+ "v_proj",
25
+ "up_proj",
26
+ "o_proj",
27
+ "k_proj",
28
+ "down_proj",
29
+ "q_proj"
30
+ ],
31
+ "task_type": "CAUSAL_LM",
32
+ "use_dora": false,
33
+ "use_rslora": false
34
+ }
qwen14B_models/qwen_14B_d0_iter1_model/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:538f964fab9f9d87ce8a6cad7c3fe279c0a1e4a4af3caa380efebce6c47beba3
3
+ size 62415664
qwen14B_models/qwen_14B_d0_iter1_model/added_tokens.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "<|endoftext|>": 151643,
3
+ "<|im_end|>": 151645,
4
+ "<|im_start|>": 151644
5
+ }
qwen14B_models/qwen_14B_d0_iter1_model/all_results.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "eval_loss": 0.6997424960136414,
4
+ "eval_runtime": 18.495,
5
+ "eval_samples_per_second": 16.221,
6
+ "eval_steps_per_second": 2.055,
7
+ "total_flos": 123391664193536.0,
8
+ "train_loss": 0.6494796699320776,
9
+ "train_runtime": 1192.6701,
10
+ "train_samples_per_second": 4.528,
11
+ "train_steps_per_second": 0.283
12
+ }
qwen14B_models/qwen_14B_d0_iter1_model/eval_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "eval_loss": 0.6997424960136414,
4
+ "eval_runtime": 18.495,
5
+ "eval_samples_per_second": 16.221,
6
+ "eval_steps_per_second": 2.055
7
+ }
qwen14B_models/qwen_14B_d0_iter1_model/lora.log ADDED
The diff for this file is too large to render. See raw diff
 
qwen14B_models/qwen_14B_d0_iter1_model/merge.log ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ [2024-07-15 09:01:42,071] [INFO] [real_accelerator.py:191:get_accelerator] Setting ds_accelerator to cuda (auto detect)
2
+ 07/15/2024 09:01:44 - INFO - llmtuner.data.template - Add <|im_end|>,<|endoftext|> to stop words.
3
+ 07/15/2024 09:01:44 - INFO - llmtuner.model.patcher - Using KV cache for faster generation.
4
+ 07/15/2024 09:01:45 - INFO - llmtuner.model.adapter - Fine-tuning method: LoRA
5
+ 07/15/2024 09:01:58 - INFO - llmtuner.model.adapter - Merged 1 adapter(s).
6
+ 07/15/2024 09:01:58 - INFO - llmtuner.model.adapter - Loaded adapter(s): /ML-A100/team/mm/eamon/self_instruction/seed_ppl/qwen14B_models/qwen_14B_d0_iter1_model
7
+ 07/15/2024 09:01:58 - INFO - llmtuner.model.loader - all params: 14167290880
qwen14B_models/qwen_14B_d0_iter1_model/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
qwen14B_models/qwen_14B_d0_iter1_model/runs/Jul15_08-39-17_t-20240715144206-zn57g-worker-0/events.out.tfevents.1721032863.t-20240715144206-zn57g-worker-0.53949.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ae4ec621e45944bac0de053da4552893deafe5696c64a1035b207aed6b2a3fe
3
+ size 13407
qwen14B_models/qwen_14B_d0_iter1_model/runs/Jul15_08-39-17_t-20240715144206-zn57g-worker-0/events.out.tfevents.1721034091.t-20240715144206-zn57g-worker-0.53949.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9361689649b9278c4d6f2cb095d69c32bc3baf38985589cba28eb1800da95a92
3
+ size 359
qwen14B_models/qwen_14B_d0_iter1_model/special_tokens_map.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ }
12
+ ],
13
+ "eos_token": {
14
+ "content": "<|endoftext|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "pad_token": {
21
+ "content": "<|endoftext|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false
26
+ }
27
+ }
qwen14B_models/qwen_14B_d0_iter1_model/tokenizer_config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "<|endoftext|>"
33
+ ],
34
+ "bos_token": null,
35
+ "chat_template": "{% set system_message = 'You are a helpful assistant.' %}{% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] %}{% endif %}{% if system_message is defined %}{{ '<|im_start|>system\\n' + system_message + '<|im_end|>\\n' }}{% endif %}{% for message in messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ '<|im_start|>user\\n' + content + '<|im_end|>\\n<|im_start|>assistant\\n' }}{% elif message['role'] == 'assistant' %}{{ content + '<|endoftext|>' + '\\n' }}{% endif %}{% endfor %}",
36
+ "clean_up_tokenization_spaces": false,
37
+ "eos_token": "<|endoftext|>",
38
+ "errors": "replace",
39
+ "model_max_length": 32768,
40
+ "pad_token": "<|endoftext|>",
41
+ "padding_side": "right",
42
+ "split_special_tokens": false,
43
+ "tokenizer_class": "Qwen2Tokenizer",
44
+ "unk_token": null
45
+ }
qwen14B_models/qwen_14B_d0_iter1_model/train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "total_flos": 123391664193536.0,
4
+ "train_loss": 0.6494796699320776,
5
+ "train_runtime": 1192.6701,
6
+ "train_samples_per_second": 4.528,
7
+ "train_steps_per_second": 0.283
8
+ }
qwen14B_models/qwen_14B_d0_iter1_model/trainer_log.jsonl ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"current_steps": 10, "total_steps": 338, "loss": 1.0824, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 2.5e-05, "epoch": 0.05917159763313609, "percentage": 2.96, "elapsed_time": "0:00:40", "remaining_time": "0:21:59"}
2
+ {"current_steps": 20, "total_steps": 338, "loss": 1.0109, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 5e-05, "epoch": 0.11834319526627218, "percentage": 5.92, "elapsed_time": "0:01:11", "remaining_time": "0:19:01"}
3
+ {"current_steps": 30, "total_steps": 338, "loss": 0.6595, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 4.98781004037916e-05, "epoch": 0.17751479289940827, "percentage": 8.88, "elapsed_time": "0:01:43", "remaining_time": "0:17:43"}
4
+ {"current_steps": 40, "total_steps": 338, "loss": 0.7391, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 4.951359037609088e-05, "epoch": 0.23668639053254437, "percentage": 11.83, "elapsed_time": "0:02:15", "remaining_time": "0:16:51"}
5
+ {"current_steps": 50, "total_steps": 338, "loss": 0.7051, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 4.891002460691306e-05, "epoch": 0.2958579881656805, "percentage": 14.79, "elapsed_time": "0:02:47", "remaining_time": "0:16:03"}
6
+ {"current_steps": 60, "total_steps": 338, "loss": 0.7091, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 4.807328905014201e-05, "epoch": 0.35502958579881655, "percentage": 17.75, "elapsed_time": "0:03:18", "remaining_time": "0:15:21"}
7
+ {"current_steps": 70, "total_steps": 338, "loss": 0.6642, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 4.7011543523897996e-05, "epoch": 0.41420118343195267, "percentage": 20.71, "elapsed_time": "0:03:50", "remaining_time": "0:14:44"}
8
+ {"current_steps": 80, "total_steps": 338, "loss": 0.6352, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 4.573514213625505e-05, "epoch": 0.47337278106508873, "percentage": 23.67, "elapsed_time": "0:04:22", "remaining_time": "0:14:06"}
9
+ {"current_steps": 90, "total_steps": 338, "loss": 0.695, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 4.425653231231344e-05, "epoch": 0.5325443786982249, "percentage": 26.63, "elapsed_time": "0:04:54", "remaining_time": "0:13:30"}
10
+ {"current_steps": 100, "total_steps": 338, "loss": 0.6716, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 4.259013340731224e-05, "epoch": 0.591715976331361, "percentage": 29.59, "elapsed_time": "0:05:26", "remaining_time": "0:12:56"}
11
+ {"current_steps": 100, "total_steps": 338, "loss": null, "eval_loss": 0.703880250453949, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": null, "epoch": 0.591715976331361, "percentage": 29.59, "elapsed_time": "0:05:26", "remaining_time": "0:12:56"}
12
+ {"current_steps": 110, "total_steps": 338, "loss": 0.6649, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 4.075219608954278e-05, "epoch": 0.650887573964497, "percentage": 32.54, "elapsed_time": "0:06:34", "remaining_time": "0:13:37"}
13
+ {"current_steps": 120, "total_steps": 338, "loss": 0.6485, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 3.876064386435646e-05, "epoch": 0.7100591715976331, "percentage": 35.5, "elapsed_time": "0:07:06", "remaining_time": "0:12:54"}
14
+ {"current_steps": 130, "total_steps": 338, "loss": 0.5978, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 3.663489828471953e-05, "epoch": 0.7692307692307693, "percentage": 38.46, "elapsed_time": "0:07:38", "remaining_time": "0:12:13"}
15
+ {"current_steps": 140, "total_steps": 338, "loss": 0.6504, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 3.4395689552855955e-05, "epoch": 0.8284023668639053, "percentage": 41.42, "elapsed_time": "0:08:10", "remaining_time": "0:11:33"}
16
+ {"current_steps": 150, "total_steps": 338, "loss": 0.6214, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 3.206485435998498e-05, "epoch": 0.8875739644970414, "percentage": 44.38, "elapsed_time": "0:08:41", "remaining_time": "0:10:53"}
17
+ {"current_steps": 160, "total_steps": 338, "loss": 0.6144, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 2.9665122935613727e-05, "epoch": 0.9467455621301775, "percentage": 47.34, "elapsed_time": "0:09:13", "remaining_time": "0:10:15"}
18
+ {"current_steps": 170, "total_steps": 338, "loss": 0.6493, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 2.7219897383073373e-05, "epoch": 1.0059171597633136, "percentage": 50.3, "elapsed_time": "0:09:45", "remaining_time": "0:09:38"}
19
+ {"current_steps": 180, "total_steps": 338, "loss": 0.6474, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 2.475302346296336e-05, "epoch": 1.0650887573964498, "percentage": 53.25, "elapsed_time": "0:10:16", "remaining_time": "0:09:01"}
20
+ {"current_steps": 190, "total_steps": 338, "loss": 0.564, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 2.2288558050064367e-05, "epoch": 1.1242603550295858, "percentage": 56.21, "elapsed_time": "0:10:48", "remaining_time": "0:08:25"}
21
+ {"current_steps": 200, "total_steps": 338, "loss": 0.5798, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 1.9850534531472546e-05, "epoch": 1.183431952662722, "percentage": 59.17, "elapsed_time": "0:11:20", "remaining_time": "0:07:49"}
22
+ {"current_steps": 200, "total_steps": 338, "loss": null, "eval_loss": 0.7010006904602051, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": null, "epoch": 1.183431952662722, "percentage": 59.17, "elapsed_time": "0:11:20", "remaining_time": "0:07:49"}
23
+ {"current_steps": 210, "total_steps": 338, "loss": 0.6323, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 1.746272843378493e-05, "epoch": 1.242603550295858, "percentage": 62.13, "elapsed_time": "0:12:27", "remaining_time": "0:07:35"}
24
+ {"current_steps": 220, "total_steps": 338, "loss": 0.6106, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 1.5148425564932084e-05, "epoch": 1.301775147928994, "percentage": 65.09, "elapsed_time": "0:12:59", "remaining_time": "0:06:58"}
25
+ {"current_steps": 230, "total_steps": 338, "loss": 0.6374, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 1.2930194931731382e-05, "epoch": 1.3609467455621302, "percentage": 68.05, "elapsed_time": "0:13:31", "remaining_time": "0:06:21"}
26
+ {"current_steps": 240, "total_steps": 338, "loss": 0.5758, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 1.0829668647661559e-05, "epoch": 1.4201183431952662, "percentage": 71.01, "elapsed_time": "0:14:03", "remaining_time": "0:05:44"}
27
+ {"current_steps": 250, "total_steps": 338, "loss": 0.5988, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 8.867330977190877e-06, "epoch": 1.4792899408284024, "percentage": 73.96, "elapsed_time": "0:14:35", "remaining_time": "0:05:08"}
28
+ {"current_steps": 260, "total_steps": 338, "loss": 0.5956, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 7.062318573891716e-06, "epoch": 1.5384615384615383, "percentage": 76.92, "elapsed_time": "0:15:07", "remaining_time": "0:04:32"}
29
+ {"current_steps": 270, "total_steps": 338, "loss": 0.5467, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 5.4322338604131715e-06, "epoch": 1.5976331360946747, "percentage": 79.88, "elapsed_time": "0:15:40", "remaining_time": "0:03:56"}
30
+ {"current_steps": 280, "total_steps": 338, "loss": 0.599, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 3.992973370223896e-06, "epoch": 1.6568047337278107, "percentage": 82.84, "elapsed_time": "0:16:11", "remaining_time": "0:03:21"}
31
+ {"current_steps": 290, "total_steps": 338, "loss": 0.5505, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 2.75857272513132e-06, "epoch": 1.7159763313609466, "percentage": 85.8, "elapsed_time": "0:16:43", "remaining_time": "0:02:46"}
32
+ {"current_steps": 300, "total_steps": 338, "loss": 0.5292, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 1.7410697603511383e-06, "epoch": 1.7751479289940828, "percentage": 88.76, "elapsed_time": "0:17:15", "remaining_time": "0:02:11"}
33
+ {"current_steps": 300, "total_steps": 338, "loss": null, "eval_loss": 0.6997424960136414, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": null, "epoch": 1.7751479289940828, "percentage": 88.76, "elapsed_time": "0:17:15", "remaining_time": "0:02:11"}
34
+ {"current_steps": 310, "total_steps": 338, "loss": 0.6355, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 9.503871319271551e-07, "epoch": 1.834319526627219, "percentage": 91.72, "elapsed_time": "0:18:21", "remaining_time": "0:01:39"}
35
+ {"current_steps": 320, "total_steps": 338, "loss": 0.6309, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 3.9423555131007925e-07, "epoch": 1.893491124260355, "percentage": 94.67, "elapsed_time": "0:18:53", "remaining_time": "0:01:03"}
36
+ {"current_steps": 330, "total_steps": 338, "loss": 0.5814, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 7.803859074854425e-08, "epoch": 1.952662721893491, "percentage": 97.63, "elapsed_time": "0:19:25", "remaining_time": "0:00:28"}
37
+ {"current_steps": 338, "total_steps": 338, "loss": null, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": null, "epoch": 2.0, "percentage": 100.0, "elapsed_time": "0:19:52", "remaining_time": "0:00:00"}
38
+ {"current_steps": 38, "total_steps": 38, "loss": null, "eval_loss": 0.6997424960136414, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": null, "epoch": 2.0, "percentage": 100.0, "elapsed_time": "0:20:27", "remaining_time": "0:00:00"}
qwen14B_models/qwen_14B_d0_iter1_model/trainer_state.json ADDED
@@ -0,0 +1,297 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.6997424960136414,
3
+ "best_model_checkpoint": "/ML-A100/team/mm/eamon/self_instruction/seed_ppl/qwen14B_models/qwen_14B_d0_iter1_model/checkpoint-300",
4
+ "epoch": 2.0,
5
+ "eval_steps": 100,
6
+ "global_step": 338,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.05917159763313609,
13
+ "grad_norm": 0.586446509459034,
14
+ "learning_rate": 2.5e-05,
15
+ "loss": 1.0824,
16
+ "step": 10
17
+ },
18
+ {
19
+ "epoch": 0.11834319526627218,
20
+ "grad_norm": 2.2316997759806494,
21
+ "learning_rate": 5e-05,
22
+ "loss": 1.0109,
23
+ "step": 20
24
+ },
25
+ {
26
+ "epoch": 0.17751479289940827,
27
+ "grad_norm": 0.4074702236613225,
28
+ "learning_rate": 4.98781004037916e-05,
29
+ "loss": 0.6595,
30
+ "step": 30
31
+ },
32
+ {
33
+ "epoch": 0.23668639053254437,
34
+ "grad_norm": 0.3126617987747972,
35
+ "learning_rate": 4.951359037609088e-05,
36
+ "loss": 0.7391,
37
+ "step": 40
38
+ },
39
+ {
40
+ "epoch": 0.2958579881656805,
41
+ "grad_norm": 0.708271236864645,
42
+ "learning_rate": 4.891002460691306e-05,
43
+ "loss": 0.7051,
44
+ "step": 50
45
+ },
46
+ {
47
+ "epoch": 0.35502958579881655,
48
+ "grad_norm": 0.3826205284015388,
49
+ "learning_rate": 4.807328905014201e-05,
50
+ "loss": 0.7091,
51
+ "step": 60
52
+ },
53
+ {
54
+ "epoch": 0.41420118343195267,
55
+ "grad_norm": 0.4309917712753102,
56
+ "learning_rate": 4.7011543523897996e-05,
57
+ "loss": 0.6642,
58
+ "step": 70
59
+ },
60
+ {
61
+ "epoch": 0.47337278106508873,
62
+ "grad_norm": 0.46078253102774147,
63
+ "learning_rate": 4.573514213625505e-05,
64
+ "loss": 0.6352,
65
+ "step": 80
66
+ },
67
+ {
68
+ "epoch": 0.5325443786982249,
69
+ "grad_norm": 0.350545318021008,
70
+ "learning_rate": 4.425653231231344e-05,
71
+ "loss": 0.695,
72
+ "step": 90
73
+ },
74
+ {
75
+ "epoch": 0.591715976331361,
76
+ "grad_norm": 1.3918929820024042,
77
+ "learning_rate": 4.259013340731224e-05,
78
+ "loss": 0.6716,
79
+ "step": 100
80
+ },
81
+ {
82
+ "epoch": 0.591715976331361,
83
+ "eval_loss": 0.703880250453949,
84
+ "eval_runtime": 20.1945,
85
+ "eval_samples_per_second": 14.856,
86
+ "eval_steps_per_second": 1.882,
87
+ "step": 100
88
+ },
89
+ {
90
+ "epoch": 0.650887573964497,
91
+ "grad_norm": 0.46801886344571736,
92
+ "learning_rate": 4.075219608954278e-05,
93
+ "loss": 0.6649,
94
+ "step": 110
95
+ },
96
+ {
97
+ "epoch": 0.7100591715976331,
98
+ "grad_norm": 0.7261378819214507,
99
+ "learning_rate": 3.876064386435646e-05,
100
+ "loss": 0.6485,
101
+ "step": 120
102
+ },
103
+ {
104
+ "epoch": 0.7692307692307693,
105
+ "grad_norm": 0.6311105785325938,
106
+ "learning_rate": 3.663489828471953e-05,
107
+ "loss": 0.5978,
108
+ "step": 130
109
+ },
110
+ {
111
+ "epoch": 0.8284023668639053,
112
+ "grad_norm": 1.0566991845506082,
113
+ "learning_rate": 3.4395689552855955e-05,
114
+ "loss": 0.6504,
115
+ "step": 140
116
+ },
117
+ {
118
+ "epoch": 0.8875739644970414,
119
+ "grad_norm": 0.42416309958564125,
120
+ "learning_rate": 3.206485435998498e-05,
121
+ "loss": 0.6214,
122
+ "step": 150
123
+ },
124
+ {
125
+ "epoch": 0.9467455621301775,
126
+ "grad_norm": 0.42527966548399343,
127
+ "learning_rate": 2.9665122935613727e-05,
128
+ "loss": 0.6144,
129
+ "step": 160
130
+ },
131
+ {
132
+ "epoch": 1.0059171597633136,
133
+ "grad_norm": 0.3979436989011932,
134
+ "learning_rate": 2.7219897383073373e-05,
135
+ "loss": 0.6493,
136
+ "step": 170
137
+ },
138
+ {
139
+ "epoch": 1.0650887573964498,
140
+ "grad_norm": 0.24203747971705217,
141
+ "learning_rate": 2.475302346296336e-05,
142
+ "loss": 0.6474,
143
+ "step": 180
144
+ },
145
+ {
146
+ "epoch": 1.1242603550295858,
147
+ "grad_norm": 0.319431105160605,
148
+ "learning_rate": 2.2288558050064367e-05,
149
+ "loss": 0.564,
150
+ "step": 190
151
+ },
152
+ {
153
+ "epoch": 1.183431952662722,
154
+ "grad_norm": 0.5080338290607097,
155
+ "learning_rate": 1.9850534531472546e-05,
156
+ "loss": 0.5798,
157
+ "step": 200
158
+ },
159
+ {
160
+ "epoch": 1.183431952662722,
161
+ "eval_loss": 0.7010006904602051,
162
+ "eval_runtime": 18.8091,
163
+ "eval_samples_per_second": 15.95,
164
+ "eval_steps_per_second": 2.02,
165
+ "step": 200
166
+ },
167
+ {
168
+ "epoch": 1.242603550295858,
169
+ "grad_norm": 0.564376924960013,
170
+ "learning_rate": 1.746272843378493e-05,
171
+ "loss": 0.6323,
172
+ "step": 210
173
+ },
174
+ {
175
+ "epoch": 1.301775147928994,
176
+ "grad_norm": 0.498318513735455,
177
+ "learning_rate": 1.5148425564932084e-05,
178
+ "loss": 0.6106,
179
+ "step": 220
180
+ },
181
+ {
182
+ "epoch": 1.3609467455621302,
183
+ "grad_norm": 0.2827517725379645,
184
+ "learning_rate": 1.2930194931731382e-05,
185
+ "loss": 0.6374,
186
+ "step": 230
187
+ },
188
+ {
189
+ "epoch": 1.4201183431952662,
190
+ "grad_norm": 0.5094729039694312,
191
+ "learning_rate": 1.0829668647661559e-05,
192
+ "loss": 0.5758,
193
+ "step": 240
194
+ },
195
+ {
196
+ "epoch": 1.4792899408284024,
197
+ "grad_norm": 0.269479823527664,
198
+ "learning_rate": 8.867330977190877e-06,
199
+ "loss": 0.5988,
200
+ "step": 250
201
+ },
202
+ {
203
+ "epoch": 1.5384615384615383,
204
+ "grad_norm": 0.3701018971236146,
205
+ "learning_rate": 7.062318573891716e-06,
206
+ "loss": 0.5956,
207
+ "step": 260
208
+ },
209
+ {
210
+ "epoch": 1.5976331360946747,
211
+ "grad_norm": 0.43248474882397636,
212
+ "learning_rate": 5.4322338604131715e-06,
213
+ "loss": 0.5467,
214
+ "step": 270
215
+ },
216
+ {
217
+ "epoch": 1.6568047337278107,
218
+ "grad_norm": 0.896259597910678,
219
+ "learning_rate": 3.992973370223896e-06,
220
+ "loss": 0.599,
221
+ "step": 280
222
+ },
223
+ {
224
+ "epoch": 1.7159763313609466,
225
+ "grad_norm": 0.28651524116933125,
226
+ "learning_rate": 2.75857272513132e-06,
227
+ "loss": 0.5505,
228
+ "step": 290
229
+ },
230
+ {
231
+ "epoch": 1.7751479289940828,
232
+ "grad_norm": 0.5096606249052688,
233
+ "learning_rate": 1.7410697603511383e-06,
234
+ "loss": 0.5292,
235
+ "step": 300
236
+ },
237
+ {
238
+ "epoch": 1.7751479289940828,
239
+ "eval_loss": 0.6997424960136414,
240
+ "eval_runtime": 19.0297,
241
+ "eval_samples_per_second": 15.765,
242
+ "eval_steps_per_second": 1.997,
243
+ "step": 300
244
+ },
245
+ {
246
+ "epoch": 1.834319526627219,
247
+ "grad_norm": 0.6033783324728439,
248
+ "learning_rate": 9.503871319271551e-07,
249
+ "loss": 0.6355,
250
+ "step": 310
251
+ },
252
+ {
253
+ "epoch": 1.893491124260355,
254
+ "grad_norm": 0.5681857650004716,
255
+ "learning_rate": 3.9423555131007925e-07,
256
+ "loss": 0.6309,
257
+ "step": 320
258
+ },
259
+ {
260
+ "epoch": 1.952662721893491,
261
+ "grad_norm": 0.5632696843447448,
262
+ "learning_rate": 7.803859074854425e-08,
263
+ "loss": 0.5814,
264
+ "step": 330
265
+ },
266
+ {
267
+ "epoch": 2.0,
268
+ "step": 338,
269
+ "total_flos": 123391664193536.0,
270
+ "train_loss": 0.6494796699320776,
271
+ "train_runtime": 1192.6701,
272
+ "train_samples_per_second": 4.528,
273
+ "train_steps_per_second": 0.283
274
+ }
275
+ ],
276
+ "logging_steps": 10,
277
+ "max_steps": 338,
278
+ "num_input_tokens_seen": 0,
279
+ "num_train_epochs": 2,
280
+ "save_steps": 100,
281
+ "stateful_callbacks": {
282
+ "TrainerControl": {
283
+ "args": {
284
+ "should_epoch_stop": false,
285
+ "should_evaluate": false,
286
+ "should_log": false,
287
+ "should_save": true,
288
+ "should_training_stop": false
289
+ },
290
+ "attributes": {}
291
+ }
292
+ },
293
+ "total_flos": 123391664193536.0,
294
+ "train_batch_size": 1,
295
+ "trial_name": null,
296
+ "trial_params": null
297
+ }
qwen14B_models/qwen_14B_d0_iter1_model/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a25d2f7ff7b99ffc68ada4152b160a463ed0921fa81a00c7b3486de6a3598416
3
+ size 7032
qwen14B_models/qwen_14B_d0_iter1_model/training_eval_loss.png ADDED
qwen14B_models/qwen_14B_d0_iter1_model/training_loss.png ADDED
qwen14B_models/qwen_14B_d0_iter1_model/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
qwen14B_models/qwen_14B_d1_iter2_model/README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ library_name: peft
4
+ tags:
5
+ - llama-factory
6
+ - lora
7
+ - generated_from_trainer
8
+ base_model: /ML-A100/team/mm/eamon/self_instruction/models/Qwen1_5_14B
9
+ model-index:
10
+ - name: qwen_14B_d1_iter2_model
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
+ # qwen_14B_d1_iter2_model
18
+
19
+ This model is a fine-tuned version of [/ML-A100/team/mm/eamon/self_instruction/models/Qwen1_5_14B](https://huggingface.co//ML-A100/team/mm/eamon/self_instruction/models/Qwen1_5_14B) on the qwen_14B_d1_iter2_model dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.5391
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 5e-05
41
+ - train_batch_size: 1
42
+ - eval_batch_size: 1
43
+ - seed: 42
44
+ - distributed_type: multi-GPU
45
+ - num_devices: 8
46
+ - gradient_accumulation_steps: 2
47
+ - total_train_batch_size: 16
48
+ - total_eval_batch_size: 8
49
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
+ - lr_scheduler_type: cosine
51
+ - lr_scheduler_warmup_steps: 20
52
+ - num_epochs: 2.0
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss |
57
+ |:-------------:|:------:|:----:|:---------------:|
58
+ | 0.5923 | 0.5917 | 100 | 0.5549 |
59
+ | 0.485 | 1.1834 | 200 | 0.5391 |
60
+ | 0.4405 | 1.7751 | 300 | 0.5399 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - PEFT 0.10.0
66
+ - Transformers 4.41.2
67
+ - Pytorch 2.1.2+cu121
68
+ - Datasets 2.18.0
69
+ - Tokenizers 0.19.1
qwen14B_models/qwen_14B_d1_iter2_model/adapter_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "/ML-A100/team/mm/eamon/self_instruction/models/Qwen1_5_14B",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
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": 8,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "o_proj",
24
+ "v_proj",
25
+ "up_proj",
26
+ "q_proj",
27
+ "k_proj",
28
+ "down_proj",
29
+ "gate_proj"
30
+ ],
31
+ "task_type": "CAUSAL_LM",
32
+ "use_dora": false,
33
+ "use_rslora": false
34
+ }
qwen14B_models/qwen_14B_d1_iter2_model/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df15f1ce5fdb1222217b5cbc3f7adb0972ffdd341003ec84982008441d4fd13c
3
+ size 62415664
qwen14B_models/qwen_14B_d1_iter2_model/added_tokens.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "<|endoftext|>": 151643,
3
+ "<|im_end|>": 151645,
4
+ "<|im_start|>": 151644
5
+ }
qwen14B_models/qwen_14B_d1_iter2_model/all_results.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "eval_loss": 0.5390731692314148,
4
+ "eval_runtime": 18.8117,
5
+ "eval_samples_per_second": 15.948,
6
+ "eval_steps_per_second": 2.02,
7
+ "total_flos": 93650261901312.0,
8
+ "train_loss": 0.5521188734551153,
9
+ "train_runtime": 1213.4234,
10
+ "train_samples_per_second": 4.45,
11
+ "train_steps_per_second": 0.279
12
+ }
qwen14B_models/qwen_14B_d1_iter2_model/eval_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "eval_loss": 0.5390731692314148,
4
+ "eval_runtime": 18.8117,
5
+ "eval_samples_per_second": 15.948,
6
+ "eval_steps_per_second": 2.02
7
+ }
qwen14B_models/qwen_14B_d1_iter2_model/lora.log ADDED
The diff for this file is too large to render. See raw diff
 
qwen14B_models/qwen_14B_d1_iter2_model/merge.log ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ [2024-07-15 11:40:18,829] [INFO] [real_accelerator.py:191:get_accelerator] Setting ds_accelerator to cuda (auto detect)
2
+ 07/15/2024 11:40:20 - INFO - llmtuner.data.template - Add <|im_end|>,<|endoftext|> to stop words.
3
+ 07/15/2024 11:40:20 - INFO - llmtuner.model.patcher - Using KV cache for faster generation.
4
+ 07/15/2024 11:40:22 - INFO - llmtuner.model.adapter - Fine-tuning method: LoRA
5
+ 07/15/2024 11:40:34 - INFO - llmtuner.model.adapter - Merged 1 adapter(s).
6
+ 07/15/2024 11:40:34 - INFO - llmtuner.model.adapter - Loaded adapter(s): /ML-A100/team/mm/eamon/self_instruction/seed_ppl/qwen14B_models/qwen_14B_d1_iter2_model
7
+ 07/15/2024 11:40:34 - INFO - llmtuner.model.loader - all params: 14167290880
qwen14B_models/qwen_14B_d1_iter2_model/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
qwen14B_models/qwen_14B_d1_iter2_model/runs/Jul15_11-17-33_t-20240715144206-zn57g-worker-0/events.out.tfevents.1721042359.t-20240715144206-zn57g-worker-0.113434.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16559cac3cfb7178647d5a8f32bc559009f69aaa43358bcb95a0cc562ed2334c
3
+ size 13407
qwen14B_models/qwen_14B_d1_iter2_model/runs/Jul15_11-17-33_t-20240715144206-zn57g-worker-0/events.out.tfevents.1721043608.t-20240715144206-zn57g-worker-0.113434.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:133bf6149964f579e3296ac3bf3545238dc42b442f8e4742773c8a53855baa59
3
+ size 359
qwen14B_models/qwen_14B_d1_iter2_model/special_tokens_map.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ }
12
+ ],
13
+ "eos_token": {
14
+ "content": "<|endoftext|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "pad_token": {
21
+ "content": "<|endoftext|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false
26
+ }
27
+ }
qwen14B_models/qwen_14B_d1_iter2_model/tokenizer_config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "<|endoftext|>"
33
+ ],
34
+ "bos_token": null,
35
+ "chat_template": "{% set system_message = 'You are a helpful assistant.' %}{% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] %}{% endif %}{% if system_message is defined %}{{ '<|im_start|>system\\n' + system_message + '<|im_end|>\\n' }}{% endif %}{% for message in messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ '<|im_start|>user\\n' + content + '<|im_end|>\\n<|im_start|>assistant\\n' }}{% elif message['role'] == 'assistant' %}{{ content + '<|endoftext|>' + '\\n' }}{% endif %}{% endfor %}",
36
+ "clean_up_tokenization_spaces": false,
37
+ "eos_token": "<|endoftext|>",
38
+ "errors": "replace",
39
+ "model_max_length": 32768,
40
+ "pad_token": "<|endoftext|>",
41
+ "padding_side": "right",
42
+ "split_special_tokens": false,
43
+ "tokenizer_class": "Qwen2Tokenizer",
44
+ "unk_token": null
45
+ }
qwen14B_models/qwen_14B_d1_iter2_model/train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "total_flos": 93650261901312.0,
4
+ "train_loss": 0.5521188734551153,
5
+ "train_runtime": 1213.4234,
6
+ "train_samples_per_second": 4.45,
7
+ "train_steps_per_second": 0.279
8
+ }
qwen14B_models/qwen_14B_d1_iter2_model/trainer_log.jsonl ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"current_steps": 10, "total_steps": 338, "loss": 1.39, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 2.5e-05, "epoch": 0.05917159763313609, "percentage": 2.96, "elapsed_time": "0:00:40", "remaining_time": "0:22:17"}
2
+ {"current_steps": 20, "total_steps": 338, "loss": 1.2536, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 5e-05, "epoch": 0.11834319526627218, "percentage": 5.92, "elapsed_time": "0:01:13", "remaining_time": "0:19:21"}
3
+ {"current_steps": 30, "total_steps": 338, "loss": 0.6182, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 4.98781004037916e-05, "epoch": 0.17751479289940827, "percentage": 8.88, "elapsed_time": "0:01:45", "remaining_time": "0:18:02"}
4
+ {"current_steps": 40, "total_steps": 338, "loss": 0.5871, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 4.951359037609088e-05, "epoch": 0.23668639053254437, "percentage": 11.83, "elapsed_time": "0:02:17", "remaining_time": "0:17:05"}
5
+ {"current_steps": 50, "total_steps": 338, "loss": 0.6622, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 4.891002460691306e-05, "epoch": 0.2958579881656805, "percentage": 14.79, "elapsed_time": "0:02:49", "remaining_time": "0:16:17"}
6
+ {"current_steps": 60, "total_steps": 338, "loss": 0.5239, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 4.807328905014201e-05, "epoch": 0.35502958579881655, "percentage": 17.75, "elapsed_time": "0:03:22", "remaining_time": "0:15:36"}
7
+ {"current_steps": 70, "total_steps": 338, "loss": 0.6031, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 4.7011543523897996e-05, "epoch": 0.41420118343195267, "percentage": 20.71, "elapsed_time": "0:03:54", "remaining_time": "0:14:59"}
8
+ {"current_steps": 80, "total_steps": 338, "loss": 0.5342, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 4.573514213625505e-05, "epoch": 0.47337278106508873, "percentage": 23.67, "elapsed_time": "0:04:26", "remaining_time": "0:14:20"}
9
+ {"current_steps": 90, "total_steps": 338, "loss": 0.5295, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 4.425653231231344e-05, "epoch": 0.5325443786982249, "percentage": 26.63, "elapsed_time": "0:04:58", "remaining_time": "0:13:43"}
10
+ {"current_steps": 100, "total_steps": 338, "loss": 0.5923, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 4.259013340731224e-05, "epoch": 0.591715976331361, "percentage": 29.59, "elapsed_time": "0:05:31", "remaining_time": "0:13:09"}
11
+ {"current_steps": 100, "total_steps": 338, "loss": null, "eval_loss": 0.5548861622810364, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": null, "epoch": 0.591715976331361, "percentage": 29.59, "elapsed_time": "0:05:31", "remaining_time": "0:13:09"}
12
+ {"current_steps": 110, "total_steps": 338, "loss": 0.5283, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 4.075219608954278e-05, "epoch": 0.650887573964497, "percentage": 32.54, "elapsed_time": "0:06:41", "remaining_time": "0:13:51"}
13
+ {"current_steps": 120, "total_steps": 338, "loss": 0.5123, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 3.876064386435646e-05, "epoch": 0.7100591715976331, "percentage": 35.5, "elapsed_time": "0:07:13", "remaining_time": "0:13:06"}
14
+ {"current_steps": 130, "total_steps": 338, "loss": 0.5148, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 3.663489828471953e-05, "epoch": 0.7692307692307693, "percentage": 38.46, "elapsed_time": "0:07:45", "remaining_time": "0:12:25"}
15
+ {"current_steps": 140, "total_steps": 338, "loss": 0.5706, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 3.4395689552855955e-05, "epoch": 0.8284023668639053, "percentage": 41.42, "elapsed_time": "0:08:18", "remaining_time": "0:11:45"}
16
+ {"current_steps": 150, "total_steps": 338, "loss": 0.5443, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 3.206485435998498e-05, "epoch": 0.8875739644970414, "percentage": 44.38, "elapsed_time": "0:08:51", "remaining_time": "0:11:05"}
17
+ {"current_steps": 160, "total_steps": 338, "loss": 0.5345, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 2.9665122935613727e-05, "epoch": 0.9467455621301775, "percentage": 47.34, "elapsed_time": "0:09:23", "remaining_time": "0:10:27"}
18
+ {"current_steps": 170, "total_steps": 338, "loss": 0.4759, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 2.7219897383073373e-05, "epoch": 1.0059171597633136, "percentage": 50.3, "elapsed_time": "0:09:57", "remaining_time": "0:09:50"}
19
+ {"current_steps": 180, "total_steps": 338, "loss": 0.4207, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 2.475302346296336e-05, "epoch": 1.0650887573964498, "percentage": 53.25, "elapsed_time": "0:10:29", "remaining_time": "0:09:12"}
20
+ {"current_steps": 190, "total_steps": 338, "loss": 0.4453, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 2.2288558050064367e-05, "epoch": 1.1242603550295858, "percentage": 56.21, "elapsed_time": "0:11:01", "remaining_time": "0:08:35"}
21
+ {"current_steps": 200, "total_steps": 338, "loss": 0.485, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 1.9850534531472546e-05, "epoch": 1.183431952662722, "percentage": 59.17, "elapsed_time": "0:11:34", "remaining_time": "0:07:59"}
22
+ {"current_steps": 200, "total_steps": 338, "loss": null, "eval_loss": 0.5390731692314148, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": null, "epoch": 1.183431952662722, "percentage": 59.17, "elapsed_time": "0:11:34", "remaining_time": "0:07:59"}
23
+ {"current_steps": 210, "total_steps": 338, "loss": 0.448, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 1.746272843378493e-05, "epoch": 1.242603550295858, "percentage": 62.13, "elapsed_time": "0:12:42", "remaining_time": "0:07:44"}
24
+ {"current_steps": 220, "total_steps": 338, "loss": 0.4257, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 1.5148425564932084e-05, "epoch": 1.301775147928994, "percentage": 65.09, "elapsed_time": "0:13:14", "remaining_time": "0:07:06"}
25
+ {"current_steps": 230, "total_steps": 338, "loss": 0.5102, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 1.2930194931731382e-05, "epoch": 1.3609467455621302, "percentage": 68.05, "elapsed_time": "0:13:47", "remaining_time": "0:06:28"}
26
+ {"current_steps": 240, "total_steps": 338, "loss": 0.4632, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 1.0829668647661559e-05, "epoch": 1.4201183431952662, "percentage": 71.01, "elapsed_time": "0:14:20", "remaining_time": "0:05:51"}
27
+ {"current_steps": 250, "total_steps": 338, "loss": 0.5108, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 8.867330977190877e-06, "epoch": 1.4792899408284024, "percentage": 73.96, "elapsed_time": "0:14:52", "remaining_time": "0:05:14"}
28
+ {"current_steps": 260, "total_steps": 338, "loss": 0.4304, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 7.062318573891716e-06, "epoch": 1.5384615384615383, "percentage": 76.92, "elapsed_time": "0:15:24", "remaining_time": "0:04:37"}
29
+ {"current_steps": 270, "total_steps": 338, "loss": 0.4281, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 5.4322338604131715e-06, "epoch": 1.5976331360946747, "percentage": 79.88, "elapsed_time": "0:15:57", "remaining_time": "0:04:01"}
30
+ {"current_steps": 280, "total_steps": 338, "loss": 0.4529, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 3.992973370223896e-06, "epoch": 1.6568047337278107, "percentage": 82.84, "elapsed_time": "0:16:29", "remaining_time": "0:03:24"}
31
+ {"current_steps": 290, "total_steps": 338, "loss": 0.4698, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 2.75857272513132e-06, "epoch": 1.7159763313609466, "percentage": 85.8, "elapsed_time": "0:17:01", "remaining_time": "0:02:49"}
32
+ {"current_steps": 300, "total_steps": 338, "loss": 0.4405, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 1.7410697603511383e-06, "epoch": 1.7751479289940828, "percentage": 88.76, "elapsed_time": "0:17:34", "remaining_time": "0:02:13"}
33
+ {"current_steps": 300, "total_steps": 338, "loss": null, "eval_loss": 0.5398803353309631, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": null, "epoch": 1.7751479289940828, "percentage": 88.76, "elapsed_time": "0:17:34", "remaining_time": "0:02:13"}
34
+ {"current_steps": 310, "total_steps": 338, "loss": 0.4825, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 9.503871319271551e-07, "epoch": 1.834319526627219, "percentage": 91.72, "elapsed_time": "0:18:40", "remaining_time": "0:01:41"}
35
+ {"current_steps": 320, "total_steps": 338, "loss": 0.5166, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 3.9423555131007925e-07, "epoch": 1.893491124260355, "percentage": 94.67, "elapsed_time": "0:19:12", "remaining_time": "0:01:04"}
36
+ {"current_steps": 330, "total_steps": 338, "loss": 0.4212, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": 7.803859074854425e-08, "epoch": 1.952662721893491, "percentage": 97.63, "elapsed_time": "0:19:45", "remaining_time": "0:00:28"}
37
+ {"current_steps": 338, "total_steps": 338, "loss": null, "eval_loss": null, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": null, "epoch": 2.0, "percentage": 100.0, "elapsed_time": "0:20:13", "remaining_time": "0:00:00"}
38
+ {"current_steps": 38, "total_steps": 38, "loss": null, "eval_loss": 0.5390731692314148, "predict_loss": null, "reward": null, "accuracy": null, "learning_rate": null, "epoch": 2.0, "percentage": 100.0, "elapsed_time": "0:20:48", "remaining_time": "0:00:00"}
qwen14B_models/qwen_14B_d1_iter2_model/trainer_state.json ADDED
@@ -0,0 +1,297 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.5390731692314148,
3
+ "best_model_checkpoint": "/ML-A100/team/mm/eamon/self_instruction/seed_ppl/qwen14B_models/qwen_14B_d1_iter2_model/checkpoint-200",
4
+ "epoch": 2.0,
5
+ "eval_steps": 100,
6
+ "global_step": 338,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.05917159763313609,
13
+ "grad_norm": 1.5490762637870956,
14
+ "learning_rate": 2.5e-05,
15
+ "loss": 1.39,
16
+ "step": 10
17
+ },
18
+ {
19
+ "epoch": 0.11834319526627218,
20
+ "grad_norm": 2.180427642573537,
21
+ "learning_rate": 5e-05,
22
+ "loss": 1.2536,
23
+ "step": 20
24
+ },
25
+ {
26
+ "epoch": 0.17751479289940827,
27
+ "grad_norm": 1.4938352528249466,
28
+ "learning_rate": 4.98781004037916e-05,
29
+ "loss": 0.6182,
30
+ "step": 30
31
+ },
32
+ {
33
+ "epoch": 0.23668639053254437,
34
+ "grad_norm": 0.8266774666049563,
35
+ "learning_rate": 4.951359037609088e-05,
36
+ "loss": 0.5871,
37
+ "step": 40
38
+ },
39
+ {
40
+ "epoch": 0.2958579881656805,
41
+ "grad_norm": 0.44331898296236955,
42
+ "learning_rate": 4.891002460691306e-05,
43
+ "loss": 0.6622,
44
+ "step": 50
45
+ },
46
+ {
47
+ "epoch": 0.35502958579881655,
48
+ "grad_norm": 0.7348699943282603,
49
+ "learning_rate": 4.807328905014201e-05,
50
+ "loss": 0.5239,
51
+ "step": 60
52
+ },
53
+ {
54
+ "epoch": 0.41420118343195267,
55
+ "grad_norm": 1.0233758530765529,
56
+ "learning_rate": 4.7011543523897996e-05,
57
+ "loss": 0.6031,
58
+ "step": 70
59
+ },
60
+ {
61
+ "epoch": 0.47337278106508873,
62
+ "grad_norm": 0.44566662901156306,
63
+ "learning_rate": 4.573514213625505e-05,
64
+ "loss": 0.5342,
65
+ "step": 80
66
+ },
67
+ {
68
+ "epoch": 0.5325443786982249,
69
+ "grad_norm": 0.32376173126197005,
70
+ "learning_rate": 4.425653231231344e-05,
71
+ "loss": 0.5295,
72
+ "step": 90
73
+ },
74
+ {
75
+ "epoch": 0.591715976331361,
76
+ "grad_norm": 2.5050276715521953,
77
+ "learning_rate": 4.259013340731224e-05,
78
+ "loss": 0.5923,
79
+ "step": 100
80
+ },
81
+ {
82
+ "epoch": 0.591715976331361,
83
+ "eval_loss": 0.5548861622810364,
84
+ "eval_runtime": 20.5369,
85
+ "eval_samples_per_second": 14.608,
86
+ "eval_steps_per_second": 1.85,
87
+ "step": 100
88
+ },
89
+ {
90
+ "epoch": 0.650887573964497,
91
+ "grad_norm": 0.6939641269685894,
92
+ "learning_rate": 4.075219608954278e-05,
93
+ "loss": 0.5283,
94
+ "step": 110
95
+ },
96
+ {
97
+ "epoch": 0.7100591715976331,
98
+ "grad_norm": 0.3223403825561066,
99
+ "learning_rate": 3.876064386435646e-05,
100
+ "loss": 0.5123,
101
+ "step": 120
102
+ },
103
+ {
104
+ "epoch": 0.7692307692307693,
105
+ "grad_norm": 1.242304136081819,
106
+ "learning_rate": 3.663489828471953e-05,
107
+ "loss": 0.5148,
108
+ "step": 130
109
+ },
110
+ {
111
+ "epoch": 0.8284023668639053,
112
+ "grad_norm": 0.6162370328893566,
113
+ "learning_rate": 3.4395689552855955e-05,
114
+ "loss": 0.5706,
115
+ "step": 140
116
+ },
117
+ {
118
+ "epoch": 0.8875739644970414,
119
+ "grad_norm": 2.854595963693751,
120
+ "learning_rate": 3.206485435998498e-05,
121
+ "loss": 0.5443,
122
+ "step": 150
123
+ },
124
+ {
125
+ "epoch": 0.9467455621301775,
126
+ "grad_norm": 0.836450705626818,
127
+ "learning_rate": 2.9665122935613727e-05,
128
+ "loss": 0.5345,
129
+ "step": 160
130
+ },
131
+ {
132
+ "epoch": 1.0059171597633136,
133
+ "grad_norm": 0.6854327873281724,
134
+ "learning_rate": 2.7219897383073373e-05,
135
+ "loss": 0.4759,
136
+ "step": 170
137
+ },
138
+ {
139
+ "epoch": 1.0650887573964498,
140
+ "grad_norm": 0.3289222105005388,
141
+ "learning_rate": 2.475302346296336e-05,
142
+ "loss": 0.4207,
143
+ "step": 180
144
+ },
145
+ {
146
+ "epoch": 1.1242603550295858,
147
+ "grad_norm": 0.6402929677890956,
148
+ "learning_rate": 2.2288558050064367e-05,
149
+ "loss": 0.4453,
150
+ "step": 190
151
+ },
152
+ {
153
+ "epoch": 1.183431952662722,
154
+ "grad_norm": 0.4560254960950853,
155
+ "learning_rate": 1.9850534531472546e-05,
156
+ "loss": 0.485,
157
+ "step": 200
158
+ },
159
+ {
160
+ "epoch": 1.183431952662722,
161
+ "eval_loss": 0.5390731692314148,
162
+ "eval_runtime": 19.171,
163
+ "eval_samples_per_second": 15.649,
164
+ "eval_steps_per_second": 1.982,
165
+ "step": 200
166
+ },
167
+ {
168
+ "epoch": 1.242603550295858,
169
+ "grad_norm": 0.4429967217295556,
170
+ "learning_rate": 1.746272843378493e-05,
171
+ "loss": 0.448,
172
+ "step": 210
173
+ },
174
+ {
175
+ "epoch": 1.301775147928994,
176
+ "grad_norm": 0.5801927088218751,
177
+ "learning_rate": 1.5148425564932084e-05,
178
+ "loss": 0.4257,
179
+ "step": 220
180
+ },
181
+ {
182
+ "epoch": 1.3609467455621302,
183
+ "grad_norm": 1.6461621420887593,
184
+ "learning_rate": 1.2930194931731382e-05,
185
+ "loss": 0.5102,
186
+ "step": 230
187
+ },
188
+ {
189
+ "epoch": 1.4201183431952662,
190
+ "grad_norm": 1.4629083533873057,
191
+ "learning_rate": 1.0829668647661559e-05,
192
+ "loss": 0.4632,
193
+ "step": 240
194
+ },
195
+ {
196
+ "epoch": 1.4792899408284024,
197
+ "grad_norm": 1.6289265138854685,
198
+ "learning_rate": 8.867330977190877e-06,
199
+ "loss": 0.5108,
200
+ "step": 250
201
+ },
202
+ {
203
+ "epoch": 1.5384615384615383,
204
+ "grad_norm": 0.6682669143854097,
205
+ "learning_rate": 7.062318573891716e-06,
206
+ "loss": 0.4304,
207
+ "step": 260
208
+ },
209
+ {
210
+ "epoch": 1.5976331360946747,
211
+ "grad_norm": 0.5194393122476173,
212
+ "learning_rate": 5.4322338604131715e-06,
213
+ "loss": 0.4281,
214
+ "step": 270
215
+ },
216
+ {
217
+ "epoch": 1.6568047337278107,
218
+ "grad_norm": 1.0124557614072613,
219
+ "learning_rate": 3.992973370223896e-06,
220
+ "loss": 0.4529,
221
+ "step": 280
222
+ },
223
+ {
224
+ "epoch": 1.7159763313609466,
225
+ "grad_norm": 0.42873082380830013,
226
+ "learning_rate": 2.75857272513132e-06,
227
+ "loss": 0.4698,
228
+ "step": 290
229
+ },
230
+ {
231
+ "epoch": 1.7751479289940828,
232
+ "grad_norm": 0.9876326963962394,
233
+ "learning_rate": 1.7410697603511383e-06,
234
+ "loss": 0.4405,
235
+ "step": 300
236
+ },
237
+ {
238
+ "epoch": 1.7751479289940828,
239
+ "eval_loss": 0.5398803353309631,
240
+ "eval_runtime": 18.7716,
241
+ "eval_samples_per_second": 15.982,
242
+ "eval_steps_per_second": 2.024,
243
+ "step": 300
244
+ },
245
+ {
246
+ "epoch": 1.834319526627219,
247
+ "grad_norm": 0.9194473587313593,
248
+ "learning_rate": 9.503871319271551e-07,
249
+ "loss": 0.4825,
250
+ "step": 310
251
+ },
252
+ {
253
+ "epoch": 1.893491124260355,
254
+ "grad_norm": 1.330707485363624,
255
+ "learning_rate": 3.9423555131007925e-07,
256
+ "loss": 0.5166,
257
+ "step": 320
258
+ },
259
+ {
260
+ "epoch": 1.952662721893491,
261
+ "grad_norm": 0.3585144579596122,
262
+ "learning_rate": 7.803859074854425e-08,
263
+ "loss": 0.4212,
264
+ "step": 330
265
+ },
266
+ {
267
+ "epoch": 2.0,
268
+ "step": 338,
269
+ "total_flos": 93650261901312.0,
270
+ "train_loss": 0.5521188734551153,
271
+ "train_runtime": 1213.4234,
272
+ "train_samples_per_second": 4.45,
273
+ "train_steps_per_second": 0.279
274
+ }
275
+ ],
276
+ "logging_steps": 10,
277
+ "max_steps": 338,
278
+ "num_input_tokens_seen": 0,
279
+ "num_train_epochs": 2,
280
+ "save_steps": 100,
281
+ "stateful_callbacks": {
282
+ "TrainerControl": {
283
+ "args": {
284
+ "should_epoch_stop": false,
285
+ "should_evaluate": false,
286
+ "should_log": false,
287
+ "should_save": true,
288
+ "should_training_stop": false
289
+ },
290
+ "attributes": {}
291
+ }
292
+ },
293
+ "total_flos": 93650261901312.0,
294
+ "train_batch_size": 1,
295
+ "trial_name": null,
296
+ "trial_params": null
297
+ }
qwen14B_models/qwen_14B_d1_iter2_model/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0761f6bb67160b2669ef61d48e036499824b05c6c2a1509429473af05407f0ea
3
+ size 7032
qwen14B_models/qwen_14B_d1_iter2_model/training_eval_loss.png ADDED
qwen14B_models/qwen_14B_d1_iter2_model/training_loss.png ADDED
qwen14B_models/qwen_14B_d1_iter2_model/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
qwen14B_models/qwen_14B_d2_iter3_model/README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ library_name: peft
4
+ tags:
5
+ - llama-factory
6
+ - lora
7
+ - generated_from_trainer
8
+ base_model: /ML-A100/team/mm/eamon/self_instruction/models/Qwen1_5_14B
9
+ model-index:
10
+ - name: qwen_14B_d2_iter3_model
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
+ # qwen_14B_d2_iter3_model
18
+
19
+ This model is a fine-tuned version of [/ML-A100/team/mm/eamon/self_instruction/models/Qwen1_5_14B](https://huggingface.co//ML-A100/team/mm/eamon/self_instruction/models/Qwen1_5_14B) on the qwen_14B_d2_iter3_model dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.5153
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 5e-05
41
+ - train_batch_size: 1
42
+ - eval_batch_size: 1
43
+ - seed: 42
44
+ - distributed_type: multi-GPU
45
+ - num_devices: 8
46
+ - gradient_accumulation_steps: 2
47
+ - total_train_batch_size: 16
48
+ - total_eval_batch_size: 8
49
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
+ - lr_scheduler_type: cosine
51
+ - lr_scheduler_warmup_steps: 20
52
+ - num_epochs: 2.0
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss |
57
+ |:-------------:|:------:|:----:|:---------------:|
58
+ | 0.4759 | 0.5917 | 100 | 0.5316 |
59
+ | 0.3967 | 1.1834 | 200 | 0.5153 |
60
+ | 0.3547 | 1.7751 | 300 | 0.5178 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - PEFT 0.10.0
66
+ - Transformers 4.41.2
67
+ - Pytorch 2.1.2+cu121
68
+ - Datasets 2.18.0
69
+ - Tokenizers 0.19.1
qwen14B_models/qwen_14B_d2_iter3_model/adapter_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "/ML-A100/team/mm/eamon/self_instruction/models/Qwen1_5_14B",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
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": 8,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "o_proj",
24
+ "gate_proj",
25
+ "up_proj",
26
+ "down_proj",
27
+ "k_proj",
28
+ "v_proj",
29
+ "q_proj"
30
+ ],
31
+ "task_type": "CAUSAL_LM",
32
+ "use_dora": false,
33
+ "use_rslora": false
34
+ }
qwen14B_models/qwen_14B_d2_iter3_model/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9dd4a13be41dcad171d6b6ee79720860d70b46c6f874c8b2ece3ad9084c994e7
3
+ size 62415664
qwen14B_models/qwen_14B_d2_iter3_model/added_tokens.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "<|endoftext|>": 151643,
3
+ "<|im_end|>": 151645,
4
+ "<|im_start|>": 151644
5
+ }
qwen14B_models/qwen_14B_d2_iter3_model/all_results.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "eval_loss": 0.5153154134750366,
4
+ "eval_runtime": 19.1336,
5
+ "eval_samples_per_second": 15.679,
6
+ "eval_steps_per_second": 1.986,
7
+ "total_flos": 84346414039040.0,
8
+ "train_loss": 0.5209799306632499,
9
+ "train_runtime": 1210.5031,
10
+ "train_samples_per_second": 4.461,
11
+ "train_steps_per_second": 0.279
12
+ }
qwen14B_models/qwen_14B_d2_iter3_model/eval_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "eval_loss": 0.5153154134750366,
4
+ "eval_runtime": 19.1336,
5
+ "eval_samples_per_second": 15.679,
6
+ "eval_steps_per_second": 1.986
7
+ }
qwen14B_models/qwen_14B_d2_iter3_model/lora.log ADDED
The diff for this file is too large to render. See raw diff
 
qwen14B_models/qwen_14B_d2_iter3_model/merge.log ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ [2024-07-15 14:24:23,419] [INFO] [real_accelerator.py:191:get_accelerator] Setting ds_accelerator to cuda (auto detect)
2
+ 07/15/2024 14:24:25 - INFO - llmtuner.data.template - Add <|im_end|>,<|endoftext|> to stop words.
3
+ 07/15/2024 14:24:25 - INFO - llmtuner.model.patcher - Using KV cache for faster generation.
4
+ 07/15/2024 14:24:27 - INFO - llmtuner.model.adapter - Fine-tuning method: LoRA
5
+ 07/15/2024 14:24:38 - INFO - llmtuner.model.adapter - Merged 1 adapter(s).
6
+ 07/15/2024 14:24:38 - INFO - llmtuner.model.adapter - Loaded adapter(s): /ML-A100/team/mm/eamon/self_instruction/seed_ppl/qwen14B_models/qwen_14B_d2_iter3_model
7
+ 07/15/2024 14:24:38 - INFO - llmtuner.model.loader - all params: 14167290880
qwen14B_models/qwen_14B_d2_iter3_model/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
qwen14B_models/qwen_14B_d2_iter3_model/runs/Jul15_14-01-40_t-20240715144206-zn57g-worker-0/events.out.tfevents.1721052207.t-20240715144206-zn57g-worker-0.174136.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1bd260b071146146fb2f9a5447ff861d3c26a732d2b53000c7fd530fda28d9bf
3
+ size 13407