Davis426 commited on
Commit
e7c32ff
·
verified ·
1 Parent(s): e6249ec

Upload QLoRA adapter + Q4_K_M GGUF for Ollama deploy

Browse files
Files changed (47) hide show
  1. .gitattributes +6 -0
  2. qwen-medqa-adapter/README.md +63 -0
  3. qwen-medqa-adapter/adapter_config.json +50 -0
  4. qwen-medqa-adapter/adapter_model.safetensors +3 -0
  5. qwen-medqa-adapter/chat_template.jinja +53 -0
  6. qwen-medqa-adapter/checkpoint-1013/README.md +210 -0
  7. qwen-medqa-adapter/checkpoint-1013/adapter_config.json +50 -0
  8. qwen-medqa-adapter/checkpoint-1013/adapter_model.safetensors +3 -0
  9. qwen-medqa-adapter/checkpoint-1013/chat_template.jinja +53 -0
  10. qwen-medqa-adapter/checkpoint-1013/optimizer.pt +3 -0
  11. qwen-medqa-adapter/checkpoint-1013/rng_state.pth +3 -0
  12. qwen-medqa-adapter/checkpoint-1013/scheduler.pt +3 -0
  13. qwen-medqa-adapter/checkpoint-1013/tokenizer.json +3 -0
  14. qwen-medqa-adapter/checkpoint-1013/tokenizer_config.json +15 -0
  15. qwen-medqa-adapter/checkpoint-1013/trainer_state.json +354 -0
  16. qwen-medqa-adapter/checkpoint-1013/training_args.bin +3 -0
  17. qwen-medqa-adapter/checkpoint-2026/README.md +210 -0
  18. qwen-medqa-adapter/checkpoint-2026/adapter_config.json +50 -0
  19. qwen-medqa-adapter/checkpoint-2026/adapter_model.safetensors +3 -0
  20. qwen-medqa-adapter/checkpoint-2026/chat_template.jinja +53 -0
  21. qwen-medqa-adapter/checkpoint-2026/optimizer.pt +3 -0
  22. qwen-medqa-adapter/checkpoint-2026/rng_state.pth +3 -0
  23. qwen-medqa-adapter/checkpoint-2026/scheduler.pt +3 -0
  24. qwen-medqa-adapter/checkpoint-2026/tokenizer.json +3 -0
  25. qwen-medqa-adapter/checkpoint-2026/tokenizer_config.json +15 -0
  26. qwen-medqa-adapter/checkpoint-2026/trainer_state.json +681 -0
  27. qwen-medqa-adapter/checkpoint-2026/training_args.bin +3 -0
  28. qwen-medqa-adapter/checkpoint-3039/README.md +210 -0
  29. qwen-medqa-adapter/checkpoint-3039/adapter_config.json +50 -0
  30. qwen-medqa-adapter/checkpoint-3039/adapter_model.safetensors +3 -0
  31. qwen-medqa-adapter/checkpoint-3039/chat_template.jinja +53 -0
  32. qwen-medqa-adapter/checkpoint-3039/optimizer.pt +3 -0
  33. qwen-medqa-adapter/checkpoint-3039/rng_state.pth +3 -0
  34. qwen-medqa-adapter/checkpoint-3039/scheduler.pt +3 -0
  35. qwen-medqa-adapter/checkpoint-3039/tokenizer.json +3 -0
  36. qwen-medqa-adapter/checkpoint-3039/tokenizer_config.json +15 -0
  37. qwen-medqa-adapter/checkpoint-3039/trainer_state.json +1001 -0
  38. qwen-medqa-adapter/checkpoint-3039/training_args.bin +3 -0
  39. qwen-medqa-adapter/tokenizer.json +3 -0
  40. qwen-medqa-adapter/tokenizer_config.json +15 -0
  41. qwen-medqa-adapter/training_metrics.json +17 -0
  42. qwen-medqa-gguf/Modelfile +13 -0
  43. qwen-medqa-gguf/chat_template.jinja +54 -0
  44. qwen-medqa-gguf/config.json +62 -0
  45. qwen-medqa-gguf/model.Q4_K_M.gguf +3 -0
  46. qwen-medqa-gguf/tokenizer.json +3 -0
  47. qwen-medqa-gguf/tokenizer_config.json +16 -0
