atomwalk12 commited on
Commit
3886b30
·
verified ·
1 Parent(s): d5bec65

End of training

Browse files
README.md CHANGED
@@ -5,11 +5,11 @@ library_name: transformers
5
  model_name: trainer_output
6
  tags:
7
  - generated_from_trainer
8
- - tool-use
9
  - sft
 
10
  - unsloth
11
- - linalg-zero
12
  - trl
 
13
  licence: license
14
  ---
15
 
 
5
  model_name: trainer_output
6
  tags:
7
  - generated_from_trainer
 
8
  - sft
9
+ - tool-use
10
  - unsloth
 
11
  - trl
12
+ - linalg-zero
13
  licence: license
14
  ---
15
 
adapter_config.json CHANGED
@@ -29,13 +29,13 @@
29
  "rank_pattern": {},
30
  "revision": null,
31
  "target_modules": [
 
 
 
32
  "gate_proj",
33
  "o_proj",
34
  "down_proj",
35
- "k_proj",
36
- "q_proj",
37
- "up_proj",
38
- "v_proj"
39
  ],
40
  "task_type": "CAUSAL_LM",
41
  "trainable_token_indices": null,
 
29
  "rank_pattern": {},
30
  "revision": null,
31
  "target_modules": [
32
+ "v_proj",
33
+ "q_proj",
34
+ "k_proj",
35
  "gate_proj",
36
  "o_proj",
37
  "down_proj",
38
+ "up_proj"
 
 
 
39
  ],
40
  "task_type": "CAUSAL_LM",
41
  "trainable_token_indices": null,
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b0156b8e2bd7ee00762484b1b56e008189907477eea7e35d71fabc479be41072
3
  size 132188392
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:627e6582769658677afc0094ca2ab8e64ae71587ad8d11d9168e04e0be8f907c
3
  size 132188392
all_results.json CHANGED
@@ -1,14 +1,14 @@
1
  {
2
  "epoch": 1.0,
3
- "eval_loss": 0.5140631794929504,
4
- "eval_runtime": 8.3035,
5
  "eval_samples": 60,
6
- "eval_samples_per_second": 7.226,
7
- "eval_steps_per_second": 7.226,
8
  "total_flos": 2717720554039296.0,
9
- "train_loss": 0.24174172580242156,
10
- "train_runtime": 31.6344,
11
  "train_samples": 60,
12
- "train_samples_per_second": 1.897,
13
- "train_steps_per_second": 1.897
14
  }
 
1
  {
2
  "epoch": 1.0,
3
+ "eval_loss": 0.8699710965156555,
4
+ "eval_runtime": 8.6196,
5
  "eval_samples": 60,
6
+ "eval_samples_per_second": 6.961,
7
+ "eval_steps_per_second": 6.961,
8
  "total_flos": 2717720554039296.0,
9
+ "train_loss": 0.0,
10
+ "train_runtime": 0.0042,
11
  "train_samples": 60,
12
+ "train_samples_per_second": 14376.363,
13
+ "train_steps_per_second": 239.606
14
  }
