commit 0b71a32b9fd2bd3dbddc3c05ccad9ad6247b6dd9 Author: ModelHub XC Date: Fri Oct 23 02:07:16 2026 +0800 初始化项目,由ModelHub XC社区提供模型 Model: 1010happy/claude_stagger_cur1to7_perblock5-Qwen2-5-3B-Instruct-seed1010 Source: Original Platform diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..52373fe --- /dev/null +++ b/.gitattributes @@ -0,0 +1,36 @@ +*.7z filter=lfs diff=lfs merge=lfs -text +*.arrow filter=lfs diff=lfs merge=lfs -text +*.bin filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.ckpt filter=lfs diff=lfs merge=lfs -text +*.ftz filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.h5 filter=lfs diff=lfs merge=lfs -text +*.joblib filter=lfs diff=lfs merge=lfs -text +*.lfs.* filter=lfs diff=lfs merge=lfs -text +*.mlmodel filter=lfs diff=lfs merge=lfs -text +*.model filter=lfs diff=lfs merge=lfs -text +*.msgpack filter=lfs diff=lfs merge=lfs -text +*.npy filter=lfs diff=lfs merge=lfs -text +*.npz filter=lfs diff=lfs merge=lfs -text +*.onnx filter=lfs diff=lfs merge=lfs -text +*.ot filter=lfs diff=lfs merge=lfs -text +*.parquet filter=lfs diff=lfs merge=lfs -text +*.pb filter=lfs diff=lfs merge=lfs -text +*.pickle filter=lfs diff=lfs merge=lfs -text +*.pkl filter=lfs diff=lfs merge=lfs -text +*.pt filter=lfs diff=lfs merge=lfs -text +*.pth filter=lfs diff=lfs merge=lfs -text +*.rar filter=lfs diff=lfs merge=lfs -text +*.safetensors filter=lfs diff=lfs merge=lfs -text +saved_model/**/* filter=lfs diff=lfs merge=lfs -text +*.tar.* filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tflite filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.wasm filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text +*tfevents* filter=lfs diff=lfs merge=lfs -text +tokenizer.json filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md new file mode 100644 index 0000000..2480968 --- /dev/null +++ b/README.md @@ -0,0 +1,201 @@ +--- +library_name: transformers +tags: +- trl +- sft +--- + +# Model Card for Model ID + + + + + +## Model Details + +### Model Description + + + +This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated. + +- **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] \ No newline at end of file diff --git a/chat_template.jinja b/chat_template.jinja new file mode 100644 index 0000000..bdf7919 --- /dev/null +++ b/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/config.json b/config.json new file mode 100644 index 0000000..bf9b3c7 --- /dev/null +++ b/config.json @@ -0,0 +1,69 @@ +{ + "architectures": [ + "Qwen2ForCausalLM" + ], + "attention_dropout": 0.0, + "bos_token_id": null, + "dtype": "bfloat16", + "eos_token_id": 151645, + "hidden_act": "silu", + "hidden_size": 2048, + "initializer_range": 0.02, + "intermediate_size": 11008, + "layer_types": [ + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention" + ], + "max_position_embeddings": 32768, + "max_window_layers": 70, + "model_type": "qwen2", + "num_attention_heads": 16, + "num_hidden_layers": 36, + "num_key_value_heads": 2, + "pad_token_id": 151643, + "rms_norm_eps": 1e-06, + "rope_parameters": { + "rope_theta": 1000000.0, + "rope_type": "default" + }, + "sliding_window": null, + "tie_word_embeddings": true, + "transformers_version": "5.14.1", + "use_cache": false, + "use_sliding_window": false, + "vocab_size": 151936 +} diff --git a/generation_config.json b/generation_config.json new file mode 100644 index 0000000..455a4d8 --- /dev/null +++ b/generation_config.json @@ -0,0 +1,13 @@ +{ + "do_sample": true, + "eos_token_id": [ + 151645, + 151643 + ], + "pad_token_id": 151643, + "repetition_penalty": 1.05, + "temperature": 0.7, + "top_k": 20, + "top_p": 0.8, + "transformers_version": "5.14.1" +} diff --git a/model.safetensors b/model.safetensors new file mode 100644 index 0000000..3efa495 --- /dev/null +++ b/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d8cd0c7283f64b9f3ecba1ec926d6afef0a560a6006a5de4414f891b45546e0 +size 6171927112 diff --git a/tokenizer.json b/tokenizer.json new file mode 100644 index 0000000..34510ff --- /dev/null +++ b/tokenizer.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8 +size 11421892 diff --git a/tokenizer_config.json b/tokenizer_config.json new file mode 100644 index 0000000..770e41d --- /dev/null +++ b/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/training_logs.json b/training_logs.json new file mode 100644 index 0000000..50d4509 --- /dev/null +++ b/training_logs.json @@ -0,0 +1 @@ +[{"step": 10, "loss": 1.5863686561584474, "b": "teacher_2026-08-05_exp_0_p5_r1_i1"}, {"step": 20, "loss": 0.8128808021545411, "b": "teacher_2026-08-05_exp_0_p5_r1_i1"}, {"step": 30, "loss": 0.6527300834655761, "b": "teacher_2026-08-05_exp_0_p5_r1_i1"}, {"step": 40, "loss": 0.5473461151123047, "b": "teacher_2026-08-05_exp_0_p5_r1_i1"}, {"step": 50, "loss": 0.49074411392211914, "b": "teacher_2026-08-05_exp_0_p5_r1_i1"}, {"step": 60, "loss": 0.46695728302001954, "b": "teacher_2026-08-05_exp_0_p5_r1_i1"}, {"step": 70, "loss": 0.440416955947876, "b": "teacher_2026-08-05_exp_0_p5_r1_i1"}, {"step": 80, "loss": 0.40991711616516113, "b": "teacher_2026-08-05_exp_0_p5_r1_i1"}, {"step": 90, "loss": 0.44378485679626467, "b": "teacher_2026-08-05_exp_0_p5_r1_i1"}, {"step": 100, "loss": 0.4161370754241943, "b": "teacher_2026-08-05_exp_0_p5_r1_i1"}, {"step": 118, "loss": 0.8453129768371582, "b": "teacher_2026-08-05_exp_1_p5_r2_i1"}, {"step": 128, "loss": 0.687209177017212, "b": "teacher_2026-08-05_exp_1_p5_r2_i1"}, {"step": 138, "loss": 0.5987870216369628, "b": "teacher_2026-08-05_exp_1_p5_r2_i1"}, {"step": 148, "loss": 0.556462574005127, "b": "teacher_2026-08-05_exp_1_p5_r2_i1"}, {"step": 158, "loss": 0.5059194087982177, "b": "teacher_2026-08-05_exp_1_p5_r2_i1"}, {"step": 168, "loss": 0.4512979984283447, "b": "teacher_2026-08-05_exp_1_p5_r2_i1"}, {"step": 178, "loss": 0.40549464225769044, "b": "teacher_2026-08-05_exp_1_p5_r2_i1"}, {"step": 188, "loss": 0.40970873832702637, "b": "teacher_2026-08-05_exp_1_p5_r2_i1"}, {"step": 198, "loss": 0.45167007446289065, "b": "teacher_2026-08-05_exp_1_p5_r2_i1"}, {"step": 208, "loss": 0.40654745101928713, "b": "teacher_2026-08-05_exp_1_p5_r2_i1"}, {"step": 226, "loss": 0.7270190238952636, "b": "teacher_2026-08-05_exp_2_p5_r3_i1"}, {"step": 236, "loss": 0.5786289691925048, "b": "teacher_2026-08-05_exp_2_p5_r3_i1"}, {"step": 246, "loss": 0.5035966396331787, "b": "teacher_2026-08-05_exp_2_p5_r3_i1"}, {"step": 256, "loss": 0.4443964004516602, "b": "teacher_2026-08-05_exp_2_p5_r3_i1"}, {"step": 266, "loss": 0.439390230178833, "b": "teacher_2026-08-05_exp_2_p5_r3_i1"}, {"step": 276, "loss": 0.39875330924987795, "b": "teacher_2026-08-05_exp_2_p5_r3_i1"}, {"step": 286, "loss": 0.4042304515838623, "b": "teacher_2026-08-05_exp_2_p5_r3_i1"}, {"step": 296, "loss": 0.37032761573791506, "b": "teacher_2026-08-05_exp_2_p5_r3_i1"}, {"step": 306, "loss": 0.3845778703689575, "b": "teacher_2026-08-05_exp_2_p5_r3_i1"}, {"step": 316, "loss": 0.36388721466064455, "b": "teacher_2026-08-05_exp_2_p5_r3_i1"}, {"step": 334, "loss": 0.6606867790222168, "b": "teacher_2026-08-05_exp_3_p5_r4_i1"}, {"step": 344, "loss": 0.5989713668823242, "b": "teacher_2026-08-05_exp_3_p5_r4_i1"}, {"step": 354, "loss": 0.5631588935852051, "b": "teacher_2026-08-05_exp_3_p5_r4_i1"}, {"step": 364, "loss": 0.5126391887664795, "b": "teacher_2026-08-05_exp_3_p5_r4_i1"}, {"step": 374, "loss": 0.5170089721679687, "b": "teacher_2026-08-05_exp_3_p5_r4_i1"}, {"step": 384, "loss": 0.45502486228942873, "b": "teacher_2026-08-05_exp_3_p5_r4_i1"}, {"step": 394, "loss": 0.4560843467712402, "b": "teacher_2026-08-05_exp_3_p5_r4_i1"}, {"step": 404, "loss": 0.4482077121734619, "b": "teacher_2026-08-05_exp_3_p5_r4_i1"}, {"step": 414, "loss": 0.45871505737304685, "b": "teacher_2026-08-05_exp_3_p5_r4_i1"}, {"step": 424, "loss": 0.45888848304748536, "b": "teacher_2026-08-05_exp_3_p5_r4_i1"}, {"step": 442, "loss": 0.6518021583557129, "b": "teacher_2026-08-05_exp_4_p5_r5_i1"}, {"step": 452, "loss": 0.5563745021820068, "b": "teacher_2026-08-05_exp_4_p5_r5_i1"}, {"step": 462, "loss": 0.47834930419921873, "b": "teacher_2026-08-05_exp_4_p5_r5_i1"}, {"step": 472, "loss": 0.4143192768096924, "b": "teacher_2026-08-05_exp_4_p5_r5_i1"}, {"step": 482, "loss": 0.4028170585632324, "b": "teacher_2026-08-05_exp_4_p5_r5_i1"}, {"step": 492, "loss": 0.37707388401031494, "b": "teacher_2026-08-05_exp_4_p5_r5_i1"}, {"step": 502, "loss": 0.3812487363815308, "b": "teacher_2026-08-05_exp_4_p5_r5_i1"}, {"step": 512, "loss": 0.3649546384811401, "b": "teacher_2026-08-05_exp_4_p5_r5_i1"}, {"step": 522, "loss": 0.3871851921081543, "b": "teacher_2026-08-05_exp_4_p5_r5_i1"}, {"step": 532, "loss": 0.3498110771179199, "b": "teacher_2026-08-05_exp_4_p5_r5_i1"}, {"step": 550, "loss": 0.5299811840057373, "b": "teacher_2026-08-05_exp_5_p5_r6_i1"}, {"step": 560, "loss": 0.446135425567627, "b": "teacher_2026-08-05_exp_5_p5_r6_i1"}, {"step": 570, "loss": 0.41812782287597655, "b": "teacher_2026-08-05_exp_5_p5_r6_i1"}, {"step": 580, "loss": 0.3728438138961792, "b": "teacher_2026-08-05_exp_5_p5_r6_i1"}, {"step": 590, "loss": 0.36741952896118163, "b": "teacher_2026-08-05_exp_5_p5_r6_i1"}, {"step": 600, "loss": 0.34593002796173095, "b": "teacher_2026-08-05_exp_5_p5_r6_i1"}, {"step": 610, "loss": 0.32253897190093994, "b": "teacher_2026-08-05_exp_5_p5_r6_i1"}, {"step": 620, "loss": 0.3188894033432007, "b": "teacher_2026-08-05_exp_5_p5_r6_i1"}, {"step": 630, "loss": 0.313730788230896, "b": "teacher_2026-08-05_exp_5_p5_r6_i1"}, {"step": 640, "loss": 0.32711288928985593, "b": "teacher_2026-08-05_exp_5_p5_r6_i1"}, {"step": 658, "loss": 0.49099302291870117, "b": "teacher_2026-08-05_exp_6_p5_r7_i1"}, {"step": 668, "loss": 0.43851337432861326, "b": "teacher_2026-08-05_exp_6_p5_r7_i1"}, {"step": 678, "loss": 0.43137693405151367, "b": "teacher_2026-08-05_exp_6_p5_r7_i1"}, {"step": 688, "loss": 0.3858366012573242, "b": "teacher_2026-08-05_exp_6_p5_r7_i1"}, {"step": 698, "loss": 0.37847559452056884, "b": "teacher_2026-08-05_exp_6_p5_r7_i1"}, {"step": 708, "loss": 0.3338923454284668, "b": "teacher_2026-08-05_exp_6_p5_r7_i1"}, {"step": 718, "loss": 0.32481262683868406, "b": "teacher_2026-08-05_exp_6_p5_r7_i1"}, {"step": 728, "loss": 0.3254255294799805, "b": "teacher_2026-08-05_exp_6_p5_r7_i1"}, {"step": 738, "loss": 0.3326241970062256, "b": "teacher_2026-08-05_exp_6_p5_r7_i1"}, {"step": 748, "loss": 0.33128793239593507, "b": "teacher_2026-08-05_exp_6_p5_r7_i1"}] \ No newline at end of file