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

Model: lldois/v25_v19_product_world_guard_lr18e6_ep028
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-08-02 11:27:17 +08:00
commit 016c3bb081
17 changed files with 2732 additions and 0 deletions

36
.gitattributes vendored Normal file
View File

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

58
README.md Normal file
View File

@@ -0,0 +1,58 @@
---
library_name: transformers
license: other
base_model: lldois/v19_v15_dualmode_fast_lr5e6_ep055
tags:
- llama-factory
- full
- generated_from_trainer
model-index:
- name: v25_v19_product_world_guard_lr18e6_ep028
results: []
---
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->
# v25_v19_product_world_guard_lr18e6_ep028
This model is a fine-tuned version of [lldois/v19_v15_dualmode_fast_lr5e6_ep055](https://huggingface.co/lldois/v19_v15_dualmode_fast_lr5e6_ep055) on the exp_v19_product_world_guard dataset.
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 1.8e-06
- train_batch_size: 1
- eval_batch_size: 8
- seed: 202607251
- gradient_accumulation_steps: 4
- total_train_batch_size: 4
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: cosine
- lr_scheduler_warmup_steps: 0.02
- num_epochs: 0.28
### Training results
### Framework versions
- Transformers 5.6.0
- Pytorch 2.7.1+cu126
- Datasets 4.0.0
- Tokenizers 0.22.2

8
all_results.json Normal file
View File

@@ -0,0 +1,8 @@
{
"epoch": 0.2819047619047619,
"total_flos": 3.606259359855821e+16,
"train_loss": 1.335793836696728,
"train_runtime": 616.3408,
"train_samples_per_second": 0.477,
"train_steps_per_second": 0.12
}

89
chat_template.jinja Normal file
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 %}

63
config.json Normal file
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": 1024,
"initializer_range": 0.02,
"intermediate_size": 3072,
"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": false,
"transformers_version": "5.6.0",
"use_cache": false,
"use_sliding_window": false,
"vocab_size": 176253
}

63
experiment_recipe.json Normal file
View File

@@ -0,0 +1,63 @@
{
"created_at": "2026-07-10 23:45:28",
"run": {
"name": "v25_v19_product_world_guard_lr18e6_ep028",
"dataset": "v19_product_world_guard",
"model_path": "/home/ll/llm4rec/experiments/outputs/v19_v15_dualmode_fast_lr5e6_ep055",
"lr": "1.8e-6",
"epochs": 0.28,
"warmup": 0.02,
"scheduler": "cosine",
"seed": 202607251,
"note": "v19 continuation. Ultra-light product-rec repair with item replay and small user guard. Goal: keep v19 fast/item/user1 behavior while recovering product recommendation and avoiding further world-score erosion.",
"config": "/home/ll/llm4rec/experiments/configs/v25_v19_product_world_guard_lr18e6_ep028.yaml"
},
"dataset_manifest": {
"name": "v19_product_world_guard",
"path": "/home/ll/llm4rec/experiments/data/v19_product_world_guard.jsonl",
"records": 27772,
"groups": {
"rec": 13378,
"item": 11194,
"user": 3200
},
"variants": {
"rec_cot_pattern_clean": 2400,
"item_short_think": 2792,
"item_compact_cot": 5597,
"rec_no_think_direct_final": 6289,
"user_strict_logic": 1208,
"rec_short_think_final": 4689,
"item_no_think_direct_final": 2805,
"user_extra_no_think_logic": 550,
"user_strict_array": 1442
},
"sha256": "6e45bc1b371e8ca509768327592079c144491f55adf772007ca24b1859acd29a",
"seed": 202607111
},
"dataset_recipe": "v19 continuation: route-balanced rec replay plus extra product rec /no_think and /think, small cleaned CoT, full item replay, and small user guard. Low LR/short epoch because v19 is already near best.",
"cot_policy": "Preserve /think reasoning supervision and do not use v7_final_only as a CoT training base. For /no_think prompts, train pure final answers without generated <think> tags. This is route-specific behavior, not global CoT removal.",
"raw_counts": {
"rec": 19204,
"item": 10384,
"user": 2892
},
"eval_observations": {
"v07": "best local score so far: total=0.8978, eval_time≈47.3min; fast final outputs likely help.",
"v15": "best CoT-preserving score so far: total=0.8778, eval_time≈70.1min; logs show repeated tokens, JSON shell errors, prompt leakage, and verbose /no_think outputs.",
"v19": "best CoT-native continuation so far: total=0.8855, eval_time≈48.1min; user1 and rec4 improved but world dropped.",
"v20": "v7 final-only continuation with CoT restore failed as a CoT route: total=0.8527, item fell to 0.1840; do not use v7 as future CoT base.",
"v22": "scratch official-base 3 epoch clean CoT underperformed: total=0.8217; item/world preserved but user and rec2 are weak.",
"v23": "scratch official-base 5 epoch low-LR guard failed badly: total=0.6990; item/user collapse suggests long scratch SFT is not viable with current data mix.",
"v24": "v15 light repair is best among v22-v24 but still only total=0.8364; user2 improves but rec/world do not recover.",
"v16": "CoT pattern rewrite failed: total=0.7912; logs show malformed user JSON and fragmented recommendation reasoning.",
"v18": "low-LR mixed replay from v12 failed: total=0.8340; item/world dropped and rec outputs mixed text/itemic/think tags."
},
"script": "/home/ll/llm4rec/experiments/run_experiments.py",
"script_sha256": "f752ec011aae9158402c880ebe487650272242b5b35d45bd4a6d9ec1c7dc33d5",
"deadline": "2026-07-11 09:00:00 +0800",
"reproduce": {
"prepare_command": "EXPERIMENT_PREPARE_ONLY=1 python3 experiments/run_experiments.py",
"train_command": "CUDA_VISIBLE_DEVICES=<gpu> bash -lc 'source /home/ll/llm4rec/demo/LLaMA-Factory/.venv/bin/activate && llamafactory-cli train /home/ll/llm4rec/experiments/configs/v25_v19_product_world_guard_lr18e6_ep028.yaml'"
}
}

