commit 8f218303d4733ffa25230633f05a69fecc9d74c6 Author: ModelHub XC Date: Sat Jun 13 10:26:17 2026 +0800 初始化项目,由ModelHub XC社区提供模型 Model: misterJB/obiwan-field-963hz Source: Original Platform diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..b6153b4 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,37 @@ +*.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 +last-checkpoint/tokenizer.json filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md new file mode 100644 index 0000000..9923bb1 --- /dev/null +++ b/README.md @@ -0,0 +1,59 @@ +--- +base_model: Qwen/Qwen2.5-3B-Instruct +library_name: transformers +model_name: obiwan-field-963hz +tags: +- generated_from_trainer +- sft +- hf_jobs +- trl +licence: license +--- + +# Model Card for obiwan-field-963hz + +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 + +```python +from transformers import pipeline + +question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?" +generator = pipeline("text-generation", model="misterJB/obiwan-field-963hz", device="cuda") +output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0] +print(output["generated_text"]) +``` + +## Training procedure + + + + + +This model was trained with SFT. + +### Framework versions + +- TRL: 1.0.0 +- Transformers: 5.4.0 +- Pytorch: 2.8.0 +- Datasets: 4.8.4 +- Tokenizers: 0.22.2 + +## Citations + + + +Cite TRL as: + +```bibtex +@software{vonwerra2020trl, + title = {{TRL: Transformers Reinforcement Learning}}, + author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin}, + license = {Apache-2.0}, + url = {https://github.com/huggingface/trl}, + year = {2020} +} +``` \ 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..765171c --- /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.4.0", + "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..2b95cdd --- /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.4.0" +} diff --git a/last-checkpoint/chat_template.jinja b/last-checkpoint/chat_template.jinja new file mode 100644 index 0000000..bdf7919 --- /dev/null +++ b/last-checkpoint/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/last-checkpoint/config.json b/last-checkpoint/config.json new file mode 100644 index 0000000..4286aa4 --- /dev/null +++ b/last-checkpoint/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.3.0", + "use_cache": false, + "use_sliding_window": false, + "vocab_size": 151936 +} diff --git a/last-checkpoint/generation_config.json b/last-checkpoint/generation_config.json new file mode 100644 index 0000000..622cff8 --- /dev/null +++ b/last-checkpoint/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.3.0" +} diff --git a/last-checkpoint/model.safetensors b/last-checkpoint/model.safetensors new file mode 100644 index 0000000..74054e5 --- /dev/null +++ b/last-checkpoint/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3c75f6d59eeedbf9406a9efc156304e9c363154f673fd68bcbf47dfd22df4b7 +size 6171927112 diff --git a/last-checkpoint/optimizer.pt b/last-checkpoint/optimizer.pt new file mode 100644 index 0000000..5713202 --- /dev/null +++ b/last-checkpoint/optimizer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:312d7cba19a61025cf7f0f779acb901fd1a985dd8414a50d22271140255b7d70 +size 12344139237 diff --git a/last-checkpoint/rng_state.pth b/last-checkpoint/rng_state.pth new file mode 100644 index 0000000..1feba1a --- /dev/null +++ b/last-checkpoint/rng_state.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:098b29492211804ab324a36f37466821d948280bb74fce4ba895c03f13ecd878 +size 14645 diff --git a/last-checkpoint/scheduler.pt b/last-checkpoint/scheduler.pt new file mode 100644 index 0000000..e61fb49 --- /dev/null +++ b/last-checkpoint/scheduler.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7949a82b4956d6dc1683588213cba80de08632b440866c7377566d6b5ddef0f6 +size 1465 diff --git a/last-checkpoint/tokenizer.json b/last-checkpoint/tokenizer.json new file mode 100644 index 0000000..34510ff --- /dev/null +++ b/last-checkpoint/tokenizer.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8 +size 11421892 diff --git a/last-checkpoint/tokenizer_config.json b/last-checkpoint/tokenizer_config.json new file mode 100644 index 0000000..7d75d3b --- /dev/null +++ b/last-checkpoint/tokenizer_config.json @@ -0,0 +1,29 @@ +{ + "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, + "model_max_length": 131072, + "pad_token": "<|endoftext|>", + "split_special_tokens": false, + "tokenizer_class": "Qwen2Tokenizer", + "unk_token": null +} diff --git a/last-checkpoint/trainer_state.json b/last-checkpoint/trainer_state.json new file mode 100644 index 0000000..f2182b0 --- /dev/null +++ b/last-checkpoint/trainer_state.json @@ -0,0 +1,434 @@ +{ + "best_global_step": null, + "best_metric": null, + "best_model_checkpoint": null, + "epoch": 1.5625, + "eval_steps": 500, + "global_step": 2000, + "is_hyper_param_search": false, + "is_local_process_zero": true, + "is_world_process_zero": true, + "log_history": [ + { + "entropy": 1.128870008289814, + "epoch": 0.0390625, + "grad_norm": 1.1484375, + "learning_rate": 3.828125000000001e-06, + "loss": 1.2677252960205079, + "mean_token_accuracy": 0.7461660766601562, + "num_tokens": 284943.0, + "step": 50 + }, + { + "entropy": 0.5300011084228754, + "epoch": 0.078125, + "grad_norm": 0.9296875, + "learning_rate": 7.734375e-06, + "loss": 0.5345380783081055, + "mean_token_accuracy": 0.8863006618618965, + "num_tokens": 568567.0, + "step": 100 + }, + { + "entropy": 0.22015576468780637, + "epoch": 0.1171875, + "grad_norm": 0.73828125, + "learning_rate": 1.1640625000000002e-05, + "loss": 0.21523065567016603, + "mean_token_accuracy": 0.9527248337864875, + "num_tokens": 847818.0, + "step": 150 + }, + { + "entropy": 0.1493791827932, + "epoch": 0.15625, + "grad_norm": 1.859375, + "learning_rate": 1.5546875e-05, + "loss": 0.14242181777954102, + "mean_token_accuracy": 0.9662237629294396, + "num_tokens": 1132068.0, + "step": 200 + }, + { + "entropy": 0.10193594665266574, + "epoch": 0.1953125, + "grad_norm": 0.6953125, + "learning_rate": 1.9453125e-05, + "loss": 0.09328505516052246, + "mean_token_accuracy": 0.9757984274625778, + "num_tokens": 1414380.0, + "step": 250 + }, + { + "entropy": 0.08452916431240737, + "epoch": 0.234375, + "grad_norm": 0.3671875, + "learning_rate": 1.9626736111111114e-05, + "loss": 0.07474044799804687, + "mean_token_accuracy": 0.9797678524255753, + "num_tokens": 1693722.0, + "step": 300 + }, + { + "entropy": 0.07067977173253893, + "epoch": 0.2734375, + "grad_norm": 0.5078125, + "learning_rate": 1.9192708333333335e-05, + "loss": 0.06389600276947022, + "mean_token_accuracy": 0.9820445743203163, + "num_tokens": 1969318.0, + "step": 350 + }, + { + "entropy": 0.056383224558085206, + "epoch": 0.3125, + "grad_norm": 0.70703125, + "learning_rate": 1.8758680555555557e-05, + "loss": 0.047198328971862796, + "mean_token_accuracy": 0.9858593827486039, + "num_tokens": 2253231.0, + "step": 400 + }, + { + "entropy": 0.04955546020530164, + "epoch": 0.3515625, + "grad_norm": 0.2041015625, + "learning_rate": 1.8324652777777778e-05, + "loss": 0.041943116188049315, + "mean_token_accuracy": 0.9871881914138794, + "num_tokens": 2536963.0, + "step": 450 + }, + { + "entropy": 0.042752508148550986, + "epoch": 0.390625, + "grad_norm": 0.486328125, + "learning_rate": 1.7890625000000003e-05, + "loss": 0.03515239715576172, + "mean_token_accuracy": 0.9886215713620186, + "num_tokens": 2818045.0, + "step": 500 + }, + { + "entropy": 0.04651518008671701, + "epoch": 0.4296875, + "grad_norm": 0.2578125, + "learning_rate": 1.7456597222222224e-05, + "loss": 0.03923729181289673, + "mean_token_accuracy": 0.9879419809579849, + "num_tokens": 3095214.0, + "step": 550 + }, + { + "entropy": 0.03884609056636691, + "epoch": 0.46875, + "grad_norm": 0.251953125, + "learning_rate": 1.7022569444444446e-05, + "loss": 0.033338229656219485, + "mean_token_accuracy": 0.989266748726368, + "num_tokens": 3379390.0, + "step": 600 + }, + { + "entropy": 0.04037581194192171, + "epoch": 0.5078125, + "grad_norm": 0.361328125, + "learning_rate": 1.6588541666666667e-05, + "loss": 0.03338507175445557, + "mean_token_accuracy": 0.9893018490076065, + "num_tokens": 3658209.0, + "step": 650 + }, + { + "entropy": 0.0347819222509861, + "epoch": 0.546875, + "grad_norm": 0.25, + "learning_rate": 1.615451388888889e-05, + "loss": 0.02811858892440796, + "mean_token_accuracy": 0.9900272658467293, + "num_tokens": 3943542.0, + "step": 700 + }, + { + "entropy": 0.03437940481118858, + "epoch": 0.5859375, + "grad_norm": 0.275390625, + "learning_rate": 1.5720486111111114e-05, + "loss": 0.02796731948852539, + "mean_token_accuracy": 0.9901902380585671, + "num_tokens": 4219880.0, + "step": 750 + }, + { + "entropy": 0.03252768125385046, + "epoch": 0.625, + "grad_norm": 0.291015625, + "learning_rate": 1.5286458333333335e-05, + "loss": 0.02655085802078247, + "mean_token_accuracy": 0.9905701473355293, + "num_tokens": 4501872.0, + "step": 800 + }, + { + "entropy": 0.03492376470938325, + "epoch": 0.6640625, + "grad_norm": 0.30859375, + "learning_rate": 1.4852430555555556e-05, + "loss": 0.028916885852813722, + "mean_token_accuracy": 0.9901969498395919, + "num_tokens": 4777456.0, + "step": 850 + }, + { + "entropy": 0.03390513272024691, + "epoch": 0.703125, + "grad_norm": 0.23046875, + "learning_rate": 1.4418402777777778e-05, + "loss": 0.027390704154968262, + "mean_token_accuracy": 0.9903441447019578, + "num_tokens": 5058199.0, + "step": 900 + }, + { + "entropy": 0.03103839300107211, + "epoch": 0.7421875, + "grad_norm": 0.248046875, + "learning_rate": 1.3984375000000001e-05, + "loss": 0.025448167324066163, + "mean_token_accuracy": 0.990986846089363, + "num_tokens": 5346139.0, + "step": 950 + }, + { + "entropy": 0.030520746470429003, + "epoch": 0.78125, + "grad_norm": 0.322265625, + "learning_rate": 1.3550347222222224e-05, + "loss": 0.024664547443389893, + "mean_token_accuracy": 0.9911650615930557, + "num_tokens": 5630409.0, + "step": 1000 + }, + { + "entropy": 0.03099320237990469, + "epoch": 0.8203125, + "grad_norm": 0.232421875, + "learning_rate": 1.3116319444444446e-05, + "loss": 0.025322895050048828, + "mean_token_accuracy": 0.9909613582491875, + "num_tokens": 5910790.0, + "step": 1050 + }, + { + "entropy": 0.03205171652603894, + "epoch": 0.859375, + "grad_norm": 0.271484375, + "learning_rate": 1.2682291666666669e-05, + "loss": 0.025876080989837645, + "mean_token_accuracy": 0.9909294083714485, + "num_tokens": 6192859.0, + "step": 1100 + }, + { + "entropy": 0.0317235212540254, + "epoch": 0.8984375, + "grad_norm": 0.25390625, + "learning_rate": 1.2248263888888889e-05, + "loss": 0.025666613578796387, + "mean_token_accuracy": 0.9910975641012192, + "num_tokens": 6470736.0, + "step": 1150 + }, + { + "entropy": 0.02936750628054142, + "epoch": 0.9375, + "grad_norm": 0.1748046875, + "learning_rate": 1.1814236111111112e-05, + "loss": 0.023805558681488037, + "mean_token_accuracy": 0.9913524460792541, + "num_tokens": 6754815.0, + "step": 1200 + }, + { + "entropy": 0.027699284902773798, + "epoch": 0.9765625, + "grad_norm": 0.181640625, + "learning_rate": 1.1380208333333333e-05, + "loss": 0.02219050168991089, + "mean_token_accuracy": 0.9916341191530228, + "num_tokens": 7038952.0, + "step": 1250 + }, + { + "entropy": 0.028233024883084, + "epoch": 1.015625, + "grad_norm": 0.189453125, + "learning_rate": 1.0946180555555556e-05, + "loss": 0.021835849285125733, + "mean_token_accuracy": 0.9917337450385094, + "num_tokens": 7321409.0, + "step": 1300 + }, + { + "entropy": 0.028355726511217653, + "epoch": 1.0546875, + "grad_norm": 0.21484375, + "learning_rate": 1.0512152777777778e-05, + "loss": 0.02162353277206421, + "mean_token_accuracy": 0.9918213853240013, + "num_tokens": 7600151.0, + "step": 1350 + }, + { + "entropy": 0.029886504751630127, + "epoch": 1.09375, + "grad_norm": 0.2099609375, + "learning_rate": 1.0078125000000001e-05, + "loss": 0.023020203113555907, + "mean_token_accuracy": 0.9916045978665352, + "num_tokens": 7881901.0, + "step": 1400 + }, + { + "entropy": 0.029181483979336918, + "epoch": 1.1328125, + "grad_norm": 0.263671875, + "learning_rate": 9.644097222222222e-06, + "loss": 0.023541107177734374, + "mean_token_accuracy": 0.9915443989634514, + "num_tokens": 8165215.0, + "step": 1450 + }, + { + "entropy": 0.027739713676273824, + "epoch": 1.171875, + "grad_norm": 0.20703125, + "learning_rate": 9.210069444444446e-06, + "loss": 0.021458487510681152, + "mean_token_accuracy": 0.991859747171402, + "num_tokens": 8446729.0, + "step": 1500 + }, + { + "entropy": 0.030413460680283607, + "epoch": 1.2109375, + "grad_norm": 0.32421875, + "learning_rate": 8.776041666666667e-06, + "loss": 0.023718643188476562, + "mean_token_accuracy": 0.9913851937651634, + "num_tokens": 8726396.0, + "step": 1550 + }, + { + "entropy": 0.026663755937479435, + "epoch": 1.25, + "grad_norm": 0.189453125, + "learning_rate": 8.342013888888889e-06, + "loss": 0.019570586681365968, + "mean_token_accuracy": 0.9922190362215042, + "num_tokens": 9007932.0, + "step": 1600 + }, + { + "entropy": 0.029211496827192606, + "epoch": 1.2890625, + "grad_norm": 0.1796875, + "learning_rate": 7.907986111111112e-06, + "loss": 0.02281463861465454, + "mean_token_accuracy": 0.9916192671656608, + "num_tokens": 9284413.0, + "step": 1650 + }, + { + "entropy": 0.028992561721242965, + "epoch": 1.328125, + "grad_norm": 0.251953125, + "learning_rate": 7.473958333333334e-06, + "loss": 0.022474973201751708, + "mean_token_accuracy": 0.9916322359442711, + "num_tokens": 9563771.0, + "step": 1700 + }, + { + "entropy": 0.02873168694321066, + "epoch": 1.3671875, + "grad_norm": 0.19921875, + "learning_rate": 7.039930555555556e-06, + "loss": 0.022191219329833985, + "mean_token_accuracy": 0.9916000646352768, + "num_tokens": 9847273.0, + "step": 1750 + }, + { + "entropy": 0.02830368483904749, + "epoch": 1.40625, + "grad_norm": 0.2333984375, + "learning_rate": 6.605902777777779e-06, + "loss": 0.021763646602630617, + "mean_token_accuracy": 0.9919700247049331, + "num_tokens": 10127667.0, + "step": 1800 + }, + { + "entropy": 0.0277809487702325, + "epoch": 1.4453125, + "grad_norm": 0.19921875, + "learning_rate": 6.171875e-06, + "loss": 0.021228244304656984, + "mean_token_accuracy": 0.9920018136501312, + "num_tokens": 10406050.0, + "step": 1850 + }, + { + "entropy": 0.026233949079178275, + "epoch": 1.484375, + "grad_norm": 0.212890625, + "learning_rate": 5.737847222222222e-06, + "loss": 0.01996251106262207, + "mean_token_accuracy": 0.9923433768749237, + "num_tokens": 10690620.0, + "step": 1900 + }, + { + "entropy": 0.027143093338236213, + "epoch": 1.5234375, + "grad_norm": 0.236328125, + "learning_rate": 5.303819444444445e-06, + "loss": 0.02035560369491577, + "mean_token_accuracy": 0.9922614651918411, + "num_tokens": 10974611.0, + "step": 1950 + }, + { + "entropy": 0.02908464324194938, + "epoch": 1.5625, + "grad_norm": 0.265625, + "learning_rate": 4.869791666666667e-06, + "loss": 0.02261843204498291, + "mean_token_accuracy": 0.9916498929262161, + "num_tokens": 11254903.0, + "step": 2000 + } + ], + "logging_steps": 50, + "max_steps": 2560, + "num_input_tokens_seen": 0, + "num_train_epochs": 2, + "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": 2.0986070119686144e+17, + "train_batch_size": 2, + "trial_name": null, + "trial_params": null +} diff --git a/last-checkpoint/training_args.bin b/last-checkpoint/training_args.bin new file mode 100644 index 0000000..e02eb89 --- /dev/null +++ b/last-checkpoint/training_args.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76c06148c07fc5ad199c94c2904fbc2c1dd0b23fec31c335fe4bed01e188f7ce +size 5713 diff --git a/model.safetensors b/model.safetensors new file mode 100644 index 0000000..69c7205 --- /dev/null +++ b/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f545b863a2ea40f9fd5839ce62d37e50696fd3365122ccac311e3a80882eb8d5 +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..7d75d3b --- /dev/null +++ b/tokenizer_config.json @@ -0,0 +1,29 @@ +{ + "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, + "model_max_length": 131072, + "pad_token": "<|endoftext|>", + "split_special_tokens": false, + "tokenizer_class": "Qwen2Tokenizer", + "unk_token": null +} diff --git a/training_args.bin b/training_args.bin new file mode 100644 index 0000000..4057c00 --- /dev/null +++ b/training_args.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:552eb4be3ee9b432ae38961a09993ad0e177388b2545734c57ecd0e2fe5af2d0 +size 5713