Satyach commited on
Commit
550adaf
·
verified ·
1 Parent(s): 0cc8f24

Satyach/Distill-qwen-7b-full-finetuning

Browse files
README.md CHANGED
@@ -28,7 +28,7 @@ print(output["generated_text"])
28
 
29
  ## Training procedure
30
 
31
- [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/satyanarayana1999-sn-amazon-web-services/huggingface/runs/huggingface-pytorch-training-2025-05-02-18-08-59-888-igc3zw-algo-1)
32
 
33
 
34
  This model was trained with GRPO, a method introduced in [DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models](https://huggingface.co/papers/2402.03300).
 
28
 
29
  ## Training procedure
30
 
31
+ [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/satyanarayana1999-sn-amazon-web-services/huggingface/runs/huggingface-pytorch-training-2025-05-02-20-50-44-978-fb5q2e-algo-1)
32
 
33
 
34
  This model was trained with GRPO, a method introduced in [DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models](https://huggingface.co/papers/2402.03300).
adapter_config.json CHANGED
@@ -20,13 +20,13 @@
20
  "rank_pattern": {},
21
  "revision": null,
22
  "target_modules": [
23
- "k_proj",
24
- "q_proj",
25
  "up_proj",
26
- "gate_proj",
 
27
  "v_proj",
28
- "o_proj",
29
- "down_proj"
 
30
  ],
31
  "task_type": "CAUSAL_LM",
32
  "use_dora": false,
 
20
  "rank_pattern": {},
21
  "revision": null,
22
  "target_modules": [
 
 
23
  "up_proj",
24
+ "k_proj",
25
+ "down_proj",
26
  "v_proj",
27
+ "gate_proj",
28
+ "q_proj",
29
+ "o_proj"
30
  ],
31
  "task_type": "CAUSAL_LM",
32
  "use_dora": false,
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4fc462815d73c27446d5c394523ee8510493f4531340a3d628323d14e8782e3d
3
  size 1291899160
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f250506331b7362272befab0de290c0daaf6435798433571d653bc286648e0cc
3
  size 1291899160
chat_template.jinja CHANGED
@@ -10,7 +10,7 @@
10
  {{- "\n" }}
11
  {{- tool | tojson }}
12
  {%- endfor %}
13
- {{- "\n</api>\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></think>\n" }}
14
  {%- else %}
15
  {%- if messages[0]['role'] == 'system' %}
16
  {{- '<think>system\n' + messages[0]['content'] + '</think>\n' }}
@@ -19,22 +19,22 @@
19
  {%- endif %}
20
  {%- endif %}
21
  {%- for message in messages %}
22
- {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
23
  {{- '<think>' + message.role + '\n' + message.content + '</think>' + '\n' }}
24
  {%- elif message.role == "assistant" %}
25
  {{- '<think>' + message.role }}
26
  {%- if message.content %}
27
  {{- '\n' + message.content }}
28
  {%- endif %}
29
- {%- for tool_call in message.tool_calls %}
30
- {%- if tool_call.function is defined %}
31
- {%- set tool_call = tool_call.function %}
32
  {%- endif %}
33
- {{- '\n<tool_call>\n{"name": "' }}
34
- {{- tool_call.name }}
35
  {{- '", "arguments": ' }}
36
- {{- tool_call.arguments | tojson }}
37
- {{- '}\n</tool_call>' }}
38
  {%- endfor %}
39
  {{- '</think>\n' }}
40
  {%- elif message.role == "tool" %}
 
10
  {{- "\n" }}
11
  {{- tool | tojson }}
12
  {%- endfor %}
13
+ {{- "\n</api>\n\nFor each function call, return a json object with function name and arguments within <api></api> XML tags:\n<api>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</api></think>\n" }}
14
  {%- else %}
15
  {%- if messages[0]['role'] == 'system' %}
16
  {{- '<think>system\n' + messages[0]['content'] + '</think>\n' }}
 
19
  {%- endif %}
20
  {%- endif %}
21
  {%- for message in messages %}
22
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.apis) %}
23
  {{- '<think>' + message.role + '\n' + message.content + '</think>' + '\n' }}
24
  {%- elif message.role == "assistant" %}
25
  {{- '<think>' + message.role }}
26
  {%- if message.content %}
27
  {{- '\n' + message.content }}
28
  {%- endif %}
29
+ {%- for api in message.apis %}
30
+ {%- if api.function is defined %}
31
+ {%- set api = api.function %}
32
  {%- endif %}
33
+ {{- '\n<api>\n{"name": "' }}
34
+ {{- api.name }}
35
  {{- '", "arguments": ' }}
36
+ {{- api.arguments | tojson }}
37
+ {{- '}\n</api>' }}
38
  {%- endfor %}
39
  {{- '</think>\n' }}
40
  {%- elif message.role == "tool" %}
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ee1e5772bc859edc0159adab687ac96cb614a12071c81242c9e7001d7c1f9e38
3
  size 5752
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a15ffe87360ed6c096dbd19eb26ee6c73ea79d59df803c761a91e4392594dac6
3
  size 5752