12
generation_config.json Normal file
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.6.0"
}

3
model.safetensors Normal file
View File

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

View File

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

3
tokenizer.json Normal file
View File

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

16
tokenizer_config.json Normal file
View File

@@ -0,0 +1,16 @@
{
"add_prefix_space": false,
"backend": "tokenizers",
"bos_token": null,
"clean_up_tokenization_spaces": false,
"eos_token": "<|im_end|>",
"errors": "replace",
"is_local": true,
"local_files_only": false,
"model_max_length": 131072,
"pad_token": "<|endoftext|>",
"padding_side": "right",
"split_special_tokens": false,
"tokenizer_class": "Qwen2Tokenizer",
"unk_token": null
}

2211
train.log Normal file

File diff suppressed because one or more lines are too long

8
train_results.json Normal file
View File

@@ -0,0 +1,8 @@
{
"epoch": 0.2819047619047619,
"total_flos": 3.606259359855821e+16,
"train_loss": 1.335793836696728,
"train_runtime": 616.3408,
"train_samples_per_second": 0.477,
"train_steps_per_second": 0.12
}

15
trainer_log.jsonl Normal file
View File

@@ -0,0 +1,15 @@
{"current_steps": 5, "total_steps": 74, "loss": 1.3340117454528808, "lr": 1.7965752282825708e-06, "epoch": 0.01904761904761905, "percentage": 6.76, "elapsed_time": "0:00:41", "remaining_time": "0:09:35"}
{"current_steps": 10, "total_steps": 74, "loss": 1.3624221801757812, "lr": 1.758345255673404e-06, "epoch": 0.0380952380952381, "percentage": 13.51, "elapsed_time": "0:01:23", "remaining_time": "0:08:51"}
{"current_steps": 15, "total_steps": 74, "loss": 1.369257354736328, "lr": 1.679422863405995e-06, "epoch": 0.05714285714285714, "percentage": 20.27, "elapsed_time": "0:02:05", "remaining_time": "0:08:13"}
{"current_steps": 20, "total_steps": 74, "loss": 1.2420108795166016, "lr": 1.5635496031291115e-06, "epoch": 0.0761904761904762, "percentage": 27.03, "elapsed_time": "0:02:48", "remaining_time": "0:07:33"}
{"current_steps": 25, "total_steps": 74, "loss": 1.4326509475708007, "lr": 1.4162187927159413e-06, "epoch": 0.09523809523809523, "percentage": 33.78, "elapsed_time": "0:03:29", "remaining_time": "0:06:51"}
{"current_steps": 30, "total_steps": 74, "loss": 1.271633243560791, "lr": 1.2444150891285808e-06, "epoch": 0.11428571428571428, "percentage": 40.54, "elapsed_time": "0:04:10", "remaining_time": "0:06:07"}
{"current_steps": 35, "total_steps": 74, "loss": 1.272475528717041, "lr": 1.0562833599002375e-06, "epoch": 0.13333333333333333, "percentage": 47.3, "elapsed_time": "0:04:50", "remaining_time": "0:05:24"}
{"current_steps": 40, "total_steps": 74, "loss": 1.1951013565063477, "lr": 8.607425513711976e-07, "epoch": 0.1523809523809524, "percentage": 54.05, "elapsed_time": "0:05:32", "remaining_time": "0:04:42"}
{"current_steps": 45, "total_steps": 74, "loss": 1.3309590339660644, "lr": 6.670628594077312e-07, "epoch": 0.17142857142857143, "percentage": 60.81, "elapsed_time": "0:06:13", "remaining_time": "0:04:00"}
{"current_steps": 50, "total_steps": 74, "loss": 1.3844611167907714, "lr": 4.844262480884696e-07, "epoch": 0.19047619047619047, "percentage": 67.57, "elapsed_time": "0:06:55", "remaining_time": "0:03:19"}
{"current_steps": 55, "total_steps": 74, "loss": 1.2888216018676757, "lr": 3.2149115128211454e-07, "epoch": 0.20952380952380953, "percentage": 74.32, "elapsed_time": "0:07:37", "remaining_time": "0:02:38"}
{"current_steps": 60, "total_steps": 74, "loss": 1.2920453071594238, "lr": 1.8598199373788844e-07, "epoch": 0.22857142857142856, "percentage": 81.08, "elapsed_time": "0:08:21", "remaining_time": "0:01:56"}
{"current_steps": 65, "total_steps": 74, "loss": 1.3572697639465332, "lr": 8.432299166701505e-08, "epoch": 0.24761904761904763, "percentage": 87.84, "elapsed_time": "0:09:01", "remaining_time": "0:01:15"}
{"current_steps": 70, "total_steps": 74, "loss": 1.477519702911377, "lr": 2.1333593592059973e-08, "epoch": 0.26666666666666666, "percentage": 94.59, "elapsed_time": "0:09:42", "remaining_time": "0:00:33"}
{"current_steps": 74, "total_steps": 74, "epoch": 0.2819047619047619, "percentage": 100.0, "elapsed_time": "0:10:16", "remaining_time": "0:00:00"}

