diff --git a/.gitattributes b/.gitattributes index 93dd9c1e62ec60cd2348dbfbafdae270f0bd795d..f6e11c4acc4407745ea6c1ea5891a77556662a57 100644 --- a/.gitattributes +++ b/.gitattributes @@ -37,3 +37,15 @@ adapter/checkpoint-1/tokenizer.json filter=lfs diff=lfs merge=lfs -text adapter/checkpoint-2/tokenizer.json filter=lfs diff=lfs merge=lfs -text adapter/checkpoint-3/tokenizer.json filter=lfs diff=lfs merge=lfs -text adapter/tokenizer.json filter=lfs diff=lfs merge=lfs -text +adapter/checkpoint-10/tokenizer.json filter=lfs diff=lfs merge=lfs -text +adapter/checkpoint-11/tokenizer.json filter=lfs diff=lfs merge=lfs -text +adapter/checkpoint-12/tokenizer.json filter=lfs diff=lfs merge=lfs -text +adapter/checkpoint-13/tokenizer.json filter=lfs diff=lfs merge=lfs -text +adapter/checkpoint-14/tokenizer.json filter=lfs diff=lfs merge=lfs -text +adapter/checkpoint-15/tokenizer.json filter=lfs diff=lfs merge=lfs -text +adapter/checkpoint-4/tokenizer.json filter=lfs diff=lfs merge=lfs -text +adapter/checkpoint-5/tokenizer.json filter=lfs diff=lfs merge=lfs -text +adapter/checkpoint-6/tokenizer.json filter=lfs diff=lfs merge=lfs -text +adapter/checkpoint-7/tokenizer.json filter=lfs diff=lfs merge=lfs -text +adapter/checkpoint-8/tokenizer.json filter=lfs diff=lfs merge=lfs -text +adapter/checkpoint-9/tokenizer.json filter=lfs diff=lfs merge=lfs -text diff --git a/adapter/README.md b/adapter/README.md index d0fcf946e2c660183b92cc150aec142d927991e0..bd38b2ea5bb57bca413031194f88c91286754e0f 100644 --- a/adapter/README.md +++ b/adapter/README.md @@ -1,9 +1,9 @@ --- -base_model: Qwen/Qwen2.5-0.5B-Instruct +base_model: Qwen/Qwen2.5-3B-Instruct library_name: peft model_name: adapter tags: -- base_model:adapter:Qwen/Qwen2.5-0.5B-Instruct +- base_model:adapter:Qwen/Qwen2.5-3B-Instruct - lora - sft - transformers @@ -14,7 +14,7 @@ pipeline_tag: text-generation # Model Card for adapter -This model is a fine-tuned version of [Qwen/Qwen2.5-0.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct). +This model is a fine-tuned version of [Qwen/Qwen2.5-3B-Instruct](https://huggingface.co/Qwen/Qwen2.5-3B-Instruct). It has been trained using [TRL](https://github.com/huggingface/trl). ## Quick start diff --git a/adapter/adapter_config.json b/adapter/adapter_config.json index 4d35bb2cfa55fc8acc4a106ece3ee063e4d7faba..a94aa479415cb712a22e6dac8d3f23d6ed08addb 100644 --- a/adapter/adapter_config.json +++ b/adapter/adapter_config.json @@ -3,7 +3,7 @@ "alpha_pattern": {}, "arrow_config": null, "auto_mapping": null, - "base_model_name_or_path": "Qwen/Qwen2.5-0.5B-Instruct", + "base_model_name_or_path": "Qwen/Qwen2.5-3B-Instruct", "bias": "none", "corda_config": null, "ensure_weight_tying": false, @@ -33,10 +33,10 @@ "target_modules": [ "gate_proj", "up_proj", + "o_proj", + "v_proj", "down_proj", "k_proj", - "v_proj", - "o_proj", "q_proj" ], "target_parameters": null, diff --git a/adapter/adapter_model.safetensors b/adapter/adapter_model.safetensors index c6e2fa5db4a2dd0fa297f4c532798ba97f7ac74b..861fbb9f85ceef292d1e10aec3f3d60b2fe00d9a 100644 --- a/adapter/adapter_model.safetensors +++ b/adapter/adapter_model.safetensors @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:bf1f58f76013fb099110e7d77cfc45a57987dd97183050d98ae5556c5d8d6b15 -size 17640808 +oid sha256:98c1a96e3957d6f2d8ac76a92aaead06fd6271985eba9a3c6751e465f80dd2af +size 59934640 diff --git a/adapter/checkpoint-1/README.md b/adapter/checkpoint-1/README.md index b760a3ab8435e9bfbbe3454c611ed515aab120d9..1f3df00e32aebf12d907a42b7d64321fd6ef999c 100644 --- a/adapter/checkpoint-1/README.md +++ b/adapter/checkpoint-1/README.md @@ -1,9 +1,9 @@ --- -base_model: Qwen/Qwen2.5-0.5B-Instruct +base_model: Qwen/Qwen2.5-3B-Instruct library_name: peft pipeline_tag: text-generation tags: -- base_model:adapter:Qwen/Qwen2.5-0.5B-Instruct +- base_model:adapter:Qwen/Qwen2.5-3B-Instruct - lora - sft - transformers diff --git a/adapter/checkpoint-1/adapter_config.json b/adapter/checkpoint-1/adapter_config.json index 4d35bb2cfa55fc8acc4a106ece3ee063e4d7faba..a94aa479415cb712a22e6dac8d3f23d6ed08addb 100644 --- a/adapter/checkpoint-1/adapter_config.json +++ b/adapter/checkpoint-1/adapter_config.json @@ -3,7 +3,7 @@ "alpha_pattern": {}, "arrow_config": null, "auto_mapping": null, - "base_model_name_or_path": "Qwen/Qwen2.5-0.5B-Instruct", + "base_model_name_or_path": "Qwen/Qwen2.5-3B-Instruct", "bias": "none", "corda_config": null, "ensure_weight_tying": false, @@ -33,10 +33,10 @@ "target_modules": [ "gate_proj", "up_proj", + "o_proj", + "v_proj", "down_proj", "k_proj", - "v_proj", - "o_proj", "q_proj" ], "target_parameters": null, diff --git a/adapter/checkpoint-1/adapter_model.safetensors b/adapter/checkpoint-1/adapter_model.safetensors index 079c4c277e26c4373d5514b98247eb6f645ab1ca..5462b22359b25bc2d25017f09f12c28bc1e848a8 100644 --- a/adapter/checkpoint-1/adapter_model.safetensors +++ b/adapter/checkpoint-1/adapter_model.safetensors @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ea5a1a22806bae93035fb574b2fc0946e735a9e1e76287483f07b6f4d54c1a80 -size 17640808 +oid sha256:21ce0fa1f789d5239dc91e9e1f9389a8890548841e35e2991a117a4268853a82 +size 59934640 diff --git a/adapter/checkpoint-1/optimizer.pt b/adapter/checkpoint-1/optimizer.pt index 5c1e9af7bf253118bda4a480c93b002447c3b493..5b361e2b9050411114c83cf02a00a8849b34b068 100644 --- a/adapter/checkpoint-1/optimizer.pt +++ b/adapter/checkpoint-1/optimizer.pt @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:323b3ad250b4a46e6d6ab661f07ac243a4fa7cffc68c82681bcc36dc2667575f -size 18813829 +oid sha256:176f12959d3e8db149fbdc04eb8859cadc5107cc37a4d7e4268df2bf83774c5c +size 61403589 diff --git a/adapter/checkpoint-1/rng_state.pth b/adapter/checkpoint-1/rng_state.pth index 8b6788987cadc235ba6396fbbea400a48961bdd4..a956d65bbe07ef516dfa305a75dda4ce450a47c9 100644 --- a/adapter/checkpoint-1/rng_state.pth +++ b/adapter/checkpoint-1/rng_state.pth @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5766a41385623165e034a70a71ab26df7504f525eb1907f3ceb1dff9be1f782b +oid sha256:27fffe89c6326b13f9ed45b7cf0b7a4f1fada8485ba5300884d69fce84c39b62 size 14645 diff --git a/adapter/checkpoint-1/scheduler.pt b/adapter/checkpoint-1/scheduler.pt index 0584ffe6cfb6857c4c46aaf758588cd6ec00387e..bf6199e40c3ce1bec5d499e698f089008dc35747 100644 --- a/adapter/checkpoint-1/scheduler.pt +++ b/adapter/checkpoint-1/scheduler.pt @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8f60080dd81494ea028b211b3716c87d5923e125e9e0421155a77ffe9b8bebc6 +oid sha256:0afd235c95e7a6ef4ebb0085b876de5f7638cb51b9ffa77f96ed21e59061141d size 1465 diff --git a/adapter/checkpoint-1/trainer_state.json b/adapter/checkpoint-1/trainer_state.json index 6d88161bcd2049881a323dca63cce37aef7ef866..6b5239d0477b51d4360e23e82fafca20e6f6e95e 100644 --- a/adapter/checkpoint-1/trainer_state.json +++ b/adapter/checkpoint-1/trainer_state.json @@ -10,9 +10,9 @@ "is_world_process_zero": true, "log_history": [], "logging_steps": 10, - "max_steps": 3, + "max_steps": 15, "num_input_tokens_seen": 0, - "num_train_epochs": 3, + "num_train_epochs": 15, "save_steps": 500, "stateful_callbacks": { "TrainerControl": { @@ -26,7 +26,7 @@ "attributes": {} } }, - "total_flos": 712857646080.0, + "total_flos": 12301446340608.0, "train_batch_size": 4, "trial_name": null, "trial_params": null diff --git a/adapter/checkpoint-1/training_args.bin b/adapter/checkpoint-1/training_args.bin index 96de6b6e8bf186e03b3d10cbdaa82fdda5499b02..e352ea250e44b9e2c1c02e8e7de50df5392524fe 100644 --- a/adapter/checkpoint-1/training_args.bin +++ b/adapter/checkpoint-1/training_args.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:87556f713e6820a7bc84b071500798abc604556e0742e12686953a54b2c99110 +oid sha256:fd900ebda7b3712c4d07af35b3611b0288bd1613efc2d494a87d59aff783433b size 5841 diff --git a/adapter/checkpoint-10/README.md b/adapter/checkpoint-10/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1f3df00e32aebf12d907a42b7d64321fd6ef999c --- /dev/null +++ b/adapter/checkpoint-10/README.md @@ -0,0 +1,209 @@ +--- +base_model: Qwen/Qwen2.5-3B-Instruct +library_name: peft +pipeline_tag: text-generation +tags: +- base_model:adapter:Qwen/Qwen2.5-3B-Instruct +- lora +- sft +- transformers +- trl +--- + +# Model Card for Model ID + + + + + +## Model Details + +### Model Description + + + + + +- **Developed by:** [More Information Needed] +- **Funded by [optional]:** [More Information Needed] +- **Shared by [optional]:** [More Information Needed] +- **Model type:** [More Information Needed] +- **Language(s) (NLP):** [More Information Needed] +- **License:** [More Information Needed] +- **Finetuned from model [optional]:** [More Information Needed] + +### Model Sources [optional] + + + +- **Repository:** [More Information Needed] +- **Paper [optional]:** [More Information Needed] +- **Demo [optional]:** [More Information Needed] + +## Uses + + + +### Direct Use + + + +[More Information Needed] + +### Downstream Use [optional] + + + +[More Information Needed] + +### Out-of-Scope Use + + + +[More Information Needed] + +## Bias, Risks, and Limitations + + + +[More Information Needed] + +### Recommendations + + + +Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations. + +## How to Get Started with the Model + +Use the code below to get started with the model. + +[More Information Needed] + +## Training Details + +### Training Data + + + +[More Information Needed] + +### Training Procedure + + + +#### Preprocessing [optional] + +[More Information Needed] + + +#### Training Hyperparameters + +- **Training regime:** [More Information Needed] + +#### Speeds, Sizes, Times [optional] + + + +[More Information Needed] + +## Evaluation + + + +### Testing Data, Factors & Metrics + +#### Testing Data + + + +[More Information Needed] + +#### Factors + + + +[More Information Needed] + +#### Metrics + + + +[More Information Needed] + +### Results + +[More Information Needed] + +#### Summary + + + +## Model Examination [optional] + + + +[More Information Needed] + +## Environmental Impact + + + +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). + +- **Hardware Type:** [More Information Needed] +- **Hours used:** [More Information Needed] +- **Cloud Provider:** [More Information Needed] +- **Compute Region:** [More Information Needed] +- **Carbon Emitted:** [More Information Needed] + +## Technical Specifications [optional] + +### Model Architecture and Objective + +[More Information Needed] + +### Compute Infrastructure + +[More Information Needed] + +#### Hardware + +[More Information Needed] + +#### Software + +[More Information Needed] + +## Citation [optional] + + + +**BibTeX:** + +[More Information Needed] + +**APA:** + +[More Information Needed] + +## Glossary [optional] + + + +[More Information Needed] + +## More Information [optional] + +[More Information Needed] + +## Model Card Authors [optional] + +[More Information Needed] + +## Model Card Contact + +[More Information Needed] +### Framework versions + +- PEFT 0.20.0 \ No newline at end of file diff --git a/adapter/checkpoint-10/adapter_config.json b/adapter/checkpoint-10/adapter_config.json new file mode 100644 index 0000000000000000000000000000000000000000..a94aa479415cb712a22e6dac8d3f23d6ed08addb --- /dev/null +++ b/adapter/checkpoint-10/adapter_config.json @@ -0,0 +1,50 @@ +{ + "alora_invocation_tokens": null, + "alpha_pattern": {}, + "arrow_config": null, + "auto_mapping": null, + "base_model_name_or_path": "Qwen/Qwen2.5-3B-Instruct", + "bias": "none", + "corda_config": null, + "ensure_weight_tying": false, + "eva_config": null, + "exclude_modules": null, + "fan_in_fan_out": false, + "inference_mode": true, + "init_lora_weights": true, + "layer_replication": null, + "layers_pattern": null, + "layers_to_transform": null, + "loftq_config": {}, + "lora_alpha": 32, + "lora_bias": false, + "lora_dropout": 0.05, + "lora_ga_config": null, + "megatron_config": null, + "megatron_core": "megatron.core", + "modules_to_save": null, + "monteclora_config": null, + "peft_type": "LORA", + "peft_version": "0.20.0", + "qalora_group_size": 16, + "r": 16, + "rank_pattern": {}, + "revision": null, + "target_modules": [ + "gate_proj", + "up_proj", + "o_proj", + "v_proj", + "down_proj", + "k_proj", + "q_proj" + ], + "target_parameters": null, + "task_type": "CAUSAL_LM", + "trainable_token_indices": null, + "use_bdlora": null, + "use_dora": false, + "use_qalora": false, + "use_rslora": false, + "velora_config": null +} \ No newline at end of file diff --git a/adapter/checkpoint-10/adapter_model.safetensors b/adapter/checkpoint-10/adapter_model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..e4f0f5265c6905d438d72b7f60c77e9271d8bb33 --- /dev/null +++ b/adapter/checkpoint-10/adapter_model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a29e0d2a70dfb944c3f4843d60865ff9804ad190500e952e50f8d17b8b71d14b +size 59934640 diff --git a/adapter/checkpoint-10/chat_template.jinja b/adapter/checkpoint-10/chat_template.jinja new file mode 100644 index 0000000000000000000000000000000000000000..bdf7919a96cfe43d50914a007b9c0877bd0ec27e --- /dev/null +++ b/adapter/checkpoint-10/chat_template.jinja @@ -0,0 +1,54 @@ +{%- if tools %} + {{- '<|im_start|>system\n' }} + {%- if messages[0]['role'] == 'system' %} + {{- messages[0]['content'] }} + {%- else %} + {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }} + {%- endif %} + {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within XML tags:\n" }} + {%- for tool in tools %} + {{- "\n" }} + {{- tool | tojson }} + {%- endfor %} + {{- "\n\n\nFor each function call, return a json object with function name and arguments within XML tags:\n\n{\"name\": , \"arguments\": }\n<|im_end|>\n" }} +{%- else %} + {%- if messages[0]['role'] == 'system' %} + {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }} + {%- else %} + {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }} + {%- endif %} +{%- endif %} +{%- for message in messages %} + {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %} + {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} + {%- elif message.role == "assistant" %} + {{- '<|im_start|>' + message.role }} + {%- if message.content %} + {{- '\n' + message.content }} + {%- endif %} + {%- for tool_call in message.tool_calls %} + {%- if tool_call.function is defined %} + {%- set tool_call = tool_call.function %} + {%- endif %} + {{- '\n\n{"name": "' }} + {{- tool_call.name }} + {{- '", "arguments": ' }} + {{- tool_call.arguments | tojson }} + {{- '}\n' }} + {%- endfor %} + {{- '<|im_end|>\n' }} + {%- elif message.role == "tool" %} + {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} + {{- '<|im_start|>user' }} + {%- endif %} + {{- '\n\n' }} + {{- message.content }} + {{- '\n' }} + {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} + {{- '<|im_end|>\n' }} + {%- endif %} + {%- endif %} +{%- endfor %} +{%- if add_generation_prompt %} + {{- '<|im_start|>assistant\n' }} +{%- endif %} diff --git a/adapter/checkpoint-10/optimizer.pt b/adapter/checkpoint-10/optimizer.pt new file mode 100644 index 0000000000000000000000000000000000000000..efa0cd7b63c46e1e0db9d183119e18629fe5d298 --- /dev/null +++ b/adapter/checkpoint-10/optimizer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b70b2be656da4eaa67e78914f91447b6c2cb786487d5cc3550ca0b4a81830fa1 +size 61403589 diff --git a/adapter/checkpoint-10/rng_state.pth b/adapter/checkpoint-10/rng_state.pth new file mode 100644 index 0000000000000000000000000000000000000000..4b0e22af06a596d1cbcaa79d12d979d0c0db67dd --- /dev/null +++ b/adapter/checkpoint-10/rng_state.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b2bda416119d4ac9d306435e039daa0c38aba282020efc63d982c1a62ce2b420 +size 14645 diff --git a/adapter/checkpoint-10/scheduler.pt b/adapter/checkpoint-10/scheduler.pt new file mode 100644 index 0000000000000000000000000000000000000000..db0a241fcb6498e20b11ad3027e4aa93f384f386 --- /dev/null +++ b/adapter/checkpoint-10/scheduler.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:241c786d68958146825d9a093f0257ace948ff19c4fc0525936aa823be23a56c +size 1465 diff --git a/adapter/checkpoint-10/tokenizer.json b/adapter/checkpoint-10/tokenizer.json new file mode 100644 index 0000000000000000000000000000000000000000..34510ff0037cd50428af467a17ead5a96140a32c --- /dev/null +++ b/adapter/checkpoint-10/tokenizer.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8 +size 11421892 diff --git a/adapter/checkpoint-10/tokenizer_config.json b/adapter/checkpoint-10/tokenizer_config.json new file mode 100644 index 0000000000000000000000000000000000000000..770e41d6c92519d525eede4cbcf3ba27f6425311 --- /dev/null +++ b/adapter/checkpoint-10/tokenizer_config.json @@ -0,0 +1,30 @@ +{ + "add_prefix_space": false, + "backend": "tokenizers", + "bos_token": null, + "clean_up_tokenization_spaces": false, + "eos_token": "<|im_end|>", + "errors": "replace", + "extra_special_tokens": [ + "<|im_start|>", + "<|im_end|>", + "<|object_ref_start|>", + "<|object_ref_end|>", + "<|box_start|>", + "<|box_end|>", + "<|quad_start|>", + "<|quad_end|>", + "<|vision_start|>", + "<|vision_end|>", + "<|vision_pad|>", + "<|image_pad|>", + "<|video_pad|>" + ], + "is_local": false, + "local_files_only": false, + "model_max_length": 131072, + "pad_token": "<|endoftext|>", + "split_special_tokens": false, + "tokenizer_class": "Qwen2Tokenizer", + "unk_token": null +} diff --git a/adapter/checkpoint-10/trainer_state.json b/adapter/checkpoint-10/trainer_state.json new file mode 100644 index 0000000000000000000000000000000000000000..67e667760c8ee65adfa30df3e067d2ecd2bf9447 --- /dev/null +++ b/adapter/checkpoint-10/trainer_state.json @@ -0,0 +1,44 @@ +{ + "best_global_step": null, + "best_metric": null, + "best_model_checkpoint": null, + "epoch": 10.0, + "eval_steps": 500, + "global_step": 10, + "is_hyper_param_search": false, + "is_local_process_zero": true, + "is_world_process_zero": true, + "log_history": [ + { + "entropy": 1.4535226494073867, + "epoch": 10.0, + "grad_norm": 3.046875, + "learning_rate": 8e-05, + "loss": 2.295806121826172, + "mean_token_accuracy": 0.6982592329382896, + "num_tokens": 6910.0, + "step": 10 + } + ], + "logging_steps": 10, + "max_steps": 15, + "num_input_tokens_seen": 0, + "num_train_epochs": 15, + "save_steps": 500, + "stateful_callbacks": { + "TrainerControl": { + "args": { + "should_epoch_stop": false, + "should_evaluate": false, + "should_log": false, + "should_save": true, + "should_training_stop": false + }, + "attributes": {} + } + }, + "total_flos": 124394379411456.0, + "train_batch_size": 4, + "trial_name": null, + "trial_params": null +} diff --git a/adapter/checkpoint-10/training_args.bin b/adapter/checkpoint-10/training_args.bin new file mode 100644 index 0000000000000000000000000000000000000000..e352ea250e44b9e2c1c02e8e7de50df5392524fe --- /dev/null +++ b/adapter/checkpoint-10/training_args.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd900ebda7b3712c4d07af35b3611b0288bd1613efc2d494a87d59aff783433b +size 5841 diff --git a/adapter/checkpoint-11/README.md b/adapter/checkpoint-11/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1f3df00e32aebf12d907a42b7d64321fd6ef999c --- /dev/null +++ b/adapter/checkpoint-11/README.md @@ -0,0 +1,209 @@ +--- +base_model: Qwen/Qwen2.5-3B-Instruct +library_name: peft +pipeline_tag: text-generation +tags: +- base_model:adapter:Qwen/Qwen2.5-3B-Instruct +- lora +- sft +- transformers +- trl +--- + +# Model Card for Model ID + + + + + +## Model Details + +### Model Description + + + + + +- **Developed by:** [More Information Needed] +- **Funded by [optional]:** [More Information Needed] +- **Shared by [optional]:** [More Information Needed] +- **Model type:** [More Information Needed] +- **Language(s) (NLP):** [More Information Needed] +- **License:** [More Information Needed] +- **Finetuned from model [optional]:** [More Information Needed] + +### Model Sources [optional] + + + +- **Repository:** [More Information Needed] +- **Paper [optional]:** [More Information Needed] +- **Demo [optional]:** [More Information Needed] + +## Uses + + + +### Direct Use + + + +[More Information Needed] + +### Downstream Use [optional] + + + +[More Information Needed] + +### Out-of-Scope Use + + + +[More Information Needed] + +## Bias, Risks, and Limitations + + + +[More Information Needed] + +### Recommendations + + + +Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations. + +## How to Get Started with the Model + +Use the code below to get started with the model. + +[More Information Needed] + +## Training Details + +### Training Data + + + +[More Information Needed] + +### Training Procedure + + + +#### Preprocessing [optional] + +[More Information Needed] + + +#### Training Hyperparameters + +- **Training regime:** [More Information Needed] + +#### Speeds, Sizes, Times [optional] + + + +[More Information Needed] + +## Evaluation + + + +### Testing Data, Factors & Metrics + +#### Testing Data + + + +[More Information Needed] + +#### Factors + + + +[More Information Needed] + +#### Metrics + + + +[More Information Needed] + +### Results + +[More Information Needed] + +#### Summary + + + +## Model Examination [optional] + + + +[More Information Needed] + +## Environmental Impact + + + +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). + +- **Hardware Type:** [More Information Needed] +- **Hours used:** [More Information Needed] +- **Cloud Provider:** [More Information Needed] +- **Compute Region:** [More Information Needed] +- **Carbon Emitted:** [More Information Needed] + +## Technical Specifications [optional] + +### Model Architecture and Objective + +[More Information Needed] + +### Compute Infrastructure + +[More Information Needed] + +#### Hardware + +[More Information Needed] + +#### Software + +[More Information Needed] + +## Citation [optional] + + + +**BibTeX:** + +[More Information Needed] + +**APA:** + +[More Information Needed] + +## Glossary [optional] + + + +[More Information Needed] + +## More Information [optional] + +[More Information Needed] + +## Model Card Authors [optional] + +[More Information Needed] + +## Model Card Contact + +[More Information Needed] +### Framework versions + +- PEFT 0.20.0 \ No newline at end of file diff --git a/adapter/checkpoint-11/adapter_config.json b/adapter/checkpoint-11/adapter_config.json new file mode 100644 index 0000000000000000000000000000000000000000..a94aa479415cb712a22e6dac8d3f23d6ed08addb --- /dev/null +++ b/adapter/checkpoint-11/adapter_config.json @@ -0,0 +1,50 @@ +{ + "alora_invocation_tokens": null, + "alpha_pattern": {}, + "arrow_config": null, + "auto_mapping": null, + "base_model_name_or_path": "Qwen/Qwen2.5-3B-Instruct", + "bias": "none", + "corda_config": null, + "ensure_weight_tying": false, + "eva_config": null, + "exclude_modules": null, + "fan_in_fan_out": false, + "inference_mode": true, + "init_lora_weights": true, + "layer_replication": null, + "layers_pattern": null, + "layers_to_transform": null, + "loftq_config": {}, + "lora_alpha": 32, + "lora_bias": false, + "lora_dropout": 0.05, + "lora_ga_config": null, + "megatron_config": null, + "megatron_core": "megatron.core", + "modules_to_save": null, + "monteclora_config": null, + "peft_type": "LORA", + "peft_version": "0.20.0", + "qalora_group_size": 16, + "r": 16, + "rank_pattern": {}, + "revision": null, + "target_modules": [ + "gate_proj", + "up_proj", + "o_proj", + "v_proj", + "down_proj", + "k_proj", + "q_proj" + ], + "target_parameters": null, + "task_type": "CAUSAL_LM", + "trainable_token_indices": null, + "use_bdlora": null, + "use_dora": false, + "use_qalora": false, + "use_rslora": false, + "velora_config": null +} \ No newline at end of file diff --git a/adapter/checkpoint-11/adapter_model.safetensors b/adapter/checkpoint-11/adapter_model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..63ec605fc09ce555e0bc114b1450c00e0ad88b8c --- /dev/null +++ b/adapter/checkpoint-11/adapter_model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aee871bd99a9f7b687207d436cb48bb2e99ce3fe4a49d0aa9f2b5adf321bdc72 +size 59934640 diff --git a/adapter/checkpoint-11/chat_template.jinja b/adapter/checkpoint-11/chat_template.jinja new file mode 100644 index 0000000000000000000000000000000000000000..bdf7919a96cfe43d50914a007b9c0877bd0ec27e --- /dev/null +++ b/adapter/checkpoint-11/chat_template.jinja @@ -0,0 +1,54 @@ +{%- if tools %} + {{- '<|im_start|>system\n' }} + {%- if messages[0]['role'] == 'system' %} + {{- messages[0]['content'] }} + {%- else %} + {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }} + {%- endif %} + {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within XML tags:\n" }} + {%- for tool in tools %} + {{- "\n" }} + {{- tool | tojson }} + {%- endfor %} + {{- "\n\n\nFor each function call, return a json object with function name and arguments within XML tags:\n\n{\"name\": , \"arguments\": }\n<|im_end|>\n" }} +{%- else %} + {%- if messages[0]['role'] == 'system' %} + {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }} + {%- else %} + {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }} + {%- endif %} +{%- endif %} +{%- for message in messages %} + {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %} + {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} + {%- elif message.role == "assistant" %} + {{- '<|im_start|>' + message.role }} + {%- if message.content %} + {{- '\n' + message.content }} + {%- endif %} + {%- for tool_call in message.tool_calls %} + {%- if tool_call.function is defined %} + {%- set tool_call = tool_call.function %} + {%- endif %} + {{- '\n\n{"name": "' }} + {{- tool_call.name }} + {{- '", "arguments": ' }} + {{- tool_call.arguments | tojson }} + {{- '}\n' }} + {%- endfor %} + {{- '<|im_end|>\n' }} + {%- elif message.role == "tool" %} + {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} + {{- '<|im_start|>user' }} + {%- endif %} + {{- '\n\n' }} + {{- message.content }} + {{- '\n' }} + {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} + {{- '<|im_end|>\n' }} + {%- endif %} + {%- endif %} +{%- endfor %} +{%- if add_generation_prompt %} + {{- '<|im_start|>assistant\n' }} +{%- endif %} diff --git a/adapter/checkpoint-11/optimizer.pt b/adapter/checkpoint-11/optimizer.pt new file mode 100644 index 0000000000000000000000000000000000000000..c3ca3654b7597373cc1f8ba8df9762995c5f0f4b --- /dev/null +++ b/adapter/checkpoint-11/optimizer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68845f446c5dde79cd8ec515256965cae52629ec6ae88c266df936570d3a26fd +size 61403589 diff --git a/adapter/checkpoint-11/rng_state.pth b/adapter/checkpoint-11/rng_state.pth new file mode 100644 index 0000000000000000000000000000000000000000..855209bf8ab9257dadc3a96156dc1f1cc7996dc6 --- /dev/null +++ b/adapter/checkpoint-11/rng_state.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:711b30ef14bef418dee8db50988340a730b747d6c99c91821c5ca0f00a072b6e +size 14645 diff --git a/adapter/checkpoint-11/scheduler.pt b/adapter/checkpoint-11/scheduler.pt new file mode 100644 index 0000000000000000000000000000000000000000..22cd350e6b29ea06556fd824167e851d6e410071 --- /dev/null +++ b/adapter/checkpoint-11/scheduler.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6e2a3b3620e5a32d55caa6ee3e95d3d92225ab114286c11125287fe04115ba0e +size 1465 diff --git a/adapter/checkpoint-11/tokenizer.json b/adapter/checkpoint-11/tokenizer.json new file mode 100644 index 0000000000000000000000000000000000000000..34510ff0037cd50428af467a17ead5a96140a32c --- /dev/null +++ b/adapter/checkpoint-11/tokenizer.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8 +size 11421892 diff --git a/adapter/checkpoint-11/tokenizer_config.json b/adapter/checkpoint-11/tokenizer_config.json new file mode 100644 index 0000000000000000000000000000000000000000..770e41d6c92519d525eede4cbcf3ba27f6425311 --- /dev/null +++ b/adapter/checkpoint-11/tokenizer_config.json @@ -0,0 +1,30 @@ +{ + "add_prefix_space": false, + "backend": "tokenizers", + "bos_token": null, + "clean_up_tokenization_spaces": false, + "eos_token": "<|im_end|>", + "errors": "replace", + "extra_special_tokens": [ + "<|im_start|>", + "<|im_end|>", + "<|object_ref_start|>", + "<|object_ref_end|>", + "<|box_start|>", + "<|box_end|>", + "<|quad_start|>", + "<|quad_end|>", + "<|vision_start|>", + "<|vision_end|>", + "<|vision_pad|>", + "<|image_pad|>", + "<|video_pad|>" + ], + "is_local": false, + "local_files_only": false, + "model_max_length": 131072, + "pad_token": "<|endoftext|>", + "split_special_tokens": false, + "tokenizer_class": "Qwen2Tokenizer", + "unk_token": null +} diff --git a/adapter/checkpoint-11/trainer_state.json b/adapter/checkpoint-11/trainer_state.json new file mode 100644 index 0000000000000000000000000000000000000000..24e25e9d01fdf45bdb7dd679aad1949093374895 --- /dev/null +++ b/adapter/checkpoint-11/trainer_state.json @@ -0,0 +1,44 @@ +{ + "best_global_step": null, + "best_metric": null, + "best_model_checkpoint": null, + "epoch": 11.0, + "eval_steps": 500, + "global_step": 11, + "is_hyper_param_search": false, + "is_local_process_zero": true, + "is_world_process_zero": true, + "log_history": [ + { + "entropy": 1.4535226494073867, + "epoch": 10.0, + "grad_norm": 3.046875, + "learning_rate": 8e-05, + "loss": 2.295806121826172, + "mean_token_accuracy": 0.6982592329382896, + "num_tokens": 6910.0, + "step": 10 + } + ], + "logging_steps": 10, + "max_steps": 15, + "num_input_tokens_seen": 0, + "num_train_epochs": 15, + "save_steps": 500, + "stateful_callbacks": { + "TrainerControl": { + "args": { + "should_epoch_stop": false, + "should_evaluate": false, + "should_log": false, + "should_save": true, + "should_training_stop": false + }, + "attributes": {} + } + }, + "total_flos": 137082875363328.0, + "train_batch_size": 4, + "trial_name": null, + "trial_params": null +} diff --git a/adapter/checkpoint-11/training_args.bin b/adapter/checkpoint-11/training_args.bin new file mode 100644 index 0000000000000000000000000000000000000000..e352ea250e44b9e2c1c02e8e7de50df5392524fe --- /dev/null +++ b/adapter/checkpoint-11/training_args.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd900ebda7b3712c4d07af35b3611b0288bd1613efc2d494a87d59aff783433b +size 5841 diff --git a/adapter/checkpoint-12/README.md b/adapter/checkpoint-12/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1f3df00e32aebf12d907a42b7d64321fd6ef999c --- /dev/null +++ b/adapter/checkpoint-12/README.md @@ -0,0 +1,209 @@ +--- +base_model: Qwen/Qwen2.5-3B-Instruct +library_name: peft +pipeline_tag: text-generation +tags: +- base_model:adapter:Qwen/Qwen2.5-3B-Instruct +- lora +- sft +- transformers +- trl +--- + +# Model Card for Model ID + + + + + +## Model Details + +### Model Description + + + + + +- **Developed by:** [More Information Needed] +- **Funded by [optional]:** [More Information Needed] +- **Shared by [optional]:** [More Information Needed] +- **Model type:** [More Information Needed] +- **Language(s) (NLP):** [More Information Needed] +- **License:** [More Information Needed] +- **Finetuned from model [optional]:** [More Information Needed] + +### Model Sources [optional] + + + +- **Repository:** [More Information Needed] +- **Paper [optional]:** [More Information Needed] +- **Demo [optional]:** [More Information Needed] + +## Uses + + + +### Direct Use + + + +[More Information Needed] + +### Downstream Use [optional] + + + +[More Information Needed] + +### Out-of-Scope Use + + + +[More Information Needed] + +## Bias, Risks, and Limitations + + + +[More Information Needed] + +### Recommendations + + + +Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations. + +## How to Get Started with the Model + +Use the code below to get started with the model. + +[More Information Needed] + +## Training Details + +### Training Data + + + +[More Information Needed] + +### Training Procedure + + + +#### Preprocessing [optional] + +[More Information Needed] + + +#### Training Hyperparameters + +- **Training regime:** [More Information Needed] + +#### Speeds, Sizes, Times [optional] + + + +[More Information Needed] + +## Evaluation + + + +### Testing Data, Factors & Metrics + +#### Testing Data + + + +[More Information Needed] + +#### Factors + + + +[More Information Needed] + +#### Metrics + + + +[More Information Needed] + +### Results + +[More Information Needed] + +#### Summary + + + +## Model Examination [optional] + + + +[More Information Needed] + +## Environmental Impact + + + +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). + +- **Hardware Type:** [More Information Needed] +- **Hours used:** [More Information Needed] +- **Cloud Provider:** [More Information Needed] +- **Compute Region:** [More Information Needed] +- **Carbon Emitted:** [More Information Needed] + +## Technical Specifications [optional] + +### Model Architecture and Objective + +[More Information Needed] + +### Compute Infrastructure + +[More Information Needed] + +#### Hardware + +[More Information Needed] + +#### Software + +[More Information Needed] + +## Citation [optional] + + + +**BibTeX:** + +[More Information Needed] + +**APA:** + +[More Information Needed] + +## Glossary [optional] + + + +[More Information Needed] + +## More Information [optional] + +[More Information Needed] + +## Model Card Authors [optional] + +[More Information Needed] + +## Model Card Contact + +[More Information Needed] +### Framework versions + +- PEFT 0.20.0 \ No newline at end of file diff --git a/adapter/checkpoint-12/adapter_config.json b/adapter/checkpoint-12/adapter_config.json new file mode 100644 index 0000000000000000000000000000000000000000..a94aa479415cb712a22e6dac8d3f23d6ed08addb --- /dev/null +++ b/adapter/checkpoint-12/adapter_config.json @@ -0,0 +1,50 @@ +{ + "alora_invocation_tokens": null, + "alpha_pattern": {}, + "arrow_config": null, + "auto_mapping": null, + "base_model_name_or_path": "Qwen/Qwen2.5-3B-Instruct", + "bias": "none", + "corda_config": null, + "ensure_weight_tying": false, + "eva_config": null, + "exclude_modules": null, + "fan_in_fan_out": false, + "inference_mode": true, + "init_lora_weights": true, + "layer_replication": null, + "layers_pattern": null, + "layers_to_transform": null, + "loftq_config": {}, + "lora_alpha": 32, + "lora_bias": false, + "lora_dropout": 0.05, + "lora_ga_config": null, + "megatron_config": null, + "megatron_core": "megatron.core", + "modules_to_save": null, + "monteclora_config": null, + "peft_type": "LORA", + "peft_version": "0.20.0", + "qalora_group_size": 16, + "r": 16, + "rank_pattern": {}, + "revision": null, + "target_modules": [ + "gate_proj", + "up_proj", + "o_proj", + "v_proj", + "down_proj", + "k_proj", + "q_proj" + ], + "target_parameters": null, + "task_type": "CAUSAL_LM", + "trainable_token_indices": null, + "use_bdlora": null, + "use_dora": false, + "use_qalora": false, + "use_rslora": false, + "velora_config": null +} \ No newline at end of file diff --git a/adapter/checkpoint-12/adapter_model.safetensors b/adapter/checkpoint-12/adapter_model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..5fc139c13b8a84732a93e57eaa24cc144456a8d8 --- /dev/null +++ b/adapter/checkpoint-12/adapter_model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe54aa525c7578a6b9fccf706a68ba1efeb01af91468da9dfc33e63809648845 +size 59934640 diff --git a/adapter/checkpoint-12/chat_template.jinja b/adapter/checkpoint-12/chat_template.jinja new file mode 100644 index 0000000000000000000000000000000000000000..bdf7919a96cfe43d50914a007b9c0877bd0ec27e --- /dev/null +++ b/adapter/checkpoint-12/chat_template.jinja @@ -0,0 +1,54 @@ +{%- if tools %} + {{- '<|im_start|>system\n' }} + {%- if messages[0]['role'] == 'system' %} + {{- messages[0]['content'] }} + {%- else %} + {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }} + {%- endif %} + {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within XML tags:\n" }} + {%- for tool in tools %} + {{- "\n" }} + {{- tool | tojson }} + {%- endfor %} + {{- "\n\n\nFor each function call, return a json object with function name and arguments within XML tags:\n\n{\"name\": , \"arguments\": }\n<|im_end|>\n" }} +{%- else %} + {%- if messages[0]['role'] == 'system' %} + {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }} + {%- else %} + {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }} + {%- endif %} +{%- endif %} +{%- for message in messages %} + {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %} + {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} + {%- elif message.role == "assistant" %} + {{- '<|im_start|>' + message.role }} + {%- if message.content %} + {{- '\n' + message.content }} + {%- endif %} + {%- for tool_call in message.tool_calls %} + {%- if tool_call.function is defined %} + {%- set tool_call = tool_call.function %} + {%- endif %} + {{- '\n\n{"name": "' }} + {{- tool_call.name }} + {{- '", "arguments": ' }} + {{- tool_call.arguments | tojson }} + {{- '}\n' }} + {%- endfor %} + {{- '<|im_end|>\n' }} + {%- elif message.role == "tool" %} + {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} + {{- '<|im_start|>user' }} + {%- endif %} + {{- '\n\n' }} + {{- message.content }} + {{- '\n' }} + {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} + {{- '<|im_end|>\n' }} + {%- endif %} + {%- endif %} +{%- endfor %} +{%- if add_generation_prompt %} + {{- '<|im_start|>assistant\n' }} +{%- endif %} diff --git a/adapter/checkpoint-12/optimizer.pt b/adapter/checkpoint-12/optimizer.pt new file mode 100644 index 0000000000000000000000000000000000000000..7086904eb5a8f09ba340d46b984e0a676ab4ae19 --- /dev/null +++ b/adapter/checkpoint-12/optimizer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:87cff6786c1a5d91bbc130aef6c8654bed7dfc381eb68d75ea035bccbaf93034 +size 61403589 diff --git a/adapter/checkpoint-12/rng_state.pth b/adapter/checkpoint-12/rng_state.pth new file mode 100644 index 0000000000000000000000000000000000000000..1e468e0d2c180a6524ed28d778ae2c84ca6a29fb --- /dev/null +++ b/adapter/checkpoint-12/rng_state.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f8d70544fe4f9e4089b8a340f74743f3b37c7d641997e5cdb435859abedf08fa +size 14645 diff --git a/adapter/checkpoint-12/scheduler.pt b/adapter/checkpoint-12/scheduler.pt new file mode 100644 index 0000000000000000000000000000000000000000..d62e591b60c3b068eaaeb52cfee62bd59cc265f5 --- /dev/null +++ b/adapter/checkpoint-12/scheduler.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0cbc5e1a96446079dc6060633f077cc6bed80405813079cc23d8054ba8beaf5f +size 1465 diff --git a/adapter/checkpoint-12/tokenizer.json b/adapter/checkpoint-12/tokenizer.json new file mode 100644 index 0000000000000000000000000000000000000000..34510ff0037cd50428af467a17ead5a96140a32c --- /dev/null +++ b/adapter/checkpoint-12/tokenizer.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8 +size 11421892 diff --git a/adapter/checkpoint-12/tokenizer_config.json b/adapter/checkpoint-12/tokenizer_config.json new file mode 100644 index 0000000000000000000000000000000000000000..770e41d6c92519d525eede4cbcf3ba27f6425311 --- /dev/null +++ b/adapter/checkpoint-12/tokenizer_config.json @@ -0,0 +1,30 @@ +{ + "add_prefix_space": false, + "backend": "tokenizers", + "bos_token": null, + "clean_up_tokenization_spaces": false, + "eos_token": "<|im_end|>", + "errors": "replace", + "extra_special_tokens": [ + "<|im_start|>", + "<|im_end|>", + "<|object_ref_start|>", + "<|object_ref_end|>", + "<|box_start|>", + "<|box_end|>", + "<|quad_start|>", + "<|quad_end|>", + "<|vision_start|>", + "<|vision_end|>", + "<|vision_pad|>", + "<|image_pad|>", + "<|video_pad|>" + ], + "is_local": false, + "local_files_only": false, + "model_max_length": 131072, + "pad_token": "<|endoftext|>", + "split_special_tokens": false, + "tokenizer_class": "Qwen2Tokenizer", + "unk_token": null +} diff --git a/adapter/checkpoint-12/trainer_state.json b/adapter/checkpoint-12/trainer_state.json new file mode 100644 index 0000000000000000000000000000000000000000..9cca076840fabd66b11557c73509f087b6533a10 --- /dev/null +++ b/adapter/checkpoint-12/trainer_state.json @@ -0,0 +1,44 @@ +{ + "best_global_step": null, + "best_metric": null, + "best_model_checkpoint": null, + "epoch": 12.0, + "eval_steps": 500, + "global_step": 12, + "is_hyper_param_search": false, + "is_local_process_zero": true, + "is_world_process_zero": true, + "log_history": [ + { + "entropy": 1.4535226494073867, + "epoch": 10.0, + "grad_norm": 3.046875, + "learning_rate": 8e-05, + "loss": 2.295806121826172, + "mean_token_accuracy": 0.6982592329382896, + "num_tokens": 6910.0, + "step": 10 + } + ], + "logging_steps": 10, + "max_steps": 15, + "num_input_tokens_seen": 0, + "num_train_epochs": 15, + "save_steps": 500, + "stateful_callbacks": { + "TrainerControl": { + "args": { + "should_epoch_stop": false, + "should_evaluate": false, + "should_log": false, + "should_save": true, + "should_training_stop": false + }, + "attributes": {} + } + }, + "total_flos": 149653573607424.0, + "train_batch_size": 4, + "trial_name": null, + "trial_params": null +} diff --git a/adapter/checkpoint-12/training_args.bin b/adapter/checkpoint-12/training_args.bin new file mode 100644 index 0000000000000000000000000000000000000000..e352ea250e44b9e2c1c02e8e7de50df5392524fe --- /dev/null +++ b/adapter/checkpoint-12/training_args.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd900ebda7b3712c4d07af35b3611b0288bd1613efc2d494a87d59aff783433b +size 5841 diff --git a/adapter/checkpoint-13/README.md b/adapter/checkpoint-13/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1f3df00e32aebf12d907a42b7d64321fd6ef999c --- /dev/null +++ b/adapter/checkpoint-13/README.md @@ -0,0 +1,209 @@ +--- +base_model: Qwen/Qwen2.5-3B-Instruct +library_name: peft +pipeline_tag: text-generation +tags: +- base_model:adapter:Qwen/Qwen2.5-3B-Instruct +- lora +- sft +- transformers +- trl +--- + +# Model Card for Model ID + + + + + +## Model Details + +### Model Description + + + + + +- **Developed by:** [More Information Needed] +- **Funded by [optional]:** [More Information Needed] +- **Shared by [optional]:** [More Information Needed] +- **Model type:** [More Information Needed] +- **Language(s) (NLP):** [More Information Needed] +- **License:** [More Information Needed] +- **Finetuned from model [optional]:** [More Information Needed] + +### Model Sources [optional] + + + +- **Repository:** [More Information Needed] +- **Paper [optional]:** [More Information Needed] +- **Demo [optional]:** [More Information Needed] + +## Uses + + + +### Direct Use + + + +[More Information Needed] + +### Downstream Use [optional] + + + +[More Information Needed] + +### Out-of-Scope Use + + + +[More Information Needed] + +## Bias, Risks, and Limitations + + + +[More Information Needed] + +### Recommendations + + + +Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations. + +## How to Get Started with the Model + +Use the code below to get started with the model. + +[More Information Needed] + +## Training Details + +### Training Data + + + +[More Information Needed] + +### Training Procedure + + + +#### Preprocessing [optional] + +[More Information Needed] + + +#### Training Hyperparameters + +- **Training regime:** [More Information Needed] + +#### Speeds, Sizes, Times [optional] + + + +[More Information Needed] + +## Evaluation + + + +### Testing Data, Factors & Metrics + +#### Testing Data + + + +[More Information Needed] + +#### Factors + + + +[More Information Needed] + +#### Metrics + + + +[More Information Needed] + +### Results + +[More Information Needed] + +#### Summary + + + +## Model Examination [optional] + + + +[More Information Needed] + +## Environmental Impact + + + +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). + +- **Hardware Type:** [More Information Needed] +- **Hours used:** [More Information Needed] +- **Cloud Provider:** [More Information Needed] +- **Compute Region:** [More Information Needed] +- **Carbon Emitted:** [More Information Needed] + +## Technical Specifications [optional] + +### Model Architecture and Objective + +[More Information Needed] + +### Compute Infrastructure + +[More Information Needed] + +#### Hardware + +[More Information Needed] + +#### Software + +[More Information Needed] + +## Citation [optional] + + + +**BibTeX:** + +[More Information Needed] + +**APA:** + +[More Information Needed] + +## Glossary [optional] + + + +[More Information Needed] + +## More Information [optional] + +[More Information Needed] + +## Model Card Authors [optional] + +[More Information Needed] + +## Model Card Contact + +[More Information Needed] +### Framework versions + +- PEFT 0.20.0 \ No newline at end of file diff --git a/adapter/checkpoint-13/adapter_config.json b/adapter/checkpoint-13/adapter_config.json new file mode 100644 index 0000000000000000000000000000000000000000..a94aa479415cb712a22e6dac8d3f23d6ed08addb --- /dev/null +++ b/adapter/checkpoint-13/adapter_config.json @@ -0,0 +1,50 @@ +{ + "alora_invocation_tokens": null, + "alpha_pattern": {}, + "arrow_config": null, + "auto_mapping": null, + "base_model_name_or_path": "Qwen/Qwen2.5-3B-Instruct", + "bias": "none", + "corda_config": null, + "ensure_weight_tying": false, + "eva_config": null, + "exclude_modules": null, + "fan_in_fan_out": false, + "inference_mode": true, + "init_lora_weights": true, + "layer_replication": null, + "layers_pattern": null, + "layers_to_transform": null, + "loftq_config": {}, + "lora_alpha": 32, + "lora_bias": false, + "lora_dropout": 0.05, + "lora_ga_config": null, + "megatron_config": null, + "megatron_core": "megatron.core", + "modules_to_save": null, + "monteclora_config": null, + "peft_type": "LORA", + "peft_version": "0.20.0", + "qalora_group_size": 16, + "r": 16, + "rank_pattern": {}, + "revision": null, + "target_modules": [ + "gate_proj", + "up_proj", + "o_proj", + "v_proj", + "down_proj", + "k_proj", + "q_proj" + ], + "target_parameters": null, + "task_type": "CAUSAL_LM", + "trainable_token_indices": null, + "use_bdlora": null, + "use_dora": false, + "use_qalora": false, + "use_rslora": false, + "velora_config": null +} \ No newline at end of file diff --git a/adapter/checkpoint-13/adapter_model.safetensors b/adapter/checkpoint-13/adapter_model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..70f0bd269fe7e5b6af7e7661d1789d49672e0e38 --- /dev/null +++ b/adapter/checkpoint-13/adapter_model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45b40737c9ddc72ae19e833e08e169e5f1002bbd9aff96ce344550b4db23d7e5 +size 59934640 diff --git a/adapter/checkpoint-13/chat_template.jinja b/adapter/checkpoint-13/chat_template.jinja new file mode 100644 index 0000000000000000000000000000000000000000..bdf7919a96cfe43d50914a007b9c0877bd0ec27e --- /dev/null +++ b/adapter/checkpoint-13/chat_template.jinja @@ -0,0 +1,54 @@ +{%- if tools %} + {{- '<|im_start|>system\n' }} + {%- if messages[0]['role'] == 'system' %} + {{- messages[0]['content'] }} + {%- else %} + {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }} + {%- endif %} + {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within XML tags:\n" }} + {%- for tool in tools %} + {{- "\n" }} + {{- tool | tojson }} + {%- endfor %} + {{- "\n\n\nFor each function call, return a json object with function name and arguments within XML tags:\n\n{\"name\": , \"arguments\": }\n<|im_end|>\n" }} +{%- else %} + {%- if messages[0]['role'] == 'system' %} + {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }} + {%- else %} + {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }} + {%- endif %} +{%- endif %} +{%- for message in messages %} + {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %} + {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} + {%- elif message.role == "assistant" %} + {{- '<|im_start|>' + message.role }} + {%- if message.content %} + {{- '\n' + message.content }} + {%- endif %} + {%- for tool_call in message.tool_calls %} + {%- if tool_call.function is defined %} + {%- set tool_call = tool_call.function %} + {%- endif %} + {{- '\n\n{"name": "' }} + {{- tool_call.name }} + {{- '", "arguments": ' }} + {{- tool_call.arguments | tojson }} + {{- '}\n' }} + {%- endfor %} + {{- '<|im_end|>\n' }} + {%- elif message.role == "tool" %} + {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} + {{- '<|im_start|>user' }} + {%- endif %} + {{- '\n\n' }} + {{- message.content }} + {{- '\n' }} + {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} + {{- '<|im_end|>\n' }} + {%- endif %} + {%- endif %} +{%- endfor %} +{%- if add_generation_prompt %} + {{- '<|im_start|>assistant\n' }} +{%- endif %} diff --git a/adapter/checkpoint-13/optimizer.pt b/adapter/checkpoint-13/optimizer.pt new file mode 100644 index 0000000000000000000000000000000000000000..aead7d91de007b9e542cdce76dce8b78f61248ef --- /dev/null +++ b/adapter/checkpoint-13/optimizer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bdfa6deb4f989862f3cd407e10f2ac9d06d1137109a053701d5ce06c6a68e617 +size 61403589 diff --git a/adapter/checkpoint-13/rng_state.pth b/adapter/checkpoint-13/rng_state.pth new file mode 100644 index 0000000000000000000000000000000000000000..8d87e9901b23611c4c676cd7ad2d9cde39972d02 --- /dev/null +++ b/adapter/checkpoint-13/rng_state.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9a6a17cfdedefeaeb41c1a3b598f9031a4c3f7307c3f6190536b4539eb8ba632 +size 14645 diff --git a/adapter/checkpoint-13/scheduler.pt b/adapter/checkpoint-13/scheduler.pt new file mode 100644 index 0000000000000000000000000000000000000000..8d0ca8ad2818da4ca3e99db8591bc2f4e5510356 --- /dev/null +++ b/adapter/checkpoint-13/scheduler.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99dcdc0341b09b3112d2c135a3e27e58412eed4be6ef48ae3e4603694757a798 +size 1465 diff --git a/adapter/checkpoint-13/tokenizer.json b/adapter/checkpoint-13/tokenizer.json new file mode 100644 index 0000000000000000000000000000000000000000..34510ff0037cd50428af467a17ead5a96140a32c --- /dev/null +++ b/adapter/checkpoint-13/tokenizer.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8 +size 11421892 diff --git a/adapter/checkpoint-13/tokenizer_config.json b/adapter/checkpoint-13/tokenizer_config.json new file mode 100644 index 0000000000000000000000000000000000000000..770e41d6c92519d525eede4cbcf3ba27f6425311 --- /dev/null +++ b/adapter/checkpoint-13/tokenizer_config.json @@ -0,0 +1,30 @@ +{ + "add_prefix_space": false, + "backend": "tokenizers", + "bos_token": null, + "clean_up_tokenization_spaces": false, + "eos_token": "<|im_end|>", + "errors": "replace", + "extra_special_tokens": [ + "<|im_start|>", + "<|im_end|>", + "<|object_ref_start|>", + "<|object_ref_end|>", + "<|box_start|>", + "<|box_end|>", + "<|quad_start|>", + "<|quad_end|>", + "<|vision_start|>", + "<|vision_end|>", + "<|vision_pad|>", + "<|image_pad|>", + "<|video_pad|>" + ], + "is_local": false, + "local_files_only": false, + "model_max_length": 131072, + "pad_token": "<|endoftext|>", + "split_special_tokens": false, + "tokenizer_class": "Qwen2Tokenizer", + "unk_token": null +} diff --git a/adapter/checkpoint-13/trainer_state.json b/adapter/checkpoint-13/trainer_state.json new file mode 100644 index 0000000000000000000000000000000000000000..e288c088d3d1289acffe548537ae4f35ea420958 --- /dev/null +++ b/adapter/checkpoint-13/trainer_state.json @@ -0,0 +1,44 @@ +{ + "best_global_step": null, + "best_metric": null, + "best_model_checkpoint": null, + "epoch": 13.0, + "eval_steps": 500, + "global_step": 13, + "is_hyper_param_search": false, + "is_local_process_zero": true, + "is_world_process_zero": true, + "log_history": [ + { + "entropy": 1.4535226494073867, + "epoch": 10.0, + "grad_norm": 3.046875, + "learning_rate": 8e-05, + "loss": 2.295806121826172, + "mean_token_accuracy": 0.6982592329382896, + "num_tokens": 6910.0, + "step": 10 + } + ], + "logging_steps": 10, + "max_steps": 15, + "num_input_tokens_seen": 0, + "num_train_epochs": 15, + "save_steps": 500, + "stateful_callbacks": { + "TrainerControl": { + "args": { + "should_epoch_stop": false, + "should_evaluate": false, + "should_log": false, + "should_save": true, + "should_training_stop": false + }, + "attributes": {} + } + }, + "total_flos": 162072817655808.0, + "train_batch_size": 4, + "trial_name": null, + "trial_params": null +} diff --git a/adapter/checkpoint-13/training_args.bin b/adapter/checkpoint-13/training_args.bin new file mode 100644 index 0000000000000000000000000000000000000000..e352ea250e44b9e2c1c02e8e7de50df5392524fe --- /dev/null +++ b/adapter/checkpoint-13/training_args.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd900ebda7b3712c4d07af35b3611b0288bd1613efc2d494a87d59aff783433b +size 5841 diff --git a/adapter/checkpoint-14/README.md b/adapter/checkpoint-14/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1f3df00e32aebf12d907a42b7d64321fd6ef999c --- /dev/null +++ b/adapter/checkpoint-14/README.md @@ -0,0 +1,209 @@ +--- +base_model: Qwen/Qwen2.5-3B-Instruct +library_name: peft +pipeline_tag: text-generation +tags: +- base_model:adapter:Qwen/Qwen2.5-3B-Instruct +- lora +- sft +- transformers +- trl +--- + +# Model Card for Model ID + + + + + +## Model Details + +### Model Description + + + + + +- **Developed by:** [More Information Needed] +- **Funded by [optional]:** [More Information Needed] +- **Shared by [optional]:** [More Information Needed] +- **Model type:** [More Information Needed] +- **Language(s) (NLP):** [More Information Needed] +- **License:** [More Information Needed] +- **Finetuned from model [optional]:** [More Information Needed] + +### Model Sources [optional] + + + +- **Repository:** [More Information Needed] +- **Paper [optional]:** [More Information Needed] +- **Demo [optional]:** [More Information Needed] + +## Uses + + + +### Direct Use + + + +[More Information Needed] + +### Downstream Use [optional] + + + +[More Information Needed] + +### Out-of-Scope Use + + + +[More Information Needed] + +## Bias, Risks, and Limitations + + + +[More Information Needed] + +### Recommendations + + + +Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations. + +## How to Get Started with the Model + +Use the code below to get started with the model. + +[More Information Needed] + +## Training Details + +### Training Data + + + +[More Information Needed] + +### Training Procedure + + + +#### Preprocessing [optional] + +[More Information Needed] + + +#### Training Hyperparameters + +- **Training regime:** [More Information Needed] + +#### Speeds, Sizes, Times [optional] + + + +[More Information Needed] + +## Evaluation + + + +### Testing Data, Factors & Metrics + +#### Testing Data + + + +[More Information Needed] + +#### Factors + + + +[More Information Needed] + +#### Metrics + + + +[More Information Needed] + +### Results + +[More Information Needed] + +#### Summary + + + +## Model Examination [optional] + + + +[More Information Needed] + +## Environmental Impact + + + +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). + +- **Hardware Type:** [More Information Needed] +- **Hours used:** [More Information Needed] +- **Cloud Provider:** [More Information Needed] +- **Compute Region:** [More Information Needed] +- **Carbon Emitted:** [More Information Needed] + +## Technical Specifications [optional] + +### Model Architecture and Objective + +[More Information Needed] + +### Compute Infrastructure + +[More Information Needed] + +#### Hardware + +[More Information Needed] + +#### Software + +[More Information Needed] + +## Citation [optional] + + + +**BibTeX:** + +[More Information Needed] + +**APA:** + +[More Information Needed] + +## Glossary [optional] + + + +[More Information Needed] + +## More Information [optional] + +[More Information Needed] + +## Model Card Authors [optional] + +[More Information Needed] + +## Model Card Contact + +[More Information Needed] +### Framework versions + +- PEFT 0.20.0 \ No newline at end of file diff --git a/adapter/checkpoint-14/adapter_config.json b/adapter/checkpoint-14/adapter_config.json new file mode 100644 index 0000000000000000000000000000000000000000..a94aa479415cb712a22e6dac8d3f23d6ed08addb --- /dev/null +++ b/adapter/checkpoint-14/adapter_config.json @@ -0,0 +1,50 @@ +{ + "alora_invocation_tokens": null, + "alpha_pattern": {}, + "arrow_config": null, + "auto_mapping": null, + "base_model_name_or_path": "Qwen/Qwen2.5-3B-Instruct", + "bias": "none", + "corda_config": null, + "ensure_weight_tying": false, + "eva_config": null, + "exclude_modules": null, + "fan_in_fan_out": false, + "inference_mode": true, + "init_lora_weights": true, + "layer_replication": null, + "layers_pattern": null, + "layers_to_transform": null, + "loftq_config": {}, + "lora_alpha": 32, + "lora_bias": false, + "lora_dropout": 0.05, + "lora_ga_config": null, + "megatron_config": null, + "megatron_core": "megatron.core", + "modules_to_save": null, + "monteclora_config": null, + "peft_type": "LORA", + "peft_version": "0.20.0", + "qalora_group_size": 16, + "r": 16, + "rank_pattern": {}, + "revision": null, + "target_modules": [ + "gate_proj", + "up_proj", + "o_proj", + "v_proj", + "down_proj", + "k_proj", + "q_proj" + ], + "target_parameters": null, + "task_type": "CAUSAL_LM", + "trainable_token_indices": null, + "use_bdlora": null, + "use_dora": false, + "use_qalora": false, + "use_rslora": false, + "velora_config": null +} \ No newline at end of file diff --git a/adapter/checkpoint-14/adapter_model.safetensors b/adapter/checkpoint-14/adapter_model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..eb5666ba0422c9a697811916002aa03b9f999039 --- /dev/null +++ b/adapter/checkpoint-14/adapter_model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a476e70c9e67048c4892fd9f5e9f70ded338d85ef5c44a86141c2ce49763a1ee +size 59934640 diff --git a/adapter/checkpoint-14/chat_template.jinja b/adapter/checkpoint-14/chat_template.jinja new file mode 100644 index 0000000000000000000000000000000000000000..bdf7919a96cfe43d50914a007b9c0877bd0ec27e --- /dev/null +++ b/adapter/checkpoint-14/chat_template.jinja @@ -0,0 +1,54 @@ +{%- if tools %} + {{- '<|im_start|>system\n' }} + {%- if messages[0]['role'] == 'system' %} + {{- messages[0]['content'] }} + {%- else %} + {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }} + {%- endif %} + {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within XML tags:\n" }} + {%- for tool in tools %} + {{- "\n" }} + {{- tool | tojson }} + {%- endfor %} + {{- "\n\n\nFor each function call, return a json object with function name and arguments within XML tags:\n\n{\"name\": , \"arguments\": }\n<|im_end|>\n" }} +{%- else %} + {%- if messages[0]['role'] == 'system' %} + {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }} + {%- else %} + {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }} + {%- endif %} +{%- endif %} +{%- for message in messages %} + {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %} + {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} + {%- elif message.role == "assistant" %} + {{- '<|im_start|>' + message.role }} + {%- if message.content %} + {{- '\n' + message.content }} + {%- endif %} + {%- for tool_call in message.tool_calls %} + {%- if tool_call.function is defined %} + {%- set tool_call = tool_call.function %} + {%- endif %} + {{- '\n\n{"name": "' }} + {{- tool_call.name }} + {{- '", "arguments": ' }} + {{- tool_call.arguments | tojson }} + {{- '}\n' }} + {%- endfor %} + {{- '<|im_end|>\n' }} + {%- elif message.role == "tool" %} + {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} + {{- '<|im_start|>user' }} + {%- endif %} + {{- '\n\n' }} + {{- message.content }} + {{- '\n' }} + {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} + {{- '<|im_end|>\n' }} + {%- endif %} + {%- endif %} +{%- endfor %} +{%- if add_generation_prompt %} + {{- '<|im_start|>assistant\n' }} +{%- endif %} diff --git a/adapter/checkpoint-14/optimizer.pt b/adapter/checkpoint-14/optimizer.pt new file mode 100644 index 0000000000000000000000000000000000000000..cb3b8f999edc31354ba772a7ebac7a707a925730 --- /dev/null +++ b/adapter/checkpoint-14/optimizer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b11d2a906c1b8dda251b88971127a4508d57b0e527c64be76bc3ce5c13b72406 +size 61403589 diff --git a/adapter/checkpoint-14/rng_state.pth b/adapter/checkpoint-14/rng_state.pth new file mode 100644 index 0000000000000000000000000000000000000000..0af36de15e8e035c441fea84fb6cf69bc3c799e1 --- /dev/null +++ b/adapter/checkpoint-14/rng_state.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c54cf0bbcb619f0d70315d50d5959ee8de0639daf163e1cd84ac30fa96ebc1d1 +size 14645 diff --git a/adapter/checkpoint-14/scheduler.pt b/adapter/checkpoint-14/scheduler.pt new file mode 100644 index 0000000000000000000000000000000000000000..6a1023218ff3f9e97010fd3e2341d781b965c923 --- /dev/null +++ b/adapter/checkpoint-14/scheduler.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e45ce322eaf750faa96a540bd8c712cec8e74b584a4138a154aa172d3a9b52e5 +size 1465 diff --git a/adapter/checkpoint-14/tokenizer.json b/adapter/checkpoint-14/tokenizer.json new file mode 100644 index 0000000000000000000000000000000000000000..34510ff0037cd50428af467a17ead5a96140a32c --- /dev/null +++ b/adapter/checkpoint-14/tokenizer.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8 +size 11421892 diff --git a/adapter/checkpoint-14/tokenizer_config.json b/adapter/checkpoint-14/tokenizer_config.json new file mode 100644 index 0000000000000000000000000000000000000000..770e41d6c92519d525eede4cbcf3ba27f6425311 --- /dev/null +++ b/adapter/checkpoint-14/tokenizer_config.json @@ -0,0 +1,30 @@ +{ + "add_prefix_space": false, + "backend": "tokenizers", + "bos_token": null, + "clean_up_tokenization_spaces": false, + "eos_token": "<|im_end|>", + "errors": "replace", + "extra_special_tokens": [ + "<|im_start|>", + "<|im_end|>", + "<|object_ref_start|>", + "<|object_ref_end|>", + "<|box_start|>", + "<|box_end|>", + "<|quad_start|>", + "<|quad_end|>", + "<|vision_start|>", + "<|vision_end|>", + "<|vision_pad|>", + "<|image_pad|>", + "<|video_pad|>" + ], + "is_local": false, + "local_files_only": false, + "model_max_length": 131072, + "pad_token": "<|endoftext|>", + "split_special_tokens": false, + "tokenizer_class": "Qwen2Tokenizer", + "unk_token": null +} diff --git a/adapter/checkpoint-14/trainer_state.json b/adapter/checkpoint-14/trainer_state.json new file mode 100644 index 0000000000000000000000000000000000000000..4544627ee9034ae75f7a43ad46034ce518b2c072 --- /dev/null +++ b/adapter/checkpoint-14/trainer_state.json @@ -0,0 +1,44 @@ +{ + "best_global_step": null, + "best_metric": null, + "best_model_checkpoint": null, + "epoch": 14.0, + "eval_steps": 500, + "global_step": 14, + "is_hyper_param_search": false, + "is_local_process_zero": true, + "is_world_process_zero": true, + "log_history": [ + { + "entropy": 1.4535226494073867, + "epoch": 10.0, + "grad_norm": 3.046875, + "learning_rate": 8e-05, + "loss": 2.295806121826172, + "mean_token_accuracy": 0.6982592329382896, + "num_tokens": 6910.0, + "step": 10 + } + ], + "logging_steps": 10, + "max_steps": 15, + "num_input_tokens_seen": 0, + "num_train_epochs": 15, + "save_steps": 500, + "stateful_callbacks": { + "TrainerControl": { + "args": { + "should_epoch_stop": false, + "should_evaluate": false, + "should_log": false, + "should_save": true, + "should_training_stop": false + }, + "attributes": {} + } + }, + "total_flos": 174643515899904.0, + "train_batch_size": 4, + "trial_name": null, + "trial_params": null +} diff --git a/adapter/checkpoint-14/training_args.bin b/adapter/checkpoint-14/training_args.bin new file mode 100644 index 0000000000000000000000000000000000000000..e352ea250e44b9e2c1c02e8e7de50df5392524fe --- /dev/null +++ b/adapter/checkpoint-14/training_args.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd900ebda7b3712c4d07af35b3611b0288bd1613efc2d494a87d59aff783433b +size 5841 diff --git a/adapter/checkpoint-15/README.md b/adapter/checkpoint-15/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1f3df00e32aebf12d907a42b7d64321fd6ef999c --- /dev/null +++ b/adapter/checkpoint-15/README.md @@ -0,0 +1,209 @@ +--- +base_model: Qwen/Qwen2.5-3B-Instruct +library_name: peft +pipeline_tag: text-generation +tags: +- base_model:adapter:Qwen/Qwen2.5-3B-Instruct +- lora +- sft +- transformers +- trl +--- + +# Model Card for Model ID + + + + + +## Model Details + +### Model Description + + + + + +- **Developed by:** [More Information Needed] +- **Funded by [optional]:** [More Information Needed] +- **Shared by [optional]:** [More Information Needed] +- **Model type:** [More Information Needed] +- **Language(s) (NLP):** [More Information Needed] +- **License:** [More Information Needed] +- **Finetuned from model [optional]:** [More Information Needed] + +### Model Sources [optional] + + + +- **Repository:** [More Information Needed] +- **Paper [optional]:** [More Information Needed] +- **Demo [optional]:** [More Information Needed] + +## Uses + + + +### Direct Use + + + +[More Information Needed] + +### Downstream Use [optional] + + + +[More Information Needed] + +### Out-of-Scope Use + + + +[More Information Needed] + +## Bias, Risks, and Limitations + + + +[More Information Needed] + +### Recommendations + + + +Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations. + +## How to Get Started with the Model + +Use the code below to get started with the model. + +[More Information Needed] + +## Training Details + +### Training Data + + + +[More Information Needed] + +### Training Procedure + + + +#### Preprocessing [optional] + +[More Information Needed] + + +#### Training Hyperparameters + +- **Training regime:** [More Information Needed] + +#### Speeds, Sizes, Times [optional] + + + +[More Information Needed] + +## Evaluation + + + +### Testing Data, Factors & Metrics + +#### Testing Data + + + +[More Information Needed] + +#### Factors + + + +[More Information Needed] + +#### Metrics + + + +[More Information Needed] + +### Results + +[More Information Needed] + +#### Summary + + + +## Model Examination [optional] + + + +[More Information Needed] + +## Environmental Impact + + + +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). + +- **Hardware Type:** [More Information Needed] +- **Hours used:** [More Information Needed] +- **Cloud Provider:** [More Information Needed] +- **Compute Region:** [More Information Needed] +- **Carbon Emitted:** [More Information Needed] + +## Technical Specifications [optional] + +### Model Architecture and Objective + +[More Information Needed] + +### Compute Infrastructure + +[More Information Needed] + +#### Hardware + +[More Information Needed] + +#### Software + +[More Information Needed] + +## Citation [optional] + + + +**BibTeX:** + +[More Information Needed] + +**APA:** + +[More Information Needed] + +## Glossary [optional] + + + +[More Information Needed] + +## More Information [optional] + +[More Information Needed] + +## Model Card Authors [optional] + +[More Information Needed] + +## Model Card Contact + +[More Information Needed] +### Framework versions + +- PEFT 0.20.0 \ No newline at end of file diff --git a/adapter/checkpoint-15/adapter_config.json b/adapter/checkpoint-15/adapter_config.json new file mode 100644 index 0000000000000000000000000000000000000000..a94aa479415cb712a22e6dac8d3f23d6ed08addb --- /dev/null +++ b/adapter/checkpoint-15/adapter_config.json @@ -0,0 +1,50 @@ +{ + "alora_invocation_tokens": null, + "alpha_pattern": {}, + "arrow_config": null, + "auto_mapping": null, + "base_model_name_or_path": "Qwen/Qwen2.5-3B-Instruct", + "bias": "none", + "corda_config": null, + "ensure_weight_tying": false, + "eva_config": null, + "exclude_modules": null, + "fan_in_fan_out": false, + "inference_mode": true, + "init_lora_weights": true, + "layer_replication": null, + "layers_pattern": null, + "layers_to_transform": null, + "loftq_config": {}, + "lora_alpha": 32, + "lora_bias": false, + "lora_dropout": 0.05, + "lora_ga_config": null, + "megatron_config": null, + "megatron_core": "megatron.core", + "modules_to_save": null, + "monteclora_config": null, + "peft_type": "LORA", + "peft_version": "0.20.0", + "qalora_group_size": 16, + "r": 16, + "rank_pattern": {}, + "revision": null, + "target_modules": [ + "gate_proj", + "up_proj", + "o_proj", + "v_proj", + "down_proj", + "k_proj", + "q_proj" + ], + "target_parameters": null, + "task_type": "CAUSAL_LM", + "trainable_token_indices": null, + "use_bdlora": null, + "use_dora": false, + "use_qalora": false, + "use_rslora": false, + "velora_config": null +} \ No newline at end of file diff --git a/adapter/checkpoint-15/adapter_model.safetensors b/adapter/checkpoint-15/adapter_model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..861fbb9f85ceef292d1e10aec3f3d60b2fe00d9a --- /dev/null +++ b/adapter/checkpoint-15/adapter_model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:98c1a96e3957d6f2d8ac76a92aaead06fd6271985eba9a3c6751e465f80dd2af +size 59934640 diff --git a/adapter/checkpoint-15/chat_template.jinja b/adapter/checkpoint-15/chat_template.jinja new file mode 100644 index 0000000000000000000000000000000000000000..bdf7919a96cfe43d50914a007b9c0877bd0ec27e --- /dev/null +++ b/adapter/checkpoint-15/chat_template.jinja @@ -0,0 +1,54 @@ +{%- if tools %} + {{- '<|im_start|>system\n' }} + {%- if messages[0]['role'] == 'system' %} + {{- messages[0]['content'] }} + {%- else %} + {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }} + {%- endif %} + {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within XML tags:\n" }} + {%- for tool in tools %} + {{- "\n" }} + {{- tool | tojson }} + {%- endfor %} + {{- "\n\n\nFor each function call, return a json object with function name and arguments within XML tags:\n\n{\"name\": , \"arguments\": }\n<|im_end|>\n" }} +{%- else %} + {%- if messages[0]['role'] == 'system' %} + {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }} + {%- else %} + {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }} + {%- endif %} +{%- endif %} +{%- for message in messages %} + {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %} + {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} + {%- elif message.role == "assistant" %} + {{- '<|im_start|>' + message.role }} + {%- if message.content %} + {{- '\n' + message.content }} + {%- endif %} + {%- for tool_call in message.tool_calls %} + {%- if tool_call.function is defined %} + {%- set tool_call = tool_call.function %} + {%- endif %} + {{- '\n\n{"name": "' }} + {{- tool_call.name }} + {{- '", "arguments": ' }} + {{- tool_call.arguments | tojson }} + {{- '}\n' }} + {%- endfor %} + {{- '<|im_end|>\n' }} + {%- elif message.role == "tool" %} + {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} + {{- '<|im_start|>user' }} + {%- endif %} + {{- '\n\n' }} + {{- message.content }} + {{- '\n' }} + {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} + {{- '<|im_end|>\n' }} + {%- endif %} + {%- endif %} +{%- endfor %} +{%- if add_generation_prompt %} + {{- '<|im_start|>assistant\n' }} +{%- endif %} diff --git a/adapter/checkpoint-15/optimizer.pt b/adapter/checkpoint-15/optimizer.pt new file mode 100644 index 0000000000000000000000000000000000000000..b92b2197c4b6785b7c6d75ff32398da3fbdddb1d --- /dev/null +++ b/adapter/checkpoint-15/optimizer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c7b95523d0eb0840773e7a8a89b454480020e49a49280c0ee0d138341c3598f +size 61403589 diff --git a/adapter/checkpoint-15/rng_state.pth b/adapter/checkpoint-15/rng_state.pth new file mode 100644 index 0000000000000000000000000000000000000000..2bed5227a7b0c116ae619926ecd6e25d069cc386 --- /dev/null +++ b/adapter/checkpoint-15/rng_state.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:030a96d2aa772f61f337eab4731cf35674a8a1071fdd08ea3ee204430166e642 +size 14645 diff --git a/adapter/checkpoint-15/scheduler.pt b/adapter/checkpoint-15/scheduler.pt new file mode 100644 index 0000000000000000000000000000000000000000..675c380b2151d5cb0b133da36d57fecb4ec0e68f --- /dev/null +++ b/adapter/checkpoint-15/scheduler.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ee3dc07530a8d7300178376174a74cf13550f2735522ee453f83a9fb41435954 +size 1465 diff --git a/adapter/checkpoint-15/tokenizer.json b/adapter/checkpoint-15/tokenizer.json new file mode 100644 index 0000000000000000000000000000000000000000..34510ff0037cd50428af467a17ead5a96140a32c --- /dev/null +++ b/adapter/checkpoint-15/tokenizer.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8 +size 11421892 diff --git a/adapter/checkpoint-15/tokenizer_config.json b/adapter/checkpoint-15/tokenizer_config.json new file mode 100644 index 0000000000000000000000000000000000000000..770e41d6c92519d525eede4cbcf3ba27f6425311 --- /dev/null +++ b/adapter/checkpoint-15/tokenizer_config.json @@ -0,0 +1,30 @@ +{ + "add_prefix_space": false, + "backend": "tokenizers", + "bos_token": null, + "clean_up_tokenization_spaces": false, + "eos_token": "<|im_end|>", + "errors": "replace", + "extra_special_tokens": [ + "<|im_start|>", + "<|im_end|>", + "<|object_ref_start|>", + "<|object_ref_end|>", + "<|box_start|>", + "<|box_end|>", + "<|quad_start|>", + "<|quad_end|>", + "<|vision_start|>", + "<|vision_end|>", + "<|vision_pad|>", + "<|image_pad|>", + "<|video_pad|>" + ], + "is_local": false, + "local_files_only": false, + "model_max_length": 131072, + "pad_token": "<|endoftext|>", + "split_special_tokens": false, + "tokenizer_class": "Qwen2Tokenizer", + "unk_token": null +} diff --git a/adapter/checkpoint-15/trainer_state.json b/adapter/checkpoint-15/trainer_state.json new file mode 100644 index 0000000000000000000000000000000000000000..7d8ea5b08ce1cc2e28a2e508d066981c18540d4f --- /dev/null +++ b/adapter/checkpoint-15/trainer_state.json @@ -0,0 +1,44 @@ +{ + "best_global_step": null, + "best_metric": null, + "best_model_checkpoint": null, + "epoch": 15.0, + "eval_steps": 500, + "global_step": 15, + "is_hyper_param_search": false, + "is_local_process_zero": true, + "is_world_process_zero": true, + "log_history": [ + { + "entropy": 1.4535226494073867, + "epoch": 10.0, + "grad_norm": 3.046875, + "learning_rate": 8e-05, + "loss": 2.295806121826172, + "mean_token_accuracy": 0.6982592329382896, + "num_tokens": 6910.0, + "step": 10 + } + ], + "logging_steps": 10, + "max_steps": 15, + "num_input_tokens_seen": 0, + "num_train_epochs": 15, + "save_steps": 500, + "stateful_callbacks": { + "TrainerControl": { + "args": { + "should_epoch_stop": false, + "should_evaluate": false, + "should_log": false, + "should_save": true, + "should_training_stop": true + }, + "attributes": {} + } + }, + "total_flos": 187332011851776.0, + "train_batch_size": 4, + "trial_name": null, + "trial_params": null +} diff --git a/adapter/checkpoint-15/training_args.bin b/adapter/checkpoint-15/training_args.bin new file mode 100644 index 0000000000000000000000000000000000000000..e352ea250e44b9e2c1c02e8e7de50df5392524fe --- /dev/null +++ b/adapter/checkpoint-15/training_args.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd900ebda7b3712c4d07af35b3611b0288bd1613efc2d494a87d59aff783433b +size 5841 diff --git a/adapter/checkpoint-2/README.md b/adapter/checkpoint-2/README.md index b760a3ab8435e9bfbbe3454c611ed515aab120d9..1f3df00e32aebf12d907a42b7d64321fd6ef999c 100644 --- a/adapter/checkpoint-2/README.md +++ b/adapter/checkpoint-2/README.md @@ -1,9 +1,9 @@ --- -base_model: Qwen/Qwen2.5-0.5B-Instruct +base_model: Qwen/Qwen2.5-3B-Instruct library_name: peft pipeline_tag: text-generation tags: -- base_model:adapter:Qwen/Qwen2.5-0.5B-Instruct +- base_model:adapter:Qwen/Qwen2.5-3B-Instruct - lora - sft - transformers diff --git a/adapter/checkpoint-2/adapter_config.json b/adapter/checkpoint-2/adapter_config.json index 4d35bb2cfa55fc8acc4a106ece3ee063e4d7faba..a94aa479415cb712a22e6dac8d3f23d6ed08addb 100644 --- a/adapter/checkpoint-2/adapter_config.json +++ b/adapter/checkpoint-2/adapter_config.json @@ -3,7 +3,7 @@ "alpha_pattern": {}, "arrow_config": null, "auto_mapping": null, - "base_model_name_or_path": "Qwen/Qwen2.5-0.5B-Instruct", + "base_model_name_or_path": "Qwen/Qwen2.5-3B-Instruct", "bias": "none", "corda_config": null, "ensure_weight_tying": false, @@ -33,10 +33,10 @@ "target_modules": [ "gate_proj", "up_proj", + "o_proj", + "v_proj", "down_proj", "k_proj", - "v_proj", - "o_proj", "q_proj" ], "target_parameters": null, diff --git a/adapter/checkpoint-2/adapter_model.safetensors b/adapter/checkpoint-2/adapter_model.safetensors index d75baca86afafe763efb21f9f415f74237ff3da1..a93d65d272b4d3a19d96452efe3194bcd3c98c2d 100644 --- a/adapter/checkpoint-2/adapter_model.safetensors +++ b/adapter/checkpoint-2/adapter_model.safetensors @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9a8de4260b33d63599ae1b74fc7cf28a708c8065c67a7ac8014db4fb63b7329b -size 17640808 +oid sha256:9e59d9845c2883cb094ca32fd920c1c51e66ddd69e86c6b02fd46e3f3051cddc +size 59934640 diff --git a/adapter/checkpoint-2/optimizer.pt b/adapter/checkpoint-2/optimizer.pt index 176093005e828775edfcd8a35f66264d5815f8e8..a42a247f3791d9fc14b31eedc8d6bee5d9e71eab 100644 --- a/adapter/checkpoint-2/optimizer.pt +++ b/adapter/checkpoint-2/optimizer.pt @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8614e4153579e1eb3f75f3a1a8a63d78e0f72cbbc3f7f67df617f7d37e6f3b07 -size 18813829 +oid sha256:6d0bc9dc9587e31a2378b3bc737cb6de7d1e512c821ec342a7b5c4d24db76862 +size 61403589 diff --git a/adapter/checkpoint-2/rng_state.pth b/adapter/checkpoint-2/rng_state.pth index 02af4171bbeb365004de63253f3b3d8453c09986..569495d140bff7fb1007bf7d1c8ce636dc5c50a3 100644 --- a/adapter/checkpoint-2/rng_state.pth +++ b/adapter/checkpoint-2/rng_state.pth @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c0504aa58d83bcecc89fe9b012e28ea8b68ae6c289a6bd78895b458a5cede92a +oid sha256:4a82fd058e4ea6698f0536785662ce43f061fdbe282304bfa19cb1850e163f30 size 14645 diff --git a/adapter/checkpoint-2/scheduler.pt b/adapter/checkpoint-2/scheduler.pt index 29883557dc4b83df0c01235b714492e13e687d2c..4a71388d386f6270fff0139c5e6339b64fb14915 100644 --- a/adapter/checkpoint-2/scheduler.pt +++ b/adapter/checkpoint-2/scheduler.pt @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2b1c8dd213dbf499a72a443cb92a219b535192ae497beb5ada6a9b21b3d4895d +oid sha256:0380ffd0dd81813deebfb1f9ba6ae0bf51b62307029bf39f8e365a99095924b9 size 1465 diff --git a/adapter/checkpoint-2/trainer_state.json b/adapter/checkpoint-2/trainer_state.json index c0391b5b4bb24867eacb97c3f6c533cfcba1819d..3d37b785e38542d20dd4d0027f7145e6f84d6b6b 100644 --- a/adapter/checkpoint-2/trainer_state.json +++ b/adapter/checkpoint-2/trainer_state.json @@ -10,9 +10,9 @@ "is_world_process_zero": true, "log_history": [], "logging_steps": 10, - "max_steps": 3, + "max_steps": 15, "num_input_tokens_seen": 0, - "num_train_epochs": 3, + "num_train_epochs": 15, "save_steps": 500, "stateful_callbacks": { "TrainerControl": { @@ -26,7 +26,7 @@ "attributes": {} } }, - "total_flos": 1432315825920.0, + "total_flos": 24922629316608.0, "train_batch_size": 4, "trial_name": null, "trial_params": null diff --git a/adapter/checkpoint-2/training_args.bin b/adapter/checkpoint-2/training_args.bin index 96de6b6e8bf186e03b3d10cbdaa82fdda5499b02..e352ea250e44b9e2c1c02e8e7de50df5392524fe 100644 --- a/adapter/checkpoint-2/training_args.bin +++ b/adapter/checkpoint-2/training_args.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:87556f713e6820a7bc84b071500798abc604556e0742e12686953a54b2c99110 +oid sha256:fd900ebda7b3712c4d07af35b3611b0288bd1613efc2d494a87d59aff783433b size 5841 diff --git a/adapter/checkpoint-3/README.md b/adapter/checkpoint-3/README.md index b760a3ab8435e9bfbbe3454c611ed515aab120d9..1f3df00e32aebf12d907a42b7d64321fd6ef999c 100644 --- a/adapter/checkpoint-3/README.md +++ b/adapter/checkpoint-3/README.md @@ -1,9 +1,9 @@ --- -base_model: Qwen/Qwen2.5-0.5B-Instruct +base_model: Qwen/Qwen2.5-3B-Instruct library_name: peft pipeline_tag: text-generation tags: -- base_model:adapter:Qwen/Qwen2.5-0.5B-Instruct +- base_model:adapter:Qwen/Qwen2.5-3B-Instruct - lora - sft - transformers diff --git a/adapter/checkpoint-3/adapter_config.json b/adapter/checkpoint-3/adapter_config.json index 4d35bb2cfa55fc8acc4a106ece3ee063e4d7faba..a94aa479415cb712a22e6dac8d3f23d6ed08addb 100644 --- a/adapter/checkpoint-3/adapter_config.json +++ b/adapter/checkpoint-3/adapter_config.json @@ -3,7 +3,7 @@ "alpha_pattern": {}, "arrow_config": null, "auto_mapping": null, - "base_model_name_or_path": "Qwen/Qwen2.5-0.5B-Instruct", + "base_model_name_or_path": "Qwen/Qwen2.5-3B-Instruct", "bias": "none", "corda_config": null, "ensure_weight_tying": false, @@ -33,10 +33,10 @@ "target_modules": [ "gate_proj", "up_proj", + "o_proj", + "v_proj", "down_proj", "k_proj", - "v_proj", - "o_proj", "q_proj" ], "target_parameters": null, diff --git a/adapter/checkpoint-3/adapter_model.safetensors b/adapter/checkpoint-3/adapter_model.safetensors index c6e2fa5db4a2dd0fa297f4c532798ba97f7ac74b..b684cc124505a457d05e06b9a3e071062377e8f5 100644 --- a/adapter/checkpoint-3/adapter_model.safetensors +++ b/adapter/checkpoint-3/adapter_model.safetensors @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:bf1f58f76013fb099110e7d77cfc45a57987dd97183050d98ae5556c5d8d6b15 -size 17640808 +oid sha256:1271a02ac30b811df23bf6d4ded5597b51c806f27458fc63f2790f6be6ef98f0 +size 59934640 diff --git a/adapter/checkpoint-3/optimizer.pt b/adapter/checkpoint-3/optimizer.pt index 7546a421cba353322b70ff6f09142117f0e9082d..f399a95aad0d7d5858f8b160f873d86c1eda8fbb 100644 --- a/adapter/checkpoint-3/optimizer.pt +++ b/adapter/checkpoint-3/optimizer.pt @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9ef8b27ae1617fa6d9ca072c0739c3382500dfe78592c92bb511171c9716661d -size 18813829 +oid sha256:8909fc0348e069e67578ae1ecd1dfc2ce7ab9dc95ae0178d58c4a4aa7c853417 +size 61403589 diff --git a/adapter/checkpoint-3/rng_state.pth b/adapter/checkpoint-3/rng_state.pth index 52d984a315bb954a4165914604fb44fc1b6b3ac5..dd8d7a910d82bb554289560825e2110238e538ca 100644 --- a/adapter/checkpoint-3/rng_state.pth +++ b/adapter/checkpoint-3/rng_state.pth @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9787c2242fff1bfcdd31770e2acf75d673835f6b6c92836c1bcafed861649558 +oid sha256:2ac0c0f9072cc85835af2a43ab25ccf7a65a9b94ca0e9558821301688d5fa48c size 14645 diff --git a/adapter/checkpoint-3/scheduler.pt b/adapter/checkpoint-3/scheduler.pt index 9d3f6681b9d8be17d8ebc960ecc50689ee90f185..5e39e52ffd1a4609dbea22429dfa08c36bce0c66 100644 --- a/adapter/checkpoint-3/scheduler.pt +++ b/adapter/checkpoint-3/scheduler.pt @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:20f601135fb1c21b354747a70d99ece80cd86319321f1ba2efe31f2545d37099 +oid sha256:022ab1bf1eed179dbdb78943f4bfb499aa713487e064db0aa6c424766805eca0 size 1465 diff --git a/adapter/checkpoint-3/trainer_state.json b/adapter/checkpoint-3/trainer_state.json index 48d6596524ab9f04fb064f5436cd84de93192aef..b95390fde62b05572b2e242256bcc2afd7a197e8 100644 --- a/adapter/checkpoint-3/trainer_state.json +++ b/adapter/checkpoint-3/trainer_state.json @@ -10,9 +10,9 @@ "is_world_process_zero": true, "log_history": [], "logging_steps": 10, - "max_steps": 3, + "max_steps": 15, "num_input_tokens_seen": 0, - "num_train_epochs": 3, + "num_train_epochs": 15, "save_steps": 500, "stateful_callbacks": { "TrainerControl": { @@ -21,12 +21,12 @@ "should_evaluate": false, "should_log": false, "should_save": true, - "should_training_stop": true + "should_training_stop": false }, "attributes": {} } }, - "total_flos": 2138572938240.0, + "total_flos": 37106277949440.0, "train_batch_size": 4, "trial_name": null, "trial_params": null diff --git a/adapter/checkpoint-3/training_args.bin b/adapter/checkpoint-3/training_args.bin index 96de6b6e8bf186e03b3d10cbdaa82fdda5499b02..e352ea250e44b9e2c1c02e8e7de50df5392524fe 100644 --- a/adapter/checkpoint-3/training_args.bin +++ b/adapter/checkpoint-3/training_args.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:87556f713e6820a7bc84b071500798abc604556e0742e12686953a54b2c99110 +oid sha256:fd900ebda7b3712c4d07af35b3611b0288bd1613efc2d494a87d59aff783433b size 5841 diff --git a/adapter/checkpoint-4/README.md b/adapter/checkpoint-4/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1f3df00e32aebf12d907a42b7d64321fd6ef999c --- /dev/null +++ b/adapter/checkpoint-4/README.md @@ -0,0 +1,209 @@ +--- +base_model: Qwen/Qwen2.5-3B-Instruct +library_name: peft +pipeline_tag: text-generation +tags: +- base_model:adapter:Qwen/Qwen2.5-3B-Instruct +- lora +- sft +- transformers +- trl +--- + +# Model Card for Model ID + + + + + +## Model Details + +### Model Description + + + + + +- **Developed by:** [More Information Needed] +- **Funded by [optional]:** [More Information Needed] +- **Shared by [optional]:** [More Information Needed] +- **Model type:** [More Information Needed] +- **Language(s) (NLP):** [More Information Needed] +- **License:** [More Information Needed] +- **Finetuned from model [optional]:** [More Information Needed] + +### Model Sources [optional] + + + +- **Repository:** [More Information Needed] +- **Paper [optional]:** [More Information Needed] +- **Demo [optional]:** [More Information Needed] + +## Uses + + + +### Direct Use + + + +[More Information Needed] + +### Downstream Use [optional] + + + +[More Information Needed] + +### Out-of-Scope Use + + + +[More Information Needed] + +## Bias, Risks, and Limitations + + + +[More Information Needed] + +### Recommendations + + + +Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations. + +## How to Get Started with the Model + +Use the code below to get started with the model. + +[More Information Needed] + +## Training Details + +### Training Data + + + +[More Information Needed] + +### Training Procedure + + + +#### Preprocessing [optional] + +[More Information Needed] + + +#### Training Hyperparameters + +- **Training regime:** [More Information Needed] + +#### Speeds, Sizes, Times [optional] + + + +[More Information Needed] + +## Evaluation + + + +### Testing Data, Factors & Metrics + +#### Testing Data + + + +[More Information Needed] + +#### Factors + + + +[More Information Needed] + +#### Metrics + + + +[More Information Needed] + +### Results + +[More Information Needed] + +#### Summary + + + +## Model Examination [optional] + + + +[More Information Needed] + +## Environmental Impact + + + +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). + +- **Hardware Type:** [More Information Needed] +- **Hours used:** [More Information Needed] +- **Cloud Provider:** [More Information Needed] +- **Compute Region:** [More Information Needed] +- **Carbon Emitted:** [More Information Needed] + +## Technical Specifications [optional] + +### Model Architecture and Objective + +[More Information Needed] + +### Compute Infrastructure + +[More Information Needed] + +#### Hardware + +[More Information Needed] + +#### Software + +[More Information Needed] + +## Citation [optional] + + + +**BibTeX:** + +[More Information Needed] + +**APA:** + +[More Information Needed] + +## Glossary [optional] + + + +[More Information Needed] + +## More Information [optional] + +[More Information Needed] + +## Model Card Authors [optional] + +[More Information Needed] + +## Model Card Contact + +[More Information Needed] +### Framework versions + +- PEFT 0.20.0 \ No newline at end of file diff --git a/adapter/checkpoint-4/adapter_config.json b/adapter/checkpoint-4/adapter_config.json new file mode 100644 index 0000000000000000000000000000000000000000..a94aa479415cb712a22e6dac8d3f23d6ed08addb --- /dev/null +++ b/adapter/checkpoint-4/adapter_config.json @@ -0,0 +1,50 @@ +{ + "alora_invocation_tokens": null, + "alpha_pattern": {}, + "arrow_config": null, + "auto_mapping": null, + "base_model_name_or_path": "Qwen/Qwen2.5-3B-Instruct", + "bias": "none", + "corda_config": null, + "ensure_weight_tying": false, + "eva_config": null, + "exclude_modules": null, + "fan_in_fan_out": false, + "inference_mode": true, + "init_lora_weights": true, + "layer_replication": null, + "layers_pattern": null, + "layers_to_transform": null, + "loftq_config": {}, + "lora_alpha": 32, + "lora_bias": false, + "lora_dropout": 0.05, + "lora_ga_config": null, + "megatron_config": null, + "megatron_core": "megatron.core", + "modules_to_save": null, + "monteclora_config": null, + "peft_type": "LORA", + "peft_version": "0.20.0", + "qalora_group_size": 16, + "r": 16, + "rank_pattern": {}, + "revision": null, + "target_modules": [ + "gate_proj", + "up_proj", + "o_proj", + "v_proj", + "down_proj", + "k_proj", + "q_proj" + ], + "target_parameters": null, + "task_type": "CAUSAL_LM", + "trainable_token_indices": null, + "use_bdlora": null, + "use_dora": false, + "use_qalora": false, + "use_rslora": false, + "velora_config": null +} \ No newline at end of file diff --git a/adapter/checkpoint-4/adapter_model.safetensors b/adapter/checkpoint-4/adapter_model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..dfe22174db1537962bc94692369516d89ab6f8c3 --- /dev/null +++ b/adapter/checkpoint-4/adapter_model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:495fd96b71521f51b0859ca6c66f732ce4795d2860d8ecb74eb7d91cbfe53675 +size 59934640 diff --git a/adapter/checkpoint-4/chat_template.jinja b/adapter/checkpoint-4/chat_template.jinja new file mode 100644 index 0000000000000000000000000000000000000000..bdf7919a96cfe43d50914a007b9c0877bd0ec27e --- /dev/null +++ b/adapter/checkpoint-4/chat_template.jinja @@ -0,0 +1,54 @@ +{%- if tools %} + {{- '<|im_start|>system\n' }} + {%- if messages[0]['role'] == 'system' %} + {{- messages[0]['content'] }} + {%- else %} + {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }} + {%- endif %} + {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within XML tags:\n" }} + {%- for tool in tools %} + {{- "\n" }} + {{- tool | tojson }} + {%- endfor %} + {{- "\n\n\nFor each function call, return a json object with function name and arguments within XML tags:\n\n{\"name\": , \"arguments\": }\n<|im_end|>\n" }} +{%- else %} + {%- if messages[0]['role'] == 'system' %} + {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }} + {%- else %} + {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }} + {%- endif %} +{%- endif %} +{%- for message in messages %} + {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %} + {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} + {%- elif message.role == "assistant" %} + {{- '<|im_start|>' + message.role }} + {%- if message.content %} + {{- '\n' + message.content }} + {%- endif %} + {%- for tool_call in message.tool_calls %} + {%- if tool_call.function is defined %} + {%- set tool_call = tool_call.function %} + {%- endif %} + {{- '\n\n{"name": "' }} + {{- tool_call.name }} + {{- '", "arguments": ' }} + {{- tool_call.arguments | tojson }} + {{- '}\n' }} + {%- endfor %} + {{- '<|im_end|>\n' }} + {%- elif message.role == "tool" %} + {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} + {{- '<|im_start|>user' }} + {%- endif %} + {{- '\n\n' }} + {{- message.content }} + {{- '\n' }} + {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} + {{- '<|im_end|>\n' }} + {%- endif %} + {%- endif %} +{%- endfor %} +{%- if add_generation_prompt %} + {{- '<|im_start|>assistant\n' }} +{%- endif %} diff --git a/adapter/checkpoint-4/optimizer.pt b/adapter/checkpoint-4/optimizer.pt new file mode 100644 index 0000000000000000000000000000000000000000..5ee305b97749348dfb578586697d240050cf673d --- /dev/null +++ b/adapter/checkpoint-4/optimizer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd5f2611f0f07200fcffd7e94468ef7c059fcbac076a3b4d287c130d8fb82f7a +size 61403589 diff --git a/adapter/checkpoint-4/rng_state.pth b/adapter/checkpoint-4/rng_state.pth new file mode 100644 index 0000000000000000000000000000000000000000..611e754be68af9ea0cb12c5cc5187f73f6759668 --- /dev/null +++ b/adapter/checkpoint-4/rng_state.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d1235645d7ef3ed48499ca25a6c01207165055796aa986ff88ad797dbaeb77b +size 14645 diff --git a/adapter/checkpoint-4/scheduler.pt b/adapter/checkpoint-4/scheduler.pt new file mode 100644 index 0000000000000000000000000000000000000000..1b7a53d34d4d99214775af8ac17815af6f1c48ef --- /dev/null +++ b/adapter/checkpoint-4/scheduler.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a09fec67fde2fc2780e2321ff8a0bcd76249ca404de373660e06c53ee1230954 +size 1465 diff --git a/adapter/checkpoint-4/tokenizer.json b/adapter/checkpoint-4/tokenizer.json new file mode 100644 index 0000000000000000000000000000000000000000..34510ff0037cd50428af467a17ead5a96140a32c --- /dev/null +++ b/adapter/checkpoint-4/tokenizer.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8 +size 11421892 diff --git a/adapter/checkpoint-4/tokenizer_config.json b/adapter/checkpoint-4/tokenizer_config.json new file mode 100644 index 0000000000000000000000000000000000000000..770e41d6c92519d525eede4cbcf3ba27f6425311 --- /dev/null +++ b/adapter/checkpoint-4/tokenizer_config.json @@ -0,0 +1,30 @@ +{ + "add_prefix_space": false, + "backend": "tokenizers", + "bos_token": null, + "clean_up_tokenization_spaces": false, + "eos_token": "<|im_end|>", + "errors": "replace", + "extra_special_tokens": [ + "<|im_start|>", + "<|im_end|>", + "<|object_ref_start|>", + "<|object_ref_end|>", + "<|box_start|>", + "<|box_end|>", + "<|quad_start|>", + "<|quad_end|>", + "<|vision_start|>", + "<|vision_end|>", + "<|vision_pad|>", + "<|image_pad|>", + "<|video_pad|>" + ], + "is_local": false, + "local_files_only": false, + "model_max_length": 131072, + "pad_token": "<|endoftext|>", + "split_special_tokens": false, + "tokenizer_class": "Qwen2Tokenizer", + "unk_token": null +} diff --git a/adapter/checkpoint-4/trainer_state.json b/adapter/checkpoint-4/trainer_state.json new file mode 100644 index 0000000000000000000000000000000000000000..8d78246851caa7f5d4b1cf5e5083b0a77387d11c --- /dev/null +++ b/adapter/checkpoint-4/trainer_state.json @@ -0,0 +1,33 @@ +{ + "best_global_step": null, + "best_metric": null, + "best_model_checkpoint": null, + "epoch": 4.0, + "eval_steps": 500, + "global_step": 4, + "is_hyper_param_search": false, + "is_local_process_zero": true, + "is_world_process_zero": true, + "log_history": [], + "logging_steps": 10, + "max_steps": 15, + "num_input_tokens_seen": 0, + "num_train_epochs": 15, + "save_steps": 500, + "stateful_callbacks": { + "TrainerControl": { + "args": { + "should_epoch_stop": false, + "should_evaluate": false, + "should_log": false, + "should_save": true, + "should_training_stop": false + }, + "attributes": {} + } + }, + "total_flos": 49542350241792.0, + "train_batch_size": 4, + "trial_name": null, + "trial_params": null +} diff --git a/adapter/checkpoint-4/training_args.bin b/adapter/checkpoint-4/training_args.bin new file mode 100644 index 0000000000000000000000000000000000000000..e352ea250e44b9e2c1c02e8e7de50df5392524fe --- /dev/null +++ b/adapter/checkpoint-4/training_args.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd900ebda7b3712c4d07af35b3611b0288bd1613efc2d494a87d59aff783433b +size 5841 diff --git a/adapter/checkpoint-5/README.md b/adapter/checkpoint-5/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1f3df00e32aebf12d907a42b7d64321fd6ef999c --- /dev/null +++ b/adapter/checkpoint-5/README.md @@ -0,0 +1,209 @@ +--- +base_model: Qwen/Qwen2.5-3B-Instruct +library_name: peft +pipeline_tag: text-generation +tags: +- base_model:adapter:Qwen/Qwen2.5-3B-Instruct +- lora +- sft +- transformers +- trl +--- + +# Model Card for Model ID + + + + + +## Model Details + +### Model Description + + + + + +- **Developed by:** [More Information Needed] +- **Funded by [optional]:** [More Information Needed] +- **Shared by [optional]:** [More Information Needed] +- **Model type:** [More Information Needed] +- **Language(s) (NLP):** [More Information Needed] +- **License:** [More Information Needed] +- **Finetuned from model [optional]:** [More Information Needed] + +### Model Sources [optional] + + + +- **Repository:** [More Information Needed] +- **Paper [optional]:** [More Information Needed] +- **Demo [optional]:** [More Information Needed] + +## Uses + + + +### Direct Use + + + +[More Information Needed] + +### Downstream Use [optional] + + + +[More Information Needed] + +### Out-of-Scope Use + + + +[More Information Needed] + +## Bias, Risks, and Limitations + + + +[More Information Needed] + +### Recommendations + + + +Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations. + +## How to Get Started with the Model + +Use the code below to get started with the model. + +[More Information Needed] + +## Training Details + +### Training Data + + + +[More Information Needed] + +### Training Procedure + + + +#### Preprocessing [optional] + +[More Information Needed] + + +#### Training Hyperparameters + +- **Training regime:** [More Information Needed] + +#### Speeds, Sizes, Times [optional] + + + +[More Information Needed] + +## Evaluation + + + +### Testing Data, Factors & Metrics + +#### Testing Data + + + +[More Information Needed] + +#### Factors + + + +[More Information Needed] + +#### Metrics + + + +[More Information Needed] + +### Results + +[More Information Needed] + +#### Summary + + + +## Model Examination [optional] + + + +[More Information Needed] + +## Environmental Impact + + + +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). + +- **Hardware Type:** [More Information Needed] +- **Hours used:** [More Information Needed] +- **Cloud Provider:** [More Information Needed] +- **Compute Region:** [More Information Needed] +- **Carbon Emitted:** [More Information Needed] + +## Technical Specifications [optional] + +### Model Architecture and Objective + +[More Information Needed] + +### Compute Infrastructure + +[More Information Needed] + +#### Hardware + +[More Information Needed] + +#### Software + +[More Information Needed] + +## Citation [optional] + + + +**BibTeX:** + +[More Information Needed] + +**APA:** + +[More Information Needed] + +## Glossary [optional] + + + +[More Information Needed] + +## More Information [optional] + +[More Information Needed] + +## Model Card Authors [optional] + +[More Information Needed] + +## Model Card Contact + +[More Information Needed] +### Framework versions + +- PEFT 0.20.0 \ No newline at end of file diff --git a/adapter/checkpoint-5/adapter_config.json b/adapter/checkpoint-5/adapter_config.json new file mode 100644 index 0000000000000000000000000000000000000000..a94aa479415cb712a22e6dac8d3f23d6ed08addb --- /dev/null +++ b/adapter/checkpoint-5/adapter_config.json @@ -0,0 +1,50 @@ +{ + "alora_invocation_tokens": null, + "alpha_pattern": {}, + "arrow_config": null, + "auto_mapping": null, + "base_model_name_or_path": "Qwen/Qwen2.5-3B-Instruct", + "bias": "none", + "corda_config": null, + "ensure_weight_tying": false, + "eva_config": null, + "exclude_modules": null, + "fan_in_fan_out": false, + "inference_mode": true, + "init_lora_weights": true, + "layer_replication": null, + "layers_pattern": null, + "layers_to_transform": null, + "loftq_config": {}, + "lora_alpha": 32, + "lora_bias": false, + "lora_dropout": 0.05, + "lora_ga_config": null, + "megatron_config": null, + "megatron_core": "megatron.core", + "modules_to_save": null, + "monteclora_config": null, + "peft_type": "LORA", + "peft_version": "0.20.0", + "qalora_group_size": 16, + "r": 16, + "rank_pattern": {}, + "revision": null, + "target_modules": [ + "gate_proj", + "up_proj", + "o_proj", + "v_proj", + "down_proj", + "k_proj", + "q_proj" + ], + "target_parameters": null, + "task_type": "CAUSAL_LM", + "trainable_token_indices": null, + "use_bdlora": null, + "use_dora": false, + "use_qalora": false, + "use_rslora": false, + "velora_config": null +} \ No newline at end of file diff --git a/adapter/checkpoint-5/adapter_model.safetensors b/adapter/checkpoint-5/adapter_model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..45493b3d785244ea435c22a3a735c3921457a176 --- /dev/null +++ b/adapter/checkpoint-5/adapter_model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a33586140579f464c809086aced36403d8849cd2c524bed00d56a3271d3c3dab +size 59934640 diff --git a/adapter/checkpoint-5/chat_template.jinja b/adapter/checkpoint-5/chat_template.jinja new file mode 100644 index 0000000000000000000000000000000000000000..bdf7919a96cfe43d50914a007b9c0877bd0ec27e --- /dev/null +++ b/adapter/checkpoint-5/chat_template.jinja @@ -0,0 +1,54 @@ +{%- if tools %} + {{- '<|im_start|>system\n' }} + {%- if messages[0]['role'] == 'system' %} + {{- messages[0]['content'] }} + {%- else %} + {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }} + {%- endif %} + {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within XML tags:\n" }} + {%- for tool in tools %} + {{- "\n" }} + {{- tool | tojson }} + {%- endfor %} + {{- "\n\n\nFor each function call, return a json object with function name and arguments within XML tags:\n\n{\"name\": , \"arguments\": }\n<|im_end|>\n" }} +{%- else %} + {%- if messages[0]['role'] == 'system' %} + {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }} + {%- else %} + {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }} + {%- endif %} +{%- endif %} +{%- for message in messages %} + {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %} + {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} + {%- elif message.role == "assistant" %} + {{- '<|im_start|>' + message.role }} + {%- if message.content %} + {{- '\n' + message.content }} + {%- endif %} + {%- for tool_call in message.tool_calls %} + {%- if tool_call.function is defined %} + {%- set tool_call = tool_call.function %} + {%- endif %} + {{- '\n\n{"name": "' }} + {{- tool_call.name }} + {{- '", "arguments": ' }} + {{- tool_call.arguments | tojson }} + {{- '}\n' }} + {%- endfor %} + {{- '<|im_end|>\n' }} + {%- elif message.role == "tool" %} + {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} + {{- '<|im_start|>user' }} + {%- endif %} + {{- '\n\n' }} + {{- message.content }} + {{- '\n' }} + {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} + {{- '<|im_end|>\n' }} + {%- endif %} + {%- endif %} +{%- endfor %} +{%- if add_generation_prompt %} + {{- '<|im_start|>assistant\n' }} +{%- endif %} diff --git a/adapter/checkpoint-5/optimizer.pt b/adapter/checkpoint-5/optimizer.pt new file mode 100644 index 0000000000000000000000000000000000000000..6a6449353213185b8fc5db358aa449ff4a6692cf --- /dev/null +++ b/adapter/checkpoint-5/optimizer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:684e94bfb97cd50c3d8cbe491de291ceafd499b7fa01a3f05faaa92a625b13ea +size 61403589 diff --git a/adapter/checkpoint-5/rng_state.pth b/adapter/checkpoint-5/rng_state.pth new file mode 100644 index 0000000000000000000000000000000000000000..5b841e73ed08b10779c868c354b149bbf6209819 --- /dev/null +++ b/adapter/checkpoint-5/rng_state.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21aa3f1bc8dfb8d61e30ca85106307906503dc2052ec446bb72d3ee0b425da97 +size 14645 diff --git a/adapter/checkpoint-5/scheduler.pt b/adapter/checkpoint-5/scheduler.pt new file mode 100644 index 0000000000000000000000000000000000000000..7bf2aba8ff6a0385a6bf8f7cbbd14d05c1c3a107 --- /dev/null +++ b/adapter/checkpoint-5/scheduler.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e01cc93251c4e14cf4a73cc59a571fded5448eaa50771f34915c936cc35f02df +size 1465 diff --git a/adapter/checkpoint-5/tokenizer.json b/adapter/checkpoint-5/tokenizer.json new file mode 100644 index 0000000000000000000000000000000000000000..34510ff0037cd50428af467a17ead5a96140a32c --- /dev/null +++ b/adapter/checkpoint-5/tokenizer.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8 +size 11421892 diff --git a/adapter/checkpoint-5/tokenizer_config.json b/adapter/checkpoint-5/tokenizer_config.json new file mode 100644 index 0000000000000000000000000000000000000000..770e41d6c92519d525eede4cbcf3ba27f6425311 --- /dev/null +++ b/adapter/checkpoint-5/tokenizer_config.json @@ -0,0 +1,30 @@ +{ + "add_prefix_space": false, + "backend": "tokenizers", + "bos_token": null, + "clean_up_tokenization_spaces": false, + "eos_token": "<|im_end|>", + "errors": "replace", + "extra_special_tokens": [ + "<|im_start|>", + "<|im_end|>", + "<|object_ref_start|>", + "<|object_ref_end|>", + "<|box_start|>", + "<|box_end|>", + "<|quad_start|>", + "<|quad_end|>", + "<|vision_start|>", + "<|vision_end|>", + "<|vision_pad|>", + "<|image_pad|>", + "<|video_pad|>" + ], + "is_local": false, + "local_files_only": false, + "model_max_length": 131072, + "pad_token": "<|endoftext|>", + "split_special_tokens": false, + "tokenizer_class": "Qwen2Tokenizer", + "unk_token": null +} diff --git a/adapter/checkpoint-5/trainer_state.json b/adapter/checkpoint-5/trainer_state.json new file mode 100644 index 0000000000000000000000000000000000000000..009671cc199abbf53234811021e3b8267d9eb5bf --- /dev/null +++ b/adapter/checkpoint-5/trainer_state.json @@ -0,0 +1,33 @@ +{ + "best_global_step": null, + "best_metric": null, + "best_model_checkpoint": null, + "epoch": 5.0, + "eval_steps": 500, + "global_step": 5, + "is_hyper_param_search": false, + "is_local_process_zero": true, + "is_world_process_zero": true, + "log_history": [], + "logging_steps": 10, + "max_steps": 15, + "num_input_tokens_seen": 0, + "num_train_epochs": 15, + "save_steps": 500, + "stateful_callbacks": { + "TrainerControl": { + "args": { + "should_epoch_stop": false, + "should_evaluate": false, + "should_log": false, + "should_save": true, + "should_training_stop": false + }, + "attributes": {} + } + }, + "total_flos": 61978422534144.0, + "train_batch_size": 4, + "trial_name": null, + "trial_params": null +} diff --git a/adapter/checkpoint-5/training_args.bin b/adapter/checkpoint-5/training_args.bin new file mode 100644 index 0000000000000000000000000000000000000000..e352ea250e44b9e2c1c02e8e7de50df5392524fe --- /dev/null +++ b/adapter/checkpoint-5/training_args.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd900ebda7b3712c4d07af35b3611b0288bd1613efc2d494a87d59aff783433b +size 5841 diff --git a/adapter/checkpoint-6/README.md b/adapter/checkpoint-6/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1f3df00e32aebf12d907a42b7d64321fd6ef999c --- /dev/null +++ b/adapter/checkpoint-6/README.md @@ -0,0 +1,209 @@ +--- +base_model: Qwen/Qwen2.5-3B-Instruct +library_name: peft +pipeline_tag: text-generation +tags: +- base_model:adapter:Qwen/Qwen2.5-3B-Instruct +- lora +- sft +- transformers +- trl +--- + +# Model Card for Model ID + + + + + +## Model Details + +### Model Description + + + + + +- **Developed by:** [More Information Needed] +- **Funded by [optional]:** [More Information Needed] +- **Shared by [optional]:** [More Information Needed] +- **Model type:** [More Information Needed] +- **Language(s) (NLP):** [More Information Needed] +- **License:** [More Information Needed] +- **Finetuned from model [optional]:** [More Information Needed] + +### Model Sources [optional] + + + +- **Repository:** [More Information Needed] +- **Paper [optional]:** [More Information Needed] +- **Demo [optional]:** [More Information Needed] + +## Uses + + + +### Direct Use + + + +[More Information Needed] + +### Downstream Use [optional] + + + +[More Information Needed] + +### Out-of-Scope Use + + + +[More Information Needed] + +## Bias, Risks, and Limitations + + + +[More Information Needed] + +### Recommendations + + + +Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations. + +## How to Get Started with the Model + +Use the code below to get started with the model. + +[More Information Needed] + +## Training Details + +### Training Data + + + +[More Information Needed] + +### Training Procedure + + + +#### Preprocessing [optional] + +[More Information Needed] + + +#### Training Hyperparameters + +- **Training regime:** [More Information Needed] + +#### Speeds, Sizes, Times [optional] + + + +[More Information Needed] + +## Evaluation + + + +### Testing Data, Factors & Metrics + +#### Testing Data + + + +[More Information Needed] + +#### Factors + + + +[More Information Needed] + +#### Metrics + + + +[More Information Needed] + +### Results + +[More Information Needed] + +#### Summary + + + +## Model Examination [optional] + + + +[More Information Needed] + +## Environmental Impact + + + +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). + +- **Hardware Type:** [More Information Needed] +- **Hours used:** [More Information Needed] +- **Cloud Provider:** [More Information Needed] +- **Compute Region:** [More Information Needed] +- **Carbon Emitted:** [More Information Needed] + +## Technical Specifications [optional] + +### Model Architecture and Objective + +[More Information Needed] + +### Compute Infrastructure + +[More Information Needed] + +#### Hardware + +[More Information Needed] + +#### Software + +[More Information Needed] + +## Citation [optional] + + + +**BibTeX:** + +[More Information Needed] + +**APA:** + +[More Information Needed] + +## Glossary [optional] + + + +[More Information Needed] + +## More Information [optional] + +[More Information Needed] + +## Model Card Authors [optional] + +[More Information Needed] + +## Model Card Contact + +[More Information Needed] +### Framework versions + +- PEFT 0.20.0 \ No newline at end of file diff --git a/adapter/checkpoint-6/adapter_config.json b/adapter/checkpoint-6/adapter_config.json new file mode 100644 index 0000000000000000000000000000000000000000..a94aa479415cb712a22e6dac8d3f23d6ed08addb --- /dev/null +++ b/adapter/checkpoint-6/adapter_config.json @@ -0,0 +1,50 @@ +{ + "alora_invocation_tokens": null, + "alpha_pattern": {}, + "arrow_config": null, + "auto_mapping": null, + "base_model_name_or_path": "Qwen/Qwen2.5-3B-Instruct", + "bias": "none", + "corda_config": null, + "ensure_weight_tying": false, + "eva_config": null, + "exclude_modules": null, + "fan_in_fan_out": false, + "inference_mode": true, + "init_lora_weights": true, + "layer_replication": null, + "layers_pattern": null, + "layers_to_transform": null, + "loftq_config": {}, + "lora_alpha": 32, + "lora_bias": false, + "lora_dropout": 0.05, + "lora_ga_config": null, + "megatron_config": null, + "megatron_core": "megatron.core", + "modules_to_save": null, + "monteclora_config": null, + "peft_type": "LORA", + "peft_version": "0.20.0", + "qalora_group_size": 16, + "r": 16, + "rank_pattern": {}, + "revision": null, + "target_modules": [ + "gate_proj", + "up_proj", + "o_proj", + "v_proj", + "down_proj", + "k_proj", + "q_proj" + ], + "target_parameters": null, + "task_type": "CAUSAL_LM", + "trainable_token_indices": null, + "use_bdlora": null, + "use_dora": false, + "use_qalora": false, + "use_rslora": false, + "velora_config": null +} \ No newline at end of file diff --git a/adapter/checkpoint-6/adapter_model.safetensors b/adapter/checkpoint-6/adapter_model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..182a22d377a7ca884acf8f209dd0b30c44b651f3 --- /dev/null +++ b/adapter/checkpoint-6/adapter_model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f392c3367758e68ae2a6335f7273eebcc85a9a468fab484f4c404fa526a62f1b +size 59934640 diff --git a/adapter/checkpoint-6/chat_template.jinja b/adapter/checkpoint-6/chat_template.jinja new file mode 100644 index 0000000000000000000000000000000000000000..bdf7919a96cfe43d50914a007b9c0877bd0ec27e --- /dev/null +++ b/adapter/checkpoint-6/chat_template.jinja @@ -0,0 +1,54 @@ +{%- if tools %} + {{- '<|im_start|>system\n' }} + {%- if messages[0]['role'] == 'system' %} + {{- messages[0]['content'] }} + {%- else %} + {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }} + {%- endif %} + {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within XML tags:\n" }} + {%- for tool in tools %} + {{- "\n" }} + {{- tool | tojson }} + {%- endfor %} + {{- "\n\n\nFor each function call, return a json object with function name and arguments within XML tags:\n\n{\"name\": , \"arguments\": }\n<|im_end|>\n" }} +{%- else %} + {%- if messages[0]['role'] == 'system' %} + {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }} + {%- else %} + {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }} + {%- endif %} +{%- endif %} +{%- for message in messages %} + {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %} + {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} + {%- elif message.role == "assistant" %} + {{- '<|im_start|>' + message.role }} + {%- if message.content %} + {{- '\n' + message.content }} + {%- endif %} + {%- for tool_call in message.tool_calls %} + {%- if tool_call.function is defined %} + {%- set tool_call = tool_call.function %} + {%- endif %} + {{- '\n\n{"name": "' }} + {{- tool_call.name }} + {{- '", "arguments": ' }} + {{- tool_call.arguments | tojson }} + {{- '}\n' }} + {%- endfor %} + {{- '<|im_end|>\n' }} + {%- elif message.role == "tool" %} + {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} + {{- '<|im_start|>user' }} + {%- endif %} + {{- '\n\n' }} + {{- message.content }} + {{- '\n' }} + {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} + {{- '<|im_end|>\n' }} + {%- endif %} + {%- endif %} +{%- endfor %} +{%- if add_generation_prompt %} + {{- '<|im_start|>assistant\n' }} +{%- endif %} diff --git a/adapter/checkpoint-6/optimizer.pt b/adapter/checkpoint-6/optimizer.pt new file mode 100644 index 0000000000000000000000000000000000000000..ae3b83146db90cc247ef2484ae01a62c48accde5 --- /dev/null +++ b/adapter/checkpoint-6/optimizer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e5f490cfc86381235bdeb3c91a427d42571452be978214b1f1ec171bd223ff8 +size 61403589 diff --git a/adapter/checkpoint-6/rng_state.pth b/adapter/checkpoint-6/rng_state.pth new file mode 100644 index 0000000000000000000000000000000000000000..e46e83d1a1f9e102f394f000308bc6c3197710d6 --- /dev/null +++ b/adapter/checkpoint-6/rng_state.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9396004fa29c9cad17847cf7fb24211c42cd030ba59527d3577f7e7678c1973e +size 14645 diff --git a/adapter/checkpoint-6/scheduler.pt b/adapter/checkpoint-6/scheduler.pt new file mode 100644 index 0000000000000000000000000000000000000000..29c875fb0a1a17f18e434bb3237fac788c55ff05 --- /dev/null +++ b/adapter/checkpoint-6/scheduler.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:09642e7cd1d775128616fee66351cec97e85132b7fd65b14b7777a65ded5a9e7 +size 1465 diff --git a/adapter/checkpoint-6/tokenizer.json b/adapter/checkpoint-6/tokenizer.json new file mode 100644 index 0000000000000000000000000000000000000000..34510ff0037cd50428af467a17ead5a96140a32c --- /dev/null +++ b/adapter/checkpoint-6/tokenizer.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8 +size 11421892 diff --git a/adapter/checkpoint-6/tokenizer_config.json b/adapter/checkpoint-6/tokenizer_config.json new file mode 100644 index 0000000000000000000000000000000000000000..770e41d6c92519d525eede4cbcf3ba27f6425311 --- /dev/null +++ b/adapter/checkpoint-6/tokenizer_config.json @@ -0,0 +1,30 @@ +{ + "add_prefix_space": false, + "backend": "tokenizers", + "bos_token": null, + "clean_up_tokenization_spaces": false, + "eos_token": "<|im_end|>", + "errors": "replace", + "extra_special_tokens": [ + "<|im_start|>", + "<|im_end|>", + "<|object_ref_start|>", + "<|object_ref_end|>", + "<|box_start|>", + "<|box_end|>", + "<|quad_start|>", + "<|quad_end|>", + "<|vision_start|>", + "<|vision_end|>", + "<|vision_pad|>", + "<|image_pad|>", + "<|video_pad|>" + ], + "is_local": false, + "local_files_only": false, + "model_max_length": 131072, + "pad_token": "<|endoftext|>", + "split_special_tokens": false, + "tokenizer_class": "Qwen2Tokenizer", + "unk_token": null +} diff --git a/adapter/checkpoint-6/trainer_state.json b/adapter/checkpoint-6/trainer_state.json new file mode 100644 index 0000000000000000000000000000000000000000..83456c63db3f86cf8d4376670c54e899b70ecccd --- /dev/null +++ b/adapter/checkpoint-6/trainer_state.json @@ -0,0 +1,33 @@ +{ + "best_global_step": null, + "best_metric": null, + "best_model_checkpoint": null, + "epoch": 6.0, + "eval_steps": 500, + "global_step": 6, + "is_hyper_param_search": false, + "is_local_process_zero": true, + "is_world_process_zero": true, + "log_history": [], + "logging_steps": 10, + "max_steps": 15, + "num_input_tokens_seen": 0, + "num_train_epochs": 15, + "save_steps": 500, + "stateful_callbacks": { + "TrainerControl": { + "args": { + "should_epoch_stop": false, + "should_evaluate": false, + "should_log": false, + "should_save": true, + "should_training_stop": false + }, + "attributes": {} + } + }, + "total_flos": 74532292534272.0, + "train_batch_size": 4, + "trial_name": null, + "trial_params": null +} diff --git a/adapter/checkpoint-6/training_args.bin b/adapter/checkpoint-6/training_args.bin new file mode 100644 index 0000000000000000000000000000000000000000..e352ea250e44b9e2c1c02e8e7de50df5392524fe --- /dev/null +++ b/adapter/checkpoint-6/training_args.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd900ebda7b3712c4d07af35b3611b0288bd1613efc2d494a87d59aff783433b +size 5841 diff --git a/adapter/checkpoint-7/README.md b/adapter/checkpoint-7/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1f3df00e32aebf12d907a42b7d64321fd6ef999c --- /dev/null +++ b/adapter/checkpoint-7/README.md @@ -0,0 +1,209 @@ +--- +base_model: Qwen/Qwen2.5-3B-Instruct +library_name: peft +pipeline_tag: text-generation +tags: +- base_model:adapter:Qwen/Qwen2.5-3B-Instruct +- lora +- sft +- transformers +- trl +--- + +# Model Card for Model ID + + + + + +## Model Details + +### Model Description + + + + + +- **Developed by:** [More Information Needed] +- **Funded by [optional]:** [More Information Needed] +- **Shared by [optional]:** [More Information Needed] +- **Model type:** [More Information Needed] +- **Language(s) (NLP):** [More Information Needed] +- **License:** [More Information Needed] +- **Finetuned from model [optional]:** [More Information Needed] + +### Model Sources [optional] + + + +- **Repository:** [More Information Needed] +- **Paper [optional]:** [More Information Needed] +- **Demo [optional]:** [More Information Needed] + +## Uses + + + +### Direct Use + + + +[More Information Needed] + +### Downstream Use [optional] + + + +[More Information Needed] + +### Out-of-Scope Use + + + +[More Information Needed] + +## Bias, Risks, and Limitations + + + +[More Information Needed] + +### Recommendations + + + +Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations. + +## How to Get Started with the Model + +Use the code below to get started with the model. + +[More Information Needed] + +## Training Details + +### Training Data + + + +[More Information Needed] + +### Training Procedure + + + +#### Preprocessing [optional] + +[More Information Needed] + + +#### Training Hyperparameters + +- **Training regime:** [More Information Needed] + +#### Speeds, Sizes, Times [optional] + + + +[More Information Needed] + +## Evaluation + + + +### Testing Data, Factors & Metrics + +#### Testing Data + + + +[More Information Needed] + +#### Factors + + + +[More Information Needed] + +#### Metrics + + + +[More Information Needed] + +### Results + +[More Information Needed] + +#### Summary + + + +## Model Examination [optional] + + + +[More Information Needed] + +## Environmental Impact + + + +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). + +- **Hardware Type:** [More Information Needed] +- **Hours used:** [More Information Needed] +- **Cloud Provider:** [More Information Needed] +- **Compute Region:** [More Information Needed] +- **Carbon Emitted:** [More Information Needed] + +## Technical Specifications [optional] + +### Model Architecture and Objective + +[More Information Needed] + +### Compute Infrastructure + +[More Information Needed] + +#### Hardware + +[More Information Needed] + +#### Software + +[More Information Needed] + +## Citation [optional] + + + +**BibTeX:** + +[More Information Needed] + +**APA:** + +[More Information Needed] + +## Glossary [optional] + + + +[More Information Needed] + +## More Information [optional] + +[More Information Needed] + +## Model Card Authors [optional] + +[More Information Needed] + +## Model Card Contact + +[More Information Needed] +### Framework versions + +- PEFT 0.20.0 \ No newline at end of file diff --git a/adapter/checkpoint-7/adapter_config.json b/adapter/checkpoint-7/adapter_config.json new file mode 100644 index 0000000000000000000000000000000000000000..a94aa479415cb712a22e6dac8d3f23d6ed08addb --- /dev/null +++ b/adapter/checkpoint-7/adapter_config.json @@ -0,0 +1,50 @@ +{ + "alora_invocation_tokens": null, + "alpha_pattern": {}, + "arrow_config": null, + "auto_mapping": null, + "base_model_name_or_path": "Qwen/Qwen2.5-3B-Instruct", + "bias": "none", + "corda_config": null, + "ensure_weight_tying": false, + "eva_config": null, + "exclude_modules": null, + "fan_in_fan_out": false, + "inference_mode": true, + "init_lora_weights": true, + "layer_replication": null, + "layers_pattern": null, + "layers_to_transform": null, + "loftq_config": {}, + "lora_alpha": 32, + "lora_bias": false, + "lora_dropout": 0.05, + "lora_ga_config": null, + "megatron_config": null, + "megatron_core": "megatron.core", + "modules_to_save": null, + "monteclora_config": null, + "peft_type": "LORA", + "peft_version": "0.20.0", + "qalora_group_size": 16, + "r": 16, + "rank_pattern": {}, + "revision": null, + "target_modules": [ + "gate_proj", + "up_proj", + "o_proj", + "v_proj", + "down_proj", + "k_proj", + "q_proj" + ], + "target_parameters": null, + "task_type": "CAUSAL_LM", + "trainable_token_indices": null, + "use_bdlora": null, + "use_dora": false, + "use_qalora": false, + "use_rslora": false, + "velora_config": null +} \ No newline at end of file diff --git a/adapter/checkpoint-7/adapter_model.safetensors b/adapter/checkpoint-7/adapter_model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..f6fad09c3cda14dc88513e9fbe5b6d808af9d114 --- /dev/null +++ b/adapter/checkpoint-7/adapter_model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4800f0a0b5568c53fa2e3949c1719587339c8f6d684b3aa1e92b04dc4beb1869 +size 59934640 diff --git a/adapter/checkpoint-7/chat_template.jinja b/adapter/checkpoint-7/chat_template.jinja new file mode 100644 index 0000000000000000000000000000000000000000..bdf7919a96cfe43d50914a007b9c0877bd0ec27e --- /dev/null +++ b/adapter/checkpoint-7/chat_template.jinja @@ -0,0 +1,54 @@ +{%- if tools %} + {{- '<|im_start|>system\n' }} + {%- if messages[0]['role'] == 'system' %} + {{- messages[0]['content'] }} + {%- else %} + {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }} + {%- endif %} + {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within XML tags:\n" }} + {%- for tool in tools %} + {{- "\n" }} + {{- tool | tojson }} + {%- endfor %} + {{- "\n\n\nFor each function call, return a json object with function name and arguments within XML tags:\n\n{\"name\": , \"arguments\": }\n<|im_end|>\n" }} +{%- else %} + {%- if messages[0]['role'] == 'system' %} + {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }} + {%- else %} + {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }} + {%- endif %} +{%- endif %} +{%- for message in messages %} + {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %} + {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} + {%- elif message.role == "assistant" %} + {{- '<|im_start|>' + message.role }} + {%- if message.content %} + {{- '\n' + message.content }} + {%- endif %} + {%- for tool_call in message.tool_calls %} + {%- if tool_call.function is defined %} + {%- set tool_call = tool_call.function %} + {%- endif %} + {{- '\n\n{"name": "' }} + {{- tool_call.name }} + {{- '", "arguments": ' }} + {{- tool_call.arguments | tojson }} + {{- '}\n' }} + {%- endfor %} + {{- '<|im_end|>\n' }} + {%- elif message.role == "tool" %} + {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} + {{- '<|im_start|>user' }} + {%- endif %} + {{- '\n\n' }} + {{- message.content }} + {{- '\n' }} + {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} + {{- '<|im_end|>\n' }} + {%- endif %} + {%- endif %} +{%- endfor %} +{%- if add_generation_prompt %} + {{- '<|im_start|>assistant\n' }} +{%- endif %} diff --git a/adapter/checkpoint-7/optimizer.pt b/adapter/checkpoint-7/optimizer.pt new file mode 100644 index 0000000000000000000000000000000000000000..a187fd61608bb97ceafea50e4a992f766a0370c9 --- /dev/null +++ b/adapter/checkpoint-7/optimizer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3b0cd4e3cd6cd0c9cc4832d34132b6a57da0a4e1b044d85cb04725c21156d61 +size 61403589 diff --git a/adapter/checkpoint-7/rng_state.pth b/adapter/checkpoint-7/rng_state.pth new file mode 100644 index 0000000000000000000000000000000000000000..e7607420ac4cc525a5e336cf89d59777f460c4fd --- /dev/null +++ b/adapter/checkpoint-7/rng_state.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3091cc305adc79d9d4345cdb9e88228695997c7e4046077b1919651421814041 +size 14645 diff --git a/adapter/checkpoint-7/scheduler.pt b/adapter/checkpoint-7/scheduler.pt new file mode 100644 index 0000000000000000000000000000000000000000..ef896c7b3be67562cc1f193340f0847b9adcbfbb --- /dev/null +++ b/adapter/checkpoint-7/scheduler.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:969d2bf1bffa74a52c80aff54cc05ce8540f504e05e6c10c4d1405296d28a4e2 +size 1465 diff --git a/adapter/checkpoint-7/tokenizer.json b/adapter/checkpoint-7/tokenizer.json new file mode 100644 index 0000000000000000000000000000000000000000..34510ff0037cd50428af467a17ead5a96140a32c --- /dev/null +++ b/adapter/checkpoint-7/tokenizer.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8 +size 11421892 diff --git a/adapter/checkpoint-7/tokenizer_config.json b/adapter/checkpoint-7/tokenizer_config.json new file mode 100644 index 0000000000000000000000000000000000000000..770e41d6c92519d525eede4cbcf3ba27f6425311 --- /dev/null +++ b/adapter/checkpoint-7/tokenizer_config.json @@ -0,0 +1,30 @@ +{ + "add_prefix_space": false, + "backend": "tokenizers", + "bos_token": null, + "clean_up_tokenization_spaces": false, + "eos_token": "<|im_end|>", + "errors": "replace", + "extra_special_tokens": [ + "<|im_start|>", + "<|im_end|>", + "<|object_ref_start|>", + "<|object_ref_end|>", + "<|box_start|>", + "<|box_end|>", + "<|quad_start|>", + "<|quad_end|>", + "<|vision_start|>", + "<|vision_end|>", + "<|vision_pad|>", + "<|image_pad|>", + "<|video_pad|>" + ], + "is_local": false, + "local_files_only": false, + "model_max_length": 131072, + "pad_token": "<|endoftext|>", + "split_special_tokens": false, + "tokenizer_class": "Qwen2Tokenizer", + "unk_token": null +} diff --git a/adapter/checkpoint-7/trainer_state.json b/adapter/checkpoint-7/trainer_state.json new file mode 100644 index 0000000000000000000000000000000000000000..f9acb87d42989c0eed07a66b65ca830cc10a89ee --- /dev/null +++ b/adapter/checkpoint-7/trainer_state.json @@ -0,0 +1,33 @@ +{ + "best_global_step": null, + "best_metric": null, + "best_model_checkpoint": null, + "epoch": 7.0, + "eval_steps": 500, + "global_step": 7, + "is_hyper_param_search": false, + "is_local_process_zero": true, + "is_world_process_zero": true, + "log_history": [], + "logging_steps": 10, + "max_steps": 15, + "num_input_tokens_seen": 0, + "num_train_epochs": 15, + "save_steps": 500, + "stateful_callbacks": { + "TrainerControl": { + "args": { + "should_epoch_stop": false, + "should_evaluate": false, + "should_log": false, + "should_save": true, + "should_training_stop": false + }, + "attributes": {} + } + }, + "total_flos": 86884223606784.0, + "train_batch_size": 4, + "trial_name": null, + "trial_params": null +} diff --git a/adapter/checkpoint-7/training_args.bin b/adapter/checkpoint-7/training_args.bin new file mode 100644 index 0000000000000000000000000000000000000000..e352ea250e44b9e2c1c02e8e7de50df5392524fe --- /dev/null +++ b/adapter/checkpoint-7/training_args.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd900ebda7b3712c4d07af35b3611b0288bd1613efc2d494a87d59aff783433b +size 5841 diff --git a/adapter/checkpoint-8/README.md b/adapter/checkpoint-8/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1f3df00e32aebf12d907a42b7d64321fd6ef999c --- /dev/null +++ b/adapter/checkpoint-8/README.md @@ -0,0 +1,209 @@ +--- +base_model: Qwen/Qwen2.5-3B-Instruct +library_name: peft +pipeline_tag: text-generation +tags: +- base_model:adapter:Qwen/Qwen2.5-3B-Instruct +- lora +- sft +- transformers +- trl +--- + +# Model Card for Model ID + + + + + +## Model Details + +### Model Description + + + + + +- **Developed by:** [More Information Needed] +- **Funded by [optional]:** [More Information Needed] +- **Shared by [optional]:** [More Information Needed] +- **Model type:** [More Information Needed] +- **Language(s) (NLP):** [More Information Needed] +- **License:** [More Information Needed] +- **Finetuned from model [optional]:** [More Information Needed] + +### Model Sources [optional] + + + +- **Repository:** [More Information Needed] +- **Paper [optional]:** [More Information Needed] +- **Demo [optional]:** [More Information Needed] + +## Uses + + + +### Direct Use + + + +[More Information Needed] + +### Downstream Use [optional] + + + +[More Information Needed] + +### Out-of-Scope Use + + + +[More Information Needed] + +## Bias, Risks, and Limitations + + + +[More Information Needed] + +### Recommendations + + + +Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations. + +## How to Get Started with the Model + +Use the code below to get started with the model. + +[More Information Needed] + +## Training Details + +### Training Data + + + +[More Information Needed] + +### Training Procedure + + + +#### Preprocessing [optional] + +[More Information Needed] + + +#### Training Hyperparameters + +- **Training regime:** [More Information Needed] + +#### Speeds, Sizes, Times [optional] + + + +[More Information Needed] + +## Evaluation + + + +### Testing Data, Factors & Metrics + +#### Testing Data + + + +[More Information Needed] + +#### Factors + + + +[More Information Needed] + +#### Metrics + + + +[More Information Needed] + +### Results + +[More Information Needed] + +#### Summary + + + +## Model Examination [optional] + + + +[More Information Needed] + +## Environmental Impact + + + +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). + +- **Hardware Type:** [More Information Needed] +- **Hours used:** [More Information Needed] +- **Cloud Provider:** [More Information Needed] +- **Compute Region:** [More Information Needed] +- **Carbon Emitted:** [More Information Needed] + +## Technical Specifications [optional] + +### Model Architecture and Objective + +[More Information Needed] + +### Compute Infrastructure + +[More Information Needed] + +#### Hardware + +[More Information Needed] + +#### Software + +[More Information Needed] + +## Citation [optional] + + + +**BibTeX:** + +[More Information Needed] + +**APA:** + +[More Information Needed] + +## Glossary [optional] + + + +[More Information Needed] + +## More Information [optional] + +[More Information Needed] + +## Model Card Authors [optional] + +[More Information Needed] + +## Model Card Contact + +[More Information Needed] +### Framework versions + +- PEFT 0.20.0 \ No newline at end of file diff --git a/adapter/checkpoint-8/adapter_config.json b/adapter/checkpoint-8/adapter_config.json new file mode 100644 index 0000000000000000000000000000000000000000..a94aa479415cb712a22e6dac8d3f23d6ed08addb --- /dev/null +++ b/adapter/checkpoint-8/adapter_config.json @@ -0,0 +1,50 @@ +{ + "alora_invocation_tokens": null, + "alpha_pattern": {}, + "arrow_config": null, + "auto_mapping": null, + "base_model_name_or_path": "Qwen/Qwen2.5-3B-Instruct", + "bias": "none", + "corda_config": null, + "ensure_weight_tying": false, + "eva_config": null, + "exclude_modules": null, + "fan_in_fan_out": false, + "inference_mode": true, + "init_lora_weights": true, + "layer_replication": null, + "layers_pattern": null, + "layers_to_transform": null, + "loftq_config": {}, + "lora_alpha": 32, + "lora_bias": false, + "lora_dropout": 0.05, + "lora_ga_config": null, + "megatron_config": null, + "megatron_core": "megatron.core", + "modules_to_save": null, + "monteclora_config": null, + "peft_type": "LORA", + "peft_version": "0.20.0", + "qalora_group_size": 16, + "r": 16, + "rank_pattern": {}, + "revision": null, + "target_modules": [ + "gate_proj", + "up_proj", + "o_proj", + "v_proj", + "down_proj", + "k_proj", + "q_proj" + ], + "target_parameters": null, + "task_type": "CAUSAL_LM", + "trainable_token_indices": null, + "use_bdlora": null, + "use_dora": false, + "use_qalora": false, + "use_rslora": false, + "velora_config": null +} \ No newline at end of file diff --git a/adapter/checkpoint-8/adapter_model.safetensors b/adapter/checkpoint-8/adapter_model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..809995a3a84a4cff71f0fe215d43c666654c97d5 --- /dev/null +++ b/adapter/checkpoint-8/adapter_model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65b9c96a063aa561b3ea5699c4c93cea1b580bd69a2358c2f3a20e00e80256b5 +size 59934640 diff --git a/adapter/checkpoint-8/chat_template.jinja b/adapter/checkpoint-8/chat_template.jinja new file mode 100644 index 0000000000000000000000000000000000000000..bdf7919a96cfe43d50914a007b9c0877bd0ec27e --- /dev/null +++ b/adapter/checkpoint-8/chat_template.jinja @@ -0,0 +1,54 @@ +{%- if tools %} + {{- '<|im_start|>system\n' }} + {%- if messages[0]['role'] == 'system' %} + {{- messages[0]['content'] }} + {%- else %} + {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }} + {%- endif %} + {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within XML tags:\n" }} + {%- for tool in tools %} + {{- "\n" }} + {{- tool | tojson }} + {%- endfor %} + {{- "\n\n\nFor each function call, return a json object with function name and arguments within XML tags:\n\n{\"name\": , \"arguments\": }\n<|im_end|>\n" }} +{%- else %} + {%- if messages[0]['role'] == 'system' %} + {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }} + {%- else %} + {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }} + {%- endif %} +{%- endif %} +{%- for message in messages %} + {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %} + {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} + {%- elif message.role == "assistant" %} + {{- '<|im_start|>' + message.role }} + {%- if message.content %} + {{- '\n' + message.content }} + {%- endif %} + {%- for tool_call in message.tool_calls %} + {%- if tool_call.function is defined %} + {%- set tool_call = tool_call.function %} + {%- endif %} + {{- '\n\n{"name": "' }} + {{- tool_call.name }} + {{- '", "arguments": ' }} + {{- tool_call.arguments | tojson }} + {{- '}\n' }} + {%- endfor %} + {{- '<|im_end|>\n' }} + {%- elif message.role == "tool" %} + {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} + {{- '<|im_start|>user' }} + {%- endif %} + {{- '\n\n' }} + {{- message.content }} + {{- '\n' }} + {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} + {{- '<|im_end|>\n' }} + {%- endif %} + {%- endif %} +{%- endfor %} +{%- if add_generation_prompt %} + {{- '<|im_start|>assistant\n' }} +{%- endif %} diff --git a/adapter/checkpoint-8/optimizer.pt b/adapter/checkpoint-8/optimizer.pt new file mode 100644 index 0000000000000000000000000000000000000000..c89661bfc74b853e3a0526e0635206664b740a6f --- /dev/null +++ b/adapter/checkpoint-8/optimizer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70caad6901b3c8339bc78c7173553409448d2199371b064cfbe7539c028105a8 +size 61403589 diff --git a/adapter/checkpoint-8/rng_state.pth b/adapter/checkpoint-8/rng_state.pth new file mode 100644 index 0000000000000000000000000000000000000000..e004f86e8bdd996806576c879f51b7505b246f6e --- /dev/null +++ b/adapter/checkpoint-8/rng_state.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe6aecb220ea7d5e1ebc9142b53d7e6804a4a73177a59ccb67c0f3adf7135656 +size 14645 diff --git a/adapter/checkpoint-8/scheduler.pt b/adapter/checkpoint-8/scheduler.pt new file mode 100644 index 0000000000000000000000000000000000000000..c5f3d2606c3796b17f5822c5ea3e7f9ca4a4378f --- /dev/null +++ b/adapter/checkpoint-8/scheduler.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eba28addefa172d921cf21377a88c89a32b5c26ad4262658ed52e9b6c84cdb3a +size 1465 diff --git a/adapter/checkpoint-8/tokenizer.json b/adapter/checkpoint-8/tokenizer.json new file mode 100644 index 0000000000000000000000000000000000000000..34510ff0037cd50428af467a17ead5a96140a32c --- /dev/null +++ b/adapter/checkpoint-8/tokenizer.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8 +size 11421892 diff --git a/adapter/checkpoint-8/tokenizer_config.json b/adapter/checkpoint-8/tokenizer_config.json new file mode 100644 index 0000000000000000000000000000000000000000..770e41d6c92519d525eede4cbcf3ba27f6425311 --- /dev/null +++ b/adapter/checkpoint-8/tokenizer_config.json @@ -0,0 +1,30 @@ +{ + "add_prefix_space": false, + "backend": "tokenizers", + "bos_token": null, + "clean_up_tokenization_spaces": false, + "eos_token": "<|im_end|>", + "errors": "replace", + "extra_special_tokens": [ + "<|im_start|>", + "<|im_end|>", + "<|object_ref_start|>", + "<|object_ref_end|>", + "<|box_start|>", + "<|box_end|>", + "<|quad_start|>", + "<|quad_end|>", + "<|vision_start|>", + "<|vision_end|>", + "<|vision_pad|>", + "<|image_pad|>", + "<|video_pad|>" + ], + "is_local": false, + "local_files_only": false, + "model_max_length": 131072, + "pad_token": "<|endoftext|>", + "split_special_tokens": false, + "tokenizer_class": "Qwen2Tokenizer", + "unk_token": null +} diff --git a/adapter/checkpoint-8/trainer_state.json b/adapter/checkpoint-8/trainer_state.json new file mode 100644 index 0000000000000000000000000000000000000000..a4d3e5f12e3a372c2a38698826264aa5005ae55e --- /dev/null +++ b/adapter/checkpoint-8/trainer_state.json @@ -0,0 +1,33 @@ +{ + "best_global_step": null, + "best_metric": null, + "best_model_checkpoint": null, + "epoch": 8.0, + "eval_steps": 500, + "global_step": 8, + "is_hyper_param_search": false, + "is_local_process_zero": true, + "is_world_process_zero": true, + "log_history": [], + "logging_steps": 10, + "max_steps": 15, + "num_input_tokens_seen": 0, + "num_train_epochs": 15, + "save_steps": 500, + "stateful_callbacks": { + "TrainerControl": { + "args": { + "should_epoch_stop": false, + "should_evaluate": false, + "should_log": false, + "should_save": true, + "should_training_stop": false + }, + "attributes": {} + } + }, + "total_flos": 99252982923264.0, + "train_batch_size": 4, + "trial_name": null, + "trial_params": null +} diff --git a/adapter/checkpoint-8/training_args.bin b/adapter/checkpoint-8/training_args.bin new file mode 100644 index 0000000000000000000000000000000000000000..e352ea250e44b9e2c1c02e8e7de50df5392524fe --- /dev/null +++ b/adapter/checkpoint-8/training_args.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd900ebda7b3712c4d07af35b3611b0288bd1613efc2d494a87d59aff783433b +size 5841 diff --git a/adapter/checkpoint-9/README.md b/adapter/checkpoint-9/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1f3df00e32aebf12d907a42b7d64321fd6ef999c --- /dev/null +++ b/adapter/checkpoint-9/README.md @@ -0,0 +1,209 @@ +--- +base_model: Qwen/Qwen2.5-3B-Instruct +library_name: peft +pipeline_tag: text-generation +tags: +- base_model:adapter:Qwen/Qwen2.5-3B-Instruct +- lora +- sft +- transformers +- trl +--- + +# Model Card for Model ID + + + + + +## Model Details + +### Model Description + + + + + +- **Developed by:** [More Information Needed] +- **Funded by [optional]:** [More Information Needed] +- **Shared by [optional]:** [More Information Needed] +- **Model type:** [More Information Needed] +- **Language(s) (NLP):** [More Information Needed] +- **License:** [More Information Needed] +- **Finetuned from model [optional]:** [More Information Needed] + +### Model Sources [optional] + + + +- **Repository:** [More Information Needed] +- **Paper [optional]:** [More Information Needed] +- **Demo [optional]:** [More Information Needed] + +## Uses + + + +### Direct Use + + + +[More Information Needed] + +### Downstream Use [optional] + + + +[More Information Needed] + +### Out-of-Scope Use + + + +[More Information Needed] + +## Bias, Risks, and Limitations + + + +[More Information Needed] + +### Recommendations + + + +Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations. + +## How to Get Started with the Model + +Use the code below to get started with the model. + +[More Information Needed] + +## Training Details + +### Training Data + + + +[More Information Needed] + +### Training Procedure + + + +#### Preprocessing [optional] + +[More Information Needed] + + +#### Training Hyperparameters + +- **Training regime:** [More Information Needed] + +#### Speeds, Sizes, Times [optional] + + + +[More Information Needed] + +## Evaluation + + + +### Testing Data, Factors & Metrics + +#### Testing Data + + + +[More Information Needed] + +#### Factors + + + +[More Information Needed] + +#### Metrics + + + +[More Information Needed] + +### Results + +[More Information Needed] + +#### Summary + + + +## Model Examination [optional] + + + +[More Information Needed] + +## Environmental Impact + + + +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). + +- **Hardware Type:** [More Information Needed] +- **Hours used:** [More Information Needed] +- **Cloud Provider:** [More Information Needed] +- **Compute Region:** [More Information Needed] +- **Carbon Emitted:** [More Information Needed] + +## Technical Specifications [optional] + +### Model Architecture and Objective + +[More Information Needed] + +### Compute Infrastructure + +[More Information Needed] + +#### Hardware + +[More Information Needed] + +#### Software + +[More Information Needed] + +## Citation [optional] + + + +**BibTeX:** + +[More Information Needed] + +**APA:** + +[More Information Needed] + +## Glossary [optional] + + + +[More Information Needed] + +## More Information [optional] + +[More Information Needed] + +## Model Card Authors [optional] + +[More Information Needed] + +## Model Card Contact + +[More Information Needed] +### Framework versions + +- PEFT 0.20.0 \ No newline at end of file diff --git a/adapter/checkpoint-9/adapter_config.json b/adapter/checkpoint-9/adapter_config.json new file mode 100644 index 0000000000000000000000000000000000000000..a94aa479415cb712a22e6dac8d3f23d6ed08addb --- /dev/null +++ b/adapter/checkpoint-9/adapter_config.json @@ -0,0 +1,50 @@ +{ + "alora_invocation_tokens": null, + "alpha_pattern": {}, + "arrow_config": null, + "auto_mapping": null, + "base_model_name_or_path": "Qwen/Qwen2.5-3B-Instruct", + "bias": "none", + "corda_config": null, + "ensure_weight_tying": false, + "eva_config": null, + "exclude_modules": null, + "fan_in_fan_out": false, + "inference_mode": true, + "init_lora_weights": true, + "layer_replication": null, + "layers_pattern": null, + "layers_to_transform": null, + "loftq_config": {}, + "lora_alpha": 32, + "lora_bias": false, + "lora_dropout": 0.05, + "lora_ga_config": null, + "megatron_config": null, + "megatron_core": "megatron.core", + "modules_to_save": null, + "monteclora_config": null, + "peft_type": "LORA", + "peft_version": "0.20.0", + "qalora_group_size": 16, + "r": 16, + "rank_pattern": {}, + "revision": null, + "target_modules": [ + "gate_proj", + "up_proj", + "o_proj", + "v_proj", + "down_proj", + "k_proj", + "q_proj" + ], + "target_parameters": null, + "task_type": "CAUSAL_LM", + "trainable_token_indices": null, + "use_bdlora": null, + "use_dora": false, + "use_qalora": false, + "use_rslora": false, + "velora_config": null +} \ No newline at end of file diff --git a/adapter/checkpoint-9/adapter_model.safetensors b/adapter/checkpoint-9/adapter_model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..94fb8c519aa0f669b1a186f397a24cd1ba1fe928 --- /dev/null +++ b/adapter/checkpoint-9/adapter_model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ad239db9dad57a78f93a8d316f568992e6c44bb7f63bb731f270880935010b1b +size 59934640 diff --git a/adapter/checkpoint-9/chat_template.jinja b/adapter/checkpoint-9/chat_template.jinja new file mode 100644 index 0000000000000000000000000000000000000000..bdf7919a96cfe43d50914a007b9c0877bd0ec27e --- /dev/null +++ b/adapter/checkpoint-9/chat_template.jinja @@ -0,0 +1,54 @@ +{%- if tools %} + {{- '<|im_start|>system\n' }} + {%- if messages[0]['role'] == 'system' %} + {{- messages[0]['content'] }} + {%- else %} + {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }} + {%- endif %} + {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within XML tags:\n" }} + {%- for tool in tools %} + {{- "\n" }} + {{- tool | tojson }} + {%- endfor %} + {{- "\n\n\nFor each function call, return a json object with function name and arguments within XML tags:\n\n{\"name\": , \"arguments\": }\n<|im_end|>\n" }} +{%- else %} + {%- if messages[0]['role'] == 'system' %} + {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }} + {%- else %} + {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }} + {%- endif %} +{%- endif %} +{%- for message in messages %} + {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %} + {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} + {%- elif message.role == "assistant" %} + {{- '<|im_start|>' + message.role }} + {%- if message.content %} + {{- '\n' + message.content }} + {%- endif %} + {%- for tool_call in message.tool_calls %} + {%- if tool_call.function is defined %} + {%- set tool_call = tool_call.function %} + {%- endif %} + {{- '\n\n{"name": "' }} + {{- tool_call.name }} + {{- '", "arguments": ' }} + {{- tool_call.arguments | tojson }} + {{- '}\n' }} + {%- endfor %} + {{- '<|im_end|>\n' }} + {%- elif message.role == "tool" %} + {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} + {{- '<|im_start|>user' }} + {%- endif %} + {{- '\n\n' }} + {{- message.content }} + {{- '\n' }} + {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} + {{- '<|im_end|>\n' }} + {%- endif %} + {%- endif %} +{%- endfor %} +{%- if add_generation_prompt %} + {{- '<|im_start|>assistant\n' }} +{%- endif %} diff --git a/adapter/checkpoint-9/optimizer.pt b/adapter/checkpoint-9/optimizer.pt new file mode 100644 index 0000000000000000000000000000000000000000..b34a36af1963882c8d723cad2633e1addd872462 --- /dev/null +++ b/adapter/checkpoint-9/optimizer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:91b2d4bc65d0633da540784515725d9d7dbabfa860959c72d2acccd88ce7c611 +size 61403589 diff --git a/adapter/checkpoint-9/rng_state.pth b/adapter/checkpoint-9/rng_state.pth new file mode 100644 index 0000000000000000000000000000000000000000..7d6308cf6dfcb86cd841e2eff5eaa13d74cde0f0 --- /dev/null +++ b/adapter/checkpoint-9/rng_state.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:867aebc4b388f1e6a03fb089baad225602cd2c4197a58feca704fff68bd1b56d +size 14645 diff --git a/adapter/checkpoint-9/scheduler.pt b/adapter/checkpoint-9/scheduler.pt new file mode 100644 index 0000000000000000000000000000000000000000..8f2b700d8cd70ffa78f01082a3d135f1c48da572 --- /dev/null +++ b/adapter/checkpoint-9/scheduler.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:579d42742c88735857567993c3fa5ac960c82d229a9ae95664f0e1eccfba7770 +size 1465 diff --git a/adapter/checkpoint-9/tokenizer.json b/adapter/checkpoint-9/tokenizer.json new file mode 100644 index 0000000000000000000000000000000000000000..34510ff0037cd50428af467a17ead5a96140a32c --- /dev/null +++ b/adapter/checkpoint-9/tokenizer.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8 +size 11421892 diff --git a/adapter/checkpoint-9/tokenizer_config.json b/adapter/checkpoint-9/tokenizer_config.json new file mode 100644 index 0000000000000000000000000000000000000000..770e41d6c92519d525eede4cbcf3ba27f6425311 --- /dev/null +++ b/adapter/checkpoint-9/tokenizer_config.json @@ -0,0 +1,30 @@ +{ + "add_prefix_space": false, + "backend": "tokenizers", + "bos_token": null, + "clean_up_tokenization_spaces": false, + "eos_token": "<|im_end|>", + "errors": "replace", + "extra_special_tokens": [ + "<|im_start|>", + "<|im_end|>", + "<|object_ref_start|>", + "<|object_ref_end|>", + "<|box_start|>", + "<|box_end|>", + "<|quad_start|>", + "<|quad_end|>", + "<|vision_start|>", + "<|vision_end|>", + "<|vision_pad|>", + "<|image_pad|>", + "<|video_pad|>" + ], + "is_local": false, + "local_files_only": false, + "model_max_length": 131072, + "pad_token": "<|endoftext|>", + "split_special_tokens": false, + "tokenizer_class": "Qwen2Tokenizer", + "unk_token": null +} diff --git a/adapter/checkpoint-9/trainer_state.json b/adapter/checkpoint-9/trainer_state.json new file mode 100644 index 0000000000000000000000000000000000000000..c39155ffaf06476d3807af2ca296e04be4acd451 --- /dev/null +++ b/adapter/checkpoint-9/trainer_state.json @@ -0,0 +1,33 @@ +{ + "best_global_step": null, + "best_metric": null, + "best_model_checkpoint": null, + "epoch": 9.0, + "eval_steps": 500, + "global_step": 9, + "is_hyper_param_search": false, + "is_local_process_zero": true, + "is_world_process_zero": true, + "log_history": [], + "logging_steps": 10, + "max_steps": 15, + "num_input_tokens_seen": 0, + "num_train_epochs": 15, + "save_steps": 500, + "stateful_callbacks": { + "TrainerControl": { + "args": { + "should_epoch_stop": false, + "should_evaluate": false, + "should_log": false, + "should_save": true, + "should_training_stop": false + }, + "attributes": {} + } + }, + "total_flos": 111958307119104.0, + "train_batch_size": 4, + "trial_name": null, + "trial_params": null +} diff --git a/adapter/checkpoint-9/training_args.bin b/adapter/checkpoint-9/training_args.bin new file mode 100644 index 0000000000000000000000000000000000000000..e352ea250e44b9e2c1c02e8e7de50df5392524fe --- /dev/null +++ b/adapter/checkpoint-9/training_args.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd900ebda7b3712c4d07af35b3611b0288bd1613efc2d494a87d59aff783433b +size 5841 diff --git a/adapter/training_args.bin b/adapter/training_args.bin index 96de6b6e8bf186e03b3d10cbdaa82fdda5499b02..e352ea250e44b9e2c1c02e8e7de50df5392524fe 100644 --- a/adapter/training_args.bin +++ b/adapter/training_args.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:87556f713e6820a7bc84b071500798abc604556e0742e12686953a54b2c99110 +oid sha256:fd900ebda7b3712c4d07af35b3611b0288bd1613efc2d494a87d59aff783433b size 5841