chat_template.jinja CHANGED
@@ -1 +1,85 @@
1
- {% if messages[0]['role'] == 'system' %}{{ messages[0]['content'] + eos_token }}{% set loop_messages = messages[1:] %}{% else %}{{ 'You are a helpful assistant.' + eos_token }}{% set loop_messages = messages %}{% endif %}{% for message in loop_messages %}{% if message['role'] == 'user' %}{{ message['content'] }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<start_working_out>' }}{% endif %}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0].role == 'system' %}
4
+ {{- messages[0].content + '\n\n' }}
5
+ {%- endif %}
6
+ {{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
7
+ {%- for tool in tools %}
8
+ {{- "\n" }}
9
+ {{- tool | tojson }}
10
+ {%- endfor %}
11
+ {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
12
+ {%- else %}
13
+ {%- if messages[0].role == 'system' %}
14
+ {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
15
+ {%- endif %}
16
+ {%- endif %}
17
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
18
+ {%- for message in messages[::-1] %}
19
+ {%- set index = (messages|length - 1) - loop.index0 %}
20
+ {%- if ns.multi_step_tool and message.role == "user" and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}
21
+ {%- set ns.multi_step_tool = false %}
22
+ {%- set ns.last_query_index = index %}
23
+ {%- endif %}
24
+ {%- endfor %}
25
+ {%- for message in messages %}
26
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
27
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
28
+ {%- elif message.role == "assistant" %}
29
+ {%- set content = message.content %}
30
+ {%- set reasoning_content = '' %}
31
+ {%- if message.reasoning_content is defined and message.reasoning_content is not none %}
32
+ {%- set reasoning_content = message.reasoning_content %}
33
+ {%- else %}
34
+ {%- if '</think>' in message.content %}
35
+ {%- set content = message.content.split('</think>')[-1].lstrip('\n') %}
36
+ {%- set reasoning_content = message.content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
37
+ {%- endif %}
38
+ {%- endif %}
39
+ {%- if loop.index0 > ns.last_query_index %}
40
+ {%- if loop.last or (not loop.last and reasoning_content) %}
41
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}
42
+ {%- else %}
43
+ {{- '<|im_start|>' + message.role + '\n' + content }}
44
+ {%- endif %}
45
+ {%- else %}
46
+ {{- '<|im_start|>' + message.role + '\n' + content }}
47
+ {%- endif %}
48
+ {%- if message.tool_calls %}
49
+ {%- for tool_call in message.tool_calls %}
50
+ {%- if (loop.first and content) or (not loop.first) %}
51
+ {{- '\n' }}
52
+ {%- endif %}
53
+ {%- if tool_call.function %}
54
+ {%- set tool_call = tool_call.function %}
55
+ {%- endif %}
56
+ {{- '<tool_call>\n{"name": "' }}
57
+ {{- tool_call.name }}
58
+ {{- '", "arguments": ' }}
59
+ {%- if tool_call.arguments is string %}
60
+ {{- tool_call.arguments }}
61
+ {%- else %}
62
+ {{- tool_call.arguments | tojson }}
63
+ {%- endif %}
64
+ {{- '}\n</tool_call>' }}
65
+ {%- endfor %}
66
+ {%- endif %}
67
+ {{- '<|im_end|>\n' }}
68
+ {%- elif message.role == "tool" %}
69
+ {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
70
+ {{- '<|im_start|>user' }}
71
+ {%- endif %}
72
+ {{- '\n<tool_response>\n' }}
73
+ {{- message.content }}
74
+ {{- '\n</tool_response>' }}
75
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
76
+ {{- '<|im_end|>\n' }}
77
+ {%- endif %}
78
+ {%- endif %}
79
+ {%- endfor %}
80
+ {%- if add_generation_prompt %}
81
+ {{- '<|im_start|>assistant\n' }}
82
+ {%- if enable_thinking is defined and enable_thinking is false %}
83
+ {{- '<think>\n\n</think>\n\n' }}
84
+ {%- endif %}
85
+ {%- endif %}
eval_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "epoch": 1.0,
3
- "eval_loss": 0.5140631794929504,
4
- "eval_runtime": 8.3035,
5
  "eval_samples": 60,
6
- "eval_samples_per_second": 7.226,
7
- "eval_steps_per_second": 7.226
8
  }
 
1
  {
2
  "epoch": 1.0,
3
+ "eval_loss": 0.8699710965156555,
4
+ "eval_runtime": 8.6196,
5
  "eval_samples": 60,
6
+ "eval_samples_per_second": 6.961,
7
+ "eval_steps_per_second": 6.961
8
  }
train_results.json CHANGED
@@ -1,9 +1,9 @@
1
  {
2
  "epoch": 1.0,
3
  "total_flos": 2717720554039296.0,
4
- "train_loss": 0.24174172580242156,
5
- "train_runtime": 31.6344,
6
  "train_samples": 60,
7
- "train_samples_per_second": 1.897,
8
- "train_steps_per_second": 1.897
9
  }
 
1
  {
2
  "epoch": 1.0,
3
  "total_flos": 2717720554039296.0,
4
+ "train_loss": 0.0,
5
+ "train_runtime": 0.0042,
6
  "train_samples": 60,
7
+ "train_samples_per_second": 14376.363,
8
+ "train_steps_per_second": 239.606
9
  }
trainer_state.json CHANGED
@@ -3,111 +3,35 @@
3
  "best_metric": null,
4
  "best_model_checkpoint": null,
5
  "epoch": 1.0,
6
- "eval_steps": 500,
7
- "global_step": 60,
8
  "is_hyper_param_search": false,
9
  "is_local_process_zero": true,
10
  "is_world_process_zero": true,
11
  "log_history": [
12
  {
13
- "epoch": 0.08333333333333333,
14
- "grad_norm": 0.3362419009208679,
15
- "learning_rate": 0.00016,
16
- "loss": 0.7526,
17
- "step": 5
18
- },
19
- {
20
- "epoch": 0.16666666666666666,
21
- "grad_norm": 0.5312803983688354,
22
- "learning_rate": 0.00018545454545454545,
23
- "loss": 0.4235,
24
- "step": 10
25
- },
26
- {
27
- "epoch": 0.25,
28
- "grad_norm": 0.3434021770954132,
29
- "learning_rate": 0.00016727272727272728,
30
- "loss": 0.2288,
31
- "step": 15
32
- },
33
- {
34
- "epoch": 0.3333333333333333,
35
- "grad_norm": 0.26192706823349,
36
- "learning_rate": 0.0001490909090909091,
37
- "loss": 0.1897,
38
- "step": 20
39
- },
40
- {
41
- "epoch": 0.4166666666666667,
42
- "grad_norm": 0.26772984862327576,
43
- "learning_rate": 0.00013090909090909093,
44
- "loss": 0.1833,
45
- "step": 25
46
- },
47
- {
48
- "epoch": 0.5,
49
- "grad_norm": 0.20748060941696167,
50
- "learning_rate": 0.00011272727272727272,
51
- "loss": 0.1621,
52
- "step": 30
53
- },
54
- {
55
- "epoch": 0.5833333333333334,
56
- "grad_norm": 0.21864831447601318,
57
- "learning_rate": 9.454545454545455e-05,
58
- "loss": 0.1638,
59
- "step": 35
60
- },
61
- {
62
- "epoch": 0.6666666666666666,
63
- "grad_norm": 0.24830199778079987,
64
- "learning_rate": 7.636363636363637e-05,
65
- "loss": 0.1667,
66
- "step": 40
67
- },
68
- {
69
- "epoch": 0.75,
70
- "grad_norm": 0.20934940874576569,
71
- "learning_rate": 5.818181818181818e-05,
72
- "loss": 0.1678,
73
- "step": 45
74
- },
75
- {
76
- "epoch": 0.8333333333333334,
77
- "grad_norm": 0.2636692523956299,
78
- "learning_rate": 4e-05,
79
- "loss": 0.1548,
80
- "step": 50
81
- },
82
- {
83
- "epoch": 0.9166666666666666,
84
- "grad_norm": 0.1722150295972824,
85
- "learning_rate": 2.1818181818181818e-05,
86
- "loss": 0.1524,
87
- "step": 55
88
- },
89
- {
90
- "epoch": 1.0,
91
- "grad_norm": 0.23989179730415344,
92
- "learning_rate": 3.636363636363636e-06,
93
- "loss": 0.1553,
94
- "step": 60
95
  },
96
  {
97
  "epoch": 1.0,
98
- "step": 60,
99
  "total_flos": 2717720554039296.0,
100
- "train_loss": 0.24174172580242156,
101
- "train_runtime": 31.6344,
102
- "train_samples_per_second": 1.897,
103
- "train_steps_per_second": 1.897
104
  }
105
  ],
106
  "logging_steps": 5,
107
- "max_steps": 60,
108
  "num_input_tokens_seen": 0,
109
  "num_train_epochs": 1,
110
- "save_steps": 500,
111
  "stateful_callbacks": {
112
  "TrainerControl": {
113
  "args": {
 
3
  "best_metric": null,
4
  "best_model_checkpoint": null,
5
  "epoch": 1.0,
6
+ "eval_steps": 50,
7
+ "global_step": 1,
8
  "is_hyper_param_search": false,
9
  "is_local_process_zero": true,
10
  "is_world_process_zero": true,
11
  "log_history": [
12
  {
13
+ "epoch": 0,
14
+ "eval_loss": 0.8395363092422485,
15
+ "eval_runtime": 8.5871,
16
+ "eval_samples_per_second": 6.987,
17
+ "eval_steps_per_second": 6.987,
18
+ "step": 0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  },
20
  {
21
  "epoch": 1.0,
22
+ "step": 1,
23
  "total_flos": 2717720554039296.0,
24
+ "train_loss": 0.0,
25
+ "train_runtime": 0.0042,
26
+ "train_samples_per_second": 14376.363,
27
+ "train_steps_per_second": 239.606
28
  }
29
  ],
30
  "logging_steps": 5,
31
+ "max_steps": 1,
32
  "num_input_tokens_seen": 0,
33
  "num_train_epochs": 1,
34
+ "save_steps": 50,
35
  "stateful_callbacks": {
36
  "TrainerControl": {
37
  "args": {
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:54b494cceb94d5932b6c823a353a9515458fd050c35e966606a622ff2776e061
3
  size 6097
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0cff4ee75012ee385e734726f3dee6d7d4a60147422cc2344287ce24a45db845
3
  size 6097