141
trainer_state.json Normal file
View File

@@ -0,0 +1,141 @@
{
"best_global_step": null,
"best_metric": null,
"best_model_checkpoint": null,
"epoch": 0.2819047619047619,
"eval_steps": 500,
"global_step": 74,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 0.01904761904761905,
"grad_norm": 71.5,
"learning_rate": 1.7965752282825708e-06,
"loss": 1.3340117454528808,
"step": 5
},
{
"epoch": 0.0380952380952381,
"grad_norm": 7.8125,
"learning_rate": 1.758345255673404e-06,
"loss": 1.3624221801757812,
"step": 10
},
{
"epoch": 0.05714285714285714,
"grad_norm": 13.0,
"learning_rate": 1.679422863405995e-06,
"loss": 1.369257354736328,
"step": 15
},
{
"epoch": 0.0761904761904762,
"grad_norm": 10.0625,
"learning_rate": 1.5635496031291115e-06,
"loss": 1.2420108795166016,
"step": 20
},
{
"epoch": 0.09523809523809523,
"grad_norm": 8.5625,
"learning_rate": 1.4162187927159413e-06,
"loss": 1.4326509475708007,
"step": 25
},
{
"epoch": 0.11428571428571428,
"grad_norm": 28.25,
"learning_rate": 1.2444150891285808e-06,
"loss": 1.271633243560791,
"step": 30
},
{
"epoch": 0.13333333333333333,
"grad_norm": 7.0625,
"learning_rate": 1.0562833599002375e-06,
"loss": 1.272475528717041,
"step": 35
},
{
"epoch": 0.1523809523809524,
"grad_norm": 52.5,
"learning_rate": 8.607425513711976e-07,
"loss": 1.1951013565063477,
"step": 40
},
{
"epoch": 0.17142857142857143,
"grad_norm": 7.25,
"learning_rate": 6.670628594077312e-07,
"loss": 1.3309590339660644,
"step": 45
},
{
"epoch": 0.19047619047619047,
"grad_norm": 9.1875,
"learning_rate": 4.844262480884696e-07,
"loss": 1.3844611167907714,
"step": 50
},
{
"epoch": 0.20952380952380953,
"grad_norm": 38.5,
"learning_rate": 3.2149115128211454e-07,
"loss": 1.2888216018676757,
"step": 55
},
{
"epoch": 0.22857142857142856,
"grad_norm": 35.75,
"learning_rate": 1.8598199373788844e-07,
"loss": 1.2920453071594238,
"step": 60
},
{
"epoch": 0.24761904761904763,
"grad_norm": 9.25,
"learning_rate": 8.432299166701505e-08,
"loss": 1.3572697639465332,
"step": 65
},
{
"epoch": 0.26666666666666666,
"grad_norm": 8.75,
"learning_rate": 2.1333593592059973e-08,
"loss": 1.477519702911377,
"step": 70
},
{
"epoch": 0.2819047619047619,
"step": 74,
"total_flos": 3.606259359855821e+16,
"train_loss": 1.335793836696728,
"train_runtime": 616.3408,
"train_samples_per_second": 0.477,
"train_steps_per_second": 0.12
}
],
"logging_steps": 5,
"max_steps": 74,
"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": false,
"should_training_stop": false
},
"attributes": {}
}
},
"total_flos": 3.606259359855821e+16,
"train_batch_size": 1,
"trial_name": null,
"trial_params": null
}

3
training_args.bin Normal file
View File

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

BIN
training_loss.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB