michaelchenkj commited on
Commit
1891cee
·
verified ·
1 Parent(s): 5556a87

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +17 -0
  2. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/chat_template.jinja +85 -0
  3. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/config.json +32 -0
  4. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/generation_config.json +11 -0
  5. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/model.safetensors +3 -0
  6. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/optimizer.pt +3 -0
  7. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/rng_state_0.pth +3 -0
  8. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/rng_state_1.pth +3 -0
  9. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/scheduler.pt +3 -0
  10. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/tokenizer.json +3 -0
  11. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/tokenizer_config.json +24 -0
  12. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/trainer_state.json +0 -0
  13. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/training_args.bin +3 -0
  14. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/chat_template.jinja +85 -0
  15. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/config.json +32 -0
  16. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/generation_config.json +11 -0
  17. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/model.safetensors +3 -0
  18. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/optimizer.pt +3 -0
  19. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/rng_state_0.pth +3 -0
  20. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/rng_state_1.pth +3 -0
  21. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/scheduler.pt +3 -0
  22. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/tokenizer.json +3 -0
  23. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/tokenizer_config.json +24 -0
  24. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/trainer_state.json +0 -0
  25. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/training_args.bin +3 -0
  26. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/chat_template.jinja +85 -0
  27. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/config.json +32 -0
  28. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/generation_config.json +11 -0
  29. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/model.safetensors +3 -0
  30. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/optimizer.pt +3 -0
  31. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/rng_state_0.pth +3 -0
  32. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/rng_state_1.pth +3 -0
  33. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/scheduler.pt +3 -0
  34. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/tokenizer.json +3 -0
  35. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/tokenizer_config.json +24 -0
  36. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/trainer_state.json +0 -0
  37. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/training_args.bin +3 -0
  38. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/chat_template.jinja +85 -0
  39. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/config.json +32 -0
  40. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/generation_config.json +11 -0
  41. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/model.safetensors +3 -0
  42. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/optimizer.pt +3 -0
  43. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/rng_state_0.pth +3 -0
  44. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/rng_state_1.pth +3 -0
  45. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/scheduler.pt +3 -0
  46. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/tokenizer.json +3 -0
  47. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/tokenizer_config.json +24 -0
  48. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/trainer_state.json +0 -0
  49. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/training_args.bin +3 -0
  50. runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5256/chat_template.jinja +85 -0
.gitattributes CHANGED
@@ -1222,3 +1222,20 @@ runs/random5-l2r50-i5-exp-fulle-lm/checkpoint-8352/tokenizer.json filter=lfs dif
1222
  runs/random5-l2r50-i5-exp-fulle-lm/checkpoint-864/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1223
  runs/random5-l2r50-i5-exp-fulle-lm/checkpoint-8640/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1224
  runs/random5-l2r50-i5-exp-fulle-lm/checkpoint-8928/tokenizer.json filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1222
  runs/random5-l2r50-i5-exp-fulle-lm/checkpoint-864/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1223
  runs/random5-l2r50-i5-exp-fulle-lm/checkpoint-8640/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1224
  runs/random5-l2r50-i5-exp-fulle-lm/checkpoint-8928/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1225
+ runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1226
+ runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1227
+ runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1228
+ runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1229
+ runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5256/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1230
+ runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5328/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1231
+ runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5400/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1232
+ runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5472/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1233
+ runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5544/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1234
+ runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5616/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1235
+ runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5688/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1236
+ runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5760/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1237
+ runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5832/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1238
+ runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5904/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1239
+ runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5976/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1240
+ runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-6048/tokenizer.json filter=lfs diff=lfs merge=lfs -text
1241
+ runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-6120/tokenizer.json filter=lfs diff=lfs merge=lfs -text
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/chat_template.jinja ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 %}
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": null,
8
+ "dtype": "float32",
9
+ "eos_token_id": 151645,
10
+ "head_dim": 128,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 512,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 1536,
15
+ "max_position_embeddings": 2048,
16
+ "mlp_bias": false,
17
+ "model_type": "llama",
18
+ "num_attention_heads": 4,
19
+ "num_hidden_layers": 20,
20
+ "num_key_value_heads": 4,
21
+ "pad_token_id": 151645,
22
+ "pretraining_tp": 1,
23
+ "rms_norm_eps": 1e-06,
24
+ "rope_parameters": {
25
+ "rope_theta": 10000.0,
26
+ "rope_type": "default"
27
+ },
28
+ "tie_word_embeddings": true,
29
+ "transformers_version": "5.6.2",
30
+ "use_cache": false,
31
+ "vocab_size": 151676
32
+ }
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/generation_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "eos_token_id": [
4
+ 151645
5
+ ],
6
+ "output_attentions": false,
7
+ "output_hidden_states": false,
8
+ "pad_token_id": 151645,
9
+ "transformers_version": "5.6.2",
10
+ "use_cache": true
11
+ }
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31679f51e5e26e74cae3d329229038724dc2a08b100b1751a86be06c85b98f79
3
+ size 583366472
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77c3c5a8c38858b5d74ef0a1dc1ecaf03eb28d0fa33d18bc2ac35efe7a10b69b
3
+ size 1166848378
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4884066e3945d252819638ae119a6937f95eee34d9aa824e37a75d974c2dddf
3
+ size 14512
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f321c647c01de1a5797d9c568fc72394fa99cff00cf72e75d2c78221898adbe
3
+ size 14512
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f233981373687f3b4083d58d234bbc7cefcc62fbdedaca2a6b87dad187e84f0f
3
+ size 1064
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54452a75ce56e0ec6fa4b0d12b962e4761c2cf48469a1c7e59a810fa28365a2e
3
+ size 11425039
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/tokenizer_config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": null,
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|im_end|>",
7
+ "errors": "replace",
8
+ "extra_special_tokens": [
9
+ "<|l2r_pred|>",
10
+ "<|r2l_pred|>",
11
+ "<|next_1_pred|>",
12
+ "<|next_2_pred|>",
13
+ "<|next_3_pred|>",
14
+ "<|next_4_pred|>",
15
+ "<|next_5_pred|>"
16
+ ],
17
+ "is_local": false,
18
+ "local_files_only": false,
19
+ "model_max_length": 32768,
20
+ "pad_token": "<|im_end|>",
21
+ "split_special_tokens": false,
22
+ "tokenizer_class": "Qwen2Tokenizer",
23
+ "unk_token": null
24
+ }
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/trainer_state.json ADDED
The diff for this file is too large to render. See raw diff
 
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-4968/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b130304371e6fc5bf603897a3891c92429e8fd23748ef5dab0db1c2b002019df
3
+ size 4984
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/chat_template.jinja ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 %}
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": null,
8
+ "dtype": "float32",
9
+ "eos_token_id": 151645,
10
+ "head_dim": 128,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 512,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 1536,
15
+ "max_position_embeddings": 2048,
16
+ "mlp_bias": false,
17
+ "model_type": "llama",
18
+ "num_attention_heads": 4,
19
+ "num_hidden_layers": 20,
20
+ "num_key_value_heads": 4,
21
+ "pad_token_id": 151645,
22
+ "pretraining_tp": 1,
23
+ "rms_norm_eps": 1e-06,
24
+ "rope_parameters": {
25
+ "rope_theta": 10000.0,
26
+ "rope_type": "default"
27
+ },
28
+ "tie_word_embeddings": true,
29
+ "transformers_version": "5.6.2",
30
+ "use_cache": false,
31
+ "vocab_size": 151676
32
+ }
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/generation_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "eos_token_id": [
4
+ 151645
5
+ ],
6
+ "output_attentions": false,
7
+ "output_hidden_states": false,
8
+ "pad_token_id": 151645,
9
+ "transformers_version": "5.6.2",
10
+ "use_cache": true
11
+ }
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b4631d10c962ab90816ce49783399468b6885366203efc73f65025a47dfa483
3
+ size 583366472
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94bff16d83d40fe26ac966d65cdca06f8db91c919b6e7dc622bdffebbdd14a61
3
+ size 1166848378
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc3db8a473f427fecacc4690f19343247633b960c9615f4f58c802fb626cc98b
3
+ size 14512
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a043579cd62869349742fd684e1dec19687efacf44f98cd1c79d93e202e6d1c
3
+ size 14512
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60b300f2d4716003e7aebafbf9f644a211dc1cc708cbd6cc8e75f4c1804df5e3
3
+ size 1064
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54452a75ce56e0ec6fa4b0d12b962e4761c2cf48469a1c7e59a810fa28365a2e
3
+ size 11425039
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/tokenizer_config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": null,
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|im_end|>",
7
+ "errors": "replace",
8
+ "extra_special_tokens": [
9
+ "<|l2r_pred|>",
10
+ "<|r2l_pred|>",
11
+ "<|next_1_pred|>",
12
+ "<|next_2_pred|>",
13
+ "<|next_3_pred|>",
14
+ "<|next_4_pred|>",
15
+ "<|next_5_pred|>"
16
+ ],
17
+ "is_local": false,
18
+ "local_files_only": false,
19
+ "model_max_length": 32768,
20
+ "pad_token": "<|im_end|>",
21
+ "split_special_tokens": false,
22
+ "tokenizer_class": "Qwen2Tokenizer",
23
+ "unk_token": null
24
+ }
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/trainer_state.json ADDED
The diff for this file is too large to render. See raw diff
 
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5040/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b130304371e6fc5bf603897a3891c92429e8fd23748ef5dab0db1c2b002019df
3
+ size 4984
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/chat_template.jinja ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 %}
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": null,
8
+ "dtype": "float32",
9
+ "eos_token_id": 151645,
10
+ "head_dim": 128,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 512,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 1536,
15
+ "max_position_embeddings": 2048,
16
+ "mlp_bias": false,
17
+ "model_type": "llama",
18
+ "num_attention_heads": 4,
19
+ "num_hidden_layers": 20,
20
+ "num_key_value_heads": 4,
21
+ "pad_token_id": 151645,
22
+ "pretraining_tp": 1,
23
+ "rms_norm_eps": 1e-06,
24
+ "rope_parameters": {
25
+ "rope_theta": 10000.0,
26
+ "rope_type": "default"
27
+ },
28
+ "tie_word_embeddings": true,
29
+ "transformers_version": "5.6.2",
30
+ "use_cache": false,
31
+ "vocab_size": 151676
32
+ }
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/generation_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "eos_token_id": [
4
+ 151645
5
+ ],
6
+ "output_attentions": false,
7
+ "output_hidden_states": false,
8
+ "pad_token_id": 151645,
9
+ "transformers_version": "5.6.2",
10
+ "use_cache": true
11
+ }
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6aff455a82b46657318a6526f62c21a835bbeb45f03ffac8300c612926e8fb73
3
+ size 583366472
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20a3e0b8791ddbf2787ae4fc9e3de29ebc77af146872b5d232bc2ffae62f529e
3
+ size 1166848378
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:748a5fa3c4e7c5665b5173cf43142b24da53d19d11f5e4f9a4b42c74107722bf
3
+ size 14512
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51c9f2c91c060b5a1fe774483e1780d644bfd70e64d6a6c73392fde00d4c29cb
3
+ size 14512
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:644ae342cc06eeae01176ecbd05513fd56d0e83daf6ed882917260128e33b68c
3
+ size 1064
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54452a75ce56e0ec6fa4b0d12b962e4761c2cf48469a1c7e59a810fa28365a2e
3
+ size 11425039
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/tokenizer_config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": null,
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|im_end|>",
7
+ "errors": "replace",
8
+ "extra_special_tokens": [
9
+ "<|l2r_pred|>",
10
+ "<|r2l_pred|>",
11
+ "<|next_1_pred|>",
12
+ "<|next_2_pred|>",
13
+ "<|next_3_pred|>",
14
+ "<|next_4_pred|>",
15
+ "<|next_5_pred|>"
16
+ ],
17
+ "is_local": false,
18
+ "local_files_only": false,
19
+ "model_max_length": 32768,
20
+ "pad_token": "<|im_end|>",
21
+ "split_special_tokens": false,
22
+ "tokenizer_class": "Qwen2Tokenizer",
23
+ "unk_token": null
24
+ }
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/trainer_state.json ADDED
The diff for this file is too large to render. See raw diff
 
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5112/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b130304371e6fc5bf603897a3891c92429e8fd23748ef5dab0db1c2b002019df
3
+ size 4984
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/chat_template.jinja ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 %}
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": null,
8
+ "dtype": "float32",
9
+ "eos_token_id": 151645,
10
+ "head_dim": 128,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 512,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 1536,
15
+ "max_position_embeddings": 2048,
16
+ "mlp_bias": false,
17
+ "model_type": "llama",
18
+ "num_attention_heads": 4,
19
+ "num_hidden_layers": 20,
20
+ "num_key_value_heads": 4,
21
+ "pad_token_id": 151645,
22
+ "pretraining_tp": 1,
23
+ "rms_norm_eps": 1e-06,
24
+ "rope_parameters": {
25
+ "rope_theta": 10000.0,
26
+ "rope_type": "default"
27
+ },
28
+ "tie_word_embeddings": true,
29
+ "transformers_version": "5.6.2",
30
+ "use_cache": false,
31
+ "vocab_size": 151676
32
+ }
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/generation_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "eos_token_id": [
4
+ 151645
5
+ ],
6
+ "output_attentions": false,
7
+ "output_hidden_states": false,
8
+ "pad_token_id": 151645,
9
+ "transformers_version": "5.6.2",
10
+ "use_cache": true
11
+ }
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14da3e37aa1c4e961787a1d629c17a203cb6f884ea5701098422621a73d727b1
3
+ size 583366472
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3506ac7f6319046cf9e1951b890ca42dfecc9d79f84389a5926c8b0d76c5872e
3
+ size 1166848378
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e69f357e3ba9a85b56e01c3cef6d54632cbb2c3e41e609ea602af32942387fa
3
+ size 14512
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b3c1372111c5a8b9dd35b08ca6df355c2e9b35212b2c41cde64c341ddeb76978
3
+ size 14512
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b307c6a1e7e4c61d8962dfbfbfeee1d9804d391b01832115f79c7a7997f102c1
3
+ size 1064
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54452a75ce56e0ec6fa4b0d12b962e4761c2cf48469a1c7e59a810fa28365a2e
3
+ size 11425039
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/tokenizer_config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": null,
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|im_end|>",
7
+ "errors": "replace",
8
+ "extra_special_tokens": [
9
+ "<|l2r_pred|>",
10
+ "<|r2l_pred|>",
11
+ "<|next_1_pred|>",
12
+ "<|next_2_pred|>",
13
+ "<|next_3_pred|>",
14
+ "<|next_4_pred|>",
15
+ "<|next_5_pred|>"
16
+ ],
17
+ "is_local": false,
18
+ "local_files_only": false,
19
+ "model_max_length": 32768,
20
+ "pad_token": "<|im_end|>",
21
+ "split_special_tokens": false,
22
+ "tokenizer_class": "Qwen2Tokenizer",
23
+ "unk_token": null
24
+ }
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/trainer_state.json ADDED
The diff for this file is too large to render. See raw diff
 
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5184/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b130304371e6fc5bf603897a3891c92429e8fd23748ef5dab0db1c2b002019df
3
+ size 4984
runs/random5-l2r50-i5-exp-fulle-lm-wsd-from-4896/checkpoint-5256/chat_template.jinja ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 %}