.gitattributes CHANGED
@@ -33,3 +33,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ qwen-medqa-adapter/checkpoint-1013/tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ qwen-medqa-adapter/checkpoint-2026/tokenizer.json filter=lfs diff=lfs merge=lfs -text
38
+ qwen-medqa-adapter/checkpoint-3039/tokenizer.json filter=lfs diff=lfs merge=lfs -text
39
+ qwen-medqa-adapter/tokenizer.json filter=lfs diff=lfs merge=lfs -text
40
+ qwen-medqa-gguf/model.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
41
+ qwen-medqa-gguf/tokenizer.json filter=lfs diff=lfs merge=lfs -text
qwen-medqa-adapter/README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: unsloth/qwen2.5-1.5b-instruct-bnb-4bit
3
+ library_name: peft
4
+ model_name: qwen-medqa-adapter
5
+ tags:
6
+ - base_model:adapter:unsloth/qwen2.5-1.5b-instruct-bnb-4bit
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ - unsloth
12
+ licence: license
13
+ pipeline_tag: text-generation
14
+ ---
15
+
16
+ # Model Card for qwen-medqa-adapter
17
+
18
+ This model is a fine-tuned version of [unsloth/qwen2.5-1.5b-instruct-bnb-4bit](https://huggingface.co/unsloth/qwen2.5-1.5b-instruct-bnb-4bit).
19
+ It has been trained using [TRL](https://github.com/huggingface/trl).
20
+
21
+ ## Quick start
22
+
23
+ ```python
24
+ from transformers import pipeline
25
+
26
+ question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
27
+ generator = pipeline("text-generation", model="None", device="cuda")
28
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
29
+ print(output["generated_text"])
30
+ ```
31
+
32
+ ## Training procedure
33
+
34
+
35
+
36
+
37
+ This model was trained with SFT.
38
+
39
+ ### Framework versions
40
+
41
+ - PEFT 0.18.1
42
+ - TRL: 0.24.0
43
+ - Transformers: 5.2.0
44
+ - Pytorch: 2.11.0+cu130
45
+ - Datasets: 4.3.0
46
+ - Tokenizers: 0.22.2
47
+
48
+ ## Citations
49
+
50
+
51
+
52
+ Cite TRL as:
53
+
54
+ ```bibtex
55
+ @misc{vonwerra2022trl,
56
+ title = {{TRL: Transformer Reinforcement Learning}},
57
+ author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec},
58
+ year = 2020,
59
+ journal = {GitHub repository},
60
+ publisher = {GitHub},
61
+ howpublished = {\url{https://github.com/huggingface/trl}}
62
+ }
63
+ ```
qwen-medqa-adapter/adapter_config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": {
6
+ "base_model_class": "Qwen2ForCausalLM",
7
+ "parent_library": "transformers.models.qwen2.modeling_qwen2",
8
+ "unsloth_fixed": true
9
+ },
10
+ "base_model_name_or_path": "unsloth/qwen2.5-1.5b-instruct-bnb-4bit",
11
+ "bias": "none",
12
+ "corda_config": null,
13
+ "ensure_weight_tying": false,
14
+ "eva_config": null,
15
+ "exclude_modules": null,
16
+ "fan_in_fan_out": false,
17
+ "inference_mode": true,
18
+ "init_lora_weights": true,
19
+ "layer_replication": null,
20
+ "layers_pattern": null,
21
+ "layers_to_transform": null,
22
+ "loftq_config": {},
23
+ "lora_alpha": 32,
24
+ "lora_bias": false,
25
+ "lora_dropout": 0,
26
+ "megatron_config": null,
27
+ "megatron_core": "megatron.core",
28
+ "modules_to_save": null,
29
+ "peft_type": "LORA",
30
+ "peft_version": "0.18.1",
31
+ "qalora_group_size": 16,
32
+ "r": 16,
33
+ "rank_pattern": {},
34
+ "revision": null,
35
+ "target_modules": [
36
+ "k_proj",
37
+ "down_proj",
38
+ "o_proj",
39
+ "up_proj",
40
+ "q_proj",
41
+ "gate_proj",
42
+ "v_proj"
43
+ ],
44
+ "target_parameters": null,
45
+ "task_type": "CAUSAL_LM",
46
+ "trainable_token_indices": null,
47
+ "use_dora": false,
48
+ "use_qalora": false,
49
+ "use_rslora": false
50
+ }
qwen-medqa-adapter/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d41622e2aa5f7af66acfd585c364695a5a463c5e63aceef37814422a3b35c34d
3
+ size 73911112
qwen-medqa-adapter/chat_template.jinja ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0]['role'] == 'system' %}
4
+ {{- messages[0]['content'] }}
5
+ {%- else %}
6
+ {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}
7
+ {%- endif %}
8
+ {{- "\n\n# 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>" }}
9
+ {%- for tool in tools %}
10
+ {{- "\n" }}
11
+ {{- tool | tojson }}
12
+ {%- endfor %}
13
+ {{- "\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" }}
14
+ {%- else %}
15
+ {%- if messages[0]['role'] == 'system' %}
16
+ {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
17
+ {%- else %}
18
+ {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\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.tool_calls) %}
23
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
24
+ {%- elif message.role == "assistant" %}
25
+ {{- '<|im_start|>' + 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
+ {{- '<|im_end|>\n' }}
40
+ {%- elif message.role == "tool" %}
41
+ {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} {{- '<|im_start|>user' }}
42
+ {%- endif %}
43
+ {{- '\n<tool_response>\n' }}
44
+ {{- message.content }}
45
+ {{- '\n</tool_response>' }}
46
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
47
+ {{- '<|im_end|>\n' }}
48
+ {%- endif %}
49
+ {%- endif %}
50
+ {%- endfor %}
51
+ {%- if add_generation_prompt %}
52
+ {{- '<|im_start|>assistant\n' }}
53
+ {%- endif %}
qwen-medqa-adapter/checkpoint-1013/README.md ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: unsloth/qwen2.5-1.5b-instruct-bnb-4bit
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:unsloth/qwen2.5-1.5b-instruct-bnb-4bit
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ - unsloth
12
+ ---
13
+
14
+ # Model Card for Model ID
15
+
16
+ <!-- Provide a quick summary of what the model is/does. -->
17
+
18
+
19
+
20
+ ## Model Details
21
+
22
+ ### Model Description
23
+
24
+ <!-- Provide a longer summary of what this model is. -->
25
+
26
+
27
+
28
+ - **Developed by:** [More Information Needed]
29
+ - **Funded by [optional]:** [More Information Needed]
30
+ - **Shared by [optional]:** [More Information Needed]
31
+ - **Model type:** [More Information Needed]
32
+ - **Language(s) (NLP):** [More Information Needed]
33
+ - **License:** [More Information Needed]
34
+ - **Finetuned from model [optional]:** [More Information Needed]
35
+
36
+ ### Model Sources [optional]
37
+
38
+ <!-- Provide the basic links for the model. -->
39
+
40
+ - **Repository:** [More Information Needed]
41
+ - **Paper [optional]:** [More Information Needed]
42
+ - **Demo [optional]:** [More Information Needed]
43
+
44
+ ## Uses
45
+
46
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
47
+
48
+ ### Direct Use
49
+
50
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
51
+
52
+ [More Information Needed]
53
+
54
+ ### Downstream Use [optional]
55
+
56
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
57
+
58
+ [More Information Needed]
59
+
60
+ ### Out-of-Scope Use
61
+
62
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
63
+
64
+ [More Information Needed]
65
+
66
+ ## Bias, Risks, and Limitations
67
+
68
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
69
+
70
+ [More Information Needed]
71
+
72
+ ### Recommendations
73
+
74
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
75
+
76
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
77
+
78
+ ## How to Get Started with the Model
79
+
80
+ Use the code below to get started with the model.
81
+
82
+ [More Information Needed]
83
+
84
+ ## Training Details
85
+
86
+ ### Training Data
87
+
88
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
89
+
90
+ [More Information Needed]
91
+
92
+ ### Training Procedure
93
+
94
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
95
+
96
+ #### Preprocessing [optional]
97
+
98
+ [More Information Needed]
99
+
100
+
101
+ #### Training Hyperparameters
102
+
103
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
104
+
105
+ #### Speeds, Sizes, Times [optional]
106
+
107
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
108
+
109
+ [More Information Needed]
110
+
111
+ ## Evaluation
112
+
113
+ <!-- This section describes the evaluation protocols and provides the results. -->
114
+
115
+ ### Testing Data, Factors & Metrics
116
+
117
+ #### Testing Data
118
+
119
+ <!-- This should link to a Dataset Card if possible. -->
120
+
121
+ [More Information Needed]
122
+
123
+ #### Factors
124
+
125
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
126
+
127
+ [More Information Needed]
128
+
129
+ #### Metrics
130
+
131
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
132
+
133
+ [More Information Needed]
134
+
135
+ ### Results
136
+
137
+ [More Information Needed]
138
+
139
+ #### Summary
140
+
141
+
142
+
143
+ ## Model Examination [optional]
144
+
145
+ <!-- Relevant interpretability work for the model goes here -->
146
+
147
+ [More Information Needed]
148
+
149
+ ## Environmental Impact
150
+
151
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
152
+
153
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
154
+
155
+ - **Hardware Type:** [More Information Needed]
156
+ - **Hours used:** [More Information Needed]
157
+ - **Cloud Provider:** [More Information Needed]
158
+ - **Compute Region:** [More Information Needed]
159
+ - **Carbon Emitted:** [More Information Needed]
160
+
161
+ ## Technical Specifications [optional]
162
+
163
+ ### Model Architecture and Objective
164
+
165
+ [More Information Needed]
166
+
167
+ ### Compute Infrastructure
168
+
169
+ [More Information Needed]
170
+
171
+ #### Hardware
172
+
173
+ [More Information Needed]
174
+
175
+ #### Software
176
+
177
+ [More Information Needed]
178
+
179
+ ## Citation [optional]
180
+
181
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
182
+
183
+ **BibTeX:**
184
+
185
+ [More Information Needed]
186
+
187
+ **APA:**
188
+
189
+ [More Information Needed]
190
+
191
+ ## Glossary [optional]
192
+
193
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
194
+
195
+ [More Information Needed]
196
+
197
+ ## More Information [optional]
198
+
199
+ [More Information Needed]
200
+
201
+ ## Model Card Authors [optional]
202
+
203
+ [More Information Needed]
204
+
205
+ ## Model Card Contact
206
+
207
+ [More Information Needed]
208
+ ### Framework versions
209
+
210
+ - PEFT 0.18.1
qwen-medqa-adapter/checkpoint-1013/adapter_config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": {
6
+ "base_model_class": "Qwen2ForCausalLM",
7
+ "parent_library": "transformers.models.qwen2.modeling_qwen2",
8
+ "unsloth_fixed": true
9
+ },
10
+ "base_model_name_or_path": "unsloth/qwen2.5-1.5b-instruct-bnb-4bit",
11
+ "bias": "none",
12
+ "corda_config": null,
13
+ "ensure_weight_tying": false,
14
+ "eva_config": null,
15
+ "exclude_modules": null,
16
+ "fan_in_fan_out": false,
17
+ "inference_mode": true,
18
+ "init_lora_weights": true,
19
+ "layer_replication": null,
20
+ "layers_pattern": null,
21
+ "layers_to_transform": null,
22
+ "loftq_config": {},
23
+ "lora_alpha": 32,
24
+ "lora_bias": false,
25
+ "lora_dropout": 0,
26
+ "megatron_config": null,
27
+ "megatron_core": "megatron.core",
28
+ "modules_to_save": null,
29
+ "peft_type": "LORA",
30
+ "peft_version": "0.18.1",
31
+ "qalora_group_size": 16,
32
+ "r": 16,
33
+ "rank_pattern": {},
34
+ "revision": null,
35
+ "target_modules": [
36
+ "k_proj",
37
+ "down_proj",
38
+ "o_proj",
39
+ "up_proj",
40
+ "q_proj",
41
+ "gate_proj",
42
+ "v_proj"
43
+ ],
44
+ "target_parameters": null,
45
+ "task_type": "CAUSAL_LM",
46
+ "trainable_token_indices": null,
47
+ "use_dora": false,
48
+ "use_qalora": false,
49
+ "use_rslora": false
50
+ }
qwen-medqa-adapter/checkpoint-1013/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f5db6d4f99cc9b8b7bae0ab30b738033e3c50c3c1888b7d5b907155b2ac557a
3
+ size 73911112
qwen-medqa-adapter/checkpoint-1013/chat_template.jinja ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0]['role'] == 'system' %}
4
+ {{- messages[0]['content'] }}
5
+ {%- else %}
6
+ {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}
7
+ {%- endif %}
8
+ {{- "\n\n# 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>" }}
9
+ {%- for tool in tools %}
10
+ {{- "\n" }}
11
+ {{- tool | tojson }}
12
+ {%- endfor %}
13
+ {{- "\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" }}
14
+ {%- else %}
15
+ {%- if messages[0]['role'] == 'system' %}
16
+ {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
17
+ {%- else %}
18
+ {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\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.tool_calls) %}
23
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
24
+ {%- elif message.role == "assistant" %}
25
+ {{- '<|im_start|>' + 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
+ {{- '<|im_end|>\n' }}
40
+ {%- elif message.role == "tool" %}
41
+ {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} {{- '<|im_start|>user' }}
42
+ {%- endif %}
43
+ {{- '\n<tool_response>\n' }}
44
+ {{- message.content }}
45
+ {{- '\n</tool_response>' }}
46
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
47
+ {{- '<|im_end|>\n' }}
48
+ {%- endif %}
49
+ {%- endif %}
50
+ {%- endfor %}
51
+ {%- if add_generation_prompt %}
52
+ {{- '<|im_start|>assistant\n' }}
53
+ {%- endif %}
qwen-medqa-adapter/checkpoint-1013/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2777826b31922302bf013933e37310def97989f5c3534616679063d98cbc9c81
3
+ size 37970053
qwen-medqa-adapter/checkpoint-1013/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4b94d24c5fd3f8add3c432b54f5305b9646b5d564b95bdc0317d59c71a8bc1c
3
+ size 14645
qwen-medqa-adapter/checkpoint-1013/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f7ec09e5177187f3130d0ce22128293f8c5e074fd7b9a8482a571fbadf3d2cb
3
+ size 1465
qwen-medqa-adapter/checkpoint-1013/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd5948af71b4f56cf697f7580814c7ce8b80595ef985544efcacf716126a2e31
3
+ size 11422356
qwen-medqa-adapter/checkpoint-1013/tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "is_local": false,
9
+ "model_max_length": 32768,
10
+ "pad_token": "<|PAD_TOKEN|>",
11
+ "padding_side": "right",
12
+ "split_special_tokens": false,
13
+ "tokenizer_class": "Qwen2Tokenizer",
14
+ "unk_token": null
15
+ }
qwen-medqa-adapter/checkpoint-1013/trainer_state.json ADDED
@@ -0,0 +1,354 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 1.0,
6
+ "eval_steps": 200,
7
+ "global_step": 1013,
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.024691358024691357,
14
+ "grad_norm": 0.9983807802200317,
15
+ "learning_rate": 5.217391304347826e-05,
16
+ "loss": 1.9097471618652344,
17
+ "step": 25
18
+ },
19
+ {
20
+ "epoch": 0.04938271604938271,
21
+ "grad_norm": 0.8649121522903442,
22
+ "learning_rate": 0.0001065217391304348,
23
+ "loss": 1.7914739990234374,
24
+ "step": 50
25
+ },
26
+ {
27
+ "epoch": 0.07407407407407407,
28
+ "grad_norm": 0.8819628953933716,
29
+ "learning_rate": 0.00016086956521739132,
30
+ "loss": 1.7806753540039062,
31
+ "step": 75
32
+ },
33
+ {
34
+ "epoch": 0.09876543209876543,
35
+ "grad_norm": 0.874415397644043,
36
+ "learning_rate": 0.00019999721578003893,
37
+ "loss": 1.7156866455078126,
38
+ "step": 100
39
+ },
40
+ {
41
+ "epoch": 0.12345679012345678,
42
+ "grad_norm": 0.7363696694374084,
43
+ "learning_rate": 0.00019994182085712568,
44
+ "loss": 1.680865020751953,
45
+ "step": 125
46
+ },
47
+ {
48
+ "epoch": 0.14814814814814814,
49
+ "grad_norm": 1.443053126335144,
50
+ "learning_rate": 0.00019981544510913593,
51
+ "loss": 1.7227285766601563,
52
+ "step": 150
53
+ },
54
+ {
55
+ "epoch": 0.1728395061728395,
56
+ "grad_norm": 0.7225961089134216,
57
+ "learning_rate": 0.00019961817829083689,
58
+ "loss": 1.6481492614746094,
59
+ "step": 175
60
+ },
61
+ {
62
+ "epoch": 0.19753086419753085,
63
+ "grad_norm": 0.8149060010910034,
64
+ "learning_rate": 0.00019935016050535458,
65
+ "loss": 1.6283256530761718,
66
+ "step": 200
67
+ },
68
+ {
69
+ "epoch": 0.19753086419753085,
70
+ "eval_loss": 1.6281659603118896,
71
+ "eval_runtime": 22.8859,
72
+ "eval_samples_per_second": 19.663,
73
+ "eval_steps_per_second": 4.938,
74
+ "step": 200
75
+ },
76
+ {
77
+ "epoch": 0.2222222222222222,
78
+ "grad_norm": 0.7906002998352051,
79
+ "learning_rate": 0.00019901158210466967,
80
+ "loss": 1.4930352783203125,
81
+ "step": 225
82
+ },
83
+ {
84
+ "epoch": 0.24691358024691357,
85
+ "grad_norm": 0.6290755867958069,
86
+ "learning_rate": 0.00019860268355442528,
87
+ "loss": 1.6286912536621094,
88
+ "step": 250
89
+ },
90
+ {
91
+ "epoch": 0.2716049382716049,
92
+ "grad_norm": 0.9348021149635315,
93
+ "learning_rate": 0.00019812375526314337,
94
+ "loss": 1.5746138000488281,
95
+ "step": 275
96
+ },
97
+ {
98
+ "epoch": 0.2962962962962963,
99
+ "grad_norm": 0.6718561053276062,
100
+ "learning_rate": 0.00019757513737597007,
101
+ "loss": 1.6586624145507813,
102
+ "step": 300
103
+ },
104
+ {
105
+ "epoch": 0.32098765432098764,
106
+ "grad_norm": 0.817140519618988,
107
+ "learning_rate": 0.00019695721953309758,
108
+ "loss": 1.673653564453125,
109
+ "step": 325
110
+ },
111
+ {
112
+ "epoch": 0.345679012345679,
113
+ "grad_norm": 0.7288228869438171,
114
+ "learning_rate": 0.00019627044059303318,
115
+ "loss": 1.6568940734863282,
116
+ "step": 350
117
+ },
118
+ {
119
+ "epoch": 0.37037037037037035,
120
+ "grad_norm": 0.7541887760162354,
121
+ "learning_rate": 0.00019551528832091256,
122
+ "loss": 1.5814556884765625,
123
+ "step": 375
124
+ },
125
+ {
126
+ "epoch": 0.3950617283950617,
127
+ "grad_norm": 0.5590976476669312,
128
+ "learning_rate": 0.00019469229904207853,
129
+ "loss": 1.552509765625,
130
+ "step": 400
131
+ },
132
+ {
133
+ "epoch": 0.3950617283950617,
134
+ "eval_loss": 1.6067575216293335,
135
+ "eval_runtime": 22.4693,
136
+ "eval_samples_per_second": 20.027,
137
+ "eval_steps_per_second": 5.029,
138
+ "step": 400
139
+ },
140
+ {
141
+ "epoch": 0.41975308641975306,
142
+ "grad_norm": 0.5967969298362732,
143
+ "learning_rate": 0.00019380205726117125,
144
+ "loss": 1.5884945678710938,
145
+ "step": 425
146
+ },
147
+ {
148
+ "epoch": 0.4444444444444444,
149
+ "grad_norm": 0.9237460494041443,
150
+ "learning_rate": 0.00019284519524700067,
151
+ "loss": 1.6067202758789063,
152
+ "step": 450
153
+ },
154
+ {
155
+ "epoch": 0.4691358024691358,
156
+ "grad_norm": 0.9601542949676514,
157
+ "learning_rate": 0.00019182239258349527,
158
+ "loss": 1.6444061279296875,
159
+ "step": 475
160
+ },
161
+ {
162
+ "epoch": 0.49382716049382713,
163
+ "grad_norm": 0.8607155084609985,
164
+ "learning_rate": 0.00019073437568704738,
165
+ "loss": 1.6247816467285157,
166
+ "step": 500
167
+ },
168
+ {
169
+ "epoch": 0.5185185185185185,
170
+ "grad_norm": 0.6693869829177856,
171
+ "learning_rate": 0.00018958191729059656,
172
+ "loss": 1.5367588806152344,
173
+ "step": 525
174
+ },
175
+ {
176
+ "epoch": 0.5432098765432098,
177
+ "grad_norm": 0.8876053690910339,
178
+ "learning_rate": 0.00018836583589481782,
179
+ "loss": 1.5979902648925781,
180
+ "step": 550
181
+ },
182
+ {
183
+ "epoch": 0.5679012345679012,
184
+ "grad_norm": 1.0324726104736328,
185
+ "learning_rate": 0.00018708699518680527,
186
+ "loss": 1.578206787109375,
187
+ "step": 575
188
+ },
189
+ {
190
+ "epoch": 0.5925925925925926,
191
+ "grad_norm": 0.971229612827301,
192
+ "learning_rate": 0.00018574630342666287,
193
+ "loss": 1.5404522705078125,
194
+ "step": 600
195
+ },
196
+ {
197
+ "epoch": 0.5925925925925926,
198
+ "eval_loss": 1.5840898752212524,
199
+ "eval_runtime": 22.9043,
200
+ "eval_samples_per_second": 19.647,
201
+ "eval_steps_per_second": 4.934,
202
+ "step": 600
203
+ },
204
+ {
205
+ "epoch": 0.6172839506172839,
206
+ "grad_norm": 0.6557291746139526,
207
+ "learning_rate": 0.00018434471280243852,
208
+ "loss": 1.499405517578125,
209
+ "step": 625
210
+ },
211
+ {
212
+ "epoch": 0.6419753086419753,
213
+ "grad_norm": 0.8394591808319092,
214
+ "learning_rate": 0.00018288321875385976,
215
+ "loss": 1.6342214965820312,
216
+ "step": 650
217
+ },
218
+ {
219
+ "epoch": 0.6666666666666666,
220
+ "grad_norm": 0.6911213994026184,
221
+ "learning_rate": 0.00018136285926535116,
222
+ "loss": 1.5355674743652343,
223
+ "step": 675
224
+ },
225
+ {
226
+ "epoch": 0.691358024691358,
227
+ "grad_norm": 0.7369096875190735,
228
+ "learning_rate": 0.00017978471412883552,
229
+ "loss": 1.5818426513671875,
230
+ "step": 700
231
+ },
232
+ {
233
+ "epoch": 0.7160493827160493,
234
+ "grad_norm": 0.7061201333999634,
235
+ "learning_rate": 0.0001781499041768424,
236
+ "loss": 1.6143370056152344,
237
+ "step": 725
238
+ },
239
+ {
240
+ "epoch": 0.7407407407407407,
241
+ "grad_norm": 0.6377373933792114,
242
+ "learning_rate": 0.00017645959048646882,
243
+ "loss": 1.6555068969726563,
244
+ "step": 750
245
+ },
246
+ {
247
+ "epoch": 0.7654320987654321,
248
+ "grad_norm": 0.8313614130020142,
249
+ "learning_rate": 0.00017471497355475748,
250
+ "loss": 1.5740464782714845,
251
+ "step": 775
252
+ },
253
+ {
254
+ "epoch": 0.7901234567901234,
255
+ "grad_norm": 0.6624531745910645,
256
+ "learning_rate": 0.00017291729244607796,
257
+ "loss": 1.6097779846191407,
258
+ "step": 800
259
+ },
260
+ {
261
+ "epoch": 0.7901234567901234,
262
+ "eval_loss": 1.5766422748565674,
263
+ "eval_runtime": 22.6471,
264
+ "eval_samples_per_second": 19.87,
265
+ "eval_steps_per_second": 4.99,
266
+ "step": 800
267
+ },
268
+ {
269
+ "epoch": 0.8148148148148148,
270
+ "grad_norm": 0.9834194779396057,
271
+ "learning_rate": 0.00017106782391211665,
272
+ "loss": 1.602689208984375,
273
+ "step": 825
274
+ },
275
+ {
276
+ "epoch": 0.8395061728395061,
277
+ "grad_norm": 0.8179332613945007,
278
+ "learning_rate": 0.0001691678814851003,
279
+ "loss": 1.5758294677734375,
280
+ "step": 850
281
+ },
282
+ {
283
+ "epoch": 0.8641975308641975,
284
+ "grad_norm": 0.5943809747695923,
285
+ "learning_rate": 0.00016721881454489717,
286
+ "loss": 1.5087350463867188,
287
+ "step": 875
288
+ },
289
+ {
290
+ "epoch": 0.8888888888888888,
291
+ "grad_norm": 0.8135824799537659,
292
+ "learning_rate": 0.00016522200736065868,
293
+ "loss": 1.618147430419922,
294
+ "step": 900
295
+ },
296
+ {
297
+ "epoch": 0.9135802469135802,
298
+ "grad_norm": 0.8027802109718323,
299
+ "learning_rate": 0.00016317887810768164,
300
+ "loss": 1.5928036499023437,
301
+ "step": 925
302
+ },
303
+ {
304
+ "epoch": 0.9382716049382716,
305
+ "grad_norm": 0.730029284954071,
306
+ "learning_rate": 0.00016109087786018967,
307
+ "loss": 1.5496800231933594,
308
+ "step": 950
309
+ },
310
+ {
311
+ "epoch": 0.9629629629629629,
312
+ "grad_norm": 0.7517504096031189,
313
+ "learning_rate": 0.00015895948956074935,
314
+ "loss": 1.5759109497070312,
315
+ "step": 975
316
+ },
317
+ {
318
+ "epoch": 0.9876543209876543,
319
+ "grad_norm": 0.7409305572509766,
320
+ "learning_rate": 0.00015678622696705245,
321
+ "loss": 1.5074650573730468,
322
+ "step": 1000
323
+ },
324
+ {
325
+ "epoch": 0.9876543209876543,
326
+ "eval_loss": 1.5617632865905762,
327
+ "eval_runtime": 22.7195,
328
+ "eval_samples_per_second": 19.807,
329
+ "eval_steps_per_second": 4.974,
330
+ "step": 1000
331
+ }
332
+ ],
333
+ "logging_steps": 25,
334
+ "max_steps": 3039,
335
+ "num_input_tokens_seen": 0,
336
+ "num_train_epochs": 3,
337
+ "save_steps": 500,
338
+ "stateful_callbacks": {
339
+ "TrainerControl": {
340
+ "args": {
341
+ "should_epoch_stop": false,
342
+ "should_evaluate": false,
343
+ "should_log": false,
344
+ "should_save": true,
345
+ "should_training_stop": false
346
+ },
347
+ "attributes": {}
348
+ }
349
+ },
350
+ "total_flos": 1.4340079606622208e+16,
351
+ "train_batch_size": 2,
352
+ "trial_name": null,
353
+ "trial_params": null
354
+ }
qwen-medqa-adapter/checkpoint-1013/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7b4518e80700c92cd686b847f93673327354c97d4dc45bf817b092e120e7acf
3
+ size 5841
qwen-medqa-adapter/checkpoint-2026/README.md ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: unsloth/qwen2.5-1.5b-instruct-bnb-4bit
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:unsloth/qwen2.5-1.5b-instruct-bnb-4bit
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ - unsloth
12
+ ---
13
+
14
+ # Model Card for Model ID
15
+
16
+ <!-- Provide a quick summary of what the model is/does. -->
17
+
18
+
19
+
20
+ ## Model Details
21
+
22
+ ### Model Description
23
+
24
+ <!-- Provide a longer summary of what this model is. -->
25
+
26
+
27
+
28
+ - **Developed by:** [More Information Needed]
29
+ - **Funded by [optional]:** [More Information Needed]
30
+ - **Shared by [optional]:** [More Information Needed]
31
+ - **Model type:** [More Information Needed]
32
+ - **Language(s) (NLP):** [More Information Needed]
33
+ - **License:** [More Information Needed]
34
+ - **Finetuned from model [optional]:** [More Information Needed]
35
+
36
+ ### Model Sources [optional]
37
+
38
+ <!-- Provide the basic links for the model. -->
39
+
40
+ - **Repository:** [More Information Needed]
41
+ - **Paper [optional]:** [More Information Needed]
42
+ - **Demo [optional]:** [More Information Needed]
43
+
44
+ ## Uses
45
+
46
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
47
+
48
+ ### Direct Use
49
+
50
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
51
+
52
+ [More Information Needed]
53
+
54
+ ### Downstream Use [optional]
55
+
56
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
57
+
58
+ [More Information Needed]
59
+
60
+ ### Out-of-Scope Use
61
+
62
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
63
+
64
+ [More Information Needed]
65
+
66
+ ## Bias, Risks, and Limitations
67
+
68
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
69
+
70
+ [More Information Needed]
71
+
72
+ ### Recommendations
73
+
74
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
75
+
76
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
77
+
78
+ ## How to Get Started with the Model
79
+
80
+ Use the code below to get started with the model.
81
+
82
+ [More Information Needed]
83
+
84
+ ## Training Details
85
+
86
+ ### Training Data
87
+
88
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
89
+
90
+ [More Information Needed]
91
+
92
+ ### Training Procedure
93
+
94
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
95
+
96
+ #### Preprocessing [optional]
97
+
98
+ [More Information Needed]
99
+
100
+
101
+ #### Training Hyperparameters
102
+
103
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
104
+
105
+ #### Speeds, Sizes, Times [optional]
106
+
107
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
108
+
109
+ [More Information Needed]
110
+
111
+ ## Evaluation
112
+
113
+ <!-- This section describes the evaluation protocols and provides the results. -->
114
+
115
+ ### Testing Data, Factors & Metrics
116
+
117
+ #### Testing Data
118
+
119
+ <!-- This should link to a Dataset Card if possible. -->
120
+
121
+ [More Information Needed]
122
+
123
+ #### Factors
124
+
125
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
126
+
127
+ [More Information Needed]
128
+
129
+ #### Metrics
130
+
131
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
132
+
133
+ [More Information Needed]
134
+
135
+ ### Results
136
+
137
+ [More Information Needed]
138
+
139
+ #### Summary
140
+
141
+
142
+
143
+ ## Model Examination [optional]
144
+
145
+ <!-- Relevant interpretability work for the model goes here -->
146
+
147
+ [More Information Needed]
148
+
149
+ ## Environmental Impact
150
+
151
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
152
+
153
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
154
+
155
+ - **Hardware Type:** [More Information Needed]
156
+ - **Hours used:** [More Information Needed]
157
+ - **Cloud Provider:** [More Information Needed]
158
+ - **Compute Region:** [More Information Needed]
159
+ - **Carbon Emitted:** [More Information Needed]
160
+
161
+ ## Technical Specifications [optional]
162
+
163
+ ### Model Architecture and Objective
164
+
165
+ [More Information Needed]
166
+
167
+ ### Compute Infrastructure
168
+
169
+ [More Information Needed]
170
+
171
+ #### Hardware
172
+
173
+ [More Information Needed]
174
+
175
+ #### Software
176
+
177
+ [More Information Needed]
178
+
179
+ ## Citation [optional]
180
+
181
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
182
+
183
+ **BibTeX:**
184
+
185
+ [More Information Needed]
186
+
187
+ **APA:**
188
+
189
+ [More Information Needed]
190
+
191
+ ## Glossary [optional]
192
+
193
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
194
+
195
+ [More Information Needed]
196
+
197
+ ## More Information [optional]
198
+
199
+ [More Information Needed]
200
+
201
+ ## Model Card Authors [optional]
202
+
203
+ [More Information Needed]
204
+
205
+ ## Model Card Contact
206
+
207
+ [More Information Needed]
208
+ ### Framework versions
209
+
210
+ - PEFT 0.18.1
qwen-medqa-adapter/checkpoint-2026/adapter_config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": {
6
+ "base_model_class": "Qwen2ForCausalLM",
7
+ "parent_library": "transformers.models.qwen2.modeling_qwen2",
8
+ "unsloth_fixed": true
9
+ },
10
+ "base_model_name_or_path": "unsloth/qwen2.5-1.5b-instruct-bnb-4bit",
11
+ "bias": "none",
12
+ "corda_config": null,
13
+ "ensure_weight_tying": false,
14
+ "eva_config": null,
15
+ "exclude_modules": null,
16
+ "fan_in_fan_out": false,
17
+ "inference_mode": true,
18
+ "init_lora_weights": true,
19
+ "layer_replication": null,
20
+ "layers_pattern": null,
21
+ "layers_to_transform": null,
22
+ "loftq_config": {},
23
+ "lora_alpha": 32,
24
+ "lora_bias": false,
25
+ "lora_dropout": 0,
26
+ "megatron_config": null,
27
+ "megatron_core": "megatron.core",
28
+ "modules_to_save": null,
29
+ "peft_type": "LORA",
30
+ "peft_version": "0.18.1",
31
+ "qalora_group_size": 16,
32
+ "r": 16,
33
+ "rank_pattern": {},
34
+ "revision": null,
35
+ "target_modules": [
36
+ "k_proj",
37
+ "down_proj",
38
+ "o_proj",
39
+ "up_proj",
40
+ "q_proj",
41
+ "gate_proj",
42
+ "v_proj"
43
+ ],
44
+ "target_parameters": null,
45
+ "task_type": "CAUSAL_LM",
46
+ "trainable_token_indices": null,
47
+ "use_dora": false,
48
+ "use_qalora": false,
49
+ "use_rslora": false
50
+ }
qwen-medqa-adapter/checkpoint-2026/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:204cb0880eb347f8de467f1c32da96a73d82d9c99cd9c5c8de1e01ea65de9e08
3
+ size 73911112
qwen-medqa-adapter/checkpoint-2026/chat_template.jinja ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0]['role'] == 'system' %}
4
+ {{- messages[0]['content'] }}
5
+ {%- else %}
6
+ {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}
7
+ {%- endif %}
8
+ {{- "\n\n# 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>" }}
9
+ {%- for tool in tools %}
10
+ {{- "\n" }}
11
+ {{- tool | tojson }}
12
+ {%- endfor %}
13
+ {{- "\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" }}
14
+ {%- else %}
15
+ {%- if messages[0]['role'] == 'system' %}
16
+ {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
17
+ {%- else %}
18
+ {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\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.tool_calls) %}
23
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
24
+ {%- elif message.role == "assistant" %}
25
+ {{- '<|im_start|>' + 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
+ {{- '<|im_end|>\n' }}
40
+ {%- elif message.role == "tool" %}
41
+ {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} {{- '<|im_start|>user' }}
42
+ {%- endif %}
43
+ {{- '\n<tool_response>\n' }}
44
+ {{- message.content }}
45
+ {{- '\n</tool_response>' }}
46
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
47
+ {{- '<|im_end|>\n' }}
48
+ {%- endif %}
49
+ {%- endif %}
50
+ {%- endfor %}
51
+ {%- if add_generation_prompt %}
52
+ {{- '<|im_start|>assistant\n' }}
53
+ {%- endif %}
qwen-medqa-adapter/checkpoint-2026/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d4fb9c11162d45234debad0a883ef3cd4c26f3596eb59f318099764442f9603
3
+ size 37970053
qwen-medqa-adapter/checkpoint-2026/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f956ce6bb04cec689248e03cba8db27cf9b3f42207ef24f29fa54fec6c64920e
3
+ size 14645
qwen-medqa-adapter/checkpoint-2026/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f8654805c6c745bc8c1f660247c431a5633fe57bfbb185ce4a7d46549d0ab71
3
+ size 1465
qwen-medqa-adapter/checkpoint-2026/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd5948af71b4f56cf697f7580814c7ce8b80595ef985544efcacf716126a2e31
3
+ size 11422356
qwen-medqa-adapter/checkpoint-2026/tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "is_local": false,
9
+ "model_max_length": 32768,
10
+ "pad_token": "<|PAD_TOKEN|>",
11
+ "padding_side": "right",
12
+ "split_special_tokens": false,
13
+ "tokenizer_class": "Qwen2Tokenizer",
14
+ "unk_token": null
15
+ }
qwen-medqa-adapter/checkpoint-2026/trainer_state.json ADDED
@@ -0,0 +1,681 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 2.0,
6
+ "eval_steps": 200,
7
+ "global_step": 2026,
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.024691358024691357,
14
+ "grad_norm": 0.9983807802200317,
15
+ "learning_rate": 5.217391304347826e-05,
16
+ "loss": 1.9097471618652344,
17
+ "step": 25
18
+ },
19
+ {
20
+ "epoch": 0.04938271604938271,
21
+ "grad_norm": 0.8649121522903442,
22
+ "learning_rate": 0.0001065217391304348,
23
+ "loss": 1.7914739990234374,
24
+ "step": 50
25
+ },
26
+ {
27
+ "epoch": 0.07407407407407407,
28
+ "grad_norm": 0.8819628953933716,
29
+ "learning_rate": 0.00016086956521739132,
30
+ "loss": 1.7806753540039062,
31
+ "step": 75
32
+ },
33
+ {
34
+ "epoch": 0.09876543209876543,
35
+ "grad_norm": 0.874415397644043,
36
+ "learning_rate": 0.00019999721578003893,
37
+ "loss": 1.7156866455078126,
38
+ "step": 100
39
+ },
40
+ {
41
+ "epoch": 0.12345679012345678,
42
+ "grad_norm": 0.7363696694374084,
43
+ "learning_rate": 0.00019994182085712568,
44
+ "loss": 1.680865020751953,
45
+ "step": 125
46
+ },
47
+ {
48
+ "epoch": 0.14814814814814814,
49
+ "grad_norm": 1.443053126335144,
50
+ "learning_rate": 0.00019981544510913593,
51
+ "loss": 1.7227285766601563,
52
+ "step": 150
53
+ },
54
+ {
55
+ "epoch": 0.1728395061728395,
56
+ "grad_norm": 0.7225961089134216,
57
+ "learning_rate": 0.00019961817829083689,
58
+ "loss": 1.6481492614746094,
59
+ "step": 175
60
+ },
61
+ {
62
+ "epoch": 0.19753086419753085,
63
+ "grad_norm": 0.8149060010910034,
64
+ "learning_rate": 0.00019935016050535458,
65
+ "loss": 1.6283256530761718,
66
+ "step": 200
67
+ },
68
+ {
69
+ "epoch": 0.19753086419753085,
70
+ "eval_loss": 1.6281659603118896,
71
+ "eval_runtime": 22.8859,
72
+ "eval_samples_per_second": 19.663,
73
+ "eval_steps_per_second": 4.938,
74
+ "step": 200
75
+ },
76
+ {
77
+ "epoch": 0.2222222222222222,
78
+ "grad_norm": 0.7906002998352051,
79
+ "learning_rate": 0.00019901158210466967,
80
+ "loss": 1.4930352783203125,
81
+ "step": 225
82
+ },
83
+ {
84
+ "epoch": 0.24691358024691357,
85
+ "grad_norm": 0.6290755867958069,
86
+ "learning_rate": 0.00019860268355442528,
87
+ "loss": 1.6286912536621094,
88
+ "step": 250
89
+ },
90
+ {
91
+ "epoch": 0.2716049382716049,
92
+ "grad_norm": 0.9348021149635315,
93
+ "learning_rate": 0.00019812375526314337,
94
+ "loss": 1.5746138000488281,
95
+ "step": 275
96
+ },
97
+ {
98
+ "epoch": 0.2962962962962963,
99
+ "grad_norm": 0.6718561053276062,
100
+ "learning_rate": 0.00019757513737597007,
101
+ "loss": 1.6586624145507813,
102
+ "step": 300
103
+ },
104
+ {
105
+ "epoch": 0.32098765432098764,
106
+ "grad_norm": 0.817140519618988,
107
+ "learning_rate": 0.00019695721953309758,
108
+ "loss": 1.673653564453125,
109
+ "step": 325
110
+ },
111
+ {
112
+ "epoch": 0.345679012345679,
113
+ "grad_norm": 0.7288228869438171,
114
+ "learning_rate": 0.00019627044059303318,
115
+ "loss": 1.6568940734863282,
116
+ "step": 350
117
+ },
118
+ {
119
+ "epoch": 0.37037037037037035,
120
+ "grad_norm": 0.7541887760162354,
121
+ "learning_rate": 0.00019551528832091256,
122
+ "loss": 1.5814556884765625,
123
+ "step": 375
124
+ },
125
+ {
126
+ "epoch": 0.3950617283950617,
127
+ "grad_norm": 0.5590976476669312,
128
+ "learning_rate": 0.00019469229904207853,
129
+ "loss": 1.552509765625,
130
+ "step": 400
131
+ },
132
+ {
133
+ "epoch": 0.3950617283950617,
134
+ "eval_loss": 1.6067575216293335,
135
+ "eval_runtime": 22.4693,
136
+ "eval_samples_per_second": 20.027,
137
+ "eval_steps_per_second": 5.029,
138
+ "step": 400
139
+ },
140
+ {
141
+ "epoch": 0.41975308641975306,
142
+ "grad_norm": 0.5967969298362732,
143
+ "learning_rate": 0.00019380205726117125,
144
+ "loss": 1.5884945678710938,
145
+ "step": 425
146
+ },
147
+ {
148
+ "epoch": 0.4444444444444444,
149
+ "grad_norm": 0.9237460494041443,
150
+ "learning_rate": 0.00019284519524700067,
151
+ "loss": 1.6067202758789063,
152
+ "step": 450
153
+ },
154
+ {
155
+ "epoch": 0.4691358024691358,
156
+ "grad_norm": 0.9601542949676514,
157
+ "learning_rate": 0.00019182239258349527,
158
+ "loss": 1.6444061279296875,
159
+ "step": 475
160
+ },
161
+ {
162
+ "epoch": 0.49382716049382713,
163
+ "grad_norm": 0.8607155084609985,
164
+ "learning_rate": 0.00019073437568704738,
165
+ "loss": 1.6247816467285157,
166
+ "step": 500
167
+ },
168
+ {
169
+ "epoch": 0.5185185185185185,
170
+ "grad_norm": 0.6693869829177856,
171
+ "learning_rate": 0.00018958191729059656,
172
+ "loss": 1.5367588806152344,
173
+ "step": 525
174
+ },
175
+ {
176
+ "epoch": 0.5432098765432098,
177
+ "grad_norm": 0.8876053690910339,
178
+ "learning_rate": 0.00018836583589481782,
179
+ "loss": 1.5979902648925781,
180
+ "step": 550
181
+ },
182
+ {
183
+ "epoch": 0.5679012345679012,
184
+ "grad_norm": 1.0324726104736328,
185
+ "learning_rate": 0.00018708699518680527,
186
+ "loss": 1.578206787109375,
187
+ "step": 575
188
+ },
189
+ {
190
+ "epoch": 0.5925925925925926,
191
+ "grad_norm": 0.971229612827301,
192
+ "learning_rate": 0.00018574630342666287,
193
+ "loss": 1.5404522705078125,
194
+ "step": 600
195
+ },
196
+ {
197
+ "epoch": 0.5925925925925926,
198
+ "eval_loss": 1.5840898752212524,
199
+ "eval_runtime": 22.9043,
200
+ "eval_samples_per_second": 19.647,
201
+ "eval_steps_per_second": 4.934,
202
+ "step": 600
203
+ },
204
+ {
205
+ "epoch": 0.6172839506172839,
206
+ "grad_norm": 0.6557291746139526,
207
+ "learning_rate": 0.00018434471280243852,
208
+ "loss": 1.499405517578125,
209
+ "step": 625
210
+ },
211
+ {
212
+ "epoch": 0.6419753086419753,
213
+ "grad_norm": 0.8394591808319092,
214
+ "learning_rate": 0.00018288321875385976,
215
+ "loss": 1.6342214965820312,
216
+ "step": 650
217
+ },
218
+ {
219
+ "epoch": 0.6666666666666666,
220
+ "grad_norm": 0.6911213994026184,
221
+ "learning_rate": 0.00018136285926535116,
222
+ "loss": 1.5355674743652343,
223
+ "step": 675
224
+ },
225
+ {
226
+ "epoch": 0.691358024691358,
227
+ "grad_norm": 0.7369096875190735,
228
+ "learning_rate": 0.00017978471412883552,
229
+ "loss": 1.5818426513671875,
230
+ "step": 700
231
+ },
232
+ {
233
+ "epoch": 0.7160493827160493,
234
+ "grad_norm": 0.7061201333999634,
235
+ "learning_rate": 0.0001781499041768424,
236
+ "loss": 1.6143370056152344,
237
+ "step": 725
238
+ },
239
+ {
240
+ "epoch": 0.7407407407407407,
241
+ "grad_norm": 0.6377373933792114,
242
+ "learning_rate": 0.00017645959048646882,
243
+ "loss": 1.6555068969726563,
244
+ "step": 750
245
+ },
246
+ {
247
+ "epoch": 0.7654320987654321,
248
+ "grad_norm": 0.8313614130020142,
249
+ "learning_rate": 0.00017471497355475748,
250
+ "loss": 1.5740464782714845,
251
+ "step": 775
252
+ },
253
+ {
254
+ "epoch": 0.7901234567901234,
255
+ "grad_norm": 0.6624531745910645,
256
+ "learning_rate": 0.00017291729244607796,
257
+ "loss": 1.6097779846191407,
258
+ "step": 800
259
+ },
260
+ {
261
+ "epoch": 0.7901234567901234,
262
+ "eval_loss": 1.5766422748565674,
263
+ "eval_runtime": 22.6471,
264
+ "eval_samples_per_second": 19.87,
265
+ "eval_steps_per_second": 4.99,
266
+ "step": 800
267
+ },
268
+ {
269
+ "epoch": 0.8148148148148148,
270
+ "grad_norm": 0.9834194779396057,
271
+ "learning_rate": 0.00017106782391211665,
272
+ "loss": 1.602689208984375,
273
+ "step": 825
274
+ },
275
+ {
276
+ "epoch": 0.8395061728395061,
277
+ "grad_norm": 0.8179332613945007,
278
+ "learning_rate": 0.0001691678814851003,
279
+ "loss": 1.5758294677734375,
280
+ "step": 850
281
+ },
282
+ {
283
+ "epoch": 0.8641975308641975,
284
+ "grad_norm": 0.5943809747695923,
285
+ "learning_rate": 0.00016721881454489717,
286
+ "loss": 1.5087350463867188,
287
+ "step": 875
288
+ },
289
+ {
290
+ "epoch": 0.8888888888888888,
291
+ "grad_norm": 0.8135824799537659,
292
+ "learning_rate": 0.00016522200736065868,
293
+ "loss": 1.618147430419922,
294
+ "step": 900
295
+ },
296
+ {
297
+ "epoch": 0.9135802469135802,
298
+ "grad_norm": 0.8027802109718323,
299
+ "learning_rate": 0.00016317887810768164,
300
+ "loss": 1.5928036499023437,
301
+ "step": 925
302
+ },
303
+ {
304
+ "epoch": 0.9382716049382716,
305
+ "grad_norm": 0.730029284954071,
306
+ "learning_rate": 0.00016109087786018967,
307
+ "loss": 1.5496800231933594,
308
+ "step": 950
309
+ },
310
+ {
311
+ "epoch": 0.9629629629629629,
312
+ "grad_norm": 0.7517504096031189,
313
+ "learning_rate": 0.00015895948956074935,
314
+ "loss": 1.5759109497070312,
315
+ "step": 975
316
+ },
317
+ {
318
+ "epoch": 0.9876543209876543,
319
+ "grad_norm": 0.7409305572509766,
320
+ "learning_rate": 0.00015678622696705245,
321
+ "loss": 1.5074650573730468,
322
+ "step": 1000
323
+ },
324
+ {
325
+ "epoch": 0.9876543209876543,
326
+ "eval_loss": 1.5617632865905762,
327
+ "eval_runtime": 22.7195,
328
+ "eval_samples_per_second": 19.807,
329
+ "eval_steps_per_second": 4.974,
330
+ "step": 1000
331
+ },
332
+ {
333
+ "epoch": 1.0118518518518518,
334
+ "grad_norm": 0.7756671905517578,
335
+ "learning_rate": 0.00015457263357681277,
336
+ "loss": 1.4806069946289062,
337
+ "step": 1025
338
+ },
339
+ {
340
+ "epoch": 1.0365432098765432,
341
+ "grad_norm": 0.7125148773193359,
342
+ "learning_rate": 0.00015232028153154109,
343
+ "loss": 1.392002716064453,
344
+ "step": 1050
345
+ },
346
+ {
347
+ "epoch": 1.0612345679012345,
348
+ "grad_norm": 1.0132018327713013,
349
+ "learning_rate": 0.00015003077049997624,
350
+ "loss": 1.4020048522949218,
351
+ "step": 1075
352
+ },
353
+ {
354
+ "epoch": 1.085925925925926,
355
+ "grad_norm": 0.9546898007392883,
356
+ "learning_rate": 0.00014770572654196633,
357
+ "loss": 1.386948699951172,
358
+ "step": 1100
359
+ },
360
+ {
361
+ "epoch": 1.1106172839506172,
362
+ "grad_norm": 0.8679090142250061,
363
+ "learning_rate": 0.0001453468009536061,
364
+ "loss": 1.3569244384765624,
365
+ "step": 1125
366
+ },
367
+ {
368
+ "epoch": 1.1353086419753087,
369
+ "grad_norm": 0.7100213170051575,
370
+ "learning_rate": 0.0001429556690944509,
371
+ "loss": 1.4630929565429687,
372
+ "step": 1150
373
+ },
374
+ {
375
+ "epoch": 1.16,
376
+ "grad_norm": 0.820504367351532,
377
+ "learning_rate": 0.00014053402919764053,
378
+ "loss": 1.3780885314941407,
379
+ "step": 1175
380
+ },
381
+ {
382
+ "epoch": 1.1846913580246914,
383
+ "grad_norm": 1.0543186664581299,
384
+ "learning_rate": 0.00013808360116377753,
385
+ "loss": 1.3411346435546876,
386
+ "step": 1200
387
+ },
388
+ {
389
+ "epoch": 1.1846913580246914,
390
+ "eval_loss": 1.5791677236557007,
391
+ "eval_runtime": 22.7454,
392
+ "eval_samples_per_second": 19.784,
393
+ "eval_steps_per_second": 4.968,
394
+ "step": 1200
395
+ },
396
+ {
397
+ "epoch": 1.2093827160493826,
398
+ "grad_norm": 0.9947031140327454,
399
+ "learning_rate": 0.00013560612533941702,
400
+ "loss": 1.405787353515625,
401
+ "step": 1225
402
+ },
403
+ {
404
+ "epoch": 1.234074074074074,
405
+ "grad_norm": 0.8951894044876099,
406
+ "learning_rate": 0.00013310336128103498,
407
+ "loss": 1.4741221618652345,
408
+ "step": 1250
409
+ },
410
+ {
411
+ "epoch": 1.2587654320987656,
412
+ "grad_norm": 1.1212998628616333,
413
+ "learning_rate": 0.00013057708650535384,
414
+ "loss": 1.4099740600585937,
415
+ "step": 1275
416
+ },
417
+ {
418
+ "epoch": 1.2834567901234568,
419
+ "grad_norm": 0.9610609412193298,
420
+ "learning_rate": 0.0001280290952269117,
421
+ "loss": 1.3199884033203124,
422
+ "step": 1300
423
+ },
424
+ {
425
+ "epoch": 1.308148148148148,
426
+ "grad_norm": 0.7730844020843506,
427
+ "learning_rate": 0.00012546119708377272,
428
+ "loss": 1.353458251953125,
429
+ "step": 1325
430
+ },
431
+ {
432
+ "epoch": 1.3328395061728395,
433
+ "grad_norm": 0.8625616431236267,
434
+ "learning_rate": 0.00012287521585228358,
435
+ "loss": 1.343385009765625,
436
+ "step": 1350
437
+ },
438
+ {
439
+ "epoch": 1.357530864197531,
440
+ "grad_norm": 0.9058452248573303,
441
+ "learning_rate": 0.00012027298815178802,
442
+ "loss": 1.322093505859375,
443
+ "step": 1375
444
+ },
445
+ {
446
+ "epoch": 1.3822222222222222,
447
+ "grad_norm": 0.900679886341095,
448
+ "learning_rate": 0.00011765636214022074,
449
+ "loss": 1.3874404907226563,
450
+ "step": 1400
451
+ },
452
+ {
453
+ "epoch": 1.3822222222222222,
454
+ "eval_loss": 1.5630701780319214,
455
+ "eval_runtime": 22.8089,
456
+ "eval_samples_per_second": 19.729,
457
+ "eval_steps_per_second": 4.954,
458
+ "step": 1400
459
+ },
460
+ {
461
+ "epoch": 1.4069135802469135,
462
+ "grad_norm": 0.9469696879386902,
463
+ "learning_rate": 0.00011502719620150568,
464
+ "loss": 1.3494842529296875,
465
+ "step": 1425
466
+ },
467
+ {
468
+ "epoch": 1.431604938271605,
469
+ "grad_norm": 0.6700549125671387,
470
+ "learning_rate": 0.00011238735762569213,
471
+ "loss": 1.2743421173095704,
472
+ "step": 1450
473
+ },
474
+ {
475
+ "epoch": 1.4562962962962964,
476
+ "grad_norm": 0.784538745880127,
477
+ "learning_rate": 0.00010973872128276523,
478
+ "loss": 1.3858119201660157,
479
+ "step": 1475
480
+ },
481
+ {
482
+ "epoch": 1.4809876543209877,
483
+ "grad_norm": 0.7804888486862183,
484
+ "learning_rate": 0.00010708316829107295,
485
+ "loss": 1.3711044311523437,
486
+ "step": 1500
487
+ },
488
+ {
489
+ "epoch": 1.505679012345679,
490
+ "grad_norm": 1.0192447900772095,
491
+ "learning_rate": 0.00010442258468131561,
492
+ "loss": 1.2914910888671876,
493
+ "step": 1525
494
+ },
495
+ {
496
+ "epoch": 1.5303703703703704,
497
+ "grad_norm": 0.9760621786117554,
498
+ "learning_rate": 0.00010175886005704645,
499
+ "loss": 1.2597393798828125,
500
+ "step": 1550
501
+ },
502
+ {
503
+ "epoch": 1.5550617283950618,
504
+ "grad_norm": 0.8560802936553955,
505
+ "learning_rate": 9.909388625263457e-05,
506
+ "loss": 1.3868017578125,
507
+ "step": 1575
508
+ },
509
+ {
510
+ "epoch": 1.579753086419753,
511
+ "grad_norm": 0.8919157385826111,
512
+ "learning_rate": 9.642955598964359e-05,
513
+ "loss": 1.3696511840820313,
514
+ "step": 1600
515
+ },
516
+ {
517
+ "epoch": 1.579753086419753,
518
+ "eval_loss": 1.5607049465179443,
519
+ "eval_runtime": 22.7545,
520
+ "eval_samples_per_second": 19.776,
521
+ "eval_steps_per_second": 4.966,
522
+ "step": 1600
523
+ },
524
+ {
525
+ "epoch": 1.6044444444444443,
526
+ "grad_norm": 0.957440972328186,
527
+ "learning_rate": 9.376776153258017e-05,
528
+ "loss": 1.3692576599121093,
529
+ "step": 1625
530
+ },
531
+ {
532
+ "epoch": 1.6291358024691358,
533
+ "grad_norm": 0.839853048324585,
534
+ "learning_rate": 9.111039334496733e-05,
535
+ "loss": 1.399899444580078,
536
+ "step": 1650
537
+ },
538
+ {
539
+ "epoch": 1.6538271604938273,
540
+ "grad_norm": 0.9287911057472229,
541
+ "learning_rate": 8.845933874669645e-05,
542
+ "loss": 1.414253692626953,
543
+ "step": 1675
544
+ },
545
+ {
546
+ "epoch": 1.6785185185185185,
547
+ "grad_norm": 1.3080424070358276,
548
+ "learning_rate": 8.581648057361235e-05,
549
+ "loss": 1.3486209106445313,
550
+ "step": 1700
551
+ },
552
+ {
553
+ "epoch": 1.7032098765432098,
554
+ "grad_norm": 0.9376318454742432,
555
+ "learning_rate": 8.31836958402829e-05,
556
+ "loss": 1.3694459533691405,
557
+ "step": 1725
558
+ },
559
+ {
560
+ "epoch": 1.7279012345679012,
561
+ "grad_norm": 0.6469689011573792,
562
+ "learning_rate": 8.056285440690293e-05,
563
+ "loss": 1.3223983764648437,
564
+ "step": 1750
565
+ },
566
+ {
567
+ "epoch": 1.7525925925925927,
568
+ "grad_norm": 0.8364415764808655,
569
+ "learning_rate": 7.79558176512794e-05,
570
+ "loss": 1.2956373596191406,
571
+ "step": 1775
572
+ },
573
+ {
574
+ "epoch": 1.777283950617284,
575
+ "grad_norm": 1.3633909225463867,
576
+ "learning_rate": 7.536443714684115e-05,
577
+ "loss": 1.403833770751953,
578
+ "step": 1800
579
+ },
580
+ {
581
+ "epoch": 1.777283950617284,
582
+ "eval_loss": 1.557874083518982,
583
+ "eval_runtime": 22.6941,
584
+ "eval_samples_per_second": 19.829,
585
+ "eval_steps_per_second": 4.979,
586
+ "step": 1800
587
+ },
588
+ {
589
+ "epoch": 1.8019753086419752,
590
+ "grad_norm": 1.049499750137329,
591
+ "learning_rate": 7.279055334761142e-05,
592
+ "loss": 1.446612091064453,
593
+ "step": 1825
594
+ },
595
+ {
596
+ "epoch": 1.8266666666666667,
597
+ "grad_norm": 0.8737422227859497,
598
+ "learning_rate": 7.023599428107815e-05,
599
+ "loss": 1.3366017150878906,
600
+ "step": 1850
601
+ },
602
+ {
603
+ "epoch": 1.8513580246913581,
604
+ "grad_norm": 1.0929123163223267,
605
+ "learning_rate": 6.770257424988951e-05,
606
+ "loss": 1.4009796142578126,
607
+ "step": 1875
608
+ },
609
+ {
610
+ "epoch": 1.8760493827160494,
611
+ "grad_norm": 1.1216261386871338,
612
+ "learning_rate": 6.519209254329743e-05,
613
+ "loss": 1.3102740478515624,
614
+ "step": 1900
615
+ },
616
+ {
617
+ "epoch": 1.9007407407407406,
618
+ "grad_norm": 0.9584355354309082,
619
+ "learning_rate": 6.270633215926352e-05,
620
+ "loss": 1.4050299072265624,
621
+ "step": 1925
622
+ },
623
+ {
624
+ "epoch": 1.925432098765432,
625
+ "grad_norm": 1.1584628820419312,
626
+ "learning_rate": 6.024705853813588e-05,
627
+ "loss": 1.3258395385742188,
628
+ "step": 1950
629
+ },
630
+ {
631
+ "epoch": 1.9501234567901236,
632
+ "grad_norm": 1.2295587062835693,
633
+ "learning_rate": 5.781601830879544e-05,
634
+ "loss": 1.3213279724121094,
635
+ "step": 1975
636
+ },
637
+ {
638
+ "epoch": 1.9748148148148148,
639
+ "grad_norm": 1.1576493978500366,
640
+ "learning_rate": 5.541493804816247e-05,
641
+ "loss": 1.2919178771972657,
642
+ "step": 2000
643
+ },
644
+ {
645
+ "epoch": 1.9748148148148148,
646
+ "eval_loss": 1.5535742044448853,
647
+ "eval_runtime": 22.5737,
648
+ "eval_samples_per_second": 19.935,
649
+ "eval_steps_per_second": 5.006,
650
+ "step": 2000
651
+ },
652
+ {
653
+ "epoch": 1.999506172839506,
654
+ "grad_norm": 0.8794939517974854,
655
+ "learning_rate": 5.304552305494492e-05,
656
+ "loss": 1.3732542419433593,
657
+ "step": 2025
658
+ }
659
+ ],
660
+ "logging_steps": 25,
661
+ "max_steps": 3039,
662
+ "num_input_tokens_seen": 0,
663
+ "num_train_epochs": 3,
664
+ "save_steps": 500,
665
+ "stateful_callbacks": {
666
+ "TrainerControl": {
667
+ "args": {
668
+ "should_epoch_stop": false,
669
+ "should_evaluate": false,
670
+ "should_log": false,
671
+ "should_save": true,
672
+ "should_training_stop": false
673
+ },
674
+ "attributes": {}
675
+ }
676
+ },
677
+ "total_flos": 2.8609679376101376e+16,
678
+ "train_batch_size": 2,
679
+ "trial_name": null,
680
+ "trial_params": null
681
+ }
qwen-medqa-adapter/checkpoint-2026/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7b4518e80700c92cd686b847f93673327354c97d4dc45bf817b092e120e7acf
3
+ size 5841
qwen-medqa-adapter/checkpoint-3039/README.md ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: unsloth/qwen2.5-1.5b-instruct-bnb-4bit
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:unsloth/qwen2.5-1.5b-instruct-bnb-4bit
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ - unsloth
12
+ ---
13
+
14
+ # Model Card for Model ID
15
+
16
+ <!-- Provide a quick summary of what the model is/does. -->
17
+
18
+
19
+
20
+ ## Model Details
21
+
22
+ ### Model Description
23
+
24
+ <!-- Provide a longer summary of what this model is. -->
25
+
26
+
27
+
28
+ - **Developed by:** [More Information Needed]
29
+ - **Funded by [optional]:** [More Information Needed]
30
+ - **Shared by [optional]:** [More Information Needed]
31
+ - **Model type:** [More Information Needed]
32
+ - **Language(s) (NLP):** [More Information Needed]
33
+ - **License:** [More Information Needed]
34
+ - **Finetuned from model [optional]:** [More Information Needed]
35
+
36
+ ### Model Sources [optional]
37
+
38
+ <!-- Provide the basic links for the model. -->
39
+
40
+ - **Repository:** [More Information Needed]
41
+ - **Paper [optional]:** [More Information Needed]
42
+ - **Demo [optional]:** [More Information Needed]
43
+
44
+ ## Uses
45
+
46
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
47
+
48
+ ### Direct Use
49
+
50
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
51
+
52
+ [More Information Needed]
53
+
54
+ ### Downstream Use [optional]
55
+
56
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
57
+
58
+ [More Information Needed]
59
+
60
+ ### Out-of-Scope Use
61
+
62
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
63
+
64
+ [More Information Needed]
65
+
66
+ ## Bias, Risks, and Limitations
67
+
68
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
69
+
70
+ [More Information Needed]
71
+
72
+ ### Recommendations
73
+
74
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
75
+
76
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
77
+
78
+ ## How to Get Started with the Model
79
+
80
+ Use the code below to get started with the model.
81
+
82
+ [More Information Needed]
83
+
84
+ ## Training Details
85
+
86
+ ### Training Data
87
+
88
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
89
+
90
+ [More Information Needed]
91
+
92
+ ### Training Procedure
93
+
94
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
95
+
96
+ #### Preprocessing [optional]
97
+
98
+ [More Information Needed]
99
+
100
+
101
+ #### Training Hyperparameters
102
+
103
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
104
+
105
+ #### Speeds, Sizes, Times [optional]
106
+
107
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
108
+
109
+ [More Information Needed]
110
+
111
+ ## Evaluation
112
+
113
+ <!-- This section describes the evaluation protocols and provides the results. -->
114
+
115
+ ### Testing Data, Factors & Metrics
116
+
117
+ #### Testing Data
118
+
119
+ <!-- This should link to a Dataset Card if possible. -->
120
+
121
+ [More Information Needed]
122
+
123
+ #### Factors
124
+
125
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
126
+
127
+ [More Information Needed]
128
+
129
+ #### Metrics
130
+
131
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
132
+
133
+ [More Information Needed]
134
+
135
+ ### Results
136
+
137
+ [More Information Needed]
138
+
139
+ #### Summary
140
+
141
+
142
+
143
+ ## Model Examination [optional]
144
+
145
+ <!-- Relevant interpretability work for the model goes here -->
146
+
147
+ [More Information Needed]
148
+
149
+ ## Environmental Impact
150
+
151
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
152
+
153
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
154
+
155
+ - **Hardware Type:** [More Information Needed]
156
+ - **Hours used:** [More Information Needed]
157
+ - **Cloud Provider:** [More Information Needed]
158
+ - **Compute Region:** [More Information Needed]
159
+ - **Carbon Emitted:** [More Information Needed]
160
+
161
+ ## Technical Specifications [optional]
162
+
163
+ ### Model Architecture and Objective
164
+
165
+ [More Information Needed]
166
+
167
+ ### Compute Infrastructure
168
+
169
+ [More Information Needed]
170
+
171
+ #### Hardware
172
+
173
+ [More Information Needed]
174
+
175
+ #### Software
176
+
177
+ [More Information Needed]
178
+
179
+ ## Citation [optional]
180
+
181
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
182
+
183
+ **BibTeX:**
184
+
185
+ [More Information Needed]
186
+
187
+ **APA:**
188
+
189
+ [More Information Needed]
190
+
191
+ ## Glossary [optional]
192
+
193
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
194
+
195
+ [More Information Needed]
196
+
197
+ ## More Information [optional]
198
+
199
+ [More Information Needed]
200
+
201
+ ## Model Card Authors [optional]
202
+
203
+ [More Information Needed]
204
+
205
+ ## Model Card Contact
206
+
207
+ [More Information Needed]
208
+ ### Framework versions
209
+
210
+ - PEFT 0.18.1
qwen-medqa-adapter/checkpoint-3039/adapter_config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": {
6
+ "base_model_class": "Qwen2ForCausalLM",
7
+ "parent_library": "transformers.models.qwen2.modeling_qwen2",
8
+ "unsloth_fixed": true
9
+ },
10
+ "base_model_name_or_path": "unsloth/qwen2.5-1.5b-instruct-bnb-4bit",
11
+ "bias": "none",
12
+ "corda_config": null,
13
+ "ensure_weight_tying": false,
14
+ "eva_config": null,
15
+ "exclude_modules": null,
16
+ "fan_in_fan_out": false,
17
+ "inference_mode": true,
18
+ "init_lora_weights": true,
19
+ "layer_replication": null,
20
+ "layers_pattern": null,
21
+ "layers_to_transform": null,
22
+ "loftq_config": {},
23
+ "lora_alpha": 32,
24
+ "lora_bias": false,
25
+ "lora_dropout": 0,
26
+ "megatron_config": null,
27
+ "megatron_core": "megatron.core",
28
+ "modules_to_save": null,
29
+ "peft_type": "LORA",
30
+ "peft_version": "0.18.1",
31
+ "qalora_group_size": 16,
32
+ "r": 16,
33
+ "rank_pattern": {},
34
+ "revision": null,
35
+ "target_modules": [
36
+ "k_proj",
37
+ "down_proj",
38
+ "o_proj",
39
+ "up_proj",
40
+ "q_proj",
41
+ "gate_proj",
42
+ "v_proj"
43
+ ],
44
+ "target_parameters": null,
45
+ "task_type": "CAUSAL_LM",
46
+ "trainable_token_indices": null,
47
+ "use_dora": false,
48
+ "use_qalora": false,
49
+ "use_rslora": false
50
+ }
qwen-medqa-adapter/checkpoint-3039/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d41622e2aa5f7af66acfd585c364695a5a463c5e63aceef37814422a3b35c34d
3
+ size 73911112
qwen-medqa-adapter/checkpoint-3039/chat_template.jinja ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0]['role'] == 'system' %}
4
+ {{- messages[0]['content'] }}
5
+ {%- else %}
6
+ {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}
7
+ {%- endif %}
8
+ {{- "\n\n# 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>" }}
9
+ {%- for tool in tools %}
10
+ {{- "\n" }}
11
+ {{- tool | tojson }}
12
+ {%- endfor %}
13
+ {{- "\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" }}
14
+ {%- else %}
15
+ {%- if messages[0]['role'] == 'system' %}
16
+ {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
17
+ {%- else %}
18
+ {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\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.tool_calls) %}
23
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
24
+ {%- elif message.role == "assistant" %}
25
+ {{- '<|im_start|>' + 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
+ {{- '<|im_end|>\n' }}
40
+ {%- elif message.role == "tool" %}
41
+ {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} {{- '<|im_start|>user' }}
42
+ {%- endif %}
43
+ {{- '\n<tool_response>\n' }}
44
+ {{- message.content }}
45
+ {{- '\n</tool_response>' }}
46
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
47
+ {{- '<|im_end|>\n' }}
48
+ {%- endif %}
49
+ {%- endif %}
50
+ {%- endfor %}
51
+ {%- if add_generation_prompt %}
52
+ {{- '<|im_start|>assistant\n' }}
53
+ {%- endif %}
qwen-medqa-adapter/checkpoint-3039/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa5142c03df79efdccc532f50ba1a2ad71aeae01dcfc4fd6108412e99fa05709
3
+ size 37970053
qwen-medqa-adapter/checkpoint-3039/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a5755c4b615124a7b2e4a71f1353e5eab4e5fd23b7656ae3548c8325ab19278
3
+ size 14645
qwen-medqa-adapter/checkpoint-3039/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39e9ca8fd83f5e34c30e24db3e601d8fec71a6c6cd999d76cef649355e087c8c
3
+ size 1465
qwen-medqa-adapter/checkpoint-3039/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd5948af71b4f56cf697f7580814c7ce8b80595ef985544efcacf716126a2e31
3
+ size 11422356
qwen-medqa-adapter/checkpoint-3039/tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "is_local": false,
9
+ "model_max_length": 32768,
10
+ "pad_token": "<|PAD_TOKEN|>",
11
+ "padding_side": "right",
12
+ "split_special_tokens": false,
13
+ "tokenizer_class": "Qwen2Tokenizer",
14
+ "unk_token": null
15
+ }
qwen-medqa-adapter/checkpoint-3039/trainer_state.json ADDED
@@ -0,0 +1,1001 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 3.0,
6
+ "eval_steps": 200,
7
+ "global_step": 3039,
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.024691358024691357,
14
+ "grad_norm": 0.9983807802200317,
15
+ "learning_rate": 5.217391304347826e-05,
16
+ "loss": 1.9097471618652344,
17
+ "step": 25
18
+ },
19
+ {
20
+ "epoch": 0.04938271604938271,
21
+ "grad_norm": 0.8649121522903442,
22
+ "learning_rate": 0.0001065217391304348,
23
+ "loss": 1.7914739990234374,
24
+ "step": 50
25
+ },
26
+ {
27
+ "epoch": 0.07407407407407407,
28
+ "grad_norm": 0.8819628953933716,
29
+ "learning_rate": 0.00016086956521739132,
30
+ "loss": 1.7806753540039062,
31
+ "step": 75
32
+ },
33
+ {
34
+ "epoch": 0.09876543209876543,
35
+ "grad_norm": 0.874415397644043,
36
+ "learning_rate": 0.00019999721578003893,
37
+ "loss": 1.7156866455078126,
38
+ "step": 100
39
+ },
40
+ {
41
+ "epoch": 0.12345679012345678,
42
+ "grad_norm": 0.7363696694374084,
43
+ "learning_rate": 0.00019994182085712568,
44
+ "loss": 1.680865020751953,
45
+ "step": 125
46
+ },
47
+ {
48
+ "epoch": 0.14814814814814814,
49
+ "grad_norm": 1.443053126335144,
50
+ "learning_rate": 0.00019981544510913593,
51
+ "loss": 1.7227285766601563,
52
+ "step": 150
53
+ },
54
+ {
55
+ "epoch": 0.1728395061728395,
56
+ "grad_norm": 0.7225961089134216,
57
+ "learning_rate": 0.00019961817829083689,
58
+ "loss": 1.6481492614746094,
59
+ "step": 175
60
+ },
61
+ {
62
+ "epoch": 0.19753086419753085,
63
+ "grad_norm": 0.8149060010910034,
64
+ "learning_rate": 0.00019935016050535458,
65
+ "loss": 1.6283256530761718,
66
+ "step": 200
67
+ },
68
+ {
69
+ "epoch": 0.19753086419753085,
70
+ "eval_loss": 1.6281659603118896,
71
+ "eval_runtime": 22.8859,
72
+ "eval_samples_per_second": 19.663,
73
+ "eval_steps_per_second": 4.938,
74
+ "step": 200
75
+ },
76
+ {
77
+ "epoch": 0.2222222222222222,
78
+ "grad_norm": 0.7906002998352051,
79
+ "learning_rate": 0.00019901158210466967,
80
+ "loss": 1.4930352783203125,
81
+ "step": 225
82
+ },
83
+ {
84
+ "epoch": 0.24691358024691357,
85
+ "grad_norm": 0.6290755867958069,
86
+ "learning_rate": 0.00019860268355442528,
87
+ "loss": 1.6286912536621094,
88
+ "step": 250
89
+ },
90
+ {
91
+ "epoch": 0.2716049382716049,
92
+ "grad_norm": 0.9348021149635315,
93
+ "learning_rate": 0.00019812375526314337,
94
+ "loss": 1.5746138000488281,
95
+ "step": 275
96
+ },
97
+ {
98
+ "epoch": 0.2962962962962963,
99
+ "grad_norm": 0.6718561053276062,
100
+ "learning_rate": 0.00019757513737597007,
101
+ "loss": 1.6586624145507813,
102
+ "step": 300
103
+ },
104
+ {
105
+ "epoch": 0.32098765432098764,
106
+ "grad_norm": 0.817140519618988,
107
+ "learning_rate": 0.00019695721953309758,
108
+ "loss": 1.673653564453125,
109
+ "step": 325
110
+ },
111
+ {
112
+ "epoch": 0.345679012345679,
113
+ "grad_norm": 0.7288228869438171,
114
+ "learning_rate": 0.00019627044059303318,
115
+ "loss": 1.6568940734863282,
116
+ "step": 350
117
+ },
118
+ {
119
+ "epoch": 0.37037037037037035,
120
+ "grad_norm": 0.7541887760162354,
121
+ "learning_rate": 0.00019551528832091256,
122
+ "loss": 1.5814556884765625,
123
+ "step": 375
124
+ },
125
+ {
126
+ "epoch": 0.3950617283950617,
127
+ "grad_norm": 0.5590976476669312,
128
+ "learning_rate": 0.00019469229904207853,
129
+ "loss": 1.552509765625,
130
+ "step": 400
131
+ },
132
+ {
133
+ "epoch": 0.3950617283950617,
134
+ "eval_loss": 1.6067575216293335,
135
+ "eval_runtime": 22.4693,
136
+ "eval_samples_per_second": 20.027,
137
+ "eval_steps_per_second": 5.029,
138
+ "step": 400
139
+ },
140
+ {
141
+ "epoch": 0.41975308641975306,
142
+ "grad_norm": 0.5967969298362732,
143
+ "learning_rate": 0.00019380205726117125,
144
+ "loss": 1.5884945678710938,
145
+ "step": 425
146
+ },
147
+ {
148
+ "epoch": 0.4444444444444444,
149
+ "grad_norm": 0.9237460494041443,
150
+ "learning_rate": 0.00019284519524700067,
151
+ "loss": 1.6067202758789063,
152
+ "step": 450
153
+ },
154
+ {
155
+ "epoch": 0.4691358024691358,
156
+ "grad_norm": 0.9601542949676514,
157
+ "learning_rate": 0.00019182239258349527,
158
+ "loss": 1.6444061279296875,
159
+ "step": 475
160
+ },
161
+ {
162
+ "epoch": 0.49382716049382713,
163
+ "grad_norm": 0.8607155084609985,
164
+ "learning_rate": 0.00019073437568704738,
165
+ "loss": 1.6247816467285157,
166
+ "step": 500
167
+ },
168
+ {
169
+ "epoch": 0.5185185185185185,
170
+ "grad_norm": 0.6693869829177856,
171
+ "learning_rate": 0.00018958191729059656,
172
+ "loss": 1.5367588806152344,
173
+ "step": 525
174
+ },
175
+ {
176
+ "epoch": 0.5432098765432098,
177
+ "grad_norm": 0.8876053690910339,
178
+ "learning_rate": 0.00018836583589481782,
179
+ "loss": 1.5979902648925781,
180
+ "step": 550
181
+ },
182
+ {
183
+ "epoch": 0.5679012345679012,
184
+ "grad_norm": 1.0324726104736328,
185
+ "learning_rate": 0.00018708699518680527,
186
+ "loss": 1.578206787109375,
187
+ "step": 575
188
+ },
189
+ {
190
+ "epoch": 0.5925925925925926,
191
+ "grad_norm": 0.971229612827301,
192
+ "learning_rate": 0.00018574630342666287,
193
+ "loss": 1.5404522705078125,
194
+ "step": 600
195
+ },
196
+ {
197
+ "epoch": 0.5925925925925926,
198
+ "eval_loss": 1.5840898752212524,
199
+ "eval_runtime": 22.9043,
200
+ "eval_samples_per_second": 19.647,
201
+ "eval_steps_per_second": 4.934,
202
+ "step": 600
203
+ },
204
+ {
205
+ "epoch": 0.6172839506172839,
206
+ "grad_norm": 0.6557291746139526,
207
+ "learning_rate": 0.00018434471280243852,
208
+ "loss": 1.499405517578125,
209
+ "step": 625
210
+ },
211
+ {
212
+ "epoch": 0.6419753086419753,
213
+ "grad_norm": 0.8394591808319092,
214
+ "learning_rate": 0.00018288321875385976,
215
+ "loss": 1.6342214965820312,
216
+ "step": 650
217
+ },
218
+ {
219
+ "epoch": 0.6666666666666666,
220
+ "grad_norm": 0.6911213994026184,
221
+ "learning_rate": 0.00018136285926535116,
222
+ "loss": 1.5355674743652343,
223
+ "step": 675
224
+ },
225
+ {
226
+ "epoch": 0.691358024691358,
227
+ "grad_norm": 0.7369096875190735,
228
+ "learning_rate": 0.00017978471412883552,
229
+ "loss": 1.5818426513671875,
230
+ "step": 700
231
+ },
232
+ {
233
+ "epoch": 0.7160493827160493,
234
+ "grad_norm": 0.7061201333999634,
235
+ "learning_rate": 0.0001781499041768424,
236
+ "loss": 1.6143370056152344,
237
+ "step": 725
238
+ },
239
+ {
240
+ "epoch": 0.7407407407407407,
241
+ "grad_norm": 0.6377373933792114,
242
+ "learning_rate": 0.00017645959048646882,
243
+ "loss": 1.6555068969726563,
244
+ "step": 750
245
+ },
246
+ {
247
+ "epoch": 0.7654320987654321,
248
+ "grad_norm": 0.8313614130020142,
249
+ "learning_rate": 0.00017471497355475748,
250
+ "loss": 1.5740464782714845,
251
+ "step": 775
252
+ },
253
+ {
254
+ "epoch": 0.7901234567901234,
255
+ "grad_norm": 0.6624531745910645,
256
+ "learning_rate": 0.00017291729244607796,
257
+ "loss": 1.6097779846191407,
258
+ "step": 800
259
+ },
260
+ {
261
+ "epoch": 0.7901234567901234,
262
+ "eval_loss": 1.5766422748565674,
263
+ "eval_runtime": 22.6471,
264
+ "eval_samples_per_second": 19.87,
265
+ "eval_steps_per_second": 4.99,
266
+ "step": 800
267
+ },
268
+ {
269
+ "epoch": 0.8148148148148148,
270
+ "grad_norm": 0.9834194779396057,
271
+ "learning_rate": 0.00017106782391211665,
272
+ "loss": 1.602689208984375,
273
+ "step": 825
274
+ },
275
+ {
276
+ "epoch": 0.8395061728395061,
277
+ "grad_norm": 0.8179332613945007,
278
+ "learning_rate": 0.0001691678814851003,
279
+ "loss": 1.5758294677734375,
280
+ "step": 850
281
+ },
282
+ {
283
+ "epoch": 0.8641975308641975,
284
+ "grad_norm": 0.5943809747695923,
285
+ "learning_rate": 0.00016721881454489717,
286
+ "loss": 1.5087350463867188,
287
+ "step": 875
288
+ },
289
+ {
290
+ "epoch": 0.8888888888888888,
291
+ "grad_norm": 0.8135824799537659,
292
+ "learning_rate": 0.00016522200736065868,
293
+ "loss": 1.618147430419922,
294
+ "step": 900
295
+ },
296
+ {
297
+ "epoch": 0.9135802469135802,
298
+ "grad_norm": 0.8027802109718323,
299
+ "learning_rate": 0.00016317887810768164,
300
+ "loss": 1.5928036499023437,
301
+ "step": 925
302
+ },
303
+ {
304
+ "epoch": 0.9382716049382716,
305
+ "grad_norm": 0.730029284954071,
306
+ "learning_rate": 0.00016109087786018967,
307
+ "loss": 1.5496800231933594,
308
+ "step": 950
309
+ },
310
+ {
311
+ "epoch": 0.9629629629629629,
312
+ "grad_norm": 0.7517504096031189,
313
+ "learning_rate": 0.00015895948956074935,
314
+ "loss": 1.5759109497070312,
315
+ "step": 975
316
+ },
317
+ {
318
+ "epoch": 0.9876543209876543,
319
+ "grad_norm": 0.7409305572509766,
320
+ "learning_rate": 0.00015678622696705245,
321
+ "loss": 1.5074650573730468,
322
+ "step": 1000
323
+ },
324
+ {
325
+ "epoch": 0.9876543209876543,
326
+ "eval_loss": 1.5617632865905762,
327
+ "eval_runtime": 22.7195,
328
+ "eval_samples_per_second": 19.807,
329
+ "eval_steps_per_second": 4.974,
330
+ "step": 1000
331
+ },
332
+ {
333
+ "epoch": 1.0118518518518518,
334
+ "grad_norm": 0.7756671905517578,
335
+ "learning_rate": 0.00015457263357681277,
336
+ "loss": 1.4806069946289062,
337
+ "step": 1025
338
+ },
339
+ {
340
+ "epoch": 1.0365432098765432,
341
+ "grad_norm": 0.7125148773193359,
342
+ "learning_rate": 0.00015232028153154109,
343
+ "loss": 1.392002716064453,
344
+ "step": 1050
345
+ },
346
+ {
347
+ "epoch": 1.0612345679012345,
348
+ "grad_norm": 1.0132018327713013,
349
+ "learning_rate": 0.00015003077049997624,
350
+ "loss": 1.4020048522949218,
351
+ "step": 1075
352
+ },
353
+ {
354
+ "epoch": 1.085925925925926,
355
+ "grad_norm": 0.9546898007392883,
356
+ "learning_rate": 0.00014770572654196633,
357
+ "loss": 1.386948699951172,
358
+ "step": 1100
359
+ },
360
+ {
361
+ "epoch": 1.1106172839506172,
362
+ "grad_norm": 0.8679090142250061,
363
+ "learning_rate": 0.0001453468009536061,
364
+ "loss": 1.3569244384765624,
365
+ "step": 1125
366
+ },
367
+ {
368
+ "epoch": 1.1353086419753087,
369
+ "grad_norm": 0.7100213170051575,
370
+ "learning_rate": 0.0001429556690944509,
371
+ "loss": 1.4630929565429687,
372
+ "step": 1150
373
+ },
374
+ {
375
+ "epoch": 1.16,
376
+ "grad_norm": 0.820504367351532,
377
+ "learning_rate": 0.00014053402919764053,
378
+ "loss": 1.3780885314941407,
379
+ "step": 1175
380
+ },
381
+ {
382
+ "epoch": 1.1846913580246914,
383
+ "grad_norm": 1.0543186664581299,
384
+ "learning_rate": 0.00013808360116377753,
385
+ "loss": 1.3411346435546876,
386
+ "step": 1200
387
+ },
388
+ {
389
+ "epoch": 1.1846913580246914,
390
+ "eval_loss": 1.5791677236557007,
391
+ "eval_runtime": 22.7454,
392
+ "eval_samples_per_second": 19.784,
393
+ "eval_steps_per_second": 4.968,
394
+ "step": 1200
395
+ },
396
+ {
397
+ "epoch": 1.2093827160493826,
398
+ "grad_norm": 0.9947031140327454,
399
+ "learning_rate": 0.00013560612533941702,
400
+ "loss": 1.405787353515625,
401
+ "step": 1225
402
+ },
403
+ {
404
+ "epoch": 1.234074074074074,
405
+ "grad_norm": 0.8951894044876099,
406
+ "learning_rate": 0.00013310336128103498,
407
+ "loss": 1.4741221618652345,
408
+ "step": 1250
409
+ },
410
+ {
411
+ "epoch": 1.2587654320987656,
412
+ "grad_norm": 1.1212998628616333,
413
+ "learning_rate": 0.00013057708650535384,
414
+ "loss": 1.4099740600585937,
415
+ "step": 1275
416
+ },
417
+ {
418
+ "epoch": 1.2834567901234568,
419
+ "grad_norm": 0.9610609412193298,
420
+ "learning_rate": 0.0001280290952269117,
421
+ "loss": 1.3199884033203124,
422
+ "step": 1300
423
+ },
424
+ {
425
+ "epoch": 1.308148148148148,
426
+ "grad_norm": 0.7730844020843506,
427
+ "learning_rate": 0.00012546119708377272,
428
+ "loss": 1.353458251953125,
429
+ "step": 1325
430
+ },
431
+ {
432
+ "epoch": 1.3328395061728395,
433
+ "grad_norm": 0.8625616431236267,
434
+ "learning_rate": 0.00012287521585228358,
435
+ "loss": 1.343385009765625,
436
+ "step": 1350
437
+ },
438
+ {
439
+ "epoch": 1.357530864197531,
440
+ "grad_norm": 0.9058452248573303,
441
+ "learning_rate": 0.00012027298815178802,
442
+ "loss": 1.322093505859375,
443
+ "step": 1375
444
+ },
445
+ {
446
+ "epoch": 1.3822222222222222,
447
+ "grad_norm": 0.900679886341095,
448
+ "learning_rate": 0.00011765636214022074,
449
+ "loss": 1.3874404907226563,
450
+ "step": 1400
451
+ },
452
+ {
453
+ "epoch": 1.3822222222222222,
454
+ "eval_loss": 1.5630701780319214,
455
+ "eval_runtime": 22.8089,
456
+ "eval_samples_per_second": 19.729,
457
+ "eval_steps_per_second": 4.954,
458
+ "step": 1400
459
+ },
460
+ {
461
+ "epoch": 1.4069135802469135,
462
+ "grad_norm": 0.9469696879386902,
463
+ "learning_rate": 0.00011502719620150568,
464
+ "loss": 1.3494842529296875,
465
+ "step": 1425
466
+ },
467
+ {
468
+ "epoch": 1.431604938271605,
469
+ "grad_norm": 0.6700549125671387,
470
+ "learning_rate": 0.00011238735762569213,
471
+ "loss": 1.2743421173095704,
472
+ "step": 1450
473
+ },
474
+ {
475
+ "epoch": 1.4562962962962964,
476
+ "grad_norm": 0.784538745880127,
477
+ "learning_rate": 0.00010973872128276523,
478
+ "loss": 1.3858119201660157,
479
+ "step": 1475
480
+ },
481
+ {
482
+ "epoch": 1.4809876543209877,
483
+ "grad_norm": 0.7804888486862183,
484
+ "learning_rate": 0.00010708316829107295,
485
+ "loss": 1.3711044311523437,
486
+ "step": 1500
487
+ },
488
+ {
489
+ "epoch": 1.505679012345679,
490
+ "grad_norm": 1.0192447900772095,
491
+ "learning_rate": 0.00010442258468131561,
492
+ "loss": 1.2914910888671876,
493
+ "step": 1525
494
+ },
495
+ {
496
+ "epoch": 1.5303703703703704,
497
+ "grad_norm": 0.9760621786117554,
498
+ "learning_rate": 0.00010175886005704645,
499
+ "loss": 1.2597393798828125,
500
+ "step": 1550
501
+ },
502
+ {
503
+ "epoch": 1.5550617283950618,
504
+ "grad_norm": 0.8560802936553955,
505
+ "learning_rate": 9.909388625263457e-05,
506
+ "loss": 1.3868017578125,
507
+ "step": 1575
508
+ },
509
+ {
510
+ "epoch": 1.579753086419753,
511
+ "grad_norm": 0.8919157385826111,
512
+ "learning_rate": 9.642955598964359e-05,
513
+ "loss": 1.3696511840820313,
514
+ "step": 1600
515
+ },
516
+ {
517
+ "epoch": 1.579753086419753,
518
+ "eval_loss": 1.5607049465179443,
519
+ "eval_runtime": 22.7545,
520
+ "eval_samples_per_second": 19.776,
521
+ "eval_steps_per_second": 4.966,
522
+ "step": 1600
523
+ },
524
+ {
525
+ "epoch": 1.6044444444444443,
526
+ "grad_norm": 0.957440972328186,
527
+ "learning_rate": 9.376776153258017e-05,
528
+ "loss": 1.3692576599121093,
529
+ "step": 1625
530
+ },
531
+ {
532
+ "epoch": 1.6291358024691358,
533
+ "grad_norm": 0.839853048324585,
534
+ "learning_rate": 9.111039334496733e-05,
535
+ "loss": 1.399899444580078,
536
+ "step": 1650
537
+ },
538
+ {
539
+ "epoch": 1.6538271604938273,
540
+ "grad_norm": 0.9287911057472229,
541
+ "learning_rate": 8.845933874669645e-05,
542
+ "loss": 1.414253692626953,
543
+ "step": 1675
544
+ },
545
+ {
546
+ "epoch": 1.6785185185185185,
547
+ "grad_norm": 1.3080424070358276,
548
+ "learning_rate": 8.581648057361235e-05,
549
+ "loss": 1.3486209106445313,
550
+ "step": 1700
551
+ },
552
+ {
553
+ "epoch": 1.7032098765432098,
554
+ "grad_norm": 0.9376318454742432,
555
+ "learning_rate": 8.31836958402829e-05,
556
+ "loss": 1.3694459533691405,
557
+ "step": 1725
558
+ },
559
+ {
560
+ "epoch": 1.7279012345679012,
561
+ "grad_norm": 0.6469689011573792,
562
+ "learning_rate": 8.056285440690293e-05,
563
+ "loss": 1.3223983764648437,
564
+ "step": 1750
565
+ },
566
+ {
567
+ "epoch": 1.7525925925925927,
568
+ "grad_norm": 0.8364415764808655,
569
+ "learning_rate": 7.79558176512794e-05,
570
+ "loss": 1.2956373596191406,
571
+ "step": 1775
572
+ },
573
+ {
574
+ "epoch": 1.777283950617284,
575
+ "grad_norm": 1.3633909225463867,
576
+ "learning_rate": 7.536443714684115e-05,
577
+ "loss": 1.403833770751953,
578
+ "step": 1800
579
+ },
580
+ {
581
+ "epoch": 1.777283950617284,
582
+ "eval_loss": 1.557874083518982,
583
+ "eval_runtime": 22.6941,
584
+ "eval_samples_per_second": 19.829,
585
+ "eval_steps_per_second": 4.979,
586
+ "step": 1800
587
+ },
588
+ {
589
+ "epoch": 1.8019753086419752,
590
+ "grad_norm": 1.049499750137329,
591
+ "learning_rate": 7.279055334761142e-05,
592
+ "loss": 1.446612091064453,
593
+ "step": 1825
594
+ },
595
+ {
596
+ "epoch": 1.8266666666666667,
597
+ "grad_norm": 0.8737422227859497,
598
+ "learning_rate": 7.023599428107815e-05,
599
+ "loss": 1.3366017150878906,
600
+ "step": 1850
601
+ },
602
+ {
603
+ "epoch": 1.8513580246913581,
604
+ "grad_norm": 1.0929123163223267,
605
+ "learning_rate": 6.770257424988951e-05,
606
+ "loss": 1.4009796142578126,
607
+ "step": 1875
608
+ },
609
+ {
610
+ "epoch": 1.8760493827160494,
611
+ "grad_norm": 1.1216261386871338,
612
+ "learning_rate": 6.519209254329743e-05,
613
+ "loss": 1.3102740478515624,
614
+ "step": 1900
615
+ },
616
+ {
617
+ "epoch": 1.9007407407407406,
618
+ "grad_norm": 0.9584355354309082,
619
+ "learning_rate": 6.270633215926352e-05,
620
+ "loss": 1.4050299072265624,
621
+ "step": 1925
622
+ },
623
+ {
624
+ "epoch": 1.925432098765432,
625
+ "grad_norm": 1.1584628820419312,
626
+ "learning_rate": 6.024705853813588e-05,
627
+ "loss": 1.3258395385742188,
628
+ "step": 1950
629
+ },
630
+ {
631
+ "epoch": 1.9501234567901236,
632
+ "grad_norm": 1.2295587062835693,
633
+ "learning_rate": 5.781601830879544e-05,
634
+ "loss": 1.3213279724121094,
635
+ "step": 1975
636
+ },
637
+ {
638
+ "epoch": 1.9748148148148148,
639
+ "grad_norm": 1.1576493978500366,
640
+ "learning_rate": 5.541493804816247e-05,
641
+ "loss": 1.2919178771972657,
642
+ "step": 2000
643
+ },
644
+ {
645
+ "epoch": 1.9748148148148148,
646
+ "eval_loss": 1.5535742044448853,
647
+ "eval_runtime": 22.5737,
648
+ "eval_samples_per_second": 19.935,
649
+ "eval_steps_per_second": 5.006,
650
+ "step": 2000
651
+ },
652
+ {
653
+ "epoch": 1.999506172839506,
654
+ "grad_norm": 0.8794939517974854,
655
+ "learning_rate": 5.304552305494492e-05,
656
+ "loss": 1.3732542419433593,
657
+ "step": 2025
658
+ },
659
+ {
660
+ "epoch": 2.0237037037037036,
661
+ "grad_norm": 0.8555580973625183,
662
+ "learning_rate": 5.070945613849858e-05,
663
+ "loss": 1.1014644622802734,
664
+ "step": 2050
665
+ },
666
+ {
667
+ "epoch": 2.048395061728395,
668
+ "grad_norm": 1.1845406293869019,
669
+ "learning_rate": 4.840839642365964e-05,
670
+ "loss": 1.1476031494140626,
671
+ "step": 2075
672
+ },
673
+ {
674
+ "epoch": 2.0730864197530865,
675
+ "grad_norm": 1.5737218856811523,
676
+ "learning_rate": 4.614397817239878e-05,
677
+ "loss": 1.1406114959716798,
678
+ "step": 2100
679
+ },
680
+ {
681
+ "epoch": 2.097777777777778,
682
+ "grad_norm": 1.1679399013519287,
683
+ "learning_rate": 4.391780962313332e-05,
684
+ "loss": 1.0425730895996095,
685
+ "step": 2125
686
+ },
687
+ {
688
+ "epoch": 2.122469135802469,
689
+ "grad_norm": 1.190129280090332,
690
+ "learning_rate": 4.173147184852162e-05,
691
+ "loss": 1.1291719055175782,
692
+ "step": 2150
693
+ },
694
+ {
695
+ "epoch": 2.1471604938271605,
696
+ "grad_norm": 1.0907829999923706,
697
+ "learning_rate": 3.9586517632551457e-05,
698
+ "loss": 1.1969020080566406,
699
+ "step": 2175
700
+ },
701
+ {
702
+ "epoch": 2.171851851851852,
703
+ "grad_norm": 1.0820410251617432,
704
+ "learning_rate": 3.7484470367719494e-05,
705
+ "loss": 1.024318389892578,
706
+ "step": 2200
707
+ },
708
+ {
709
+ "epoch": 2.171851851851852,
710
+ "eval_loss": 1.6120558977127075,
711
+ "eval_runtime": 22.702,
712
+ "eval_samples_per_second": 19.822,
713
+ "eval_steps_per_second": 4.978,
714
+ "step": 2200
715
+ },
716
+ {
717
+ "epoch": 2.1965432098765434,
718
+ "grad_norm": 0.907508134841919,
719
+ "learning_rate": 3.5426822973085414e-05,
720
+ "loss": 1.0772317504882813,
721
+ "step": 2225
722
+ },
723
+ {
724
+ "epoch": 2.2212345679012344,
725
+ "grad_norm": 1.2989835739135742,
726
+ "learning_rate": 3.34150368339685e-05,
727
+ "loss": 1.1888478088378907,
728
+ "step": 2250
729
+ },
730
+ {
731
+ "epoch": 2.245925925925926,
732
+ "grad_norm": 1.3490471839904785,
733
+ "learning_rate": 3.14505407640406e-05,
734
+ "loss": 1.0625173950195312,
735
+ "step": 2275
736
+ },
737
+ {
738
+ "epoch": 2.2706172839506173,
739
+ "grad_norm": 0.8419449925422668,
740
+ "learning_rate": 2.9534729990552024e-05,
741
+ "loss": 1.0931748962402343,
742
+ "step": 2300
743
+ },
744
+ {
745
+ "epoch": 2.295308641975309,
746
+ "grad_norm": 1.0620899200439453,
747
+ "learning_rate": 2.766896516341114e-05,
748
+ "loss": 1.1077488708496093,
749
+ "step": 2325
750
+ },
751
+ {
752
+ "epoch": 2.32,
753
+ "grad_norm": 0.9715979695320129,
754
+ "learning_rate": 2.5854571388821647e-05,
755
+ "loss": 1.065851287841797,
756
+ "step": 2350
757
+ },
758
+ {
759
+ "epoch": 2.3446913580246913,
760
+ "grad_norm": 1.1903297901153564,
761
+ "learning_rate": 2.4092837288163816e-05,
762
+ "loss": 1.1342256164550781,
763
+ "step": 2375
764
+ },
765
+ {
766
+ "epoch": 2.3693827160493828,
767
+ "grad_norm": 1.2555913925170898,
768
+ "learning_rate": 2.238501408278776e-05,
769
+ "loss": 1.134575729370117,
770
+ "step": 2400
771
+ },
772
+ {
773
+ "epoch": 2.3693827160493828,
774
+ "eval_loss": 1.6165801286697388,
775
+ "eval_runtime": 22.7316,
776
+ "eval_samples_per_second": 19.796,
777
+ "eval_steps_per_second": 4.971,
778
+ "step": 2400
779
+ },
780
+ {
781
+ "epoch": 2.3940740740740742,
782
+ "grad_norm": 1.0415395498275757,
783
+ "learning_rate": 2.073231470536936e-05,
784
+ "loss": 1.1614728546142579,
785
+ "step": 2425
786
+ },
787
+ {
788
+ "epoch": 2.4187654320987653,
789
+ "grad_norm": 1.4495253562927246,
790
+ "learning_rate": 1.9135912938459366e-05,
791
+ "loss": 1.072432174682617,
792
+ "step": 2450
793
+ },
794
+ {
795
+ "epoch": 2.4434567901234567,
796
+ "grad_norm": 1.0877023935317993,
797
+ "learning_rate": 1.759694258083786e-05,
798
+ "loss": 1.1165319061279297,
799
+ "step": 2475
800
+ },
801
+ {
802
+ "epoch": 2.468148148148148,
803
+ "grad_norm": 0.9855359792709351,
804
+ "learning_rate": 1.6116496642266066e-05,
805
+ "loss": 1.157829818725586,
806
+ "step": 2500
807
+ },
808
+ {
809
+ "epoch": 2.4928395061728397,
810
+ "grad_norm": 1.2265360355377197,
811
+ "learning_rate": 1.469562656720741e-05,
812
+ "loss": 1.0979141235351562,
813
+ "step": 2525
814
+ },
815
+ {
816
+ "epoch": 2.517530864197531,
817
+ "grad_norm": 1.1764639616012573,
818
+ "learning_rate": 1.3335341488069008e-05,
819
+ "loss": 1.0901258087158203,
820
+ "step": 2550
821
+ },
822
+ {
823
+ "epoch": 2.542222222222222,
824
+ "grad_norm": 1.0564757585525513,
825
+ "learning_rate": 1.2036607508494224e-05,
826
+ "loss": 1.0493397521972656,
827
+ "step": 2575
828
+ },
829
+ {
830
+ "epoch": 2.5669135802469136,
831
+ "grad_norm": 1.131443738937378,
832
+ "learning_rate": 1.0800347017215173e-05,
833
+ "loss": 1.1640174102783203,
834
+ "step": 2600
835
+ },
836
+ {
837
+ "epoch": 2.5669135802469136,
838
+ "eval_loss": 1.6189460754394531,
839
+ "eval_runtime": 22.8346,
840
+ "eval_samples_per_second": 19.707,
841
+ "eval_steps_per_second": 4.949,
842
+ "step": 2600
843
+ },
844
+ {
845
+ "epoch": 2.591604938271605,
846
+ "grad_norm": 1.5252506732940674,
847
+ "learning_rate": 9.627438032952407e-06,
848
+ "loss": 1.065705795288086,
849
+ "step": 2625
850
+ },
851
+ {
852
+ "epoch": 2.616296296296296,
853
+ "grad_norm": 1.0675699710845947,
854
+ "learning_rate": 8.518713580827276e-06,
855
+ "loss": 1.1023307037353516,
856
+ "step": 2650
857
+ },
858
+ {
859
+ "epoch": 2.6409876543209876,
860
+ "grad_norm": 0.8335493206977844,
861
+ "learning_rate": 7.474961100729472e-06,
862
+ "loss": 1.0711500549316406,
863
+ "step": 2675
864
+ },
865
+ {
866
+ "epoch": 2.665679012345679,
867
+ "grad_norm": 1.0149903297424316,
868
+ "learning_rate": 6.496921888060437e-06,
869
+ "loss": 1.1562882995605468,
870
+ "step": 2700
871
+ },
872
+ {
873
+ "epoch": 2.6903703703703705,
874
+ "grad_norm": 1.1994127035140991,
875
+ "learning_rate": 5.585290567249413e-06,
876
+ "loss": 1.139876937866211,
877
+ "step": 2725
878
+ },
879
+ {
880
+ "epoch": 2.715061728395062,
881
+ "grad_norm": 1.2506113052368164,
882
+ "learning_rate": 4.7407145984163624e-06,
883
+ "loss": 1.2133229064941407,
884
+ "step": 2750
885
+ },
886
+ {
887
+ "epoch": 2.739753086419753,
888
+ "grad_norm": 1.4477673768997192,
889
+ "learning_rate": 3.963793817531747e-06,
890
+ "loss": 1.167402877807617,
891
+ "step": 2775
892
+ },
893
+ {
894
+ "epoch": 2.7644444444444445,
895
+ "grad_norm": 1.277462363243103,
896
+ "learning_rate": 3.255080010400302e-06,
897
+ "loss": 1.0980128479003906,
898
+ "step": 2800
899
+ },
900
+ {
901
+ "epoch": 2.7644444444444445,
902
+ "eval_loss": 1.6155641078948975,
903
+ "eval_runtime": 22.7385,
904
+ "eval_samples_per_second": 19.79,
905
+ "eval_steps_per_second": 4.97,
906
+ "step": 2800
907
+ },
908
+ {
909
+ "epoch": 2.789135802469136,
910
+ "grad_norm": 1.4108502864837646,
911
+ "learning_rate": 2.6150765207708314e-06,
912
+ "loss": 1.0797696685791016,
913
+ "step": 2825
914
+ },
915
+ {
916
+ "epoch": 2.813827160493827,
917
+ "grad_norm": 0.9226531386375427,
918
+ "learning_rate": 2.04423789285072e-06,
919
+ "loss": 1.0232879638671875,
920
+ "step": 2850
921
+ },
922
+ {
923
+ "epoch": 2.8385185185185184,
924
+ "grad_norm": 1.7329376935958862,
925
+ "learning_rate": 1.5429695484788675e-06,
926
+ "loss": 1.1346932983398437,
927
+ "step": 2875
928
+ },
929
+ {
930
+ "epoch": 2.86320987654321,
931
+ "grad_norm": 1.2240735292434692,
932
+ "learning_rate": 1.1116274991864074e-06,
933
+ "loss": 1.118465118408203,
934
+ "step": 2900
935
+ },
936
+ {
937
+ "epoch": 2.8879012345679014,
938
+ "grad_norm": 1.1247820854187012,
939
+ "learning_rate": 7.505180933496947e-07,
940
+ "loss": 1.1109661865234375,
941
+ "step": 2925
942
+ },
943
+ {
944
+ "epoch": 2.912592592592593,
945
+ "grad_norm": 1.2643308639526367,
946
+ "learning_rate": 4.598977986151054e-07,
947
+ "loss": 1.155415267944336,
948
+ "step": 2950
949
+ },
950
+ {
951
+ "epoch": 2.937283950617284,
952
+ "grad_norm": 1.1547174453735352,
953
+ "learning_rate": 2.399730197502059e-07,
954
+ "loss": 1.1252833557128907,
955
+ "step": 2975
956
+ },
957
+ {
958
+ "epoch": 2.9619753086419753,
959
+ "grad_norm": 0.9485511779785156,
960
+ "learning_rate": 9.089995205064927e-08,
961
+ "loss": 1.111652603149414,
962
+ "step": 3000
963
+ },
964
+ {
965
+ "epoch": 2.9619753086419753,
966
+ "eval_loss": 1.6164798736572266,
967
+ "eval_runtime": 22.5026,
968
+ "eval_samples_per_second": 19.998,
969
+ "eval_steps_per_second": 5.022,
970
+ "step": 3000
971
+ },
972
+ {
973
+ "epoch": 2.986666666666667,
974
+ "grad_norm": 1.0800176858901978,
975
+ "learning_rate": 1.2784470406979055e-08,
976
+ "loss": 1.1331401824951173,
977
+ "step": 3025
978
+ }
979
+ ],
980
+ "logging_steps": 25,
981
+ "max_steps": 3039,
982
+ "num_input_tokens_seen": 0,
983
+ "num_train_epochs": 3,
984
+ "save_steps": 500,
985
+ "stateful_callbacks": {
986
+ "TrainerControl": {
987
+ "args": {
988
+ "should_epoch_stop": false,
989
+ "should_evaluate": false,
990
+ "should_log": false,
991
+ "should_save": true,
992
+ "should_training_stop": true
993
+ },
994
+ "attributes": {}
995
+ }
996
+ },
997
+ "total_flos": 4.288350474667622e+16,
998
+ "train_batch_size": 2,
999
+ "trial_name": null,
1000
+ "trial_params": null
1001
+ }
qwen-medqa-adapter/checkpoint-3039/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7b4518e80700c92cd686b847f93673327354c97d4dc45bf817b092e120e7acf
3
+ size 5841
qwen-medqa-adapter/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd5948af71b4f56cf697f7580814c7ce8b80595ef985544efcacf716126a2e31
3
+ size 11422356
qwen-medqa-adapter/tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "is_local": false,
9
+ "model_max_length": 32768,
10
+ "pad_token": "<|PAD_TOKEN|>",
11
+ "padding_side": "left",
12
+ "split_special_tokens": false,
13
+ "tokenizer_class": "Qwen2Tokenizer",
14
+ "unk_token": null
15
+ }
qwen-medqa-adapter/training_metrics.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base_model": "unsloth/Qwen2.5-1.5B-Instruct-bnb-4bit",
3
+ "chat_template": "qwen-2.5",
4
+ "epochs": 3,
5
+ "learning_rate": 0.0002,
6
+ "per_device_batch_size": 2,
7
+ "gradient_accumulation": 4,
8
+ "effective_batch_size": 8,
9
+ "lora_r": 16,
10
+ "lora_alpha": 32,
11
+ "max_seq_length": 1024,
12
+ "seed": 42,
13
+ "n_train": 8100,
14
+ "n_val": 450,
15
+ "train_runtime_seconds": 5667.1473,
16
+ "final_train_loss": 1.3646446041623084
17
+ }
qwen-medqa-gguf/Modelfile ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ./model.Q4_K_M.gguf
2
+
3
+ TEMPLATE """{{ if .System }}<|im_start|>system
4
+ {{ .System }}<|im_end|>
5
+ {{ end }}{{ if .Prompt }}<|im_start|>user
6
+ {{ .Prompt }}<|im_end|>
7
+ {{ end }}<|im_start|>assistant
8
+ {{ .Response }}<|im_end|>"""
9
+
10
+ PARAMETER stop "<|im_start|>"
11
+ PARAMETER stop "<|im_end|>"
12
+ PARAMETER temperature 0.3
13
+ PARAMETER top_p 0.9
qwen-medqa-gguf/chat_template.jinja ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0]['role'] == 'system' %}
4
+ {{- messages[0]['content'] }}
5
+ {%- else %}
6
+ {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}
7
+ {%- endif %}
8
+ {{- "\n\n# 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>" }}
9
+ {%- for tool in tools %}
10
+ {{- "\n" }}
11
+ {{- tool | tojson }}
12
+ {%- endfor %}
13
+ {{- "\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" }}
14
+ {%- else %}
15
+ {%- if messages[0]['role'] == 'system' %}
16
+ {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
17
+ {%- else %}
18
+ {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\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.tool_calls) %}
23
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
24
+ {%- elif message.role == "assistant" %}
25
+ {{- '<|im_start|>' + 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
+ {{- '<|im_end|>\n' }}
40
+ {%- elif message.role == "tool" %}
41
+ {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
42
+ {{- '<|im_start|>user' }}
43
+ {%- endif %}
44
+ {{- '\n<tool_response>\n' }}
45
+ {{- message.content }}
46
+ {{- '\n</tool_response>' }}
47
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
48
+ {{- '<|im_end|>\n' }}
49
+ {%- endif %}
50
+ {%- endif %}
51
+ {%- endfor %}
52
+ {%- if add_generation_prompt %}
53
+ {{- '<|im_start|>assistant\n' }}
54
+ {%- endif %}
qwen-medqa-gguf/config.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen2ForCausalLM"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token_id": null,
7
+ "torch_dtype": "bfloat16",
8
+ "eos_token_id": 151645,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 1536,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 8960,
13
+ "layer_types": [
14
+ "full_attention",
15
+ "full_attention",
16
+ "full_attention",
17
+ "full_attention",
18
+ "full_attention",
19
+ "full_attention",
20
+ "full_attention",
21
+ "full_attention",
22
+ "full_attention",
23
+ "full_attention",
24
+ "full_attention",
25
+ "full_attention",
26
+ "full_attention",
27
+ "full_attention",
28
+ "full_attention",
29
+ "full_attention",
30
+ "full_attention",
31
+ "full_attention",
32
+ "full_attention",
33
+ "full_attention",
34
+ "full_attention",
35
+ "full_attention",
36
+ "full_attention",
37
+ "full_attention",
38
+ "full_attention",
39
+ "full_attention",
40
+ "full_attention",
41
+ "full_attention"
42
+ ],
43
+ "max_position_embeddings": 32768,
44
+ "max_window_layers": 21,
45
+ "model_type": "qwen2",
46
+ "num_attention_heads": 12,
47
+ "num_hidden_layers": 28,
48
+ "num_key_value_heads": 2,
49
+ "pad_token_id": 151665,
50
+ "rms_norm_eps": 1e-06,
51
+ "rope_parameters": {
52
+ "rope_theta": 1000000.0,
53
+ "rope_type": "default"
54
+ },
55
+ "sliding_window": null,
56
+ "tie_word_embeddings": true,
57
+ "unsloth_fixed": true,
58
+ "unsloth_version": "2026.3.17",
59
+ "use_cache": true,
60
+ "use_sliding_window": false,
61
+ "vocab_size": 151936
62
+ }
qwen-medqa-gguf/model.Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eafe61cc3011b9ced0f179246b2b0aafaf37437c2699920cad49aebeebcc494f
3
+ size 986047968
qwen-medqa-gguf/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd5948af71b4f56cf697f7580814c7ce8b80595ef985544efcacf716126a2e31
3
+ size 11422356
qwen-medqa-gguf/tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "is_local": false,
9
+ "model_max_length": 32768,
10
+ "pad_token": "<|PAD_TOKEN|>",
11
+ "padding_side": "right",
12
+ "split_special_tokens": false,
13
+ "tokenizer_class": "Qwen2Tokenizer",
14
+ "unk_token": null,
15
+ "chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}\n {%- endif %}\n {{- \"\\n\\n# 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>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\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\" }}\n{%- else %}\n {%- if messages[0]['role'] == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0]['content'] + '<|im_end|>\\n' }}\n {%- else %}\n {{- '<|im_start|>system\\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) or (message.role == \"assistant\" and not message.tool_calls) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content %}\n {{- '\\n' + message.content }}\n {%- endif %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '\\n<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n"
16
+ }