初始化项目,由ModelHub XC社区提供模型

Model: cs-552-2026-MMRF/general_knowledge_model
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-06-13 09:58:16 +08:00
commit 7c4ed61457
152 changed files with 12557 additions and 0 deletions

View File

@@ -0,0 +1,89 @@
{%- if tools %}
{{- '<|im_start|>system\n' }}
{%- if messages[0].role == 'system' %}
{{- messages[0].content + '\n\n' }}
{%- endif %}
{{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
{%- for tool in tools %}
{{- "\n" }}
{{- tool | tojson }}
{%- endfor %}
{{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
{%- else %}
{%- if messages[0].role == 'system' %}
{{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
{%- endif %}
{%- endif %}
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
{%- for message in messages[::-1] %}
{%- set index = (messages|length - 1) - loop.index0 %}
{%- if ns.multi_step_tool and message.role == "user" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}
{%- set ns.multi_step_tool = false %}
{%- set ns.last_query_index = index %}
{%- endif %}
{%- endfor %}
{%- for message in messages %}
{%- if message.content is string %}
{%- set content = message.content %}
{%- else %}
{%- set content = '' %}
{%- endif %}
{%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
{%- elif message.role == "assistant" %}
{%- set reasoning_content = '' %}
{%- if message.reasoning_content is string %}
{%- set reasoning_content = message.reasoning_content %}
{%- else %}
{%- if '</think>' in content %}
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
{%- endif %}
{%- endif %}
{%- if loop.index0 > ns.last_query_index %}
{%- if loop.last or (not loop.last and reasoning_content) %}
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}
{%- else %}
{{- '<|im_start|>' + message.role + '\n' + content }}
{%- endif %}
{%- else %}
{{- '<|im_start|>' + message.role + '\n' + content }}
{%- endif %}
{%- if message.tool_calls %}
{%- for tool_call in message.tool_calls %}
{%- if (loop.first and content) or (not loop.first) %}
{{- '\n' }}
{%- endif %}
{%- if tool_call.function %}
{%- set tool_call = tool_call.function %}
{%- endif %}
{{- '<tool_call>\n{"name": "' }}
{{- tool_call.name }}
{{- '", "arguments": ' }}
{%- if tool_call.arguments is string %}
{{- tool_call.arguments }}
{%- else %}
{{- tool_call.arguments | tojson }}
{%- endif %}
{{- '}\n</tool_call>' }}
{%- endfor %}
{%- endif %}
{{- '<|im_end|>\n' }}
{%- elif message.role == "tool" %}
{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
{{- '<|im_start|>user' }}
{%- endif %}
{{- '\n<tool_response>\n' }}
{{- content }}
{{- '\n</tool_response>' }}
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
{{- '<|im_end|>\n' }}
{%- endif %}
{%- endif %}
{%- endfor %}
{%- if add_generation_prompt %}
{{- '<|im_start|>assistant\n' }}
{%- if enable_thinking is defined and enable_thinking is false %}
{{- '<think>\n\n</think>\n\n' }}
{%- endif %}
{%- endif %}

View File

@@ -0,0 +1,63 @@
{
"architectures": [
"Qwen3ForCausalLM"
],
"attention_bias": false,
"attention_dropout": 0.0,
"bos_token_id": null,
"dtype": "bfloat16",
"eos_token_id": 151645,
"head_dim": 128,
"hidden_act": "silu",
"hidden_size": 2048,
"initializer_range": 0.02,
"intermediate_size": 6144,
"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"
],
"max_position_embeddings": 40960,
"max_window_layers": 28,
"model_type": "qwen3",
"num_attention_heads": 16,
"num_hidden_layers": 28,
"num_key_value_heads": 8,
"pad_token_id": 151643,
"rms_norm_eps": 1e-06,
"rope_parameters": {
"rope_theta": 1000000,
"rope_type": "default"
},
"sliding_window": null,
"tie_word_embeddings": true,
"transformers_version": "5.7.0",
"use_cache": false,
"use_sliding_window": false,
"vocab_size": 151936
}

View File

@@ -0,0 +1,12 @@
{
"do_sample": true,
"eos_token_id": [
151645,
151643
],
"pad_token_id": 151643,
"temperature": 0.6,
"top_k": 20,
"top_p": 0.95,
"transformers_version": "5.7.0"
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:98a04b91a11ec1c0b526f91d12bdfb28ff4c3c69e104271b9e28a2f75f44f891
size 3441185608

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7535b338ca59a9c376634a6fbbef04a836c5c21962e653fe7794832854643965
size 6882572207

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:61c19bab1174704a4a4441475683bf1270277af15d2e2c95e964789128e482c4
size 14645

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c863cc66645dc4964c4c4f2cf30406fef13cbea85c7c7bd73c333d72670c821e
size 1465

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:be75606093db2094d7cd20f3c2f385c212750648bd6ea4fb2bf507a6a4c55506
size 11422650

View File

@@ -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
}

View File

@@ -0,0 +1,534 @@
{
"best_global_step": null,
"best_metric": null,
"best_model_checkpoint": null,
"epoch": 0.4006249749609391,
"eval_steps": 500,
"global_step": 2500,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"entropy": 2.223189059495926,
"epoch": 0.008012499499218782,
"grad_norm": 2.875,
"learning_rate": 1.9842973882390643e-05,
"loss": 2.3428109741210936,
"mean_token_accuracy": 0.4963963569700718,
"num_tokens": 305366.0,
"step": 50
},
{
"entropy": 2.188130117058754,
"epoch": 0.016024998998437564,
"grad_norm": 3.328125,
"learning_rate": 1.96827431501362e-05,
"loss": 2.225358734130859,
"mean_token_accuracy": 0.5110921229422093,
"num_tokens": 605042.0,
"step": 100
},
{
"entropy": 2.197347580194473,
"epoch": 0.024037498497656344,
"grad_norm": 3.453125,
"learning_rate": 1.952251241788175e-05,
"loss": 2.2299420166015627,
"mean_token_accuracy": 0.5093490639328957,
"num_tokens": 906888.0,
"step": 150
},
{
"entropy": 2.1913950395584108,
"epoch": 0.03204999799687513,
"grad_norm": 2.90625,
"learning_rate": 1.9362281685627303e-05,
"loss": 2.210995941162109,
"mean_token_accuracy": 0.5097909501194954,
"num_tokens": 1213125.0,
"step": 200
},
{
"entropy": 2.1611998677253723,
"epoch": 0.040062497496093905,
"grad_norm": 3.25,
"learning_rate": 1.920205095337286e-05,
"loss": 2.1867474365234374,
"mean_token_accuracy": 0.5154410660266876,
"num_tokens": 1509026.0,
"step": 250
},
{
"entropy": 2.168051454424858,
"epoch": 0.04807499699531269,
"grad_norm": 2.9375,
"learning_rate": 1.904182022111841e-05,
"loss": 2.190071716308594,
"mean_token_accuracy": 0.5156884534657001,
"num_tokens": 1806850.0,
"step": 300
},
{
"entropy": 2.1737154543399813,
"epoch": 0.05608749649453147,
"grad_norm": 3.421875,
"learning_rate": 1.8881589488863967e-05,
"loss": 2.199147186279297,
"mean_token_accuracy": 0.514045044630766,
"num_tokens": 2104505.0,
"step": 350
},
{
"entropy": 2.148039159178734,
"epoch": 0.06409999599375026,
"grad_norm": 3.109375,
"learning_rate": 1.872135875660952e-05,
"loss": 2.176946105957031,
"mean_token_accuracy": 0.5177112428843975,
"num_tokens": 2391088.0,
"step": 400
},
{
"entropy": 2.194890711903572,
"epoch": 0.07211249549296903,
"grad_norm": 3.28125,
"learning_rate": 1.856112802435507e-05,
"loss": 2.216288757324219,
"mean_token_accuracy": 0.5110335703194141,
"num_tokens": 2691272.0,
"step": 450
},
{
"entropy": 2.1557786524295808,
"epoch": 0.08012499499218781,
"grad_norm": 4.15625,
"learning_rate": 1.8400897292100627e-05,
"loss": 2.1812680053710936,
"mean_token_accuracy": 0.5176697050035,
"num_tokens": 2991855.0,
"step": 500
},
{
"entropy": 2.1708167713880537,
"epoch": 0.08813749449140659,
"grad_norm": 4.34375,
"learning_rate": 1.824066655984618e-05,
"loss": 2.1921002197265627,
"mean_token_accuracy": 0.5156507430970669,
"num_tokens": 3295049.0,
"step": 550
},
{
"entropy": 2.1686314886808393,
"epoch": 0.09614999399062538,
"grad_norm": 2.875,
"learning_rate": 1.8080435827591735e-05,
"loss": 2.1914617919921877,
"mean_token_accuracy": 0.5139613692462445,
"num_tokens": 3597206.0,
"step": 600
},
{
"entropy": 2.15742906332016,
"epoch": 0.10416249348984416,
"grad_norm": 3.109375,
"learning_rate": 1.7920205095337287e-05,
"loss": 2.174853973388672,
"mean_token_accuracy": 0.5159518288075924,
"num_tokens": 3905268.0,
"step": 650
},
{
"entropy": 2.162363375425339,
"epoch": 0.11217499298906294,
"grad_norm": 3.171875,
"learning_rate": 1.7759974363082843e-05,
"loss": 2.184231872558594,
"mean_token_accuracy": 0.516631413847208,
"num_tokens": 4207934.0,
"step": 700
},
{
"entropy": 2.1516289287805557,
"epoch": 0.12018749248828171,
"grad_norm": 3.609375,
"learning_rate": 1.7599743630828395e-05,
"loss": 2.167020263671875,
"mean_token_accuracy": 0.516358617246151,
"num_tokens": 4515774.0,
"step": 750
},
{
"entropy": 2.1549544781446457,
"epoch": 0.1281999919875005,
"grad_norm": 3.28125,
"learning_rate": 1.7439512898573947e-05,
"loss": 2.181917877197266,
"mean_token_accuracy": 0.5182220858335495,
"num_tokens": 4814709.0,
"step": 800
},
{
"entropy": 2.1532615756988527,
"epoch": 0.1362124914867193,
"grad_norm": 3.078125,
"learning_rate": 1.7279282166319503e-05,
"loss": 2.1659007263183594,
"mean_token_accuracy": 0.5180425970256328,
"num_tokens": 5112585.0,
"step": 850
},
{
"entropy": 2.1704017293453215,
"epoch": 0.14422499098593805,
"grad_norm": 2.921875,
"learning_rate": 1.7119051434065055e-05,
"loss": 2.1934996032714844,
"mean_token_accuracy": 0.5154964691400528,
"num_tokens": 5411369.0,
"step": 900
},
{
"entropy": 2.1349107217788696,
"epoch": 0.15223749048515683,
"grad_norm": 2.984375,
"learning_rate": 1.6958820701810608e-05,
"loss": 2.1598545837402345,
"mean_token_accuracy": 0.5208920259773732,
"num_tokens": 5707060.0,
"step": 950
},
{
"entropy": 2.1541705918312073,
"epoch": 0.16024998998437562,
"grad_norm": 3.203125,
"learning_rate": 1.6798589969556163e-05,
"loss": 2.170956573486328,
"mean_token_accuracy": 0.5204938448965549,
"num_tokens": 6004079.0,
"step": 1000
},
{
"entropy": 2.1523867017030716,
"epoch": 0.1682624894835944,
"grad_norm": 3.09375,
"learning_rate": 1.6638359237301716e-05,
"loss": 2.1695118713378907,
"mean_token_accuracy": 0.5177376234531402,
"num_tokens": 6315462.0,
"step": 1050
},
{
"entropy": 2.1356022965908052,
"epoch": 0.17627498898281319,
"grad_norm": 3.21875,
"learning_rate": 1.6478128505047268e-05,
"loss": 2.1513107299804686,
"mean_token_accuracy": 0.5217180585861206,
"num_tokens": 6613060.0,
"step": 1100
},
{
"entropy": 2.1483460652828215,
"epoch": 0.18428748848203197,
"grad_norm": 3.21875,
"learning_rate": 1.6317897772792824e-05,
"loss": 2.1671595764160156,
"mean_token_accuracy": 0.5199222292006016,
"num_tokens": 6909655.0,
"step": 1150
},
{
"entropy": 2.1074040442705155,
"epoch": 0.19229998798125075,
"grad_norm": 3.828125,
"learning_rate": 1.6157667040538376e-05,
"loss": 2.12770751953125,
"mean_token_accuracy": 0.5252153894305229,
"num_tokens": 7203263.0,
"step": 1200
},
{
"entropy": 2.1354027593135836,
"epoch": 0.20031248748046954,
"grad_norm": 2.921875,
"learning_rate": 1.5997436308283932e-05,
"loss": 2.156183166503906,
"mean_token_accuracy": 0.518907299786806,
"num_tokens": 7505411.0,
"step": 1250
},
{
"entropy": 2.142924894094467,
"epoch": 0.20832498697968832,
"grad_norm": 3.5625,
"learning_rate": 1.5837205576029484e-05,
"loss": 2.158486633300781,
"mean_token_accuracy": 0.5205909128487111,
"num_tokens": 7803562.0,
"step": 1300
},
{
"entropy": 2.1305291467905043,
"epoch": 0.2163374864789071,
"grad_norm": 3.34375,
"learning_rate": 1.5676974843775036e-05,
"loss": 2.151043701171875,
"mean_token_accuracy": 0.5211617235839366,
"num_tokens": 8108037.0,
"step": 1350
},
{
"entropy": 2.160947166085243,
"epoch": 0.2243499859781259,
"grad_norm": 3.234375,
"learning_rate": 1.5516744111520592e-05,
"loss": 2.177792663574219,
"mean_token_accuracy": 0.5167004990577698,
"num_tokens": 8408674.0,
"step": 1400
},
{
"entropy": 2.120403967499733,
"epoch": 0.23236248547734467,
"grad_norm": 3.375,
"learning_rate": 1.5356513379266144e-05,
"loss": 2.1462562561035154,
"mean_token_accuracy": 0.5225985661149025,
"num_tokens": 8707650.0,
"step": 1450
},
{
"entropy": 2.138882914185524,
"epoch": 0.24037498497656343,
"grad_norm": 3.171875,
"learning_rate": 1.5196282647011698e-05,
"loss": 2.1499905395507812,
"mean_token_accuracy": 0.5204668046534061,
"num_tokens": 9006296.0,
"step": 1500
},
{
"entropy": 2.131927245259285,
"epoch": 0.2483874844757822,
"grad_norm": 3.546875,
"learning_rate": 1.5036051914757252e-05,
"loss": 2.157076416015625,
"mean_token_accuracy": 0.5220408822596073,
"num_tokens": 9307203.0,
"step": 1550
},
{
"entropy": 2.1308567851781843,
"epoch": 0.256399983975001,
"grad_norm": 3.546875,
"learning_rate": 1.4875821182502805e-05,
"loss": 2.146601104736328,
"mean_token_accuracy": 0.5219539681077003,
"num_tokens": 9610070.0,
"step": 1600
},
{
"entropy": 2.1097783839702604,
"epoch": 0.2644124834742198,
"grad_norm": 3.84375,
"learning_rate": 1.4715590450248359e-05,
"loss": 2.1268209838867187,
"mean_token_accuracy": 0.5236652019619942,
"num_tokens": 9909117.0,
"step": 1650
},
{
"entropy": 2.123499180674553,
"epoch": 0.2724249829734386,
"grad_norm": 3.46875,
"learning_rate": 1.4555359717993913e-05,
"loss": 2.1409934997558593,
"mean_token_accuracy": 0.5225465354323388,
"num_tokens": 10209461.0,
"step": 1700
},
{
"entropy": 2.13052960395813,
"epoch": 0.2804374824726573,
"grad_norm": 2.71875,
"learning_rate": 1.4395128985739467e-05,
"loss": 2.151373291015625,
"mean_token_accuracy": 0.5227928113937378,
"num_tokens": 10509282.0,
"step": 1750
},
{
"entropy": 2.1226114094257356,
"epoch": 0.2884499819718761,
"grad_norm": 3.65625,
"learning_rate": 1.4234898253485019e-05,
"loss": 2.144451141357422,
"mean_token_accuracy": 0.5233827362954616,
"num_tokens": 10811056.0,
"step": 1800
},
{
"entropy": 2.126143154501915,
"epoch": 0.2964624814710949,
"grad_norm": 3.359375,
"learning_rate": 1.4074667521230575e-05,
"loss": 2.1457598876953123,
"mean_token_accuracy": 0.5221967925131321,
"num_tokens": 11111153.0,
"step": 1850
},
{
"entropy": 2.1048326581716537,
"epoch": 0.30447498097031367,
"grad_norm": 3.59375,
"learning_rate": 1.3914436788976127e-05,
"loss": 2.1260116577148436,
"mean_token_accuracy": 0.5272719909250736,
"num_tokens": 11405606.0,
"step": 1900
},
{
"entropy": 2.1236617982387545,
"epoch": 0.31248748046953245,
"grad_norm": 3.0,
"learning_rate": 1.375420605672168e-05,
"loss": 2.151782684326172,
"mean_token_accuracy": 0.5227546173334122,
"num_tokens": 11703943.0,
"step": 1950
},
{
"entropy": 2.121563429236412,
"epoch": 0.32049997996875124,
"grad_norm": 3.34375,
"learning_rate": 1.3593975324467235e-05,
"loss": 2.1370144653320313,
"mean_token_accuracy": 0.5235123547911644,
"num_tokens": 12002522.0,
"step": 2000
},
{
"entropy": 2.1155461168289182,
"epoch": 0.32851247946797,
"grad_norm": 3.46875,
"learning_rate": 1.3433744592212787e-05,
"loss": 2.1364064025878906,
"mean_token_accuracy": 0.5237135806679726,
"num_tokens": 12303098.0,
"step": 2050
},
{
"entropy": 2.1386052322387696,
"epoch": 0.3365249789671888,
"grad_norm": 3.484375,
"learning_rate": 1.327351385995834e-05,
"loss": 2.149888458251953,
"mean_token_accuracy": 0.522669050693512,
"num_tokens": 12605534.0,
"step": 2100
},
{
"entropy": 2.102600795030594,
"epoch": 0.3445374784664076,
"grad_norm": 3.796875,
"learning_rate": 1.3113283127703895e-05,
"loss": 2.1236566162109374,
"mean_token_accuracy": 0.5279092155396938,
"num_tokens": 12901218.0,
"step": 2150
},
{
"entropy": 2.132645187973976,
"epoch": 0.35254997796562637,
"grad_norm": 3.53125,
"learning_rate": 1.2953052395449447e-05,
"loss": 2.1523503112792968,
"mean_token_accuracy": 0.5198129612207413,
"num_tokens": 13213018.0,
"step": 2200
},
{
"entropy": 2.1204321217536926,
"epoch": 0.36056247746484515,
"grad_norm": 3.25,
"learning_rate": 1.2792821663195001e-05,
"loss": 2.1325447082519533,
"mean_token_accuracy": 0.5243636940419674,
"num_tokens": 13514408.0,
"step": 2250
},
{
"entropy": 2.102410731315613,
"epoch": 0.36857497696406394,
"grad_norm": 3.1875,
"learning_rate": 1.2632590930940555e-05,
"loss": 2.123565368652344,
"mean_token_accuracy": 0.5257614709436893,
"num_tokens": 13818272.0,
"step": 2300
},
{
"entropy": 2.0876205080747603,
"epoch": 0.3765874764632827,
"grad_norm": 3.328125,
"learning_rate": 1.247236019868611e-05,
"loss": 2.116696472167969,
"mean_token_accuracy": 0.5275124031305313,
"num_tokens": 14110702.0,
"step": 2350
},
{
"entropy": 2.1078518223762512,
"epoch": 0.3845999759625015,
"grad_norm": 3.453125,
"learning_rate": 1.2312129466431662e-05,
"loss": 2.1291993713378905,
"mean_token_accuracy": 0.524967464953661,
"num_tokens": 14407015.0,
"step": 2400
},
{
"entropy": 2.0930898267030718,
"epoch": 0.3926124754617203,
"grad_norm": 3.5,
"learning_rate": 1.2151898734177216e-05,
"loss": 2.1094123840332033,
"mean_token_accuracy": 0.5290587748587131,
"num_tokens": 14696565.0,
"step": 2450
},
{
"entropy": 2.1109757220745085,
"epoch": 0.4006249749609391,
"grad_norm": 3.5,
"learning_rate": 1.199166800192277e-05,
"loss": 2.1246888732910154,
"mean_token_accuracy": 0.5258957357704639,
"num_tokens": 14994401.0,
"step": 2500
}
],
"logging_steps": 50,
"max_steps": 6241,
"num_input_tokens_seen": 0,
"num_train_epochs": 1,
"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": 1.773461452668027e+17,
"train_batch_size": 4,
"trial_name": null,
"trial_params": null
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:78622f63304ec0913ed0b4ea7a1b26c08a5621b3661a380d798c4ea426235671
size 5713