Prune redundant merged weights and intermediate checkpoints
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- finetune/checkpoints/checkpoint-192/README.md +0 -209
- finetune/checkpoints/checkpoint-192/adapter_config.json +0 -53
- finetune/checkpoints/checkpoint-192/adapter_model.safetensors +0 -3
- finetune/checkpoints/checkpoint-192/chat_template.jinja +0 -154
- finetune/checkpoints/checkpoint-192/optimizer.pt +0 -3
- finetune/checkpoints/checkpoint-192/rng_state.pth +0 -3
- finetune/checkpoints/checkpoint-192/scheduler.pt +0 -3
- finetune/checkpoints/checkpoint-192/tokenizer.json +0 -3
- finetune/checkpoints/checkpoint-192/tokenizer_config.json +0 -32
- finetune/checkpoints/checkpoint-192/trainer_state.json +0 -224
- finetune/checkpoints/checkpoint-192/training_args.bin +0 -3
- finetune/checkpoints/checkpoint-288/README.md +0 -209
- finetune/checkpoints/checkpoint-288/adapter_config.json +0 -53
- finetune/checkpoints/checkpoint-288/adapter_model.safetensors +0 -3
- finetune/checkpoints/checkpoint-288/chat_template.jinja +0 -154
- finetune/checkpoints/checkpoint-288/optimizer.pt +0 -3
- finetune/checkpoints/checkpoint-288/rng_state.pth +0 -3
- finetune/checkpoints/checkpoint-288/scheduler.pt +0 -3
- finetune/checkpoints/checkpoint-288/tokenizer.json +0 -3
- finetune/checkpoints/checkpoint-288/tokenizer_config.json +0 -32
- finetune/checkpoints/checkpoint-288/trainer_state.json +0 -314
- finetune/checkpoints/checkpoint-288/training_args.bin +0 -3
- finetune/checkpoints/checkpoint-96/README.md +0 -209
- finetune/checkpoints/checkpoint-96/adapter_config.json +0 -53
- finetune/checkpoints/checkpoint-96/adapter_model.safetensors +0 -3
- finetune/checkpoints/checkpoint-96/chat_template.jinja +0 -154
- finetune/checkpoints/checkpoint-96/optimizer.pt +0 -3
- finetune/checkpoints/checkpoint-96/rng_state.pth +0 -3
- finetune/checkpoints/checkpoint-96/scheduler.pt +0 -3
- finetune/checkpoints/checkpoint-96/tokenizer.json +0 -3
- finetune/checkpoints/checkpoint-96/tokenizer_config.json +0 -32
- finetune/checkpoints/checkpoint-96/trainer_state.json +0 -124
- finetune/checkpoints/checkpoint-96/training_args.bin +0 -3
- finetune/style_checkpoint/checkpoint-132/README.md +0 -209
- finetune/style_checkpoint/checkpoint-132/adapter_config.json +0 -53
- finetune/style_checkpoint/checkpoint-132/adapter_model.safetensors +0 -3
- finetune/style_checkpoint/checkpoint-132/chat_template.jinja +0 -154
- finetune/style_checkpoint/checkpoint-132/optimizer.pt +0 -3
- finetune/style_checkpoint/checkpoint-132/rng_state.pth +0 -3
- finetune/style_checkpoint/checkpoint-132/scheduler.pt +0 -3
- finetune/style_checkpoint/checkpoint-132/tokenizer.json +0 -3
- finetune/style_checkpoint/checkpoint-132/tokenizer_config.json +0 -32
- finetune/style_checkpoint/checkpoint-132/trainer_state.json +0 -164
- finetune/style_checkpoint/checkpoint-132/training_args.bin +0 -3
- finetune/style_checkpoint/checkpoint-44/README.md +0 -209
- finetune/style_checkpoint/checkpoint-44/adapter_config.json +0 -53
- finetune/style_checkpoint/checkpoint-44/adapter_model.safetensors +0 -3
- finetune/style_checkpoint/checkpoint-44/chat_template.jinja +0 -154
- finetune/style_checkpoint/checkpoint-44/optimizer.pt +0 -3
- finetune/style_checkpoint/checkpoint-44/rng_state.pth +0 -3
finetune/checkpoints/checkpoint-192/README.md
DELETED
|
@@ -1,209 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
base_model: Qwen/Qwen3.5-9B
|
| 3 |
-
library_name: peft
|
| 4 |
-
pipeline_tag: text-generation
|
| 5 |
-
tags:
|
| 6 |
-
- base_model:adapter:Qwen/Qwen3.5-9B
|
| 7 |
-
- lora
|
| 8 |
-
- sft
|
| 9 |
-
- transformers
|
| 10 |
-
- trl
|
| 11 |
-
---
|
| 12 |
-
|
| 13 |
-
# Model Card for Model ID
|
| 14 |
-
|
| 15 |
-
<!-- Provide a quick summary of what the model is/does. -->
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
## Model Details
|
| 20 |
-
|
| 21 |
-
### Model Description
|
| 22 |
-
|
| 23 |
-
<!-- Provide a longer summary of what this model is. -->
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
- **Developed by:** [More Information Needed]
|
| 28 |
-
- **Funded by [optional]:** [More Information Needed]
|
| 29 |
-
- **Shared by [optional]:** [More Information Needed]
|
| 30 |
-
- **Model type:** [More Information Needed]
|
| 31 |
-
- **Language(s) (NLP):** [More Information Needed]
|
| 32 |
-
- **License:** [More Information Needed]
|
| 33 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
| 34 |
-
|
| 35 |
-
### Model Sources [optional]
|
| 36 |
-
|
| 37 |
-
<!-- Provide the basic links for the model. -->
|
| 38 |
-
|
| 39 |
-
- **Repository:** [More Information Needed]
|
| 40 |
-
- **Paper [optional]:** [More Information Needed]
|
| 41 |
-
- **Demo [optional]:** [More Information Needed]
|
| 42 |
-
|
| 43 |
-
## Uses
|
| 44 |
-
|
| 45 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 46 |
-
|
| 47 |
-
### Direct Use
|
| 48 |
-
|
| 49 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 50 |
-
|
| 51 |
-
[More Information Needed]
|
| 52 |
-
|
| 53 |
-
### Downstream Use [optional]
|
| 54 |
-
|
| 55 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 56 |
-
|
| 57 |
-
[More Information Needed]
|
| 58 |
-
|
| 59 |
-
### Out-of-Scope Use
|
| 60 |
-
|
| 61 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 62 |
-
|
| 63 |
-
[More Information Needed]
|
| 64 |
-
|
| 65 |
-
## Bias, Risks, and Limitations
|
| 66 |
-
|
| 67 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 68 |
-
|
| 69 |
-
[More Information Needed]
|
| 70 |
-
|
| 71 |
-
### Recommendations
|
| 72 |
-
|
| 73 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 74 |
-
|
| 75 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 76 |
-
|
| 77 |
-
## How to Get Started with the Model
|
| 78 |
-
|
| 79 |
-
Use the code below to get started with the model.
|
| 80 |
-
|
| 81 |
-
[More Information Needed]
|
| 82 |
-
|
| 83 |
-
## Training Details
|
| 84 |
-
|
| 85 |
-
### Training Data
|
| 86 |
-
|
| 87 |
-
<!-- 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. -->
|
| 88 |
-
|
| 89 |
-
[More Information Needed]
|
| 90 |
-
|
| 91 |
-
### Training Procedure
|
| 92 |
-
|
| 93 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 94 |
-
|
| 95 |
-
#### Preprocessing [optional]
|
| 96 |
-
|
| 97 |
-
[More Information Needed]
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
#### Training Hyperparameters
|
| 101 |
-
|
| 102 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 103 |
-
|
| 104 |
-
#### Speeds, Sizes, Times [optional]
|
| 105 |
-
|
| 106 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 107 |
-
|
| 108 |
-
[More Information Needed]
|
| 109 |
-
|
| 110 |
-
## Evaluation
|
| 111 |
-
|
| 112 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 113 |
-
|
| 114 |
-
### Testing Data, Factors & Metrics
|
| 115 |
-
|
| 116 |
-
#### Testing Data
|
| 117 |
-
|
| 118 |
-
<!-- This should link to a Dataset Card if possible. -->
|
| 119 |
-
|
| 120 |
-
[More Information Needed]
|
| 121 |
-
|
| 122 |
-
#### Factors
|
| 123 |
-
|
| 124 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 125 |
-
|
| 126 |
-
[More Information Needed]
|
| 127 |
-
|
| 128 |
-
#### Metrics
|
| 129 |
-
|
| 130 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 131 |
-
|
| 132 |
-
[More Information Needed]
|
| 133 |
-
|
| 134 |
-
### Results
|
| 135 |
-
|
| 136 |
-
[More Information Needed]
|
| 137 |
-
|
| 138 |
-
#### Summary
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
## Model Examination [optional]
|
| 143 |
-
|
| 144 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 145 |
-
|
| 146 |
-
[More Information Needed]
|
| 147 |
-
|
| 148 |
-
## Environmental Impact
|
| 149 |
-
|
| 150 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 151 |
-
|
| 152 |
-
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).
|
| 153 |
-
|
| 154 |
-
- **Hardware Type:** [More Information Needed]
|
| 155 |
-
- **Hours used:** [More Information Needed]
|
| 156 |
-
- **Cloud Provider:** [More Information Needed]
|
| 157 |
-
- **Compute Region:** [More Information Needed]
|
| 158 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 159 |
-
|
| 160 |
-
## Technical Specifications [optional]
|
| 161 |
-
|
| 162 |
-
### Model Architecture and Objective
|
| 163 |
-
|
| 164 |
-
[More Information Needed]
|
| 165 |
-
|
| 166 |
-
### Compute Infrastructure
|
| 167 |
-
|
| 168 |
-
[More Information Needed]
|
| 169 |
-
|
| 170 |
-
#### Hardware
|
| 171 |
-
|
| 172 |
-
[More Information Needed]
|
| 173 |
-
|
| 174 |
-
#### Software
|
| 175 |
-
|
| 176 |
-
[More Information Needed]
|
| 177 |
-
|
| 178 |
-
## Citation [optional]
|
| 179 |
-
|
| 180 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 181 |
-
|
| 182 |
-
**BibTeX:**
|
| 183 |
-
|
| 184 |
-
[More Information Needed]
|
| 185 |
-
|
| 186 |
-
**APA:**
|
| 187 |
-
|
| 188 |
-
[More Information Needed]
|
| 189 |
-
|
| 190 |
-
## Glossary [optional]
|
| 191 |
-
|
| 192 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 193 |
-
|
| 194 |
-
[More Information Needed]
|
| 195 |
-
|
| 196 |
-
## More Information [optional]
|
| 197 |
-
|
| 198 |
-
[More Information Needed]
|
| 199 |
-
|
| 200 |
-
## Model Card Authors [optional]
|
| 201 |
-
|
| 202 |
-
[More Information Needed]
|
| 203 |
-
|
| 204 |
-
## Model Card Contact
|
| 205 |
-
|
| 206 |
-
[More Information Needed]
|
| 207 |
-
### Framework versions
|
| 208 |
-
|
| 209 |
-
- PEFT 0.19.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-192/adapter_config.json
DELETED
|
@@ -1,53 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"alora_invocation_tokens": null,
|
| 3 |
-
"alpha_pattern": {},
|
| 4 |
-
"arrow_config": null,
|
| 5 |
-
"auto_mapping": null,
|
| 6 |
-
"base_model_name_or_path": "Qwen/Qwen3.5-9B",
|
| 7 |
-
"bias": "none",
|
| 8 |
-
"corda_config": null,
|
| 9 |
-
"ensure_weight_tying": false,
|
| 10 |
-
"eva_config": null,
|
| 11 |
-
"exclude_modules": null,
|
| 12 |
-
"fan_in_fan_out": false,
|
| 13 |
-
"inference_mode": true,
|
| 14 |
-
"init_lora_weights": true,
|
| 15 |
-
"layer_replication": null,
|
| 16 |
-
"layers_pattern": null,
|
| 17 |
-
"layers_to_transform": null,
|
| 18 |
-
"loftq_config": {},
|
| 19 |
-
"lora_alpha": 32,
|
| 20 |
-
"lora_bias": false,
|
| 21 |
-
"lora_dropout": 0.05,
|
| 22 |
-
"lora_ga_config": null,
|
| 23 |
-
"megatron_config": null,
|
| 24 |
-
"megatron_core": "megatron.core",
|
| 25 |
-
"modules_to_save": null,
|
| 26 |
-
"peft_type": "LORA",
|
| 27 |
-
"peft_version": "0.19.1",
|
| 28 |
-
"qalora_group_size": 16,
|
| 29 |
-
"r": 16,
|
| 30 |
-
"rank_pattern": {},
|
| 31 |
-
"revision": null,
|
| 32 |
-
"target_modules": [
|
| 33 |
-
"up_proj",
|
| 34 |
-
"k_proj",
|
| 35 |
-
"o_proj",
|
| 36 |
-
"v_proj",
|
| 37 |
-
"out_proj",
|
| 38 |
-
"in_proj_qkv",
|
| 39 |
-
"in_proj_z",
|
| 40 |
-
"in_proj_b",
|
| 41 |
-
"down_proj",
|
| 42 |
-
"q_proj",
|
| 43 |
-
"gate_proj",
|
| 44 |
-
"in_proj_a"
|
| 45 |
-
],
|
| 46 |
-
"target_parameters": null,
|
| 47 |
-
"task_type": "CAUSAL_LM",
|
| 48 |
-
"trainable_token_indices": null,
|
| 49 |
-
"use_bdlora": null,
|
| 50 |
-
"use_dora": false,
|
| 51 |
-
"use_qalora": false,
|
| 52 |
-
"use_rslora": false
|
| 53 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-192/adapter_model.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e07e0b5a0d2334b84ef4a982b94e1c2ef612da46da07cfe4930289e2855e5741
|
| 3 |
-
size 86624424
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-192/chat_template.jinja
DELETED
|
@@ -1,154 +0,0 @@
|
|
| 1 |
-
{%- set image_count = namespace(value=0) %}
|
| 2 |
-
{%- set video_count = namespace(value=0) %}
|
| 3 |
-
{%- macro render_content(content, do_vision_count, is_system_content=false) %}
|
| 4 |
-
{%- if content is string %}
|
| 5 |
-
{{- content }}
|
| 6 |
-
{%- elif content is iterable and content is not mapping %}
|
| 7 |
-
{%- for item in content %}
|
| 8 |
-
{%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
|
| 9 |
-
{%- if is_system_content %}
|
| 10 |
-
{{- raise_exception('System message cannot contain images.') }}
|
| 11 |
-
{%- endif %}
|
| 12 |
-
{%- if do_vision_count %}
|
| 13 |
-
{%- set image_count.value = image_count.value + 1 %}
|
| 14 |
-
{%- endif %}
|
| 15 |
-
{%- if add_vision_id %}
|
| 16 |
-
{{- 'Picture ' ~ image_count.value ~ ': ' }}
|
| 17 |
-
{%- endif %}
|
| 18 |
-
{{- '<|vision_start|><|image_pad|><|vision_end|>' }}
|
| 19 |
-
{%- elif 'video' in item or item.type == 'video' %}
|
| 20 |
-
{%- if is_system_content %}
|
| 21 |
-
{{- raise_exception('System message cannot contain videos.') }}
|
| 22 |
-
{%- endif %}
|
| 23 |
-
{%- if do_vision_count %}
|
| 24 |
-
{%- set video_count.value = video_count.value + 1 %}
|
| 25 |
-
{%- endif %}
|
| 26 |
-
{%- if add_vision_id %}
|
| 27 |
-
{{- 'Video ' ~ video_count.value ~ ': ' }}
|
| 28 |
-
{%- endif %}
|
| 29 |
-
{{- '<|vision_start|><|video_pad|><|vision_end|>' }}
|
| 30 |
-
{%- elif 'text' in item %}
|
| 31 |
-
{{- item.text }}
|
| 32 |
-
{%- else %}
|
| 33 |
-
{{- raise_exception('Unexpected item type in content.') }}
|
| 34 |
-
{%- endif %}
|
| 35 |
-
{%- endfor %}
|
| 36 |
-
{%- elif content is none or content is undefined %}
|
| 37 |
-
{{- '' }}
|
| 38 |
-
{%- else %}
|
| 39 |
-
{{- raise_exception('Unexpected content type.') }}
|
| 40 |
-
{%- endif %}
|
| 41 |
-
{%- endmacro %}
|
| 42 |
-
{%- if not messages %}
|
| 43 |
-
{{- raise_exception('No messages provided.') }}
|
| 44 |
-
{%- endif %}
|
| 45 |
-
{%- if tools and tools is iterable and tools is not mapping %}
|
| 46 |
-
{{- '<|im_start|>system\n' }}
|
| 47 |
-
{{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
|
| 48 |
-
{%- for tool in tools %}
|
| 49 |
-
{{- "\n" }}
|
| 50 |
-
{{- tool | tojson }}
|
| 51 |
-
{%- endfor %}
|
| 52 |
-
{{- "\n</tools>" }}
|
| 53 |
-
{{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
|
| 54 |
-
{%- if messages[0].role == 'system' %}
|
| 55 |
-
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 56 |
-
{%- if content %}
|
| 57 |
-
{{- '\n\n' + content }}
|
| 58 |
-
{%- endif %}
|
| 59 |
-
{%- endif %}
|
| 60 |
-
{{- '<|im_end|>\n' }}
|
| 61 |
-
{%- else %}
|
| 62 |
-
{%- if messages[0].role == 'system' %}
|
| 63 |
-
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 64 |
-
{{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
|
| 65 |
-
{%- endif %}
|
| 66 |
-
{%- endif %}
|
| 67 |
-
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 68 |
-
{%- for message in messages[::-1] %}
|
| 69 |
-
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 70 |
-
{%- if ns.multi_step_tool and message.role == "user" %}
|
| 71 |
-
{%- set content = render_content(message.content, false)|trim %}
|
| 72 |
-
{%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
|
| 73 |
-
{%- set ns.multi_step_tool = false %}
|
| 74 |
-
{%- set ns.last_query_index = index %}
|
| 75 |
-
{%- endif %}
|
| 76 |
-
{%- endif %}
|
| 77 |
-
{%- endfor %}
|
| 78 |
-
{%- if ns.multi_step_tool %}
|
| 79 |
-
{{- raise_exception('No user query found in messages.') }}
|
| 80 |
-
{%- endif %}
|
| 81 |
-
{%- for message in messages %}
|
| 82 |
-
{%- set content = render_content(message.content, true)|trim %}
|
| 83 |
-
{%- if message.role == "system" %}
|
| 84 |
-
{%- if not loop.first %}
|
| 85 |
-
{{- raise_exception('System message must be at the beginning.') }}
|
| 86 |
-
{%- endif %}
|
| 87 |
-
{%- elif message.role == "user" %}
|
| 88 |
-
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 89 |
-
{%- elif message.role == "assistant" %}
|
| 90 |
-
{%- set reasoning_content = '' %}
|
| 91 |
-
{%- if message.reasoning_content is string %}
|
| 92 |
-
{%- set reasoning_content = message.reasoning_content %}
|
| 93 |
-
{%- else %}
|
| 94 |
-
{%- if '</think>' in content %}
|
| 95 |
-
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 96 |
-
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 97 |
-
{%- endif %}
|
| 98 |
-
{%- endif %}
|
| 99 |
-
{%- set reasoning_content = reasoning_content|trim %}
|
| 100 |
-
{%- if loop.index0 > ns.last_query_index %}
|
| 101 |
-
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
|
| 102 |
-
{%- else %}
|
| 103 |
-
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 104 |
-
{%- endif %}
|
| 105 |
-
{%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
|
| 106 |
-
{%- for tool_call in message.tool_calls %}
|
| 107 |
-
{%- if tool_call.function is defined %}
|
| 108 |
-
{%- set tool_call = tool_call.function %}
|
| 109 |
-
{%- endif %}
|
| 110 |
-
{%- if loop.first %}
|
| 111 |
-
{%- if content|trim %}
|
| 112 |
-
{{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 113 |
-
{%- else %}
|
| 114 |
-
{{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 115 |
-
{%- endif %}
|
| 116 |
-
{%- else %}
|
| 117 |
-
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 118 |
-
{%- endif %}
|
| 119 |
-
{%- if tool_call.arguments is defined %}
|
| 120 |
-
{%- for args_name, args_value in tool_call.arguments|items %}
|
| 121 |
-
{{- '<parameter=' + args_name + '>\n' }}
|
| 122 |
-
{%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
|
| 123 |
-
{{- args_value }}
|
| 124 |
-
{{- '\n</parameter>\n' }}
|
| 125 |
-
{%- endfor %}
|
| 126 |
-
{%- endif %}
|
| 127 |
-
{{- '</function>\n</tool_call>' }}
|
| 128 |
-
{%- endfor %}
|
| 129 |
-
{%- endif %}
|
| 130 |
-
{{- '<|im_end|>\n' }}
|
| 131 |
-
{%- elif message.role == "tool" %}
|
| 132 |
-
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 133 |
-
{{- '<|im_start|>user' }}
|
| 134 |
-
{%- endif %}
|
| 135 |
-
{{- '\n<tool_response>\n' }}
|
| 136 |
-
{{- content }}
|
| 137 |
-
{{- '\n</tool_response>' }}
|
| 138 |
-
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 139 |
-
{{- '<|im_end|>\n' }}
|
| 140 |
-
{%- elif loop.last %}
|
| 141 |
-
{{- '<|im_end|>\n' }}
|
| 142 |
-
{%- endif %}
|
| 143 |
-
{%- else %}
|
| 144 |
-
{{- raise_exception('Unexpected message role.') }}
|
| 145 |
-
{%- endif %}
|
| 146 |
-
{%- endfor %}
|
| 147 |
-
{%- if add_generation_prompt %}
|
| 148 |
-
{{- '<|im_start|>assistant\n' }}
|
| 149 |
-
{%- if enable_thinking is defined and enable_thinking is false %}
|
| 150 |
-
{{- '<think>\n\n</think>\n\n' }}
|
| 151 |
-
{%- else %}
|
| 152 |
-
{{- '<think>\n' }}
|
| 153 |
-
{%- endif %}
|
| 154 |
-
{%- endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-192/optimizer.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d1524a0b0fe341db800227e4b99364b7b34f4716e82f57b5f64bb72453ed6f30
|
| 3 |
-
size 173539507
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-192/rng_state.pth
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7867f112d09bb82ff1c3b176d45ad04fc116373ec5e870377e2c4ed1ad92f934
|
| 3 |
-
size 14645
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-192/scheduler.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fa84f260a89ac768c794df2a0bc4940cdffb529c8e321e51dfbdb2e00433d23c
|
| 3 |
-
size 1465
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-192/tokenizer.json
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
|
| 3 |
-
size 19989325
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-192/tokenizer_config.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"add_prefix_space": false,
|
| 3 |
-
"audio_bos_token": "<|audio_start|>",
|
| 4 |
-
"audio_eos_token": "<|audio_end|>",
|
| 5 |
-
"audio_token": "<|audio_pad|>",
|
| 6 |
-
"backend": "tokenizers",
|
| 7 |
-
"bos_token": null,
|
| 8 |
-
"clean_up_tokenization_spaces": false,
|
| 9 |
-
"eos_token": "<|im_end|>",
|
| 10 |
-
"errors": "replace",
|
| 11 |
-
"image_token": "<|image_pad|>",
|
| 12 |
-
"is_local": false,
|
| 13 |
-
"local_files_only": false,
|
| 14 |
-
"model_max_length": 262144,
|
| 15 |
-
"model_specific_special_tokens": {
|
| 16 |
-
"audio_bos_token": "<|audio_start|>",
|
| 17 |
-
"audio_eos_token": "<|audio_end|>",
|
| 18 |
-
"audio_token": "<|audio_pad|>",
|
| 19 |
-
"image_token": "<|image_pad|>",
|
| 20 |
-
"video_token": "<|video_pad|>",
|
| 21 |
-
"vision_bos_token": "<|vision_start|>",
|
| 22 |
-
"vision_eos_token": "<|vision_end|>"
|
| 23 |
-
},
|
| 24 |
-
"pad_token": "<|endoftext|>",
|
| 25 |
-
"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
|
| 26 |
-
"split_special_tokens": false,
|
| 27 |
-
"tokenizer_class": "Qwen2Tokenizer",
|
| 28 |
-
"unk_token": null,
|
| 29 |
-
"video_token": "<|video_pad|>",
|
| 30 |
-
"vision_bos_token": "<|vision_start|>",
|
| 31 |
-
"vision_eos_token": "<|vision_end|>"
|
| 32 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-192/trainer_state.json
DELETED
|
@@ -1,224 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"best_global_step": null,
|
| 3 |
-
"best_metric": null,
|
| 4 |
-
"best_model_checkpoint": null,
|
| 5 |
-
"epoch": 2.0,
|
| 6 |
-
"eval_steps": 500,
|
| 7 |
-
"global_step": 192,
|
| 8 |
-
"is_hyper_param_search": false,
|
| 9 |
-
"is_local_process_zero": true,
|
| 10 |
-
"is_world_process_zero": true,
|
| 11 |
-
"log_history": [
|
| 12 |
-
{
|
| 13 |
-
"entropy": 1.5058588825166226,
|
| 14 |
-
"epoch": 0.10512483574244415,
|
| 15 |
-
"grad_norm": 1.796875,
|
| 16 |
-
"learning_rate": 0.00019375000000000002,
|
| 17 |
-
"loss": 1.7537630081176758,
|
| 18 |
-
"mean_token_accuracy": 0.695327178388834,
|
| 19 |
-
"num_tokens": 3808.0,
|
| 20 |
-
"step": 10
|
| 21 |
-
},
|
| 22 |
-
{
|
| 23 |
-
"entropy": 1.316319726407528,
|
| 24 |
-
"epoch": 0.2102496714848883,
|
| 25 |
-
"grad_norm": 1.390625,
|
| 26 |
-
"learning_rate": 0.00018680555555555556,
|
| 27 |
-
"loss": 1.4752570152282716,
|
| 28 |
-
"mean_token_accuracy": 0.7272207736968994,
|
| 29 |
-
"num_tokens": 7522.0,
|
| 30 |
-
"step": 20
|
| 31 |
-
},
|
| 32 |
-
{
|
| 33 |
-
"entropy": 1.3150447681546211,
|
| 34 |
-
"epoch": 0.31537450722733246,
|
| 35 |
-
"grad_norm": 1.3984375,
|
| 36 |
-
"learning_rate": 0.00017986111111111113,
|
| 37 |
-
"loss": 1.404660415649414,
|
| 38 |
-
"mean_token_accuracy": 0.7220224224030971,
|
| 39 |
-
"num_tokens": 11407.0,
|
| 40 |
-
"step": 30
|
| 41 |
-
},
|
| 42 |
-
{
|
| 43 |
-
"entropy": 1.225712712854147,
|
| 44 |
-
"epoch": 0.4204993429697766,
|
| 45 |
-
"grad_norm": 1.140625,
|
| 46 |
-
"learning_rate": 0.00017291666666666668,
|
| 47 |
-
"loss": 1.3144322395324708,
|
| 48 |
-
"mean_token_accuracy": 0.7446377977728844,
|
| 49 |
-
"num_tokens": 15194.0,
|
| 50 |
-
"step": 40
|
| 51 |
-
},
|
| 52 |
-
{
|
| 53 |
-
"entropy": 1.3306574214249849,
|
| 54 |
-
"epoch": 0.5256241787122208,
|
| 55 |
-
"grad_norm": 1.390625,
|
| 56 |
-
"learning_rate": 0.00016597222222222225,
|
| 57 |
-
"loss": 1.442171287536621,
|
| 58 |
-
"mean_token_accuracy": 0.7188469670712948,
|
| 59 |
-
"num_tokens": 19221.0,
|
| 60 |
-
"step": 50
|
| 61 |
-
},
|
| 62 |
-
{
|
| 63 |
-
"entropy": 1.2213972710072993,
|
| 64 |
-
"epoch": 0.6307490144546649,
|
| 65 |
-
"grad_norm": 1.25,
|
| 66 |
-
"learning_rate": 0.00015902777777777776,
|
| 67 |
-
"loss": 1.3555883407592773,
|
| 68 |
-
"mean_token_accuracy": 0.7323203787207604,
|
| 69 |
-
"num_tokens": 23135.0,
|
| 70 |
-
"step": 60
|
| 71 |
-
},
|
| 72 |
-
{
|
| 73 |
-
"entropy": 1.236185147613287,
|
| 74 |
-
"epoch": 0.735873850197109,
|
| 75 |
-
"grad_norm": 1.2890625,
|
| 76 |
-
"learning_rate": 0.00015208333333333333,
|
| 77 |
-
"loss": 1.3239954948425292,
|
| 78 |
-
"mean_token_accuracy": 0.7413535274565219,
|
| 79 |
-
"num_tokens": 26938.0,
|
| 80 |
-
"step": 70
|
| 81 |
-
},
|
| 82 |
-
{
|
| 83 |
-
"entropy": 1.1433476515114307,
|
| 84 |
-
"epoch": 0.8409986859395532,
|
| 85 |
-
"grad_norm": 1.1875,
|
| 86 |
-
"learning_rate": 0.00014513888888888888,
|
| 87 |
-
"loss": 1.2469322204589843,
|
| 88 |
-
"mean_token_accuracy": 0.7549085400998592,
|
| 89 |
-
"num_tokens": 30527.0,
|
| 90 |
-
"step": 80
|
| 91 |
-
},
|
| 92 |
-
{
|
| 93 |
-
"entropy": 1.283092799782753,
|
| 94 |
-
"epoch": 0.9461235216819974,
|
| 95 |
-
"grad_norm": 1.21875,
|
| 96 |
-
"learning_rate": 0.00013819444444444445,
|
| 97 |
-
"loss": 1.4147074699401856,
|
| 98 |
-
"mean_token_accuracy": 0.7189013145864009,
|
| 99 |
-
"num_tokens": 34654.0,
|
| 100 |
-
"step": 90
|
| 101 |
-
},
|
| 102 |
-
{
|
| 103 |
-
"entropy": 1.2251756056530836,
|
| 104 |
-
"epoch": 1.0420499342969776,
|
| 105 |
-
"grad_norm": 1.0078125,
|
| 106 |
-
"learning_rate": 0.00013125000000000002,
|
| 107 |
-
"loss": 1.1694912910461426,
|
| 108 |
-
"mean_token_accuracy": 0.75513191827356,
|
| 109 |
-
"num_tokens": 38292.0,
|
| 110 |
-
"step": 100
|
| 111 |
-
},
|
| 112 |
-
{
|
| 113 |
-
"entropy": 0.9808842208236456,
|
| 114 |
-
"epoch": 1.1471747700394217,
|
| 115 |
-
"grad_norm": 1.390625,
|
| 116 |
-
"learning_rate": 0.00012430555555555556,
|
| 117 |
-
"loss": 0.9646660804748535,
|
| 118 |
-
"mean_token_accuracy": 0.7965455286204814,
|
| 119 |
-
"num_tokens": 42119.0,
|
| 120 |
-
"step": 110
|
| 121 |
-
},
|
| 122 |
-
{
|
| 123 |
-
"entropy": 0.895855213701725,
|
| 124 |
-
"epoch": 1.2522996057818658,
|
| 125 |
-
"grad_norm": 1.625,
|
| 126 |
-
"learning_rate": 0.00011736111111111112,
|
| 127 |
-
"loss": 0.9326272964477539,
|
| 128 |
-
"mean_token_accuracy": 0.7989173181354999,
|
| 129 |
-
"num_tokens": 46121.0,
|
| 130 |
-
"step": 120
|
| 131 |
-
},
|
| 132 |
-
{
|
| 133 |
-
"entropy": 0.8705711856484413,
|
| 134 |
-
"epoch": 1.3574244415243102,
|
| 135 |
-
"grad_norm": 1.8125,
|
| 136 |
-
"learning_rate": 0.00011041666666666668,
|
| 137 |
-
"loss": 0.8961386680603027,
|
| 138 |
-
"mean_token_accuracy": 0.8044699378311634,
|
| 139 |
-
"num_tokens": 50090.0,
|
| 140 |
-
"step": 130
|
| 141 |
-
},
|
| 142 |
-
{
|
| 143 |
-
"entropy": 0.8594769395887851,
|
| 144 |
-
"epoch": 1.4625492772667543,
|
| 145 |
-
"grad_norm": 1.6171875,
|
| 146 |
-
"learning_rate": 0.00010347222222222223,
|
| 147 |
-
"loss": 0.8508189201354981,
|
| 148 |
-
"mean_token_accuracy": 0.8186739608645439,
|
| 149 |
-
"num_tokens": 53919.0,
|
| 150 |
-
"step": 140
|
| 151 |
-
},
|
| 152 |
-
{
|
| 153 |
-
"entropy": 0.8401138111948967,
|
| 154 |
-
"epoch": 1.5676741130091985,
|
| 155 |
-
"grad_norm": 1.7578125,
|
| 156 |
-
"learning_rate": 9.652777777777779e-05,
|
| 157 |
-
"loss": 0.8900316238403321,
|
| 158 |
-
"mean_token_accuracy": 0.8109646178781986,
|
| 159 |
-
"num_tokens": 57865.0,
|
| 160 |
-
"step": 150
|
| 161 |
-
},
|
| 162 |
-
{
|
| 163 |
-
"entropy": 0.8799884164705872,
|
| 164 |
-
"epoch": 1.6727989487516426,
|
| 165 |
-
"grad_norm": 1.9765625,
|
| 166 |
-
"learning_rate": 8.958333333333335e-05,
|
| 167 |
-
"loss": 0.8930209159851075,
|
| 168 |
-
"mean_token_accuracy": 0.8081811979413033,
|
| 169 |
-
"num_tokens": 61745.0,
|
| 170 |
-
"step": 160
|
| 171 |
-
},
|
| 172 |
-
{
|
| 173 |
-
"entropy": 0.8651461038738489,
|
| 174 |
-
"epoch": 1.7779237844940867,
|
| 175 |
-
"grad_norm": 1.625,
|
| 176 |
-
"learning_rate": 8.263888888888889e-05,
|
| 177 |
-
"loss": 0.870454978942871,
|
| 178 |
-
"mean_token_accuracy": 0.8074543043971062,
|
| 179 |
-
"num_tokens": 65643.0,
|
| 180 |
-
"step": 170
|
| 181 |
-
},
|
| 182 |
-
{
|
| 183 |
-
"entropy": 0.8021717140451073,
|
| 184 |
-
"epoch": 1.8830486202365309,
|
| 185 |
-
"grad_norm": 2.109375,
|
| 186 |
-
"learning_rate": 7.569444444444445e-05,
|
| 187 |
-
"loss": 0.8372815132141114,
|
| 188 |
-
"mean_token_accuracy": 0.8185677900910378,
|
| 189 |
-
"num_tokens": 69253.0,
|
| 190 |
-
"step": 180
|
| 191 |
-
},
|
| 192 |
-
{
|
| 193 |
-
"entropy": 0.8461722563952208,
|
| 194 |
-
"epoch": 1.988173455978975,
|
| 195 |
-
"grad_norm": 1.9609375,
|
| 196 |
-
"learning_rate": 6.875e-05,
|
| 197 |
-
"loss": 0.8477604866027832,
|
| 198 |
-
"mean_token_accuracy": 0.821676817536354,
|
| 199 |
-
"num_tokens": 73086.0,
|
| 200 |
-
"step": 190
|
| 201 |
-
}
|
| 202 |
-
],
|
| 203 |
-
"logging_steps": 10,
|
| 204 |
-
"max_steps": 288,
|
| 205 |
-
"num_input_tokens_seen": 0,
|
| 206 |
-
"num_train_epochs": 3,
|
| 207 |
-
"save_steps": 500,
|
| 208 |
-
"stateful_callbacks": {
|
| 209 |
-
"TrainerControl": {
|
| 210 |
-
"args": {
|
| 211 |
-
"should_epoch_stop": false,
|
| 212 |
-
"should_evaluate": false,
|
| 213 |
-
"should_log": false,
|
| 214 |
-
"should_save": true,
|
| 215 |
-
"should_training_stop": false
|
| 216 |
-
},
|
| 217 |
-
"attributes": {}
|
| 218 |
-
}
|
| 219 |
-
},
|
| 220 |
-
"total_flos": 3517439958097920.0,
|
| 221 |
-
"train_batch_size": 1,
|
| 222 |
-
"trial_name": null,
|
| 223 |
-
"trial_params": null
|
| 224 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-192/training_args.bin
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:80c77319107d515ff120e1a03ba8bd1c939446a417590eaef8b1b3111fab5416
|
| 3 |
-
size 5777
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-288/README.md
DELETED
|
@@ -1,209 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
base_model: Qwen/Qwen3.5-9B
|
| 3 |
-
library_name: peft
|
| 4 |
-
pipeline_tag: text-generation
|
| 5 |
-
tags:
|
| 6 |
-
- base_model:adapter:Qwen/Qwen3.5-9B
|
| 7 |
-
- lora
|
| 8 |
-
- sft
|
| 9 |
-
- transformers
|
| 10 |
-
- trl
|
| 11 |
-
---
|
| 12 |
-
|
| 13 |
-
# Model Card for Model ID
|
| 14 |
-
|
| 15 |
-
<!-- Provide a quick summary of what the model is/does. -->
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
## Model Details
|
| 20 |
-
|
| 21 |
-
### Model Description
|
| 22 |
-
|
| 23 |
-
<!-- Provide a longer summary of what this model is. -->
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
- **Developed by:** [More Information Needed]
|
| 28 |
-
- **Funded by [optional]:** [More Information Needed]
|
| 29 |
-
- **Shared by [optional]:** [More Information Needed]
|
| 30 |
-
- **Model type:** [More Information Needed]
|
| 31 |
-
- **Language(s) (NLP):** [More Information Needed]
|
| 32 |
-
- **License:** [More Information Needed]
|
| 33 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
| 34 |
-
|
| 35 |
-
### Model Sources [optional]
|
| 36 |
-
|
| 37 |
-
<!-- Provide the basic links for the model. -->
|
| 38 |
-
|
| 39 |
-
- **Repository:** [More Information Needed]
|
| 40 |
-
- **Paper [optional]:** [More Information Needed]
|
| 41 |
-
- **Demo [optional]:** [More Information Needed]
|
| 42 |
-
|
| 43 |
-
## Uses
|
| 44 |
-
|
| 45 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 46 |
-
|
| 47 |
-
### Direct Use
|
| 48 |
-
|
| 49 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 50 |
-
|
| 51 |
-
[More Information Needed]
|
| 52 |
-
|
| 53 |
-
### Downstream Use [optional]
|
| 54 |
-
|
| 55 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 56 |
-
|
| 57 |
-
[More Information Needed]
|
| 58 |
-
|
| 59 |
-
### Out-of-Scope Use
|
| 60 |
-
|
| 61 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 62 |
-
|
| 63 |
-
[More Information Needed]
|
| 64 |
-
|
| 65 |
-
## Bias, Risks, and Limitations
|
| 66 |
-
|
| 67 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 68 |
-
|
| 69 |
-
[More Information Needed]
|
| 70 |
-
|
| 71 |
-
### Recommendations
|
| 72 |
-
|
| 73 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 74 |
-
|
| 75 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 76 |
-
|
| 77 |
-
## How to Get Started with the Model
|
| 78 |
-
|
| 79 |
-
Use the code below to get started with the model.
|
| 80 |
-
|
| 81 |
-
[More Information Needed]
|
| 82 |
-
|
| 83 |
-
## Training Details
|
| 84 |
-
|
| 85 |
-
### Training Data
|
| 86 |
-
|
| 87 |
-
<!-- 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. -->
|
| 88 |
-
|
| 89 |
-
[More Information Needed]
|
| 90 |
-
|
| 91 |
-
### Training Procedure
|
| 92 |
-
|
| 93 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 94 |
-
|
| 95 |
-
#### Preprocessing [optional]
|
| 96 |
-
|
| 97 |
-
[More Information Needed]
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
#### Training Hyperparameters
|
| 101 |
-
|
| 102 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 103 |
-
|
| 104 |
-
#### Speeds, Sizes, Times [optional]
|
| 105 |
-
|
| 106 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 107 |
-
|
| 108 |
-
[More Information Needed]
|
| 109 |
-
|
| 110 |
-
## Evaluation
|
| 111 |
-
|
| 112 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 113 |
-
|
| 114 |
-
### Testing Data, Factors & Metrics
|
| 115 |
-
|
| 116 |
-
#### Testing Data
|
| 117 |
-
|
| 118 |
-
<!-- This should link to a Dataset Card if possible. -->
|
| 119 |
-
|
| 120 |
-
[More Information Needed]
|
| 121 |
-
|
| 122 |
-
#### Factors
|
| 123 |
-
|
| 124 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 125 |
-
|
| 126 |
-
[More Information Needed]
|
| 127 |
-
|
| 128 |
-
#### Metrics
|
| 129 |
-
|
| 130 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 131 |
-
|
| 132 |
-
[More Information Needed]
|
| 133 |
-
|
| 134 |
-
### Results
|
| 135 |
-
|
| 136 |
-
[More Information Needed]
|
| 137 |
-
|
| 138 |
-
#### Summary
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
## Model Examination [optional]
|
| 143 |
-
|
| 144 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 145 |
-
|
| 146 |
-
[More Information Needed]
|
| 147 |
-
|
| 148 |
-
## Environmental Impact
|
| 149 |
-
|
| 150 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 151 |
-
|
| 152 |
-
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).
|
| 153 |
-
|
| 154 |
-
- **Hardware Type:** [More Information Needed]
|
| 155 |
-
- **Hours used:** [More Information Needed]
|
| 156 |
-
- **Cloud Provider:** [More Information Needed]
|
| 157 |
-
- **Compute Region:** [More Information Needed]
|
| 158 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 159 |
-
|
| 160 |
-
## Technical Specifications [optional]
|
| 161 |
-
|
| 162 |
-
### Model Architecture and Objective
|
| 163 |
-
|
| 164 |
-
[More Information Needed]
|
| 165 |
-
|
| 166 |
-
### Compute Infrastructure
|
| 167 |
-
|
| 168 |
-
[More Information Needed]
|
| 169 |
-
|
| 170 |
-
#### Hardware
|
| 171 |
-
|
| 172 |
-
[More Information Needed]
|
| 173 |
-
|
| 174 |
-
#### Software
|
| 175 |
-
|
| 176 |
-
[More Information Needed]
|
| 177 |
-
|
| 178 |
-
## Citation [optional]
|
| 179 |
-
|
| 180 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 181 |
-
|
| 182 |
-
**BibTeX:**
|
| 183 |
-
|
| 184 |
-
[More Information Needed]
|
| 185 |
-
|
| 186 |
-
**APA:**
|
| 187 |
-
|
| 188 |
-
[More Information Needed]
|
| 189 |
-
|
| 190 |
-
## Glossary [optional]
|
| 191 |
-
|
| 192 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 193 |
-
|
| 194 |
-
[More Information Needed]
|
| 195 |
-
|
| 196 |
-
## More Information [optional]
|
| 197 |
-
|
| 198 |
-
[More Information Needed]
|
| 199 |
-
|
| 200 |
-
## Model Card Authors [optional]
|
| 201 |
-
|
| 202 |
-
[More Information Needed]
|
| 203 |
-
|
| 204 |
-
## Model Card Contact
|
| 205 |
-
|
| 206 |
-
[More Information Needed]
|
| 207 |
-
### Framework versions
|
| 208 |
-
|
| 209 |
-
- PEFT 0.19.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-288/adapter_config.json
DELETED
|
@@ -1,53 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"alora_invocation_tokens": null,
|
| 3 |
-
"alpha_pattern": {},
|
| 4 |
-
"arrow_config": null,
|
| 5 |
-
"auto_mapping": null,
|
| 6 |
-
"base_model_name_or_path": "Qwen/Qwen3.5-9B",
|
| 7 |
-
"bias": "none",
|
| 8 |
-
"corda_config": null,
|
| 9 |
-
"ensure_weight_tying": false,
|
| 10 |
-
"eva_config": null,
|
| 11 |
-
"exclude_modules": null,
|
| 12 |
-
"fan_in_fan_out": false,
|
| 13 |
-
"inference_mode": true,
|
| 14 |
-
"init_lora_weights": true,
|
| 15 |
-
"layer_replication": null,
|
| 16 |
-
"layers_pattern": null,
|
| 17 |
-
"layers_to_transform": null,
|
| 18 |
-
"loftq_config": {},
|
| 19 |
-
"lora_alpha": 32,
|
| 20 |
-
"lora_bias": false,
|
| 21 |
-
"lora_dropout": 0.05,
|
| 22 |
-
"lora_ga_config": null,
|
| 23 |
-
"megatron_config": null,
|
| 24 |
-
"megatron_core": "megatron.core",
|
| 25 |
-
"modules_to_save": null,
|
| 26 |
-
"peft_type": "LORA",
|
| 27 |
-
"peft_version": "0.19.1",
|
| 28 |
-
"qalora_group_size": 16,
|
| 29 |
-
"r": 16,
|
| 30 |
-
"rank_pattern": {},
|
| 31 |
-
"revision": null,
|
| 32 |
-
"target_modules": [
|
| 33 |
-
"up_proj",
|
| 34 |
-
"k_proj",
|
| 35 |
-
"o_proj",
|
| 36 |
-
"v_proj",
|
| 37 |
-
"out_proj",
|
| 38 |
-
"in_proj_qkv",
|
| 39 |
-
"in_proj_z",
|
| 40 |
-
"in_proj_b",
|
| 41 |
-
"down_proj",
|
| 42 |
-
"q_proj",
|
| 43 |
-
"gate_proj",
|
| 44 |
-
"in_proj_a"
|
| 45 |
-
],
|
| 46 |
-
"target_parameters": null,
|
| 47 |
-
"task_type": "CAUSAL_LM",
|
| 48 |
-
"trainable_token_indices": null,
|
| 49 |
-
"use_bdlora": null,
|
| 50 |
-
"use_dora": false,
|
| 51 |
-
"use_qalora": false,
|
| 52 |
-
"use_rslora": false
|
| 53 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-288/adapter_model.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7d88cb1cdd1237abdb5933ccf30096da0861d6ac0874c743f5de09abd5293c06
|
| 3 |
-
size 86624424
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-288/chat_template.jinja
DELETED
|
@@ -1,154 +0,0 @@
|
|
| 1 |
-
{%- set image_count = namespace(value=0) %}
|
| 2 |
-
{%- set video_count = namespace(value=0) %}
|
| 3 |
-
{%- macro render_content(content, do_vision_count, is_system_content=false) %}
|
| 4 |
-
{%- if content is string %}
|
| 5 |
-
{{- content }}
|
| 6 |
-
{%- elif content is iterable and content is not mapping %}
|
| 7 |
-
{%- for item in content %}
|
| 8 |
-
{%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
|
| 9 |
-
{%- if is_system_content %}
|
| 10 |
-
{{- raise_exception('System message cannot contain images.') }}
|
| 11 |
-
{%- endif %}
|
| 12 |
-
{%- if do_vision_count %}
|
| 13 |
-
{%- set image_count.value = image_count.value + 1 %}
|
| 14 |
-
{%- endif %}
|
| 15 |
-
{%- if add_vision_id %}
|
| 16 |
-
{{- 'Picture ' ~ image_count.value ~ ': ' }}
|
| 17 |
-
{%- endif %}
|
| 18 |
-
{{- '<|vision_start|><|image_pad|><|vision_end|>' }}
|
| 19 |
-
{%- elif 'video' in item or item.type == 'video' %}
|
| 20 |
-
{%- if is_system_content %}
|
| 21 |
-
{{- raise_exception('System message cannot contain videos.') }}
|
| 22 |
-
{%- endif %}
|
| 23 |
-
{%- if do_vision_count %}
|
| 24 |
-
{%- set video_count.value = video_count.value + 1 %}
|
| 25 |
-
{%- endif %}
|
| 26 |
-
{%- if add_vision_id %}
|
| 27 |
-
{{- 'Video ' ~ video_count.value ~ ': ' }}
|
| 28 |
-
{%- endif %}
|
| 29 |
-
{{- '<|vision_start|><|video_pad|><|vision_end|>' }}
|
| 30 |
-
{%- elif 'text' in item %}
|
| 31 |
-
{{- item.text }}
|
| 32 |
-
{%- else %}
|
| 33 |
-
{{- raise_exception('Unexpected item type in content.') }}
|
| 34 |
-
{%- endif %}
|
| 35 |
-
{%- endfor %}
|
| 36 |
-
{%- elif content is none or content is undefined %}
|
| 37 |
-
{{- '' }}
|
| 38 |
-
{%- else %}
|
| 39 |
-
{{- raise_exception('Unexpected content type.') }}
|
| 40 |
-
{%- endif %}
|
| 41 |
-
{%- endmacro %}
|
| 42 |
-
{%- if not messages %}
|
| 43 |
-
{{- raise_exception('No messages provided.') }}
|
| 44 |
-
{%- endif %}
|
| 45 |
-
{%- if tools and tools is iterable and tools is not mapping %}
|
| 46 |
-
{{- '<|im_start|>system\n' }}
|
| 47 |
-
{{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
|
| 48 |
-
{%- for tool in tools %}
|
| 49 |
-
{{- "\n" }}
|
| 50 |
-
{{- tool | tojson }}
|
| 51 |
-
{%- endfor %}
|
| 52 |
-
{{- "\n</tools>" }}
|
| 53 |
-
{{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
|
| 54 |
-
{%- if messages[0].role == 'system' %}
|
| 55 |
-
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 56 |
-
{%- if content %}
|
| 57 |
-
{{- '\n\n' + content }}
|
| 58 |
-
{%- endif %}
|
| 59 |
-
{%- endif %}
|
| 60 |
-
{{- '<|im_end|>\n' }}
|
| 61 |
-
{%- else %}
|
| 62 |
-
{%- if messages[0].role == 'system' %}
|
| 63 |
-
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 64 |
-
{{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
|
| 65 |
-
{%- endif %}
|
| 66 |
-
{%- endif %}
|
| 67 |
-
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 68 |
-
{%- for message in messages[::-1] %}
|
| 69 |
-
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 70 |
-
{%- if ns.multi_step_tool and message.role == "user" %}
|
| 71 |
-
{%- set content = render_content(message.content, false)|trim %}
|
| 72 |
-
{%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
|
| 73 |
-
{%- set ns.multi_step_tool = false %}
|
| 74 |
-
{%- set ns.last_query_index = index %}
|
| 75 |
-
{%- endif %}
|
| 76 |
-
{%- endif %}
|
| 77 |
-
{%- endfor %}
|
| 78 |
-
{%- if ns.multi_step_tool %}
|
| 79 |
-
{{- raise_exception('No user query found in messages.') }}
|
| 80 |
-
{%- endif %}
|
| 81 |
-
{%- for message in messages %}
|
| 82 |
-
{%- set content = render_content(message.content, true)|trim %}
|
| 83 |
-
{%- if message.role == "system" %}
|
| 84 |
-
{%- if not loop.first %}
|
| 85 |
-
{{- raise_exception('System message must be at the beginning.') }}
|
| 86 |
-
{%- endif %}
|
| 87 |
-
{%- elif message.role == "user" %}
|
| 88 |
-
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 89 |
-
{%- elif message.role == "assistant" %}
|
| 90 |
-
{%- set reasoning_content = '' %}
|
| 91 |
-
{%- if message.reasoning_content is string %}
|
| 92 |
-
{%- set reasoning_content = message.reasoning_content %}
|
| 93 |
-
{%- else %}
|
| 94 |
-
{%- if '</think>' in content %}
|
| 95 |
-
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 96 |
-
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 97 |
-
{%- endif %}
|
| 98 |
-
{%- endif %}
|
| 99 |
-
{%- set reasoning_content = reasoning_content|trim %}
|
| 100 |
-
{%- if loop.index0 > ns.last_query_index %}
|
| 101 |
-
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
|
| 102 |
-
{%- else %}
|
| 103 |
-
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 104 |
-
{%- endif %}
|
| 105 |
-
{%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
|
| 106 |
-
{%- for tool_call in message.tool_calls %}
|
| 107 |
-
{%- if tool_call.function is defined %}
|
| 108 |
-
{%- set tool_call = tool_call.function %}
|
| 109 |
-
{%- endif %}
|
| 110 |
-
{%- if loop.first %}
|
| 111 |
-
{%- if content|trim %}
|
| 112 |
-
{{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 113 |
-
{%- else %}
|
| 114 |
-
{{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 115 |
-
{%- endif %}
|
| 116 |
-
{%- else %}
|
| 117 |
-
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 118 |
-
{%- endif %}
|
| 119 |
-
{%- if tool_call.arguments is defined %}
|
| 120 |
-
{%- for args_name, args_value in tool_call.arguments|items %}
|
| 121 |
-
{{- '<parameter=' + args_name + '>\n' }}
|
| 122 |
-
{%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
|
| 123 |
-
{{- args_value }}
|
| 124 |
-
{{- '\n</parameter>\n' }}
|
| 125 |
-
{%- endfor %}
|
| 126 |
-
{%- endif %}
|
| 127 |
-
{{- '</function>\n</tool_call>' }}
|
| 128 |
-
{%- endfor %}
|
| 129 |
-
{%- endif %}
|
| 130 |
-
{{- '<|im_end|>\n' }}
|
| 131 |
-
{%- elif message.role == "tool" %}
|
| 132 |
-
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 133 |
-
{{- '<|im_start|>user' }}
|
| 134 |
-
{%- endif %}
|
| 135 |
-
{{- '\n<tool_response>\n' }}
|
| 136 |
-
{{- content }}
|
| 137 |
-
{{- '\n</tool_response>' }}
|
| 138 |
-
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 139 |
-
{{- '<|im_end|>\n' }}
|
| 140 |
-
{%- elif loop.last %}
|
| 141 |
-
{{- '<|im_end|>\n' }}
|
| 142 |
-
{%- endif %}
|
| 143 |
-
{%- else %}
|
| 144 |
-
{{- raise_exception('Unexpected message role.') }}
|
| 145 |
-
{%- endif %}
|
| 146 |
-
{%- endfor %}
|
| 147 |
-
{%- if add_generation_prompt %}
|
| 148 |
-
{{- '<|im_start|>assistant\n' }}
|
| 149 |
-
{%- if enable_thinking is defined and enable_thinking is false %}
|
| 150 |
-
{{- '<think>\n\n</think>\n\n' }}
|
| 151 |
-
{%- else %}
|
| 152 |
-
{{- '<think>\n' }}
|
| 153 |
-
{%- endif %}
|
| 154 |
-
{%- endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-288/optimizer.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:189edcd603f7bbddb01c5754b74224f95ea9def898c5f111090bc5b61d82ebe1
|
| 3 |
-
size 173539507
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-288/rng_state.pth
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c1de14d45bf40451ecad8cc71ddb5f3014594537a7f4f59d093126e25120b911
|
| 3 |
-
size 14645
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-288/scheduler.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:db65c34a575612e43bcfbbcdee111aa92a8a1578c29689cbfb7e5bcc00cf526d
|
| 3 |
-
size 1465
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-288/tokenizer.json
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
|
| 3 |
-
size 19989325
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-288/tokenizer_config.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"add_prefix_space": false,
|
| 3 |
-
"audio_bos_token": "<|audio_start|>",
|
| 4 |
-
"audio_eos_token": "<|audio_end|>",
|
| 5 |
-
"audio_token": "<|audio_pad|>",
|
| 6 |
-
"backend": "tokenizers",
|
| 7 |
-
"bos_token": null,
|
| 8 |
-
"clean_up_tokenization_spaces": false,
|
| 9 |
-
"eos_token": "<|im_end|>",
|
| 10 |
-
"errors": "replace",
|
| 11 |
-
"image_token": "<|image_pad|>",
|
| 12 |
-
"is_local": false,
|
| 13 |
-
"local_files_only": false,
|
| 14 |
-
"model_max_length": 262144,
|
| 15 |
-
"model_specific_special_tokens": {
|
| 16 |
-
"audio_bos_token": "<|audio_start|>",
|
| 17 |
-
"audio_eos_token": "<|audio_end|>",
|
| 18 |
-
"audio_token": "<|audio_pad|>",
|
| 19 |
-
"image_token": "<|image_pad|>",
|
| 20 |
-
"video_token": "<|video_pad|>",
|
| 21 |
-
"vision_bos_token": "<|vision_start|>",
|
| 22 |
-
"vision_eos_token": "<|vision_end|>"
|
| 23 |
-
},
|
| 24 |
-
"pad_token": "<|endoftext|>",
|
| 25 |
-
"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
|
| 26 |
-
"split_special_tokens": false,
|
| 27 |
-
"tokenizer_class": "Qwen2Tokenizer",
|
| 28 |
-
"unk_token": null,
|
| 29 |
-
"video_token": "<|video_pad|>",
|
| 30 |
-
"vision_bos_token": "<|vision_start|>",
|
| 31 |
-
"vision_eos_token": "<|vision_end|>"
|
| 32 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-288/trainer_state.json
DELETED
|
@@ -1,314 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"best_global_step": null,
|
| 3 |
-
"best_metric": null,
|
| 4 |
-
"best_model_checkpoint": null,
|
| 5 |
-
"epoch": 3.0,
|
| 6 |
-
"eval_steps": 500,
|
| 7 |
-
"global_step": 288,
|
| 8 |
-
"is_hyper_param_search": false,
|
| 9 |
-
"is_local_process_zero": true,
|
| 10 |
-
"is_world_process_zero": true,
|
| 11 |
-
"log_history": [
|
| 12 |
-
{
|
| 13 |
-
"entropy": 1.5058588825166226,
|
| 14 |
-
"epoch": 0.10512483574244415,
|
| 15 |
-
"grad_norm": 1.796875,
|
| 16 |
-
"learning_rate": 0.00019375000000000002,
|
| 17 |
-
"loss": 1.7537630081176758,
|
| 18 |
-
"mean_token_accuracy": 0.695327178388834,
|
| 19 |
-
"num_tokens": 3808.0,
|
| 20 |
-
"step": 10
|
| 21 |
-
},
|
| 22 |
-
{
|
| 23 |
-
"entropy": 1.316319726407528,
|
| 24 |
-
"epoch": 0.2102496714848883,
|
| 25 |
-
"grad_norm": 1.390625,
|
| 26 |
-
"learning_rate": 0.00018680555555555556,
|
| 27 |
-
"loss": 1.4752570152282716,
|
| 28 |
-
"mean_token_accuracy": 0.7272207736968994,
|
| 29 |
-
"num_tokens": 7522.0,
|
| 30 |
-
"step": 20
|
| 31 |
-
},
|
| 32 |
-
{
|
| 33 |
-
"entropy": 1.3150447681546211,
|
| 34 |
-
"epoch": 0.31537450722733246,
|
| 35 |
-
"grad_norm": 1.3984375,
|
| 36 |
-
"learning_rate": 0.00017986111111111113,
|
| 37 |
-
"loss": 1.404660415649414,
|
| 38 |
-
"mean_token_accuracy": 0.7220224224030971,
|
| 39 |
-
"num_tokens": 11407.0,
|
| 40 |
-
"step": 30
|
| 41 |
-
},
|
| 42 |
-
{
|
| 43 |
-
"entropy": 1.225712712854147,
|
| 44 |
-
"epoch": 0.4204993429697766,
|
| 45 |
-
"grad_norm": 1.140625,
|
| 46 |
-
"learning_rate": 0.00017291666666666668,
|
| 47 |
-
"loss": 1.3144322395324708,
|
| 48 |
-
"mean_token_accuracy": 0.7446377977728844,
|
| 49 |
-
"num_tokens": 15194.0,
|
| 50 |
-
"step": 40
|
| 51 |
-
},
|
| 52 |
-
{
|
| 53 |
-
"entropy": 1.3306574214249849,
|
| 54 |
-
"epoch": 0.5256241787122208,
|
| 55 |
-
"grad_norm": 1.390625,
|
| 56 |
-
"learning_rate": 0.00016597222222222225,
|
| 57 |
-
"loss": 1.442171287536621,
|
| 58 |
-
"mean_token_accuracy": 0.7188469670712948,
|
| 59 |
-
"num_tokens": 19221.0,
|
| 60 |
-
"step": 50
|
| 61 |
-
},
|
| 62 |
-
{
|
| 63 |
-
"entropy": 1.2213972710072993,
|
| 64 |
-
"epoch": 0.6307490144546649,
|
| 65 |
-
"grad_norm": 1.25,
|
| 66 |
-
"learning_rate": 0.00015902777777777776,
|
| 67 |
-
"loss": 1.3555883407592773,
|
| 68 |
-
"mean_token_accuracy": 0.7323203787207604,
|
| 69 |
-
"num_tokens": 23135.0,
|
| 70 |
-
"step": 60
|
| 71 |
-
},
|
| 72 |
-
{
|
| 73 |
-
"entropy": 1.236185147613287,
|
| 74 |
-
"epoch": 0.735873850197109,
|
| 75 |
-
"grad_norm": 1.2890625,
|
| 76 |
-
"learning_rate": 0.00015208333333333333,
|
| 77 |
-
"loss": 1.3239954948425292,
|
| 78 |
-
"mean_token_accuracy": 0.7413535274565219,
|
| 79 |
-
"num_tokens": 26938.0,
|
| 80 |
-
"step": 70
|
| 81 |
-
},
|
| 82 |
-
{
|
| 83 |
-
"entropy": 1.1433476515114307,
|
| 84 |
-
"epoch": 0.8409986859395532,
|
| 85 |
-
"grad_norm": 1.1875,
|
| 86 |
-
"learning_rate": 0.00014513888888888888,
|
| 87 |
-
"loss": 1.2469322204589843,
|
| 88 |
-
"mean_token_accuracy": 0.7549085400998592,
|
| 89 |
-
"num_tokens": 30527.0,
|
| 90 |
-
"step": 80
|
| 91 |
-
},
|
| 92 |
-
{
|
| 93 |
-
"entropy": 1.283092799782753,
|
| 94 |
-
"epoch": 0.9461235216819974,
|
| 95 |
-
"grad_norm": 1.21875,
|
| 96 |
-
"learning_rate": 0.00013819444444444445,
|
| 97 |
-
"loss": 1.4147074699401856,
|
| 98 |
-
"mean_token_accuracy": 0.7189013145864009,
|
| 99 |
-
"num_tokens": 34654.0,
|
| 100 |
-
"step": 90
|
| 101 |
-
},
|
| 102 |
-
{
|
| 103 |
-
"entropy": 1.2251756056530836,
|
| 104 |
-
"epoch": 1.0420499342969776,
|
| 105 |
-
"grad_norm": 1.0078125,
|
| 106 |
-
"learning_rate": 0.00013125000000000002,
|
| 107 |
-
"loss": 1.1694912910461426,
|
| 108 |
-
"mean_token_accuracy": 0.75513191827356,
|
| 109 |
-
"num_tokens": 38292.0,
|
| 110 |
-
"step": 100
|
| 111 |
-
},
|
| 112 |
-
{
|
| 113 |
-
"entropy": 0.9808842208236456,
|
| 114 |
-
"epoch": 1.1471747700394217,
|
| 115 |
-
"grad_norm": 1.390625,
|
| 116 |
-
"learning_rate": 0.00012430555555555556,
|
| 117 |
-
"loss": 0.9646660804748535,
|
| 118 |
-
"mean_token_accuracy": 0.7965455286204814,
|
| 119 |
-
"num_tokens": 42119.0,
|
| 120 |
-
"step": 110
|
| 121 |
-
},
|
| 122 |
-
{
|
| 123 |
-
"entropy": 0.895855213701725,
|
| 124 |
-
"epoch": 1.2522996057818658,
|
| 125 |
-
"grad_norm": 1.625,
|
| 126 |
-
"learning_rate": 0.00011736111111111112,
|
| 127 |
-
"loss": 0.9326272964477539,
|
| 128 |
-
"mean_token_accuracy": 0.7989173181354999,
|
| 129 |
-
"num_tokens": 46121.0,
|
| 130 |
-
"step": 120
|
| 131 |
-
},
|
| 132 |
-
{
|
| 133 |
-
"entropy": 0.8705711856484413,
|
| 134 |
-
"epoch": 1.3574244415243102,
|
| 135 |
-
"grad_norm": 1.8125,
|
| 136 |
-
"learning_rate": 0.00011041666666666668,
|
| 137 |
-
"loss": 0.8961386680603027,
|
| 138 |
-
"mean_token_accuracy": 0.8044699378311634,
|
| 139 |
-
"num_tokens": 50090.0,
|
| 140 |
-
"step": 130
|
| 141 |
-
},
|
| 142 |
-
{
|
| 143 |
-
"entropy": 0.8594769395887851,
|
| 144 |
-
"epoch": 1.4625492772667543,
|
| 145 |
-
"grad_norm": 1.6171875,
|
| 146 |
-
"learning_rate": 0.00010347222222222223,
|
| 147 |
-
"loss": 0.8508189201354981,
|
| 148 |
-
"mean_token_accuracy": 0.8186739608645439,
|
| 149 |
-
"num_tokens": 53919.0,
|
| 150 |
-
"step": 140
|
| 151 |
-
},
|
| 152 |
-
{
|
| 153 |
-
"entropy": 0.8401138111948967,
|
| 154 |
-
"epoch": 1.5676741130091985,
|
| 155 |
-
"grad_norm": 1.7578125,
|
| 156 |
-
"learning_rate": 9.652777777777779e-05,
|
| 157 |
-
"loss": 0.8900316238403321,
|
| 158 |
-
"mean_token_accuracy": 0.8109646178781986,
|
| 159 |
-
"num_tokens": 57865.0,
|
| 160 |
-
"step": 150
|
| 161 |
-
},
|
| 162 |
-
{
|
| 163 |
-
"entropy": 0.8799884164705872,
|
| 164 |
-
"epoch": 1.6727989487516426,
|
| 165 |
-
"grad_norm": 1.9765625,
|
| 166 |
-
"learning_rate": 8.958333333333335e-05,
|
| 167 |
-
"loss": 0.8930209159851075,
|
| 168 |
-
"mean_token_accuracy": 0.8081811979413033,
|
| 169 |
-
"num_tokens": 61745.0,
|
| 170 |
-
"step": 160
|
| 171 |
-
},
|
| 172 |
-
{
|
| 173 |
-
"entropy": 0.8651461038738489,
|
| 174 |
-
"epoch": 1.7779237844940867,
|
| 175 |
-
"grad_norm": 1.625,
|
| 176 |
-
"learning_rate": 8.263888888888889e-05,
|
| 177 |
-
"loss": 0.870454978942871,
|
| 178 |
-
"mean_token_accuracy": 0.8074543043971062,
|
| 179 |
-
"num_tokens": 65643.0,
|
| 180 |
-
"step": 170
|
| 181 |
-
},
|
| 182 |
-
{
|
| 183 |
-
"entropy": 0.8021717140451073,
|
| 184 |
-
"epoch": 1.8830486202365309,
|
| 185 |
-
"grad_norm": 2.109375,
|
| 186 |
-
"learning_rate": 7.569444444444445e-05,
|
| 187 |
-
"loss": 0.8372815132141114,
|
| 188 |
-
"mean_token_accuracy": 0.8185677900910378,
|
| 189 |
-
"num_tokens": 69253.0,
|
| 190 |
-
"step": 180
|
| 191 |
-
},
|
| 192 |
-
{
|
| 193 |
-
"entropy": 0.8461722563952208,
|
| 194 |
-
"epoch": 1.988173455978975,
|
| 195 |
-
"grad_norm": 1.9609375,
|
| 196 |
-
"learning_rate": 6.875e-05,
|
| 197 |
-
"loss": 0.8477604866027832,
|
| 198 |
-
"mean_token_accuracy": 0.821676817536354,
|
| 199 |
-
"num_tokens": 73086.0,
|
| 200 |
-
"step": 190
|
| 201 |
-
},
|
| 202 |
-
{
|
| 203 |
-
"entropy": 0.6834010038882086,
|
| 204 |
-
"epoch": 2.084099868593955,
|
| 205 |
-
"grad_norm": 1.640625,
|
| 206 |
-
"learning_rate": 6.180555555555556e-05,
|
| 207 |
-
"loss": 0.5151080131530762,
|
| 208 |
-
"mean_token_accuracy": 0.8863431843992782,
|
| 209 |
-
"num_tokens": 76490.0,
|
| 210 |
-
"step": 200
|
| 211 |
-
},
|
| 212 |
-
{
|
| 213 |
-
"entropy": 0.5644423710182309,
|
| 214 |
-
"epoch": 2.1892247043363993,
|
| 215 |
-
"grad_norm": 2.4375,
|
| 216 |
-
"learning_rate": 5.486111111111112e-05,
|
| 217 |
-
"loss": 0.523468017578125,
|
| 218 |
-
"mean_token_accuracy": 0.8785075314342976,
|
| 219 |
-
"num_tokens": 80430.0,
|
| 220 |
-
"step": 210
|
| 221 |
-
},
|
| 222 |
-
{
|
| 223 |
-
"entropy": 0.5120254509150982,
|
| 224 |
-
"epoch": 2.2943495400788434,
|
| 225 |
-
"grad_norm": 1.6796875,
|
| 226 |
-
"learning_rate": 4.791666666666667e-05,
|
| 227 |
-
"loss": 0.43973474502563475,
|
| 228 |
-
"mean_token_accuracy": 0.900006202608347,
|
| 229 |
-
"num_tokens": 84261.0,
|
| 230 |
-
"step": 220
|
| 231 |
-
},
|
| 232 |
-
{
|
| 233 |
-
"entropy": 0.6139889739453792,
|
| 234 |
-
"epoch": 2.3994743758212875,
|
| 235 |
-
"grad_norm": 2.03125,
|
| 236 |
-
"learning_rate": 4.0972222222222225e-05,
|
| 237 |
-
"loss": 0.49155173301696775,
|
| 238 |
-
"mean_token_accuracy": 0.8851348020136356,
|
| 239 |
-
"num_tokens": 88367.0,
|
| 240 |
-
"step": 230
|
| 241 |
-
},
|
| 242 |
-
{
|
| 243 |
-
"entropy": 0.548260616324842,
|
| 244 |
-
"epoch": 2.5045992115637317,
|
| 245 |
-
"grad_norm": 2.109375,
|
| 246 |
-
"learning_rate": 3.402777777777778e-05,
|
| 247 |
-
"loss": 0.45668373107910154,
|
| 248 |
-
"mean_token_accuracy": 0.8958614394068718,
|
| 249 |
-
"num_tokens": 92116.0,
|
| 250 |
-
"step": 240
|
| 251 |
-
},
|
| 252 |
-
{
|
| 253 |
-
"entropy": 0.524461186490953,
|
| 254 |
-
"epoch": 2.6097240473061762,
|
| 255 |
-
"grad_norm": 2.25,
|
| 256 |
-
"learning_rate": 2.7083333333333332e-05,
|
| 257 |
-
"loss": 0.4536457538604736,
|
| 258 |
-
"mean_token_accuracy": 0.8967262022197247,
|
| 259 |
-
"num_tokens": 96008.0,
|
| 260 |
-
"step": 250
|
| 261 |
-
},
|
| 262 |
-
{
|
| 263 |
-
"entropy": 0.5277848264202476,
|
| 264 |
-
"epoch": 2.7148488830486204,
|
| 265 |
-
"grad_norm": 2.625,
|
| 266 |
-
"learning_rate": 2.013888888888889e-05,
|
| 267 |
-
"loss": 0.4624601364135742,
|
| 268 |
-
"mean_token_accuracy": 0.8950574725866318,
|
| 269 |
-
"num_tokens": 99859.0,
|
| 270 |
-
"step": 260
|
| 271 |
-
},
|
| 272 |
-
{
|
| 273 |
-
"entropy": 0.5569793220609427,
|
| 274 |
-
"epoch": 2.8199737187910645,
|
| 275 |
-
"grad_norm": 2.078125,
|
| 276 |
-
"learning_rate": 1.3194444444444446e-05,
|
| 277 |
-
"loss": 0.4798299312591553,
|
| 278 |
-
"mean_token_accuracy": 0.8920079082250595,
|
| 279 |
-
"num_tokens": 103783.0,
|
| 280 |
-
"step": 270
|
| 281 |
-
},
|
| 282 |
-
{
|
| 283 |
-
"entropy": 0.5342973008751869,
|
| 284 |
-
"epoch": 2.9250985545335086,
|
| 285 |
-
"grad_norm": 1.96875,
|
| 286 |
-
"learning_rate": 6.25e-06,
|
| 287 |
-
"loss": 0.44893660545349123,
|
| 288 |
-
"mean_token_accuracy": 0.8974449247121811,
|
| 289 |
-
"num_tokens": 107478.0,
|
| 290 |
-
"step": 280
|
| 291 |
-
}
|
| 292 |
-
],
|
| 293 |
-
"logging_steps": 10,
|
| 294 |
-
"max_steps": 288,
|
| 295 |
-
"num_input_tokens_seen": 0,
|
| 296 |
-
"num_train_epochs": 3,
|
| 297 |
-
"save_steps": 500,
|
| 298 |
-
"stateful_callbacks": {
|
| 299 |
-
"TrainerControl": {
|
| 300 |
-
"args": {
|
| 301 |
-
"should_epoch_stop": false,
|
| 302 |
-
"should_evaluate": false,
|
| 303 |
-
"should_log": false,
|
| 304 |
-
"should_save": true,
|
| 305 |
-
"should_training_stop": true
|
| 306 |
-
},
|
| 307 |
-
"attributes": {}
|
| 308 |
-
}
|
| 309 |
-
},
|
| 310 |
-
"total_flos": 5276159937146880.0,
|
| 311 |
-
"train_batch_size": 1,
|
| 312 |
-
"trial_name": null,
|
| 313 |
-
"trial_params": null
|
| 314 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-288/training_args.bin
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:80c77319107d515ff120e1a03ba8bd1c939446a417590eaef8b1b3111fab5416
|
| 3 |
-
size 5777
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-96/README.md
DELETED
|
@@ -1,209 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
base_model: Qwen/Qwen3.5-9B
|
| 3 |
-
library_name: peft
|
| 4 |
-
pipeline_tag: text-generation
|
| 5 |
-
tags:
|
| 6 |
-
- base_model:adapter:Qwen/Qwen3.5-9B
|
| 7 |
-
- lora
|
| 8 |
-
- sft
|
| 9 |
-
- transformers
|
| 10 |
-
- trl
|
| 11 |
-
---
|
| 12 |
-
|
| 13 |
-
# Model Card for Model ID
|
| 14 |
-
|
| 15 |
-
<!-- Provide a quick summary of what the model is/does. -->
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
## Model Details
|
| 20 |
-
|
| 21 |
-
### Model Description
|
| 22 |
-
|
| 23 |
-
<!-- Provide a longer summary of what this model is. -->
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
- **Developed by:** [More Information Needed]
|
| 28 |
-
- **Funded by [optional]:** [More Information Needed]
|
| 29 |
-
- **Shared by [optional]:** [More Information Needed]
|
| 30 |
-
- **Model type:** [More Information Needed]
|
| 31 |
-
- **Language(s) (NLP):** [More Information Needed]
|
| 32 |
-
- **License:** [More Information Needed]
|
| 33 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
| 34 |
-
|
| 35 |
-
### Model Sources [optional]
|
| 36 |
-
|
| 37 |
-
<!-- Provide the basic links for the model. -->
|
| 38 |
-
|
| 39 |
-
- **Repository:** [More Information Needed]
|
| 40 |
-
- **Paper [optional]:** [More Information Needed]
|
| 41 |
-
- **Demo [optional]:** [More Information Needed]
|
| 42 |
-
|
| 43 |
-
## Uses
|
| 44 |
-
|
| 45 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 46 |
-
|
| 47 |
-
### Direct Use
|
| 48 |
-
|
| 49 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 50 |
-
|
| 51 |
-
[More Information Needed]
|
| 52 |
-
|
| 53 |
-
### Downstream Use [optional]
|
| 54 |
-
|
| 55 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 56 |
-
|
| 57 |
-
[More Information Needed]
|
| 58 |
-
|
| 59 |
-
### Out-of-Scope Use
|
| 60 |
-
|
| 61 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 62 |
-
|
| 63 |
-
[More Information Needed]
|
| 64 |
-
|
| 65 |
-
## Bias, Risks, and Limitations
|
| 66 |
-
|
| 67 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 68 |
-
|
| 69 |
-
[More Information Needed]
|
| 70 |
-
|
| 71 |
-
### Recommendations
|
| 72 |
-
|
| 73 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 74 |
-
|
| 75 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 76 |
-
|
| 77 |
-
## How to Get Started with the Model
|
| 78 |
-
|
| 79 |
-
Use the code below to get started with the model.
|
| 80 |
-
|
| 81 |
-
[More Information Needed]
|
| 82 |
-
|
| 83 |
-
## Training Details
|
| 84 |
-
|
| 85 |
-
### Training Data
|
| 86 |
-
|
| 87 |
-
<!-- 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. -->
|
| 88 |
-
|
| 89 |
-
[More Information Needed]
|
| 90 |
-
|
| 91 |
-
### Training Procedure
|
| 92 |
-
|
| 93 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 94 |
-
|
| 95 |
-
#### Preprocessing [optional]
|
| 96 |
-
|
| 97 |
-
[More Information Needed]
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
#### Training Hyperparameters
|
| 101 |
-
|
| 102 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 103 |
-
|
| 104 |
-
#### Speeds, Sizes, Times [optional]
|
| 105 |
-
|
| 106 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 107 |
-
|
| 108 |
-
[More Information Needed]
|
| 109 |
-
|
| 110 |
-
## Evaluation
|
| 111 |
-
|
| 112 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 113 |
-
|
| 114 |
-
### Testing Data, Factors & Metrics
|
| 115 |
-
|
| 116 |
-
#### Testing Data
|
| 117 |
-
|
| 118 |
-
<!-- This should link to a Dataset Card if possible. -->
|
| 119 |
-
|
| 120 |
-
[More Information Needed]
|
| 121 |
-
|
| 122 |
-
#### Factors
|
| 123 |
-
|
| 124 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 125 |
-
|
| 126 |
-
[More Information Needed]
|
| 127 |
-
|
| 128 |
-
#### Metrics
|
| 129 |
-
|
| 130 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 131 |
-
|
| 132 |
-
[More Information Needed]
|
| 133 |
-
|
| 134 |
-
### Results
|
| 135 |
-
|
| 136 |
-
[More Information Needed]
|
| 137 |
-
|
| 138 |
-
#### Summary
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
## Model Examination [optional]
|
| 143 |
-
|
| 144 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 145 |
-
|
| 146 |
-
[More Information Needed]
|
| 147 |
-
|
| 148 |
-
## Environmental Impact
|
| 149 |
-
|
| 150 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 151 |
-
|
| 152 |
-
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).
|
| 153 |
-
|
| 154 |
-
- **Hardware Type:** [More Information Needed]
|
| 155 |
-
- **Hours used:** [More Information Needed]
|
| 156 |
-
- **Cloud Provider:** [More Information Needed]
|
| 157 |
-
- **Compute Region:** [More Information Needed]
|
| 158 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 159 |
-
|
| 160 |
-
## Technical Specifications [optional]
|
| 161 |
-
|
| 162 |
-
### Model Architecture and Objective
|
| 163 |
-
|
| 164 |
-
[More Information Needed]
|
| 165 |
-
|
| 166 |
-
### Compute Infrastructure
|
| 167 |
-
|
| 168 |
-
[More Information Needed]
|
| 169 |
-
|
| 170 |
-
#### Hardware
|
| 171 |
-
|
| 172 |
-
[More Information Needed]
|
| 173 |
-
|
| 174 |
-
#### Software
|
| 175 |
-
|
| 176 |
-
[More Information Needed]
|
| 177 |
-
|
| 178 |
-
## Citation [optional]
|
| 179 |
-
|
| 180 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 181 |
-
|
| 182 |
-
**BibTeX:**
|
| 183 |
-
|
| 184 |
-
[More Information Needed]
|
| 185 |
-
|
| 186 |
-
**APA:**
|
| 187 |
-
|
| 188 |
-
[More Information Needed]
|
| 189 |
-
|
| 190 |
-
## Glossary [optional]
|
| 191 |
-
|
| 192 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 193 |
-
|
| 194 |
-
[More Information Needed]
|
| 195 |
-
|
| 196 |
-
## More Information [optional]
|
| 197 |
-
|
| 198 |
-
[More Information Needed]
|
| 199 |
-
|
| 200 |
-
## Model Card Authors [optional]
|
| 201 |
-
|
| 202 |
-
[More Information Needed]
|
| 203 |
-
|
| 204 |
-
## Model Card Contact
|
| 205 |
-
|
| 206 |
-
[More Information Needed]
|
| 207 |
-
### Framework versions
|
| 208 |
-
|
| 209 |
-
- PEFT 0.19.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-96/adapter_config.json
DELETED
|
@@ -1,53 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"alora_invocation_tokens": null,
|
| 3 |
-
"alpha_pattern": {},
|
| 4 |
-
"arrow_config": null,
|
| 5 |
-
"auto_mapping": null,
|
| 6 |
-
"base_model_name_or_path": "Qwen/Qwen3.5-9B",
|
| 7 |
-
"bias": "none",
|
| 8 |
-
"corda_config": null,
|
| 9 |
-
"ensure_weight_tying": false,
|
| 10 |
-
"eva_config": null,
|
| 11 |
-
"exclude_modules": null,
|
| 12 |
-
"fan_in_fan_out": false,
|
| 13 |
-
"inference_mode": true,
|
| 14 |
-
"init_lora_weights": true,
|
| 15 |
-
"layer_replication": null,
|
| 16 |
-
"layers_pattern": null,
|
| 17 |
-
"layers_to_transform": null,
|
| 18 |
-
"loftq_config": {},
|
| 19 |
-
"lora_alpha": 32,
|
| 20 |
-
"lora_bias": false,
|
| 21 |
-
"lora_dropout": 0.05,
|
| 22 |
-
"lora_ga_config": null,
|
| 23 |
-
"megatron_config": null,
|
| 24 |
-
"megatron_core": "megatron.core",
|
| 25 |
-
"modules_to_save": null,
|
| 26 |
-
"peft_type": "LORA",
|
| 27 |
-
"peft_version": "0.19.1",
|
| 28 |
-
"qalora_group_size": 16,
|
| 29 |
-
"r": 16,
|
| 30 |
-
"rank_pattern": {},
|
| 31 |
-
"revision": null,
|
| 32 |
-
"target_modules": [
|
| 33 |
-
"up_proj",
|
| 34 |
-
"k_proj",
|
| 35 |
-
"o_proj",
|
| 36 |
-
"v_proj",
|
| 37 |
-
"out_proj",
|
| 38 |
-
"in_proj_qkv",
|
| 39 |
-
"in_proj_z",
|
| 40 |
-
"in_proj_b",
|
| 41 |
-
"down_proj",
|
| 42 |
-
"q_proj",
|
| 43 |
-
"gate_proj",
|
| 44 |
-
"in_proj_a"
|
| 45 |
-
],
|
| 46 |
-
"target_parameters": null,
|
| 47 |
-
"task_type": "CAUSAL_LM",
|
| 48 |
-
"trainable_token_indices": null,
|
| 49 |
-
"use_bdlora": null,
|
| 50 |
-
"use_dora": false,
|
| 51 |
-
"use_qalora": false,
|
| 52 |
-
"use_rslora": false
|
| 53 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-96/adapter_model.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f03e779a43975dcdd86cdb41004659692e771ca7880c0c8404b714c658c6af0e
|
| 3 |
-
size 86624424
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-96/chat_template.jinja
DELETED
|
@@ -1,154 +0,0 @@
|
|
| 1 |
-
{%- set image_count = namespace(value=0) %}
|
| 2 |
-
{%- set video_count = namespace(value=0) %}
|
| 3 |
-
{%- macro render_content(content, do_vision_count, is_system_content=false) %}
|
| 4 |
-
{%- if content is string %}
|
| 5 |
-
{{- content }}
|
| 6 |
-
{%- elif content is iterable and content is not mapping %}
|
| 7 |
-
{%- for item in content %}
|
| 8 |
-
{%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
|
| 9 |
-
{%- if is_system_content %}
|
| 10 |
-
{{- raise_exception('System message cannot contain images.') }}
|
| 11 |
-
{%- endif %}
|
| 12 |
-
{%- if do_vision_count %}
|
| 13 |
-
{%- set image_count.value = image_count.value + 1 %}
|
| 14 |
-
{%- endif %}
|
| 15 |
-
{%- if add_vision_id %}
|
| 16 |
-
{{- 'Picture ' ~ image_count.value ~ ': ' }}
|
| 17 |
-
{%- endif %}
|
| 18 |
-
{{- '<|vision_start|><|image_pad|><|vision_end|>' }}
|
| 19 |
-
{%- elif 'video' in item or item.type == 'video' %}
|
| 20 |
-
{%- if is_system_content %}
|
| 21 |
-
{{- raise_exception('System message cannot contain videos.') }}
|
| 22 |
-
{%- endif %}
|
| 23 |
-
{%- if do_vision_count %}
|
| 24 |
-
{%- set video_count.value = video_count.value + 1 %}
|
| 25 |
-
{%- endif %}
|
| 26 |
-
{%- if add_vision_id %}
|
| 27 |
-
{{- 'Video ' ~ video_count.value ~ ': ' }}
|
| 28 |
-
{%- endif %}
|
| 29 |
-
{{- '<|vision_start|><|video_pad|><|vision_end|>' }}
|
| 30 |
-
{%- elif 'text' in item %}
|
| 31 |
-
{{- item.text }}
|
| 32 |
-
{%- else %}
|
| 33 |
-
{{- raise_exception('Unexpected item type in content.') }}
|
| 34 |
-
{%- endif %}
|
| 35 |
-
{%- endfor %}
|
| 36 |
-
{%- elif content is none or content is undefined %}
|
| 37 |
-
{{- '' }}
|
| 38 |
-
{%- else %}
|
| 39 |
-
{{- raise_exception('Unexpected content type.') }}
|
| 40 |
-
{%- endif %}
|
| 41 |
-
{%- endmacro %}
|
| 42 |
-
{%- if not messages %}
|
| 43 |
-
{{- raise_exception('No messages provided.') }}
|
| 44 |
-
{%- endif %}
|
| 45 |
-
{%- if tools and tools is iterable and tools is not mapping %}
|
| 46 |
-
{{- '<|im_start|>system\n' }}
|
| 47 |
-
{{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
|
| 48 |
-
{%- for tool in tools %}
|
| 49 |
-
{{- "\n" }}
|
| 50 |
-
{{- tool | tojson }}
|
| 51 |
-
{%- endfor %}
|
| 52 |
-
{{- "\n</tools>" }}
|
| 53 |
-
{{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
|
| 54 |
-
{%- if messages[0].role == 'system' %}
|
| 55 |
-
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 56 |
-
{%- if content %}
|
| 57 |
-
{{- '\n\n' + content }}
|
| 58 |
-
{%- endif %}
|
| 59 |
-
{%- endif %}
|
| 60 |
-
{{- '<|im_end|>\n' }}
|
| 61 |
-
{%- else %}
|
| 62 |
-
{%- if messages[0].role == 'system' %}
|
| 63 |
-
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 64 |
-
{{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
|
| 65 |
-
{%- endif %}
|
| 66 |
-
{%- endif %}
|
| 67 |
-
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 68 |
-
{%- for message in messages[::-1] %}
|
| 69 |
-
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 70 |
-
{%- if ns.multi_step_tool and message.role == "user" %}
|
| 71 |
-
{%- set content = render_content(message.content, false)|trim %}
|
| 72 |
-
{%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
|
| 73 |
-
{%- set ns.multi_step_tool = false %}
|
| 74 |
-
{%- set ns.last_query_index = index %}
|
| 75 |
-
{%- endif %}
|
| 76 |
-
{%- endif %}
|
| 77 |
-
{%- endfor %}
|
| 78 |
-
{%- if ns.multi_step_tool %}
|
| 79 |
-
{{- raise_exception('No user query found in messages.') }}
|
| 80 |
-
{%- endif %}
|
| 81 |
-
{%- for message in messages %}
|
| 82 |
-
{%- set content = render_content(message.content, true)|trim %}
|
| 83 |
-
{%- if message.role == "system" %}
|
| 84 |
-
{%- if not loop.first %}
|
| 85 |
-
{{- raise_exception('System message must be at the beginning.') }}
|
| 86 |
-
{%- endif %}
|
| 87 |
-
{%- elif message.role == "user" %}
|
| 88 |
-
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 89 |
-
{%- elif message.role == "assistant" %}
|
| 90 |
-
{%- set reasoning_content = '' %}
|
| 91 |
-
{%- if message.reasoning_content is string %}
|
| 92 |
-
{%- set reasoning_content = message.reasoning_content %}
|
| 93 |
-
{%- else %}
|
| 94 |
-
{%- if '</think>' in content %}
|
| 95 |
-
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 96 |
-
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 97 |
-
{%- endif %}
|
| 98 |
-
{%- endif %}
|
| 99 |
-
{%- set reasoning_content = reasoning_content|trim %}
|
| 100 |
-
{%- if loop.index0 > ns.last_query_index %}
|
| 101 |
-
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
|
| 102 |
-
{%- else %}
|
| 103 |
-
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 104 |
-
{%- endif %}
|
| 105 |
-
{%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
|
| 106 |
-
{%- for tool_call in message.tool_calls %}
|
| 107 |
-
{%- if tool_call.function is defined %}
|
| 108 |
-
{%- set tool_call = tool_call.function %}
|
| 109 |
-
{%- endif %}
|
| 110 |
-
{%- if loop.first %}
|
| 111 |
-
{%- if content|trim %}
|
| 112 |
-
{{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 113 |
-
{%- else %}
|
| 114 |
-
{{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 115 |
-
{%- endif %}
|
| 116 |
-
{%- else %}
|
| 117 |
-
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 118 |
-
{%- endif %}
|
| 119 |
-
{%- if tool_call.arguments is defined %}
|
| 120 |
-
{%- for args_name, args_value in tool_call.arguments|items %}
|
| 121 |
-
{{- '<parameter=' + args_name + '>\n' }}
|
| 122 |
-
{%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
|
| 123 |
-
{{- args_value }}
|
| 124 |
-
{{- '\n</parameter>\n' }}
|
| 125 |
-
{%- endfor %}
|
| 126 |
-
{%- endif %}
|
| 127 |
-
{{- '</function>\n</tool_call>' }}
|
| 128 |
-
{%- endfor %}
|
| 129 |
-
{%- endif %}
|
| 130 |
-
{{- '<|im_end|>\n' }}
|
| 131 |
-
{%- elif message.role == "tool" %}
|
| 132 |
-
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 133 |
-
{{- '<|im_start|>user' }}
|
| 134 |
-
{%- endif %}
|
| 135 |
-
{{- '\n<tool_response>\n' }}
|
| 136 |
-
{{- content }}
|
| 137 |
-
{{- '\n</tool_response>' }}
|
| 138 |
-
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 139 |
-
{{- '<|im_end|>\n' }}
|
| 140 |
-
{%- elif loop.last %}
|
| 141 |
-
{{- '<|im_end|>\n' }}
|
| 142 |
-
{%- endif %}
|
| 143 |
-
{%- else %}
|
| 144 |
-
{{- raise_exception('Unexpected message role.') }}
|
| 145 |
-
{%- endif %}
|
| 146 |
-
{%- endfor %}
|
| 147 |
-
{%- if add_generation_prompt %}
|
| 148 |
-
{{- '<|im_start|>assistant\n' }}
|
| 149 |
-
{%- if enable_thinking is defined and enable_thinking is false %}
|
| 150 |
-
{{- '<think>\n\n</think>\n\n' }}
|
| 151 |
-
{%- else %}
|
| 152 |
-
{{- '<think>\n' }}
|
| 153 |
-
{%- endif %}
|
| 154 |
-
{%- endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-96/optimizer.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d20760b2006a548a0307ad7cd2792b4ac6b093ec76f9b640f29a2d9d8b4faffd
|
| 3 |
-
size 173539507
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-96/rng_state.pth
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2fc05a5af5e55dd07491a9c13f98e77a3b89980687c94a380940cea72c438db1
|
| 3 |
-
size 14645
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-96/scheduler.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:26175424728d92cc8b818d24add62cebe17e0a76e269611dcabb93101acd685b
|
| 3 |
-
size 1465
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-96/tokenizer.json
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
|
| 3 |
-
size 19989325
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-96/tokenizer_config.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"add_prefix_space": false,
|
| 3 |
-
"audio_bos_token": "<|audio_start|>",
|
| 4 |
-
"audio_eos_token": "<|audio_end|>",
|
| 5 |
-
"audio_token": "<|audio_pad|>",
|
| 6 |
-
"backend": "tokenizers",
|
| 7 |
-
"bos_token": null,
|
| 8 |
-
"clean_up_tokenization_spaces": false,
|
| 9 |
-
"eos_token": "<|im_end|>",
|
| 10 |
-
"errors": "replace",
|
| 11 |
-
"image_token": "<|image_pad|>",
|
| 12 |
-
"is_local": false,
|
| 13 |
-
"local_files_only": false,
|
| 14 |
-
"model_max_length": 262144,
|
| 15 |
-
"model_specific_special_tokens": {
|
| 16 |
-
"audio_bos_token": "<|audio_start|>",
|
| 17 |
-
"audio_eos_token": "<|audio_end|>",
|
| 18 |
-
"audio_token": "<|audio_pad|>",
|
| 19 |
-
"image_token": "<|image_pad|>",
|
| 20 |
-
"video_token": "<|video_pad|>",
|
| 21 |
-
"vision_bos_token": "<|vision_start|>",
|
| 22 |
-
"vision_eos_token": "<|vision_end|>"
|
| 23 |
-
},
|
| 24 |
-
"pad_token": "<|endoftext|>",
|
| 25 |
-
"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
|
| 26 |
-
"split_special_tokens": false,
|
| 27 |
-
"tokenizer_class": "Qwen2Tokenizer",
|
| 28 |
-
"unk_token": null,
|
| 29 |
-
"video_token": "<|video_pad|>",
|
| 30 |
-
"vision_bos_token": "<|vision_start|>",
|
| 31 |
-
"vision_eos_token": "<|vision_end|>"
|
| 32 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-96/trainer_state.json
DELETED
|
@@ -1,124 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"best_global_step": null,
|
| 3 |
-
"best_metric": null,
|
| 4 |
-
"best_model_checkpoint": null,
|
| 5 |
-
"epoch": 1.0,
|
| 6 |
-
"eval_steps": 500,
|
| 7 |
-
"global_step": 96,
|
| 8 |
-
"is_hyper_param_search": false,
|
| 9 |
-
"is_local_process_zero": true,
|
| 10 |
-
"is_world_process_zero": true,
|
| 11 |
-
"log_history": [
|
| 12 |
-
{
|
| 13 |
-
"entropy": 1.5058588825166226,
|
| 14 |
-
"epoch": 0.10512483574244415,
|
| 15 |
-
"grad_norm": 1.796875,
|
| 16 |
-
"learning_rate": 0.00019375000000000002,
|
| 17 |
-
"loss": 1.7537630081176758,
|
| 18 |
-
"mean_token_accuracy": 0.695327178388834,
|
| 19 |
-
"num_tokens": 3808.0,
|
| 20 |
-
"step": 10
|
| 21 |
-
},
|
| 22 |
-
{
|
| 23 |
-
"entropy": 1.316319726407528,
|
| 24 |
-
"epoch": 0.2102496714848883,
|
| 25 |
-
"grad_norm": 1.390625,
|
| 26 |
-
"learning_rate": 0.00018680555555555556,
|
| 27 |
-
"loss": 1.4752570152282716,
|
| 28 |
-
"mean_token_accuracy": 0.7272207736968994,
|
| 29 |
-
"num_tokens": 7522.0,
|
| 30 |
-
"step": 20
|
| 31 |
-
},
|
| 32 |
-
{
|
| 33 |
-
"entropy": 1.3150447681546211,
|
| 34 |
-
"epoch": 0.31537450722733246,
|
| 35 |
-
"grad_norm": 1.3984375,
|
| 36 |
-
"learning_rate": 0.00017986111111111113,
|
| 37 |
-
"loss": 1.404660415649414,
|
| 38 |
-
"mean_token_accuracy": 0.7220224224030971,
|
| 39 |
-
"num_tokens": 11407.0,
|
| 40 |
-
"step": 30
|
| 41 |
-
},
|
| 42 |
-
{
|
| 43 |
-
"entropy": 1.225712712854147,
|
| 44 |
-
"epoch": 0.4204993429697766,
|
| 45 |
-
"grad_norm": 1.140625,
|
| 46 |
-
"learning_rate": 0.00017291666666666668,
|
| 47 |
-
"loss": 1.3144322395324708,
|
| 48 |
-
"mean_token_accuracy": 0.7446377977728844,
|
| 49 |
-
"num_tokens": 15194.0,
|
| 50 |
-
"step": 40
|
| 51 |
-
},
|
| 52 |
-
{
|
| 53 |
-
"entropy": 1.3306574214249849,
|
| 54 |
-
"epoch": 0.5256241787122208,
|
| 55 |
-
"grad_norm": 1.390625,
|
| 56 |
-
"learning_rate": 0.00016597222222222225,
|
| 57 |
-
"loss": 1.442171287536621,
|
| 58 |
-
"mean_token_accuracy": 0.7188469670712948,
|
| 59 |
-
"num_tokens": 19221.0,
|
| 60 |
-
"step": 50
|
| 61 |
-
},
|
| 62 |
-
{
|
| 63 |
-
"entropy": 1.2213972710072993,
|
| 64 |
-
"epoch": 0.6307490144546649,
|
| 65 |
-
"grad_norm": 1.25,
|
| 66 |
-
"learning_rate": 0.00015902777777777776,
|
| 67 |
-
"loss": 1.3555883407592773,
|
| 68 |
-
"mean_token_accuracy": 0.7323203787207604,
|
| 69 |
-
"num_tokens": 23135.0,
|
| 70 |
-
"step": 60
|
| 71 |
-
},
|
| 72 |
-
{
|
| 73 |
-
"entropy": 1.236185147613287,
|
| 74 |
-
"epoch": 0.735873850197109,
|
| 75 |
-
"grad_norm": 1.2890625,
|
| 76 |
-
"learning_rate": 0.00015208333333333333,
|
| 77 |
-
"loss": 1.3239954948425292,
|
| 78 |
-
"mean_token_accuracy": 0.7413535274565219,
|
| 79 |
-
"num_tokens": 26938.0,
|
| 80 |
-
"step": 70
|
| 81 |
-
},
|
| 82 |
-
{
|
| 83 |
-
"entropy": 1.1433476515114307,
|
| 84 |
-
"epoch": 0.8409986859395532,
|
| 85 |
-
"grad_norm": 1.1875,
|
| 86 |
-
"learning_rate": 0.00014513888888888888,
|
| 87 |
-
"loss": 1.2469322204589843,
|
| 88 |
-
"mean_token_accuracy": 0.7549085400998592,
|
| 89 |
-
"num_tokens": 30527.0,
|
| 90 |
-
"step": 80
|
| 91 |
-
},
|
| 92 |
-
{
|
| 93 |
-
"entropy": 1.283092799782753,
|
| 94 |
-
"epoch": 0.9461235216819974,
|
| 95 |
-
"grad_norm": 1.21875,
|
| 96 |
-
"learning_rate": 0.00013819444444444445,
|
| 97 |
-
"loss": 1.4147074699401856,
|
| 98 |
-
"mean_token_accuracy": 0.7189013145864009,
|
| 99 |
-
"num_tokens": 34654.0,
|
| 100 |
-
"step": 90
|
| 101 |
-
}
|
| 102 |
-
],
|
| 103 |
-
"logging_steps": 10,
|
| 104 |
-
"max_steps": 288,
|
| 105 |
-
"num_input_tokens_seen": 0,
|
| 106 |
-
"num_train_epochs": 3,
|
| 107 |
-
"save_steps": 500,
|
| 108 |
-
"stateful_callbacks": {
|
| 109 |
-
"TrainerControl": {
|
| 110 |
-
"args": {
|
| 111 |
-
"should_epoch_stop": false,
|
| 112 |
-
"should_evaluate": false,
|
| 113 |
-
"should_log": false,
|
| 114 |
-
"should_save": true,
|
| 115 |
-
"should_training_stop": false
|
| 116 |
-
},
|
| 117 |
-
"attributes": {}
|
| 118 |
-
}
|
| 119 |
-
},
|
| 120 |
-
"total_flos": 1758719979048960.0,
|
| 121 |
-
"train_batch_size": 1,
|
| 122 |
-
"trial_name": null,
|
| 123 |
-
"trial_params": null
|
| 124 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/checkpoints/checkpoint-96/training_args.bin
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:80c77319107d515ff120e1a03ba8bd1c939446a417590eaef8b1b3111fab5416
|
| 3 |
-
size 5777
|
|
|
|
|
|
|
|
|
|
|
|
finetune/style_checkpoint/checkpoint-132/README.md
DELETED
|
@@ -1,209 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
base_model: C:\Users\Ifmanzhang\Documents\GitHub\RepE\merged_model
|
| 3 |
-
library_name: peft
|
| 4 |
-
pipeline_tag: text-generation
|
| 5 |
-
tags:
|
| 6 |
-
- base_model:adapter:C:\Users\Ifmanzhang\Documents\GitHub\RepE\merged_model
|
| 7 |
-
- lora
|
| 8 |
-
- sft
|
| 9 |
-
- transformers
|
| 10 |
-
- trl
|
| 11 |
-
---
|
| 12 |
-
|
| 13 |
-
# Model Card for Model ID
|
| 14 |
-
|
| 15 |
-
<!-- Provide a quick summary of what the model is/does. -->
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
## Model Details
|
| 20 |
-
|
| 21 |
-
### Model Description
|
| 22 |
-
|
| 23 |
-
<!-- Provide a longer summary of what this model is. -->
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
- **Developed by:** [More Information Needed]
|
| 28 |
-
- **Funded by [optional]:** [More Information Needed]
|
| 29 |
-
- **Shared by [optional]:** [More Information Needed]
|
| 30 |
-
- **Model type:** [More Information Needed]
|
| 31 |
-
- **Language(s) (NLP):** [More Information Needed]
|
| 32 |
-
- **License:** [More Information Needed]
|
| 33 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
| 34 |
-
|
| 35 |
-
### Model Sources [optional]
|
| 36 |
-
|
| 37 |
-
<!-- Provide the basic links for the model. -->
|
| 38 |
-
|
| 39 |
-
- **Repository:** [More Information Needed]
|
| 40 |
-
- **Paper [optional]:** [More Information Needed]
|
| 41 |
-
- **Demo [optional]:** [More Information Needed]
|
| 42 |
-
|
| 43 |
-
## Uses
|
| 44 |
-
|
| 45 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 46 |
-
|
| 47 |
-
### Direct Use
|
| 48 |
-
|
| 49 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 50 |
-
|
| 51 |
-
[More Information Needed]
|
| 52 |
-
|
| 53 |
-
### Downstream Use [optional]
|
| 54 |
-
|
| 55 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 56 |
-
|
| 57 |
-
[More Information Needed]
|
| 58 |
-
|
| 59 |
-
### Out-of-Scope Use
|
| 60 |
-
|
| 61 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 62 |
-
|
| 63 |
-
[More Information Needed]
|
| 64 |
-
|
| 65 |
-
## Bias, Risks, and Limitations
|
| 66 |
-
|
| 67 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 68 |
-
|
| 69 |
-
[More Information Needed]
|
| 70 |
-
|
| 71 |
-
### Recommendations
|
| 72 |
-
|
| 73 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 74 |
-
|
| 75 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 76 |
-
|
| 77 |
-
## How to Get Started with the Model
|
| 78 |
-
|
| 79 |
-
Use the code below to get started with the model.
|
| 80 |
-
|
| 81 |
-
[More Information Needed]
|
| 82 |
-
|
| 83 |
-
## Training Details
|
| 84 |
-
|
| 85 |
-
### Training Data
|
| 86 |
-
|
| 87 |
-
<!-- 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. -->
|
| 88 |
-
|
| 89 |
-
[More Information Needed]
|
| 90 |
-
|
| 91 |
-
### Training Procedure
|
| 92 |
-
|
| 93 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 94 |
-
|
| 95 |
-
#### Preprocessing [optional]
|
| 96 |
-
|
| 97 |
-
[More Information Needed]
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
#### Training Hyperparameters
|
| 101 |
-
|
| 102 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 103 |
-
|
| 104 |
-
#### Speeds, Sizes, Times [optional]
|
| 105 |
-
|
| 106 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 107 |
-
|
| 108 |
-
[More Information Needed]
|
| 109 |
-
|
| 110 |
-
## Evaluation
|
| 111 |
-
|
| 112 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 113 |
-
|
| 114 |
-
### Testing Data, Factors & Metrics
|
| 115 |
-
|
| 116 |
-
#### Testing Data
|
| 117 |
-
|
| 118 |
-
<!-- This should link to a Dataset Card if possible. -->
|
| 119 |
-
|
| 120 |
-
[More Information Needed]
|
| 121 |
-
|
| 122 |
-
#### Factors
|
| 123 |
-
|
| 124 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 125 |
-
|
| 126 |
-
[More Information Needed]
|
| 127 |
-
|
| 128 |
-
#### Metrics
|
| 129 |
-
|
| 130 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 131 |
-
|
| 132 |
-
[More Information Needed]
|
| 133 |
-
|
| 134 |
-
### Results
|
| 135 |
-
|
| 136 |
-
[More Information Needed]
|
| 137 |
-
|
| 138 |
-
#### Summary
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
## Model Examination [optional]
|
| 143 |
-
|
| 144 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 145 |
-
|
| 146 |
-
[More Information Needed]
|
| 147 |
-
|
| 148 |
-
## Environmental Impact
|
| 149 |
-
|
| 150 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 151 |
-
|
| 152 |
-
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).
|
| 153 |
-
|
| 154 |
-
- **Hardware Type:** [More Information Needed]
|
| 155 |
-
- **Hours used:** [More Information Needed]
|
| 156 |
-
- **Cloud Provider:** [More Information Needed]
|
| 157 |
-
- **Compute Region:** [More Information Needed]
|
| 158 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 159 |
-
|
| 160 |
-
## Technical Specifications [optional]
|
| 161 |
-
|
| 162 |
-
### Model Architecture and Objective
|
| 163 |
-
|
| 164 |
-
[More Information Needed]
|
| 165 |
-
|
| 166 |
-
### Compute Infrastructure
|
| 167 |
-
|
| 168 |
-
[More Information Needed]
|
| 169 |
-
|
| 170 |
-
#### Hardware
|
| 171 |
-
|
| 172 |
-
[More Information Needed]
|
| 173 |
-
|
| 174 |
-
#### Software
|
| 175 |
-
|
| 176 |
-
[More Information Needed]
|
| 177 |
-
|
| 178 |
-
## Citation [optional]
|
| 179 |
-
|
| 180 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 181 |
-
|
| 182 |
-
**BibTeX:**
|
| 183 |
-
|
| 184 |
-
[More Information Needed]
|
| 185 |
-
|
| 186 |
-
**APA:**
|
| 187 |
-
|
| 188 |
-
[More Information Needed]
|
| 189 |
-
|
| 190 |
-
## Glossary [optional]
|
| 191 |
-
|
| 192 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 193 |
-
|
| 194 |
-
[More Information Needed]
|
| 195 |
-
|
| 196 |
-
## More Information [optional]
|
| 197 |
-
|
| 198 |
-
[More Information Needed]
|
| 199 |
-
|
| 200 |
-
## Model Card Authors [optional]
|
| 201 |
-
|
| 202 |
-
[More Information Needed]
|
| 203 |
-
|
| 204 |
-
## Model Card Contact
|
| 205 |
-
|
| 206 |
-
[More Information Needed]
|
| 207 |
-
### Framework versions
|
| 208 |
-
|
| 209 |
-
- PEFT 0.19.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/style_checkpoint/checkpoint-132/adapter_config.json
DELETED
|
@@ -1,53 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"alora_invocation_tokens": null,
|
| 3 |
-
"alpha_pattern": {},
|
| 4 |
-
"arrow_config": null,
|
| 5 |
-
"auto_mapping": null,
|
| 6 |
-
"base_model_name_or_path": "C:\\Users\\Ifmanzhang\\Documents\\GitHub\\RepE\\merged_model",
|
| 7 |
-
"bias": "none",
|
| 8 |
-
"corda_config": null,
|
| 9 |
-
"ensure_weight_tying": false,
|
| 10 |
-
"eva_config": null,
|
| 11 |
-
"exclude_modules": null,
|
| 12 |
-
"fan_in_fan_out": false,
|
| 13 |
-
"inference_mode": true,
|
| 14 |
-
"init_lora_weights": true,
|
| 15 |
-
"layer_replication": null,
|
| 16 |
-
"layers_pattern": null,
|
| 17 |
-
"layers_to_transform": null,
|
| 18 |
-
"loftq_config": {},
|
| 19 |
-
"lora_alpha": 32,
|
| 20 |
-
"lora_bias": false,
|
| 21 |
-
"lora_dropout": 0.05,
|
| 22 |
-
"lora_ga_config": null,
|
| 23 |
-
"megatron_config": null,
|
| 24 |
-
"megatron_core": "megatron.core",
|
| 25 |
-
"modules_to_save": null,
|
| 26 |
-
"peft_type": "LORA",
|
| 27 |
-
"peft_version": "0.19.1",
|
| 28 |
-
"qalora_group_size": 16,
|
| 29 |
-
"r": 16,
|
| 30 |
-
"rank_pattern": {},
|
| 31 |
-
"revision": null,
|
| 32 |
-
"target_modules": [
|
| 33 |
-
"in_proj_a",
|
| 34 |
-
"up_proj",
|
| 35 |
-
"in_proj_z",
|
| 36 |
-
"in_proj_qkv",
|
| 37 |
-
"down_proj",
|
| 38 |
-
"o_proj",
|
| 39 |
-
"gate_proj",
|
| 40 |
-
"out_proj",
|
| 41 |
-
"in_proj_b",
|
| 42 |
-
"v_proj",
|
| 43 |
-
"q_proj",
|
| 44 |
-
"k_proj"
|
| 45 |
-
],
|
| 46 |
-
"target_parameters": null,
|
| 47 |
-
"task_type": "CAUSAL_LM",
|
| 48 |
-
"trainable_token_indices": null,
|
| 49 |
-
"use_bdlora": null,
|
| 50 |
-
"use_dora": false,
|
| 51 |
-
"use_qalora": false,
|
| 52 |
-
"use_rslora": false
|
| 53 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/style_checkpoint/checkpoint-132/adapter_model.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e39771f0f53ca759114efb681a1ed2041a68e81133e1fd79ca47e9260feefa8b
|
| 3 |
-
size 86624424
|
|
|
|
|
|
|
|
|
|
|
|
finetune/style_checkpoint/checkpoint-132/chat_template.jinja
DELETED
|
@@ -1,154 +0,0 @@
|
|
| 1 |
-
{%- set image_count = namespace(value=0) %}
|
| 2 |
-
{%- set video_count = namespace(value=0) %}
|
| 3 |
-
{%- macro render_content(content, do_vision_count, is_system_content=false) %}
|
| 4 |
-
{%- if content is string %}
|
| 5 |
-
{{- content }}
|
| 6 |
-
{%- elif content is iterable and content is not mapping %}
|
| 7 |
-
{%- for item in content %}
|
| 8 |
-
{%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
|
| 9 |
-
{%- if is_system_content %}
|
| 10 |
-
{{- raise_exception('System message cannot contain images.') }}
|
| 11 |
-
{%- endif %}
|
| 12 |
-
{%- if do_vision_count %}
|
| 13 |
-
{%- set image_count.value = image_count.value + 1 %}
|
| 14 |
-
{%- endif %}
|
| 15 |
-
{%- if add_vision_id %}
|
| 16 |
-
{{- 'Picture ' ~ image_count.value ~ ': ' }}
|
| 17 |
-
{%- endif %}
|
| 18 |
-
{{- '<|vision_start|><|image_pad|><|vision_end|>' }}
|
| 19 |
-
{%- elif 'video' in item or item.type == 'video' %}
|
| 20 |
-
{%- if is_system_content %}
|
| 21 |
-
{{- raise_exception('System message cannot contain videos.') }}
|
| 22 |
-
{%- endif %}
|
| 23 |
-
{%- if do_vision_count %}
|
| 24 |
-
{%- set video_count.value = video_count.value + 1 %}
|
| 25 |
-
{%- endif %}
|
| 26 |
-
{%- if add_vision_id %}
|
| 27 |
-
{{- 'Video ' ~ video_count.value ~ ': ' }}
|
| 28 |
-
{%- endif %}
|
| 29 |
-
{{- '<|vision_start|><|video_pad|><|vision_end|>' }}
|
| 30 |
-
{%- elif 'text' in item %}
|
| 31 |
-
{{- item.text }}
|
| 32 |
-
{%- else %}
|
| 33 |
-
{{- raise_exception('Unexpected item type in content.') }}
|
| 34 |
-
{%- endif %}
|
| 35 |
-
{%- endfor %}
|
| 36 |
-
{%- elif content is none or content is undefined %}
|
| 37 |
-
{{- '' }}
|
| 38 |
-
{%- else %}
|
| 39 |
-
{{- raise_exception('Unexpected content type.') }}
|
| 40 |
-
{%- endif %}
|
| 41 |
-
{%- endmacro %}
|
| 42 |
-
{%- if not messages %}
|
| 43 |
-
{{- raise_exception('No messages provided.') }}
|
| 44 |
-
{%- endif %}
|
| 45 |
-
{%- if tools and tools is iterable and tools is not mapping %}
|
| 46 |
-
{{- '<|im_start|>system\n' }}
|
| 47 |
-
{{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
|
| 48 |
-
{%- for tool in tools %}
|
| 49 |
-
{{- "\n" }}
|
| 50 |
-
{{- tool | tojson }}
|
| 51 |
-
{%- endfor %}
|
| 52 |
-
{{- "\n</tools>" }}
|
| 53 |
-
{{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
|
| 54 |
-
{%- if messages[0].role == 'system' %}
|
| 55 |
-
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 56 |
-
{%- if content %}
|
| 57 |
-
{{- '\n\n' + content }}
|
| 58 |
-
{%- endif %}
|
| 59 |
-
{%- endif %}
|
| 60 |
-
{{- '<|im_end|>\n' }}
|
| 61 |
-
{%- else %}
|
| 62 |
-
{%- if messages[0].role == 'system' %}
|
| 63 |
-
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 64 |
-
{{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
|
| 65 |
-
{%- endif %}
|
| 66 |
-
{%- endif %}
|
| 67 |
-
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 68 |
-
{%- for message in messages[::-1] %}
|
| 69 |
-
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 70 |
-
{%- if ns.multi_step_tool and message.role == "user" %}
|
| 71 |
-
{%- set content = render_content(message.content, false)|trim %}
|
| 72 |
-
{%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
|
| 73 |
-
{%- set ns.multi_step_tool = false %}
|
| 74 |
-
{%- set ns.last_query_index = index %}
|
| 75 |
-
{%- endif %}
|
| 76 |
-
{%- endif %}
|
| 77 |
-
{%- endfor %}
|
| 78 |
-
{%- if ns.multi_step_tool %}
|
| 79 |
-
{{- raise_exception('No user query found in messages.') }}
|
| 80 |
-
{%- endif %}
|
| 81 |
-
{%- for message in messages %}
|
| 82 |
-
{%- set content = render_content(message.content, true)|trim %}
|
| 83 |
-
{%- if message.role == "system" %}
|
| 84 |
-
{%- if not loop.first %}
|
| 85 |
-
{{- raise_exception('System message must be at the beginning.') }}
|
| 86 |
-
{%- endif %}
|
| 87 |
-
{%- elif message.role == "user" %}
|
| 88 |
-
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 89 |
-
{%- elif message.role == "assistant" %}
|
| 90 |
-
{%- set reasoning_content = '' %}
|
| 91 |
-
{%- if message.reasoning_content is string %}
|
| 92 |
-
{%- set reasoning_content = message.reasoning_content %}
|
| 93 |
-
{%- else %}
|
| 94 |
-
{%- if '</think>' in content %}
|
| 95 |
-
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 96 |
-
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 97 |
-
{%- endif %}
|
| 98 |
-
{%- endif %}
|
| 99 |
-
{%- set reasoning_content = reasoning_content|trim %}
|
| 100 |
-
{%- if loop.index0 > ns.last_query_index %}
|
| 101 |
-
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
|
| 102 |
-
{%- else %}
|
| 103 |
-
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 104 |
-
{%- endif %}
|
| 105 |
-
{%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
|
| 106 |
-
{%- for tool_call in message.tool_calls %}
|
| 107 |
-
{%- if tool_call.function is defined %}
|
| 108 |
-
{%- set tool_call = tool_call.function %}
|
| 109 |
-
{%- endif %}
|
| 110 |
-
{%- if loop.first %}
|
| 111 |
-
{%- if content|trim %}
|
| 112 |
-
{{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 113 |
-
{%- else %}
|
| 114 |
-
{{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 115 |
-
{%- endif %}
|
| 116 |
-
{%- else %}
|
| 117 |
-
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 118 |
-
{%- endif %}
|
| 119 |
-
{%- if tool_call.arguments is defined %}
|
| 120 |
-
{%- for args_name, args_value in tool_call.arguments|items %}
|
| 121 |
-
{{- '<parameter=' + args_name + '>\n' }}
|
| 122 |
-
{%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
|
| 123 |
-
{{- args_value }}
|
| 124 |
-
{{- '\n</parameter>\n' }}
|
| 125 |
-
{%- endfor %}
|
| 126 |
-
{%- endif %}
|
| 127 |
-
{{- '</function>\n</tool_call>' }}
|
| 128 |
-
{%- endfor %}
|
| 129 |
-
{%- endif %}
|
| 130 |
-
{{- '<|im_end|>\n' }}
|
| 131 |
-
{%- elif message.role == "tool" %}
|
| 132 |
-
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 133 |
-
{{- '<|im_start|>user' }}
|
| 134 |
-
{%- endif %}
|
| 135 |
-
{{- '\n<tool_response>\n' }}
|
| 136 |
-
{{- content }}
|
| 137 |
-
{{- '\n</tool_response>' }}
|
| 138 |
-
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 139 |
-
{{- '<|im_end|>\n' }}
|
| 140 |
-
{%- elif loop.last %}
|
| 141 |
-
{{- '<|im_end|>\n' }}
|
| 142 |
-
{%- endif %}
|
| 143 |
-
{%- else %}
|
| 144 |
-
{{- raise_exception('Unexpected message role.') }}
|
| 145 |
-
{%- endif %}
|
| 146 |
-
{%- endfor %}
|
| 147 |
-
{%- if add_generation_prompt %}
|
| 148 |
-
{{- '<|im_start|>assistant\n' }}
|
| 149 |
-
{%- if enable_thinking is defined and enable_thinking is false %}
|
| 150 |
-
{{- '<think>\n\n</think>\n\n' }}
|
| 151 |
-
{%- else %}
|
| 152 |
-
{{- '<think>\n' }}
|
| 153 |
-
{%- endif %}
|
| 154 |
-
{%- endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/style_checkpoint/checkpoint-132/optimizer.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c8a8fc7ac39ead78fd5404103fd69eb5af92b12e8f12deb71bd1216c4839b55a
|
| 3 |
-
size 173539507
|
|
|
|
|
|
|
|
|
|
|
|
finetune/style_checkpoint/checkpoint-132/rng_state.pth
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:55458227fb883b7277781facf9f9a8d32c2c5a33e955febaec1eaadf202c3636
|
| 3 |
-
size 14645
|
|
|
|
|
|
|
|
|
|
|
|
finetune/style_checkpoint/checkpoint-132/scheduler.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9fad155de9dcd6412030b755a69f4c04b30a98ba8375d5d62b5bea51173f91a5
|
| 3 |
-
size 1465
|
|
|
|
|
|
|
|
|
|
|
|
finetune/style_checkpoint/checkpoint-132/tokenizer.json
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
|
| 3 |
-
size 19989325
|
|
|
|
|
|
|
|
|
|
|
|
finetune/style_checkpoint/checkpoint-132/tokenizer_config.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"add_prefix_space": false,
|
| 3 |
-
"audio_bos_token": "<|audio_start|>",
|
| 4 |
-
"audio_eos_token": "<|audio_end|>",
|
| 5 |
-
"audio_token": "<|audio_pad|>",
|
| 6 |
-
"backend": "tokenizers",
|
| 7 |
-
"bos_token": null,
|
| 8 |
-
"clean_up_tokenization_spaces": false,
|
| 9 |
-
"eos_token": "<|im_end|>",
|
| 10 |
-
"errors": "replace",
|
| 11 |
-
"image_token": "<|image_pad|>",
|
| 12 |
-
"is_local": true,
|
| 13 |
-
"local_files_only": false,
|
| 14 |
-
"model_max_length": 262144,
|
| 15 |
-
"model_specific_special_tokens": {
|
| 16 |
-
"audio_bos_token": "<|audio_start|>",
|
| 17 |
-
"audio_eos_token": "<|audio_end|>",
|
| 18 |
-
"audio_token": "<|audio_pad|>",
|
| 19 |
-
"image_token": "<|image_pad|>",
|
| 20 |
-
"video_token": "<|video_pad|>",
|
| 21 |
-
"vision_bos_token": "<|vision_start|>",
|
| 22 |
-
"vision_eos_token": "<|vision_end|>"
|
| 23 |
-
},
|
| 24 |
-
"pad_token": "<|endoftext|>",
|
| 25 |
-
"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
|
| 26 |
-
"split_special_tokens": false,
|
| 27 |
-
"tokenizer_class": "Qwen2Tokenizer",
|
| 28 |
-
"unk_token": null,
|
| 29 |
-
"video_token": "<|video_pad|>",
|
| 30 |
-
"vision_bos_token": "<|vision_start|>",
|
| 31 |
-
"vision_eos_token": "<|vision_end|>"
|
| 32 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/style_checkpoint/checkpoint-132/trainer_state.json
DELETED
|
@@ -1,164 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"best_global_step": null,
|
| 3 |
-
"best_metric": null,
|
| 4 |
-
"best_model_checkpoint": null,
|
| 5 |
-
"epoch": 3.0,
|
| 6 |
-
"eval_steps": 500,
|
| 7 |
-
"global_step": 132,
|
| 8 |
-
"is_hyper_param_search": false,
|
| 9 |
-
"is_local_process_zero": true,
|
| 10 |
-
"is_world_process_zero": true,
|
| 11 |
-
"log_history": [
|
| 12 |
-
{
|
| 13 |
-
"entropy": 1.30109671279788,
|
| 14 |
-
"epoch": 0.22857142857142856,
|
| 15 |
-
"grad_norm": 1.2109375,
|
| 16 |
-
"learning_rate": 0.00018636363636363636,
|
| 17 |
-
"loss": 1.69281063079834,
|
| 18 |
-
"mean_token_accuracy": 0.7338378168642521,
|
| 19 |
-
"num_tokens": 2779.0,
|
| 20 |
-
"step": 10
|
| 21 |
-
},
|
| 22 |
-
{
|
| 23 |
-
"entropy": 1.2120113119482994,
|
| 24 |
-
"epoch": 0.45714285714285713,
|
| 25 |
-
"grad_norm": 1.3359375,
|
| 26 |
-
"learning_rate": 0.00017121212121212122,
|
| 27 |
-
"loss": 1.1274803161621094,
|
| 28 |
-
"mean_token_accuracy": 0.770654023438692,
|
| 29 |
-
"num_tokens": 5529.0,
|
| 30 |
-
"step": 20
|
| 31 |
-
},
|
| 32 |
-
{
|
| 33 |
-
"entropy": 0.9645026199519634,
|
| 34 |
-
"epoch": 0.6857142857142857,
|
| 35 |
-
"grad_norm": 1.3203125,
|
| 36 |
-
"learning_rate": 0.00015606060606060607,
|
| 37 |
-
"loss": 1.0083338737487793,
|
| 38 |
-
"mean_token_accuracy": 0.7900982514023781,
|
| 39 |
-
"num_tokens": 8264.0,
|
| 40 |
-
"step": 30
|
| 41 |
-
},
|
| 42 |
-
{
|
| 43 |
-
"entropy": 1.001315427571535,
|
| 44 |
-
"epoch": 0.9142857142857143,
|
| 45 |
-
"grad_norm": 1.2109375,
|
| 46 |
-
"learning_rate": 0.00014090909090909093,
|
| 47 |
-
"loss": 0.9876208305358887,
|
| 48 |
-
"mean_token_accuracy": 0.7899081066250802,
|
| 49 |
-
"num_tokens": 11028.0,
|
| 50 |
-
"step": 40
|
| 51 |
-
},
|
| 52 |
-
{
|
| 53 |
-
"entropy": 0.9025501891588553,
|
| 54 |
-
"epoch": 1.1371428571428572,
|
| 55 |
-
"grad_norm": 0.97265625,
|
| 56 |
-
"learning_rate": 0.00012575757575757575,
|
| 57 |
-
"loss": 0.7734798908233642,
|
| 58 |
-
"mean_token_accuracy": 0.8246896488544269,
|
| 59 |
-
"num_tokens": 13730.0,
|
| 60 |
-
"step": 50
|
| 61 |
-
},
|
| 62 |
-
{
|
| 63 |
-
"entropy": 0.7055704202502966,
|
| 64 |
-
"epoch": 1.3657142857142857,
|
| 65 |
-
"grad_norm": 1.453125,
|
| 66 |
-
"learning_rate": 0.00011060606060606061,
|
| 67 |
-
"loss": 0.6433767318725586,
|
| 68 |
-
"mean_token_accuracy": 0.849166390299797,
|
| 69 |
-
"num_tokens": 16506.0,
|
| 70 |
-
"step": 60
|
| 71 |
-
},
|
| 72 |
-
{
|
| 73 |
-
"entropy": 0.6749185953289271,
|
| 74 |
-
"epoch": 1.5942857142857143,
|
| 75 |
-
"grad_norm": 1.5078125,
|
| 76 |
-
"learning_rate": 9.545454545454546e-05,
|
| 77 |
-
"loss": 0.6674872398376465,
|
| 78 |
-
"mean_token_accuracy": 0.8353129491209984,
|
| 79 |
-
"num_tokens": 19267.0,
|
| 80 |
-
"step": 70
|
| 81 |
-
},
|
| 82 |
-
{
|
| 83 |
-
"entropy": 0.665529253333807,
|
| 84 |
-
"epoch": 1.822857142857143,
|
| 85 |
-
"grad_norm": 1.71875,
|
| 86 |
-
"learning_rate": 8.03030303030303e-05,
|
| 87 |
-
"loss": 0.6229500770568848,
|
| 88 |
-
"mean_token_accuracy": 0.8385165937244892,
|
| 89 |
-
"num_tokens": 22011.0,
|
| 90 |
-
"step": 80
|
| 91 |
-
},
|
| 92 |
-
{
|
| 93 |
-
"entropy": 0.6535426924626032,
|
| 94 |
-
"epoch": 2.045714285714286,
|
| 95 |
-
"grad_norm": 1.0546875,
|
| 96 |
-
"learning_rate": 6.515151515151516e-05,
|
| 97 |
-
"loss": 0.5569591522216797,
|
| 98 |
-
"mean_token_accuracy": 0.8594398276928144,
|
| 99 |
-
"num_tokens": 24693.0,
|
| 100 |
-
"step": 90
|
| 101 |
-
},
|
| 102 |
-
{
|
| 103 |
-
"entropy": 0.5231270018965006,
|
| 104 |
-
"epoch": 2.2742857142857145,
|
| 105 |
-
"grad_norm": 1.6796875,
|
| 106 |
-
"learning_rate": 5e-05,
|
| 107 |
-
"loss": 0.36677672863006594,
|
| 108 |
-
"mean_token_accuracy": 0.9020668059587479,
|
| 109 |
-
"num_tokens": 27463.0,
|
| 110 |
-
"step": 100
|
| 111 |
-
},
|
| 112 |
-
{
|
| 113 |
-
"entropy": 0.4256359253078699,
|
| 114 |
-
"epoch": 2.5028571428571427,
|
| 115 |
-
"grad_norm": 2.046875,
|
| 116 |
-
"learning_rate": 3.484848484848485e-05,
|
| 117 |
-
"loss": 0.35885071754455566,
|
| 118 |
-
"mean_token_accuracy": 0.8996045172214509,
|
| 119 |
-
"num_tokens": 30201.0,
|
| 120 |
-
"step": 110
|
| 121 |
-
},
|
| 122 |
-
{
|
| 123 |
-
"entropy": 0.404218702763319,
|
| 124 |
-
"epoch": 2.7314285714285713,
|
| 125 |
-
"grad_norm": 1.734375,
|
| 126 |
-
"learning_rate": 1.9696969696969697e-05,
|
| 127 |
-
"loss": 0.35897390842437743,
|
| 128 |
-
"mean_token_accuracy": 0.9063410043716431,
|
| 129 |
-
"num_tokens": 32955.0,
|
| 130 |
-
"step": 120
|
| 131 |
-
},
|
| 132 |
-
{
|
| 133 |
-
"entropy": 0.3963111503049731,
|
| 134 |
-
"epoch": 2.96,
|
| 135 |
-
"grad_norm": 2.0625,
|
| 136 |
-
"learning_rate": 4.5454545454545455e-06,
|
| 137 |
-
"loss": 0.3470670938491821,
|
| 138 |
-
"mean_token_accuracy": 0.9018755808472634,
|
| 139 |
-
"num_tokens": 35726.0,
|
| 140 |
-
"step": 130
|
| 141 |
-
}
|
| 142 |
-
],
|
| 143 |
-
"logging_steps": 10,
|
| 144 |
-
"max_steps": 132,
|
| 145 |
-
"num_input_tokens_seen": 0,
|
| 146 |
-
"num_train_epochs": 3,
|
| 147 |
-
"save_steps": 500,
|
| 148 |
-
"stateful_callbacks": {
|
| 149 |
-
"TrainerControl": {
|
| 150 |
-
"args": {
|
| 151 |
-
"should_epoch_stop": false,
|
| 152 |
-
"should_evaluate": false,
|
| 153 |
-
"should_log": false,
|
| 154 |
-
"should_save": true,
|
| 155 |
-
"should_training_stop": true
|
| 156 |
-
},
|
| 157 |
-
"attributes": {}
|
| 158 |
-
}
|
| 159 |
-
},
|
| 160 |
-
"total_flos": 1734301292636160.0,
|
| 161 |
-
"train_batch_size": 1,
|
| 162 |
-
"trial_name": null,
|
| 163 |
-
"trial_params": null
|
| 164 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/style_checkpoint/checkpoint-132/training_args.bin
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b18b6c96a47cb78062355feafacc9baa8fde5cfda40273867df5486f7917195d
|
| 3 |
-
size 5713
|
|
|
|
|
|
|
|
|
|
|
|
finetune/style_checkpoint/checkpoint-44/README.md
DELETED
|
@@ -1,209 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
base_model: C:\Users\Ifmanzhang\Documents\GitHub\RepE\merged_model
|
| 3 |
-
library_name: peft
|
| 4 |
-
pipeline_tag: text-generation
|
| 5 |
-
tags:
|
| 6 |
-
- base_model:adapter:C:\Users\Ifmanzhang\Documents\GitHub\RepE\merged_model
|
| 7 |
-
- lora
|
| 8 |
-
- sft
|
| 9 |
-
- transformers
|
| 10 |
-
- trl
|
| 11 |
-
---
|
| 12 |
-
|
| 13 |
-
# Model Card for Model ID
|
| 14 |
-
|
| 15 |
-
<!-- Provide a quick summary of what the model is/does. -->
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
## Model Details
|
| 20 |
-
|
| 21 |
-
### Model Description
|
| 22 |
-
|
| 23 |
-
<!-- Provide a longer summary of what this model is. -->
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
- **Developed by:** [More Information Needed]
|
| 28 |
-
- **Funded by [optional]:** [More Information Needed]
|
| 29 |
-
- **Shared by [optional]:** [More Information Needed]
|
| 30 |
-
- **Model type:** [More Information Needed]
|
| 31 |
-
- **Language(s) (NLP):** [More Information Needed]
|
| 32 |
-
- **License:** [More Information Needed]
|
| 33 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
| 34 |
-
|
| 35 |
-
### Model Sources [optional]
|
| 36 |
-
|
| 37 |
-
<!-- Provide the basic links for the model. -->
|
| 38 |
-
|
| 39 |
-
- **Repository:** [More Information Needed]
|
| 40 |
-
- **Paper [optional]:** [More Information Needed]
|
| 41 |
-
- **Demo [optional]:** [More Information Needed]
|
| 42 |
-
|
| 43 |
-
## Uses
|
| 44 |
-
|
| 45 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 46 |
-
|
| 47 |
-
### Direct Use
|
| 48 |
-
|
| 49 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 50 |
-
|
| 51 |
-
[More Information Needed]
|
| 52 |
-
|
| 53 |
-
### Downstream Use [optional]
|
| 54 |
-
|
| 55 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 56 |
-
|
| 57 |
-
[More Information Needed]
|
| 58 |
-
|
| 59 |
-
### Out-of-Scope Use
|
| 60 |
-
|
| 61 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 62 |
-
|
| 63 |
-
[More Information Needed]
|
| 64 |
-
|
| 65 |
-
## Bias, Risks, and Limitations
|
| 66 |
-
|
| 67 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 68 |
-
|
| 69 |
-
[More Information Needed]
|
| 70 |
-
|
| 71 |
-
### Recommendations
|
| 72 |
-
|
| 73 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 74 |
-
|
| 75 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 76 |
-
|
| 77 |
-
## How to Get Started with the Model
|
| 78 |
-
|
| 79 |
-
Use the code below to get started with the model.
|
| 80 |
-
|
| 81 |
-
[More Information Needed]
|
| 82 |
-
|
| 83 |
-
## Training Details
|
| 84 |
-
|
| 85 |
-
### Training Data
|
| 86 |
-
|
| 87 |
-
<!-- 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. -->
|
| 88 |
-
|
| 89 |
-
[More Information Needed]
|
| 90 |
-
|
| 91 |
-
### Training Procedure
|
| 92 |
-
|
| 93 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 94 |
-
|
| 95 |
-
#### Preprocessing [optional]
|
| 96 |
-
|
| 97 |
-
[More Information Needed]
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
#### Training Hyperparameters
|
| 101 |
-
|
| 102 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 103 |
-
|
| 104 |
-
#### Speeds, Sizes, Times [optional]
|
| 105 |
-
|
| 106 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 107 |
-
|
| 108 |
-
[More Information Needed]
|
| 109 |
-
|
| 110 |
-
## Evaluation
|
| 111 |
-
|
| 112 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 113 |
-
|
| 114 |
-
### Testing Data, Factors & Metrics
|
| 115 |
-
|
| 116 |
-
#### Testing Data
|
| 117 |
-
|
| 118 |
-
<!-- This should link to a Dataset Card if possible. -->
|
| 119 |
-
|
| 120 |
-
[More Information Needed]
|
| 121 |
-
|
| 122 |
-
#### Factors
|
| 123 |
-
|
| 124 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 125 |
-
|
| 126 |
-
[More Information Needed]
|
| 127 |
-
|
| 128 |
-
#### Metrics
|
| 129 |
-
|
| 130 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 131 |
-
|
| 132 |
-
[More Information Needed]
|
| 133 |
-
|
| 134 |
-
### Results
|
| 135 |
-
|
| 136 |
-
[More Information Needed]
|
| 137 |
-
|
| 138 |
-
#### Summary
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
## Model Examination [optional]
|
| 143 |
-
|
| 144 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 145 |
-
|
| 146 |
-
[More Information Needed]
|
| 147 |
-
|
| 148 |
-
## Environmental Impact
|
| 149 |
-
|
| 150 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 151 |
-
|
| 152 |
-
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).
|
| 153 |
-
|
| 154 |
-
- **Hardware Type:** [More Information Needed]
|
| 155 |
-
- **Hours used:** [More Information Needed]
|
| 156 |
-
- **Cloud Provider:** [More Information Needed]
|
| 157 |
-
- **Compute Region:** [More Information Needed]
|
| 158 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 159 |
-
|
| 160 |
-
## Technical Specifications [optional]
|
| 161 |
-
|
| 162 |
-
### Model Architecture and Objective
|
| 163 |
-
|
| 164 |
-
[More Information Needed]
|
| 165 |
-
|
| 166 |
-
### Compute Infrastructure
|
| 167 |
-
|
| 168 |
-
[More Information Needed]
|
| 169 |
-
|
| 170 |
-
#### Hardware
|
| 171 |
-
|
| 172 |
-
[More Information Needed]
|
| 173 |
-
|
| 174 |
-
#### Software
|
| 175 |
-
|
| 176 |
-
[More Information Needed]
|
| 177 |
-
|
| 178 |
-
## Citation [optional]
|
| 179 |
-
|
| 180 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 181 |
-
|
| 182 |
-
**BibTeX:**
|
| 183 |
-
|
| 184 |
-
[More Information Needed]
|
| 185 |
-
|
| 186 |
-
**APA:**
|
| 187 |
-
|
| 188 |
-
[More Information Needed]
|
| 189 |
-
|
| 190 |
-
## Glossary [optional]
|
| 191 |
-
|
| 192 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 193 |
-
|
| 194 |
-
[More Information Needed]
|
| 195 |
-
|
| 196 |
-
## More Information [optional]
|
| 197 |
-
|
| 198 |
-
[More Information Needed]
|
| 199 |
-
|
| 200 |
-
## Model Card Authors [optional]
|
| 201 |
-
|
| 202 |
-
[More Information Needed]
|
| 203 |
-
|
| 204 |
-
## Model Card Contact
|
| 205 |
-
|
| 206 |
-
[More Information Needed]
|
| 207 |
-
### Framework versions
|
| 208 |
-
|
| 209 |
-
- PEFT 0.19.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/style_checkpoint/checkpoint-44/adapter_config.json
DELETED
|
@@ -1,53 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"alora_invocation_tokens": null,
|
| 3 |
-
"alpha_pattern": {},
|
| 4 |
-
"arrow_config": null,
|
| 5 |
-
"auto_mapping": null,
|
| 6 |
-
"base_model_name_or_path": "C:\\Users\\Ifmanzhang\\Documents\\GitHub\\RepE\\merged_model",
|
| 7 |
-
"bias": "none",
|
| 8 |
-
"corda_config": null,
|
| 9 |
-
"ensure_weight_tying": false,
|
| 10 |
-
"eva_config": null,
|
| 11 |
-
"exclude_modules": null,
|
| 12 |
-
"fan_in_fan_out": false,
|
| 13 |
-
"inference_mode": true,
|
| 14 |
-
"init_lora_weights": true,
|
| 15 |
-
"layer_replication": null,
|
| 16 |
-
"layers_pattern": null,
|
| 17 |
-
"layers_to_transform": null,
|
| 18 |
-
"loftq_config": {},
|
| 19 |
-
"lora_alpha": 32,
|
| 20 |
-
"lora_bias": false,
|
| 21 |
-
"lora_dropout": 0.05,
|
| 22 |
-
"lora_ga_config": null,
|
| 23 |
-
"megatron_config": null,
|
| 24 |
-
"megatron_core": "megatron.core",
|
| 25 |
-
"modules_to_save": null,
|
| 26 |
-
"peft_type": "LORA",
|
| 27 |
-
"peft_version": "0.19.1",
|
| 28 |
-
"qalora_group_size": 16,
|
| 29 |
-
"r": 16,
|
| 30 |
-
"rank_pattern": {},
|
| 31 |
-
"revision": null,
|
| 32 |
-
"target_modules": [
|
| 33 |
-
"in_proj_a",
|
| 34 |
-
"up_proj",
|
| 35 |
-
"in_proj_z",
|
| 36 |
-
"in_proj_qkv",
|
| 37 |
-
"down_proj",
|
| 38 |
-
"o_proj",
|
| 39 |
-
"gate_proj",
|
| 40 |
-
"out_proj",
|
| 41 |
-
"in_proj_b",
|
| 42 |
-
"v_proj",
|
| 43 |
-
"q_proj",
|
| 44 |
-
"k_proj"
|
| 45 |
-
],
|
| 46 |
-
"target_parameters": null,
|
| 47 |
-
"task_type": "CAUSAL_LM",
|
| 48 |
-
"trainable_token_indices": null,
|
| 49 |
-
"use_bdlora": null,
|
| 50 |
-
"use_dora": false,
|
| 51 |
-
"use_qalora": false,
|
| 52 |
-
"use_rslora": false
|
| 53 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/style_checkpoint/checkpoint-44/adapter_model.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fbf525e8ecdc16097d8dacc4631ed12a9eb4a2927e12e67a7722ae59ecfa9cc6
|
| 3 |
-
size 86624424
|
|
|
|
|
|
|
|
|
|
|
|
finetune/style_checkpoint/checkpoint-44/chat_template.jinja
DELETED
|
@@ -1,154 +0,0 @@
|
|
| 1 |
-
{%- set image_count = namespace(value=0) %}
|
| 2 |
-
{%- set video_count = namespace(value=0) %}
|
| 3 |
-
{%- macro render_content(content, do_vision_count, is_system_content=false) %}
|
| 4 |
-
{%- if content is string %}
|
| 5 |
-
{{- content }}
|
| 6 |
-
{%- elif content is iterable and content is not mapping %}
|
| 7 |
-
{%- for item in content %}
|
| 8 |
-
{%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
|
| 9 |
-
{%- if is_system_content %}
|
| 10 |
-
{{- raise_exception('System message cannot contain images.') }}
|
| 11 |
-
{%- endif %}
|
| 12 |
-
{%- if do_vision_count %}
|
| 13 |
-
{%- set image_count.value = image_count.value + 1 %}
|
| 14 |
-
{%- endif %}
|
| 15 |
-
{%- if add_vision_id %}
|
| 16 |
-
{{- 'Picture ' ~ image_count.value ~ ': ' }}
|
| 17 |
-
{%- endif %}
|
| 18 |
-
{{- '<|vision_start|><|image_pad|><|vision_end|>' }}
|
| 19 |
-
{%- elif 'video' in item or item.type == 'video' %}
|
| 20 |
-
{%- if is_system_content %}
|
| 21 |
-
{{- raise_exception('System message cannot contain videos.') }}
|
| 22 |
-
{%- endif %}
|
| 23 |
-
{%- if do_vision_count %}
|
| 24 |
-
{%- set video_count.value = video_count.value + 1 %}
|
| 25 |
-
{%- endif %}
|
| 26 |
-
{%- if add_vision_id %}
|
| 27 |
-
{{- 'Video ' ~ video_count.value ~ ': ' }}
|
| 28 |
-
{%- endif %}
|
| 29 |
-
{{- '<|vision_start|><|video_pad|><|vision_end|>' }}
|
| 30 |
-
{%- elif 'text' in item %}
|
| 31 |
-
{{- item.text }}
|
| 32 |
-
{%- else %}
|
| 33 |
-
{{- raise_exception('Unexpected item type in content.') }}
|
| 34 |
-
{%- endif %}
|
| 35 |
-
{%- endfor %}
|
| 36 |
-
{%- elif content is none or content is undefined %}
|
| 37 |
-
{{- '' }}
|
| 38 |
-
{%- else %}
|
| 39 |
-
{{- raise_exception('Unexpected content type.') }}
|
| 40 |
-
{%- endif %}
|
| 41 |
-
{%- endmacro %}
|
| 42 |
-
{%- if not messages %}
|
| 43 |
-
{{- raise_exception('No messages provided.') }}
|
| 44 |
-
{%- endif %}
|
| 45 |
-
{%- if tools and tools is iterable and tools is not mapping %}
|
| 46 |
-
{{- '<|im_start|>system\n' }}
|
| 47 |
-
{{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
|
| 48 |
-
{%- for tool in tools %}
|
| 49 |
-
{{- "\n" }}
|
| 50 |
-
{{- tool | tojson }}
|
| 51 |
-
{%- endfor %}
|
| 52 |
-
{{- "\n</tools>" }}
|
| 53 |
-
{{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
|
| 54 |
-
{%- if messages[0].role == 'system' %}
|
| 55 |
-
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 56 |
-
{%- if content %}
|
| 57 |
-
{{- '\n\n' + content }}
|
| 58 |
-
{%- endif %}
|
| 59 |
-
{%- endif %}
|
| 60 |
-
{{- '<|im_end|>\n' }}
|
| 61 |
-
{%- else %}
|
| 62 |
-
{%- if messages[0].role == 'system' %}
|
| 63 |
-
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 64 |
-
{{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
|
| 65 |
-
{%- endif %}
|
| 66 |
-
{%- endif %}
|
| 67 |
-
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 68 |
-
{%- for message in messages[::-1] %}
|
| 69 |
-
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 70 |
-
{%- if ns.multi_step_tool and message.role == "user" %}
|
| 71 |
-
{%- set content = render_content(message.content, false)|trim %}
|
| 72 |
-
{%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
|
| 73 |
-
{%- set ns.multi_step_tool = false %}
|
| 74 |
-
{%- set ns.last_query_index = index %}
|
| 75 |
-
{%- endif %}
|
| 76 |
-
{%- endif %}
|
| 77 |
-
{%- endfor %}
|
| 78 |
-
{%- if ns.multi_step_tool %}
|
| 79 |
-
{{- raise_exception('No user query found in messages.') }}
|
| 80 |
-
{%- endif %}
|
| 81 |
-
{%- for message in messages %}
|
| 82 |
-
{%- set content = render_content(message.content, true)|trim %}
|
| 83 |
-
{%- if message.role == "system" %}
|
| 84 |
-
{%- if not loop.first %}
|
| 85 |
-
{{- raise_exception('System message must be at the beginning.') }}
|
| 86 |
-
{%- endif %}
|
| 87 |
-
{%- elif message.role == "user" %}
|
| 88 |
-
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 89 |
-
{%- elif message.role == "assistant" %}
|
| 90 |
-
{%- set reasoning_content = '' %}
|
| 91 |
-
{%- if message.reasoning_content is string %}
|
| 92 |
-
{%- set reasoning_content = message.reasoning_content %}
|
| 93 |
-
{%- else %}
|
| 94 |
-
{%- if '</think>' in content %}
|
| 95 |
-
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 96 |
-
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 97 |
-
{%- endif %}
|
| 98 |
-
{%- endif %}
|
| 99 |
-
{%- set reasoning_content = reasoning_content|trim %}
|
| 100 |
-
{%- if loop.index0 > ns.last_query_index %}
|
| 101 |
-
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
|
| 102 |
-
{%- else %}
|
| 103 |
-
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 104 |
-
{%- endif %}
|
| 105 |
-
{%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
|
| 106 |
-
{%- for tool_call in message.tool_calls %}
|
| 107 |
-
{%- if tool_call.function is defined %}
|
| 108 |
-
{%- set tool_call = tool_call.function %}
|
| 109 |
-
{%- endif %}
|
| 110 |
-
{%- if loop.first %}
|
| 111 |
-
{%- if content|trim %}
|
| 112 |
-
{{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 113 |
-
{%- else %}
|
| 114 |
-
{{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 115 |
-
{%- endif %}
|
| 116 |
-
{%- else %}
|
| 117 |
-
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 118 |
-
{%- endif %}
|
| 119 |
-
{%- if tool_call.arguments is defined %}
|
| 120 |
-
{%- for args_name, args_value in tool_call.arguments|items %}
|
| 121 |
-
{{- '<parameter=' + args_name + '>\n' }}
|
| 122 |
-
{%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
|
| 123 |
-
{{- args_value }}
|
| 124 |
-
{{- '\n</parameter>\n' }}
|
| 125 |
-
{%- endfor %}
|
| 126 |
-
{%- endif %}
|
| 127 |
-
{{- '</function>\n</tool_call>' }}
|
| 128 |
-
{%- endfor %}
|
| 129 |
-
{%- endif %}
|
| 130 |
-
{{- '<|im_end|>\n' }}
|
| 131 |
-
{%- elif message.role == "tool" %}
|
| 132 |
-
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 133 |
-
{{- '<|im_start|>user' }}
|
| 134 |
-
{%- endif %}
|
| 135 |
-
{{- '\n<tool_response>\n' }}
|
| 136 |
-
{{- content }}
|
| 137 |
-
{{- '\n</tool_response>' }}
|
| 138 |
-
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 139 |
-
{{- '<|im_end|>\n' }}
|
| 140 |
-
{%- elif loop.last %}
|
| 141 |
-
{{- '<|im_end|>\n' }}
|
| 142 |
-
{%- endif %}
|
| 143 |
-
{%- else %}
|
| 144 |
-
{{- raise_exception('Unexpected message role.') }}
|
| 145 |
-
{%- endif %}
|
| 146 |
-
{%- endfor %}
|
| 147 |
-
{%- if add_generation_prompt %}
|
| 148 |
-
{{- '<|im_start|>assistant\n' }}
|
| 149 |
-
{%- if enable_thinking is defined and enable_thinking is false %}
|
| 150 |
-
{{- '<think>\n\n</think>\n\n' }}
|
| 151 |
-
{%- else %}
|
| 152 |
-
{{- '<think>\n' }}
|
| 153 |
-
{%- endif %}
|
| 154 |
-
{%- endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finetune/style_checkpoint/checkpoint-44/optimizer.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e0c393eb649466fef43e60bd28f3fa487141df8e06fbbac4c1ef81fdb3041786
|
| 3 |
-
size 173539507
|
|
|
|
|
|
|
|
|
|
|
|
finetune/style_checkpoint/checkpoint-44/rng_state.pth
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:39fe84eb65ca8488e36557b0ca39dd485c262ba68865254ec0e97dc4ec1802dc
|
| 3 |
-
size 14645
|
|
|
|
|
|
|
|
|
|
|
|