Text Generation
Transformers
Safetensors
designcoder
ui-generation
front-end
html
css
javascript
code-generation
full-sft
Instructions to use xingxm/DesignCoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xingxm/DesignCoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="xingxm/DesignCoder")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("xingxm/DesignCoder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use xingxm/DesignCoder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "xingxm/DesignCoder" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xingxm/DesignCoder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/xingxm/DesignCoder
- SGLang
How to use xingxm/DesignCoder with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "xingxm/DesignCoder" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xingxm/DesignCoder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "xingxm/DesignCoder" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xingxm/DesignCoder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use xingxm/DesignCoder with Docker Model Runner:
docker model run hf.co/xingxm/DesignCoder
Add designcoder_qwen3.5_4b_adamw_bs256_data41287_step200 (bench-200: 84.22)
Browse files- .gitattributes +1 -0
- designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/README.md +73 -0
- designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/chat_template.jinja +154 -0
- designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/config.json +113 -0
- designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/generation_config.json +10 -0
- designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/model.safetensors +3 -0
- designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/processor_config.json +60 -0
- designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/tokenizer.json +3 -0
- designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/tokenizer_config.json +34 -0
- designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/trainer_log.jsonl +27 -0
- designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/trainer_state.json +174 -0
- designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/training_loss.png +0 -0
.gitattributes
CHANGED
|
@@ -39,3 +39,4 @@ designcoder_qwen3.5_9b_muon_bs16_step3800/tokenizer.json filter=lfs diff=lfs mer
|
|
| 39 |
designcoder_qwen3.5_9b_adamw_bs16_ep20_step38000/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 40 |
designcoder_qwen3.6_27b_adamw_bs32_step1900/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 41 |
designcoder_qwen3.6_27b_adamw_bs32_step1900_r2/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 39 |
designcoder_qwen3.5_9b_adamw_bs16_ep20_step38000/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 40 |
designcoder_qwen3.6_27b_adamw_bs32_step1900/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 41 |
designcoder_qwen3.6_27b_adamw_bs32_step1900_r2/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Qwen/Qwen3.5-4B
|
| 4 |
+
tags:
|
| 5 |
+
- designcoder
|
| 6 |
+
- ui-generation
|
| 7 |
+
- front-end
|
| 8 |
+
- sft
|
| 9 |
+
language:
|
| 10 |
+
- en
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# DesignCoder v2 - 4B (AdamW, step 200)
|
| 14 |
+
|
| 15 |
+
Supervised fine-tune of **Qwen3.5-4B** for design-to-code generation (landing pages and
|
| 16 |
+
dashboards) from the DesignCoder v2 agent trajectories.
|
| 17 |
+
|
| 18 |
+
## Training
|
| 19 |
+
|
| 20 |
+
| Field | Value |
|
| 21 |
+
|---|---|
|
| 22 |
+
| Base model | `Qwen/Qwen3.5-4B` |
|
| 23 |
+
| Dataset | `designcoder_sft_v2_train` — **41,287 samples** (`data41287`) |
|
| 24 |
+
| Optimizer | AdamW |
|
| 25 |
+
| Learning rate | 2.0e-5 |
|
| 26 |
+
| Global batch size | 256 |
|
| 27 |
+
| Exported step | 200 |
|
| 28 |
+
| Epoch at export | 1.51 |
|
| 29 |
+
| Hardware | 8 nodes x 8 H20 |
|
| 30 |
+
| Source run | `designcoder_v2_4b_newdata_8n64g_20260918_1039/checkpoint-200` |
|
| 31 |
+
|
| 32 |
+
> **Dataset note:** this checkpoint is trained on the **41,287-sample** revision
|
| 33 |
+
> (`ckpt_data41287`). The earlier checkpoints in this repository (`*_step1900`,
|
| 34 |
+
> `*_step3800`) come from the **37,865-sample** revision (`ckpt_data37865`) and are
|
| 35 |
+
> *not* directly comparable.
|
| 36 |
+
|
| 37 |
+
## Benchmark
|
| 38 |
+
|
| 39 |
+
Evaluated on the frozen 200-case DesignCoder bench (`bench_data/test-prompts-200.jsonl`
|
| 40 |
+
+ `test-rubrics-200.jsonl`). Every rubric item is a binary screenshot check, judged by a
|
| 41 |
+
vision model over full-page screenshots; the score is the unweighted mean of Prompt Fit
|
| 42 |
+
and the six rubric dimensions.
|
| 43 |
+
|
| 44 |
+
**Score: 84.22**
|
| 45 |
+
|
| 46 |
+
Best 4B checkpoint under AdamW on this dataset.
|
| 47 |
+
|
| 48 |
+
### Why this step and not the last one
|
| 49 |
+
|
| 50 |
+
Checkpoint selection was done by running the benchmark, not by picking the lowest
|
| 51 |
+
training loss. Across all four runs in this release the best checkpoint sits at roughly
|
| 52 |
+
75% of training, and loss kept decreasing while benchmark scores fell. The most extreme
|
| 53 |
+
case: 4B AdamW loss improved from 0.2696 (step 200) to 0.2682 (step 266) while its score
|
| 54 |
+
collapsed from 84.22 to 68.35.
|
| 55 |
+
|
| 56 |
+
## Usage
|
| 57 |
+
|
| 58 |
+
The model is trained as a tool-using agent. Each case runs
|
| 59 |
+
`design_search` -> (`websearch`, landing only) -> a final answer with exactly three code
|
| 60 |
+
blocks in this order: `html`, `css`, `js`. Reproduce the system prompts and tool
|
| 61 |
+
observation format from `examples/designcoder/runtime/infer_designcoder.py`; feeding a
|
| 62 |
+
bare instruction without the tool turns will not match the training distribution.
|
| 63 |
+
|
| 64 |
+
```python
|
| 65 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 66 |
+
|
| 67 |
+
repo = "xingxm/DesignCoder"
|
| 68 |
+
sub = "designcoder_qwen3.5_4b_adamw_bs256_data41287_step200"
|
| 69 |
+
tok = AutoTokenizer.from_pretrained(repo, subfolder=sub)
|
| 70 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 71 |
+
repo, subfolder=sub, dtype="bfloat16", device_map="auto"
|
| 72 |
+
)
|
| 73 |
+
```
|
designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/chat_template.jinja
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- set image_count = namespace(value=0) %}
|
| 2 |
+
{%- set video_count = namespace(value=0) %}
|
| 3 |
+
{%- macro render_content(content, do_vision_count, is_system_content=false) %}
|
| 4 |
+
{%- if content is string %}
|
| 5 |
+
{{- content }}
|
| 6 |
+
{%- elif content is iterable and content is not mapping %}
|
| 7 |
+
{%- for item in content %}
|
| 8 |
+
{%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
|
| 9 |
+
{%- if is_system_content %}
|
| 10 |
+
{{- raise_exception('System message cannot contain images.') }}
|
| 11 |
+
{%- endif %}
|
| 12 |
+
{%- if do_vision_count %}
|
| 13 |
+
{%- set image_count.value = image_count.value + 1 %}
|
| 14 |
+
{%- endif %}
|
| 15 |
+
{%- if add_vision_id %}
|
| 16 |
+
{{- 'Picture ' ~ image_count.value ~ ': ' }}
|
| 17 |
+
{%- endif %}
|
| 18 |
+
{{- '<|vision_start|><|image_pad|><|vision_end|>' }}
|
| 19 |
+
{%- elif 'video' in item or item.type == 'video' %}
|
| 20 |
+
{%- if is_system_content %}
|
| 21 |
+
{{- raise_exception('System message cannot contain videos.') }}
|
| 22 |
+
{%- endif %}
|
| 23 |
+
{%- if do_vision_count %}
|
| 24 |
+
{%- set video_count.value = video_count.value + 1 %}
|
| 25 |
+
{%- endif %}
|
| 26 |
+
{%- if add_vision_id %}
|
| 27 |
+
{{- 'Video ' ~ video_count.value ~ ': ' }}
|
| 28 |
+
{%- endif %}
|
| 29 |
+
{{- '<|vision_start|><|video_pad|><|vision_end|>' }}
|
| 30 |
+
{%- elif 'text' in item %}
|
| 31 |
+
{{- item.text }}
|
| 32 |
+
{%- else %}
|
| 33 |
+
{{- raise_exception('Unexpected item type in content.') }}
|
| 34 |
+
{%- endif %}
|
| 35 |
+
{%- endfor %}
|
| 36 |
+
{%- elif content is none or content is undefined %}
|
| 37 |
+
{{- '' }}
|
| 38 |
+
{%- else %}
|
| 39 |
+
{{- raise_exception('Unexpected content type.') }}
|
| 40 |
+
{%- endif %}
|
| 41 |
+
{%- endmacro %}
|
| 42 |
+
{%- if not messages %}
|
| 43 |
+
{{- raise_exception('No messages provided.') }}
|
| 44 |
+
{%- endif %}
|
| 45 |
+
{%- if tools and tools is iterable and tools is not mapping %}
|
| 46 |
+
{{- '<|im_start|>system\n' }}
|
| 47 |
+
{{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
|
| 48 |
+
{%- for tool in tools %}
|
| 49 |
+
{{- "\n" }}
|
| 50 |
+
{{- tool | tojson }}
|
| 51 |
+
{%- endfor %}
|
| 52 |
+
{{- "\n</tools>" }}
|
| 53 |
+
{{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
|
| 54 |
+
{%- if messages[0].role == 'system' %}
|
| 55 |
+
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 56 |
+
{%- if content %}
|
| 57 |
+
{{- '\n\n' + content }}
|
| 58 |
+
{%- endif %}
|
| 59 |
+
{%- endif %}
|
| 60 |
+
{{- '<|im_end|>\n' }}
|
| 61 |
+
{%- else %}
|
| 62 |
+
{%- if messages[0].role == 'system' %}
|
| 63 |
+
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 64 |
+
{{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
|
| 65 |
+
{%- endif %}
|
| 66 |
+
{%- endif %}
|
| 67 |
+
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 68 |
+
{%- for message in messages[::-1] %}
|
| 69 |
+
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 70 |
+
{%- if ns.multi_step_tool and message.role == "user" %}
|
| 71 |
+
{%- set content = render_content(message.content, false)|trim %}
|
| 72 |
+
{%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
|
| 73 |
+
{%- set ns.multi_step_tool = false %}
|
| 74 |
+
{%- set ns.last_query_index = index %}
|
| 75 |
+
{%- endif %}
|
| 76 |
+
{%- endif %}
|
| 77 |
+
{%- endfor %}
|
| 78 |
+
{%- if ns.multi_step_tool %}
|
| 79 |
+
{{- raise_exception('No user query found in messages.') }}
|
| 80 |
+
{%- endif %}
|
| 81 |
+
{%- for message in messages %}
|
| 82 |
+
{%- set content = render_content(message.content, true)|trim %}
|
| 83 |
+
{%- if message.role == "system" %}
|
| 84 |
+
{%- if not loop.first %}
|
| 85 |
+
{{- raise_exception('System message must be at the beginning.') }}
|
| 86 |
+
{%- endif %}
|
| 87 |
+
{%- elif message.role == "user" %}
|
| 88 |
+
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 89 |
+
{%- elif message.role == "assistant" %}
|
| 90 |
+
{%- set reasoning_content = '' %}
|
| 91 |
+
{%- if message.reasoning_content is string %}
|
| 92 |
+
{%- set reasoning_content = message.reasoning_content %}
|
| 93 |
+
{%- else %}
|
| 94 |
+
{%- if '</think>' in content %}
|
| 95 |
+
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 96 |
+
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 97 |
+
{%- endif %}
|
| 98 |
+
{%- endif %}
|
| 99 |
+
{%- set reasoning_content = reasoning_content|trim %}
|
| 100 |
+
{%- if loop.index0 > ns.last_query_index %}
|
| 101 |
+
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
|
| 102 |
+
{%- else %}
|
| 103 |
+
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 104 |
+
{%- endif %}
|
| 105 |
+
{%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
|
| 106 |
+
{%- for tool_call in message.tool_calls %}
|
| 107 |
+
{%- if tool_call.function is defined %}
|
| 108 |
+
{%- set tool_call = tool_call.function %}
|
| 109 |
+
{%- endif %}
|
| 110 |
+
{%- if loop.first %}
|
| 111 |
+
{%- if content|trim %}
|
| 112 |
+
{{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 113 |
+
{%- else %}
|
| 114 |
+
{{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 115 |
+
{%- endif %}
|
| 116 |
+
{%- else %}
|
| 117 |
+
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 118 |
+
{%- endif %}
|
| 119 |
+
{%- if tool_call.arguments is defined %}
|
| 120 |
+
{%- for args_name, args_value in tool_call.arguments|items %}
|
| 121 |
+
{{- '<parameter=' + args_name + '>\n' }}
|
| 122 |
+
{%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
|
| 123 |
+
{{- args_value }}
|
| 124 |
+
{{- '\n</parameter>\n' }}
|
| 125 |
+
{%- endfor %}
|
| 126 |
+
{%- endif %}
|
| 127 |
+
{{- '</function>\n</tool_call>' }}
|
| 128 |
+
{%- endfor %}
|
| 129 |
+
{%- endif %}
|
| 130 |
+
{{- '<|im_end|>\n' }}
|
| 131 |
+
{%- elif message.role == "tool" %}
|
| 132 |
+
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 133 |
+
{{- '<|im_start|>user' }}
|
| 134 |
+
{%- endif %}
|
| 135 |
+
{{- '\n<tool_response>\n' }}
|
| 136 |
+
{{- content }}
|
| 137 |
+
{{- '\n</tool_response>' }}
|
| 138 |
+
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 139 |
+
{{- '<|im_end|>\n' }}
|
| 140 |
+
{%- elif loop.last %}
|
| 141 |
+
{{- '<|im_end|>\n' }}
|
| 142 |
+
{%- endif %}
|
| 143 |
+
{%- else %}
|
| 144 |
+
{{- raise_exception('Unexpected message role.') }}
|
| 145 |
+
{%- endif %}
|
| 146 |
+
{%- endfor %}
|
| 147 |
+
{%- if add_generation_prompt %}
|
| 148 |
+
{{- '<|im_start|>assistant\n' }}
|
| 149 |
+
{%- if enable_thinking is defined and enable_thinking is false %}
|
| 150 |
+
{{- '<think>\n\n</think>\n\n' }}
|
| 151 |
+
{%- else %}
|
| 152 |
+
{{- '<think>\n' }}
|
| 153 |
+
{%- endif %}
|
| 154 |
+
{%- endif %}
|
designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/config.json
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3_5ForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "bfloat16",
|
| 6 |
+
"eos_token_id": 248046,
|
| 7 |
+
"hidden_size": 2560,
|
| 8 |
+
"image_token_id": 248056,
|
| 9 |
+
"model_type": "qwen3_5",
|
| 10 |
+
"pad_token_id": 248044,
|
| 11 |
+
"text_config": {
|
| 12 |
+
"attention_bias": false,
|
| 13 |
+
"attention_dropout": 0.0,
|
| 14 |
+
"attn_output_gate": true,
|
| 15 |
+
"bos_token_id": null,
|
| 16 |
+
"dtype": "bfloat16",
|
| 17 |
+
"eos_token_id": 248044,
|
| 18 |
+
"full_attention_interval": 4,
|
| 19 |
+
"head_dim": 256,
|
| 20 |
+
"hidden_act": "silu",
|
| 21 |
+
"hidden_size": 2560,
|
| 22 |
+
"initializer_range": 0.02,
|
| 23 |
+
"intermediate_size": 9216,
|
| 24 |
+
"layer_types": [
|
| 25 |
+
"linear_attention",
|
| 26 |
+
"linear_attention",
|
| 27 |
+
"linear_attention",
|
| 28 |
+
"full_attention",
|
| 29 |
+
"linear_attention",
|
| 30 |
+
"linear_attention",
|
| 31 |
+
"linear_attention",
|
| 32 |
+
"full_attention",
|
| 33 |
+
"linear_attention",
|
| 34 |
+
"linear_attention",
|
| 35 |
+
"linear_attention",
|
| 36 |
+
"full_attention",
|
| 37 |
+
"linear_attention",
|
| 38 |
+
"linear_attention",
|
| 39 |
+
"linear_attention",
|
| 40 |
+
"full_attention",
|
| 41 |
+
"linear_attention",
|
| 42 |
+
"linear_attention",
|
| 43 |
+
"linear_attention",
|
| 44 |
+
"full_attention",
|
| 45 |
+
"linear_attention",
|
| 46 |
+
"linear_attention",
|
| 47 |
+
"linear_attention",
|
| 48 |
+
"full_attention",
|
| 49 |
+
"linear_attention",
|
| 50 |
+
"linear_attention",
|
| 51 |
+
"linear_attention",
|
| 52 |
+
"full_attention",
|
| 53 |
+
"linear_attention",
|
| 54 |
+
"linear_attention",
|
| 55 |
+
"linear_attention",
|
| 56 |
+
"full_attention"
|
| 57 |
+
],
|
| 58 |
+
"linear_conv_kernel_dim": 4,
|
| 59 |
+
"linear_key_head_dim": 128,
|
| 60 |
+
"linear_num_key_heads": 16,
|
| 61 |
+
"linear_num_value_heads": 32,
|
| 62 |
+
"linear_value_head_dim": 128,
|
| 63 |
+
"mamba_ssm_dtype": "float32",
|
| 64 |
+
"max_position_embeddings": 262144,
|
| 65 |
+
"mlp_only_layers": [],
|
| 66 |
+
"model_type": "qwen3_5_text",
|
| 67 |
+
"mtp_num_hidden_layers": 1,
|
| 68 |
+
"mtp_use_dedicated_embeddings": false,
|
| 69 |
+
"num_attention_heads": 16,
|
| 70 |
+
"num_hidden_layers": 32,
|
| 71 |
+
"num_key_value_heads": 4,
|
| 72 |
+
"pad_token_id": null,
|
| 73 |
+
"partial_rotary_factor": 0.25,
|
| 74 |
+
"rms_norm_eps": 1e-06,
|
| 75 |
+
"rope_parameters": {
|
| 76 |
+
"mrope_interleaved": true,
|
| 77 |
+
"mrope_section": [
|
| 78 |
+
11,
|
| 79 |
+
11,
|
| 80 |
+
10
|
| 81 |
+
],
|
| 82 |
+
"partial_rotary_factor": 0.25,
|
| 83 |
+
"rope_theta": 10000000,
|
| 84 |
+
"rope_type": "default"
|
| 85 |
+
},
|
| 86 |
+
"tie_word_embeddings": true,
|
| 87 |
+
"use_cache": false,
|
| 88 |
+
"vocab_size": 248320
|
| 89 |
+
},
|
| 90 |
+
"tie_word_embeddings": true,
|
| 91 |
+
"transformers_version": "5.8.0",
|
| 92 |
+
"use_cache": false,
|
| 93 |
+
"video_token_id": 248057,
|
| 94 |
+
"vision_config": {
|
| 95 |
+
"deepstack_visual_indexes": [],
|
| 96 |
+
"depth": 24,
|
| 97 |
+
"dtype": "bfloat16",
|
| 98 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 99 |
+
"hidden_size": 1024,
|
| 100 |
+
"in_channels": 3,
|
| 101 |
+
"initializer_range": 0.02,
|
| 102 |
+
"intermediate_size": 4096,
|
| 103 |
+
"model_type": "qwen3_5_vision",
|
| 104 |
+
"num_heads": 16,
|
| 105 |
+
"num_position_embeddings": 2304,
|
| 106 |
+
"out_hidden_size": 2560,
|
| 107 |
+
"patch_size": 16,
|
| 108 |
+
"spatial_merge_size": 2,
|
| 109 |
+
"temporal_patch_size": 2
|
| 110 |
+
},
|
| 111 |
+
"vision_end_token_id": 248054,
|
| 112 |
+
"vision_start_token_id": 248053
|
| 113 |
+
}
|
designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/generation_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"eos_token_id": [
|
| 4 |
+
248046,
|
| 5 |
+
248044
|
| 6 |
+
],
|
| 7 |
+
"pad_token_id": 248044,
|
| 8 |
+
"transformers_version": "5.8.0",
|
| 9 |
+
"use_cache": true
|
| 10 |
+
}
|
designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d9216d2612b2d8fcc0f5ad81c1ff8ff891c3564bbe93a1672104a2a44b43061c
|
| 3 |
+
size 9078620536
|
designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/processor_config.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"image_processor": {
|
| 3 |
+
"do_convert_rgb": true,
|
| 4 |
+
"do_normalize": true,
|
| 5 |
+
"do_rescale": true,
|
| 6 |
+
"do_resize": true,
|
| 7 |
+
"image_mean": [
|
| 8 |
+
0.5,
|
| 9 |
+
0.5,
|
| 10 |
+
0.5
|
| 11 |
+
],
|
| 12 |
+
"image_processor_type": "Qwen2VLImageProcessor",
|
| 13 |
+
"image_std": [
|
| 14 |
+
0.5,
|
| 15 |
+
0.5,
|
| 16 |
+
0.5
|
| 17 |
+
],
|
| 18 |
+
"merge_size": 2,
|
| 19 |
+
"patch_size": 16,
|
| 20 |
+
"resample": 3,
|
| 21 |
+
"rescale_factor": 0.00392156862745098,
|
| 22 |
+
"size": {
|
| 23 |
+
"longest_edge": 16777216,
|
| 24 |
+
"shortest_edge": 65536
|
| 25 |
+
},
|
| 26 |
+
"temporal_patch_size": 2
|
| 27 |
+
},
|
| 28 |
+
"processor_class": "Qwen3VLProcessor",
|
| 29 |
+
"video_processor": {
|
| 30 |
+
"do_convert_rgb": true,
|
| 31 |
+
"do_normalize": true,
|
| 32 |
+
"do_rescale": true,
|
| 33 |
+
"do_resize": true,
|
| 34 |
+
"do_sample_frames": true,
|
| 35 |
+
"fps": 2,
|
| 36 |
+
"image_mean": [
|
| 37 |
+
0.5,
|
| 38 |
+
0.5,
|
| 39 |
+
0.5
|
| 40 |
+
],
|
| 41 |
+
"image_std": [
|
| 42 |
+
0.5,
|
| 43 |
+
0.5,
|
| 44 |
+
0.5
|
| 45 |
+
],
|
| 46 |
+
"max_frames": 768,
|
| 47 |
+
"merge_size": 2,
|
| 48 |
+
"min_frames": 4,
|
| 49 |
+
"patch_size": 16,
|
| 50 |
+
"resample": 3,
|
| 51 |
+
"rescale_factor": 0.00392156862745098,
|
| 52 |
+
"return_metadata": false,
|
| 53 |
+
"size": {
|
| 54 |
+
"longest_edge": 25165824,
|
| 55 |
+
"shortest_edge": 4096
|
| 56 |
+
},
|
| 57 |
+
"temporal_patch_size": 2,
|
| 58 |
+
"video_processor_type": "Qwen3VLVideoProcessor"
|
| 59 |
+
}
|
| 60 |
+
}
|
designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
|
| 3 |
+
size 19989325
|
designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/tokenizer_config.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"audio_bos_token": "<|audio_start|>",
|
| 4 |
+
"audio_eos_token": "<|audio_end|>",
|
| 5 |
+
"audio_token": "<|audio_pad|>",
|
| 6 |
+
"backend": "tokenizers",
|
| 7 |
+
"bos_token": null,
|
| 8 |
+
"clean_up_tokenization_spaces": false,
|
| 9 |
+
"eos_token": "<|im_end|>",
|
| 10 |
+
"errors": "replace",
|
| 11 |
+
"image_token": "<|image_pad|>",
|
| 12 |
+
"is_local": true,
|
| 13 |
+
"local_files_only": false,
|
| 14 |
+
"model_max_length": 262144,
|
| 15 |
+
"model_specific_special_tokens": {
|
| 16 |
+
"audio_bos_token": "<|audio_start|>",
|
| 17 |
+
"audio_eos_token": "<|audio_end|>",
|
| 18 |
+
"audio_token": "<|audio_pad|>",
|
| 19 |
+
"image_token": "<|image_pad|>",
|
| 20 |
+
"video_token": "<|video_pad|>",
|
| 21 |
+
"vision_bos_token": "<|vision_start|>",
|
| 22 |
+
"vision_eos_token": "<|vision_end|>"
|
| 23 |
+
},
|
| 24 |
+
"pad_token": "<|endoftext|>",
|
| 25 |
+
"padding_side": "right",
|
| 26 |
+
"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
|
| 27 |
+
"processor_class": "Qwen3VLProcessor",
|
| 28 |
+
"split_special_tokens": false,
|
| 29 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 30 |
+
"unk_token": null,
|
| 31 |
+
"video_token": "<|video_pad|>",
|
| 32 |
+
"vision_bos_token": "<|vision_start|>",
|
| 33 |
+
"vision_eos_token": "<|vision_end|>"
|
| 34 |
+
}
|
designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/trainer_log.jsonl
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"current_steps": 10, "total_steps": 266, "loss": 0.5404598236083984, "lr": 6.666666666666667e-06, "epoch": 0.07561436672967864, "percentage": 3.76, "elapsed_time": "0:09:25", "remaining_time": "4:01:28"}
|
| 2 |
+
{"current_steps": 20, "total_steps": 266, "loss": 0.4467557430267334, "lr": 1.4074074074074075e-05, "epoch": 0.15122873345935728, "percentage": 7.52, "elapsed_time": "0:18:17", "remaining_time": "3:44:55"}
|
| 3 |
+
{"current_steps": 30, "total_steps": 266, "loss": 0.3936758041381836, "lr": 1.999654451568528e-05, "epoch": 0.22684310018903592, "percentage": 11.28, "elapsed_time": "0:27:13", "remaining_time": "3:34:11"}
|
| 4 |
+
{"current_steps": 40, "total_steps": 266, "loss": 0.3615268707275391, "lr": 1.987585312769669e-05, "epoch": 0.30245746691871456, "percentage": 15.04, "elapsed_time": "0:36:11", "remaining_time": "3:24:28"}
|
| 5 |
+
{"current_steps": 50, "total_steps": 266, "loss": 0.34326627254486086, "lr": 1.9584768190468624e-05, "epoch": 0.3780718336483932, "percentage": 18.8, "elapsed_time": "0:45:03", "remaining_time": "3:14:40"}
|
| 6 |
+
{"current_steps": 60, "total_steps": 266, "loss": 0.33113551139831543, "lr": 1.912831195321268e-05, "epoch": 0.45368620037807184, "percentage": 22.56, "elapsed_time": "0:53:55", "remaining_time": "3:05:09"}
|
| 7 |
+
{"current_steps": 70, "total_steps": 266, "loss": 0.32063558101654055, "lr": 1.8514359907527693e-05, "epoch": 0.5293005671077504, "percentage": 26.32, "elapsed_time": "1:02:51", "remaining_time": "2:56:01"}
|
| 8 |
+
{"current_steps": 80, "total_steps": 266, "loss": 0.3131831169128418, "lr": 1.7753504907192923e-05, "epoch": 0.6049149338374291, "percentage": 30.08, "elapsed_time": "1:11:49", "remaining_time": "2:47:00"}
|
| 9 |
+
{"current_steps": 90, "total_steps": 266, "loss": 0.3076876878738403, "lr": 1.6858874403810507e-05, "epoch": 0.6805293005671077, "percentage": 33.83, "elapsed_time": "1:20:45", "remaining_time": "2:37:55"}
|
| 10 |
+
{"current_steps": 100, "total_steps": 266, "loss": 0.30152087211608886, "lr": 1.584590395163162e-05, "epoch": 0.7561436672967864, "percentage": 37.59, "elapsed_time": "1:29:39", "remaining_time": "2:28:50"}
|
| 11 |
+
{"current_steps": 110, "total_steps": 266, "loss": 0.29860482215881345, "lr": 1.4732070889412693e-05, "epoch": 0.831758034026465, "percentage": 41.35, "elapsed_time": "1:39:35", "remaining_time": "2:21:14"}
|
| 12 |
+
{"current_steps": 120, "total_steps": 266, "loss": 0.2935622692108154, "lr": 1.3536592794235696e-05, "epoch": 0.9073724007561437, "percentage": 45.11, "elapsed_time": "1:48:30", "remaining_time": "2:12:00"}
|
| 13 |
+
{"current_steps": 130, "total_steps": 266, "loss": 0.29182274341583253, "lr": 1.2280095910035343e-05, "epoch": 0.9829867674858223, "percentage": 48.87, "elapsed_time": "1:57:26", "remaining_time": "2:02:52"}
|
| 14 |
+
{"current_steps": 140, "total_steps": 266, "loss": 0.2805715322494507, "lr": 1.0984259271618947e-05, "epoch": 1.052930056710775, "percentage": 52.63, "elapsed_time": "2:05:42", "remaining_time": "1:53:07"}
|
| 15 |
+
{"current_steps": 150, "total_steps": 266, "loss": 0.27776541709899905, "lr": 9.671440664303813e-06, "epoch": 1.1285444234404536, "percentage": 56.39, "elapsed_time": "2:14:37", "remaining_time": "1:44:06"}
|
| 16 |
+
{"current_steps": 160, "total_steps": 266, "loss": 0.27518510818481445, "lr": 8.364290872697175e-06, "epoch": 1.2041587901701323, "percentage": 60.15, "elapsed_time": "2:23:33", "remaining_time": "1:35:06"}
|
| 17 |
+
{"current_steps": 170, "total_steps": 266, "loss": 0.27352917194366455, "lr": 7.08536287419749e-06, "epoch": 1.279773156899811, "percentage": 63.91, "elapsed_time": "2:32:29", "remaining_time": "1:26:06"}
|
| 18 |
+
{"current_steps": 180, "total_steps": 266, "loss": 0.271071720123291, "lr": 5.8567227200175865e-06, "epoch": 1.3553875236294897, "percentage": 67.67, "elapsed_time": "2:41:23", "remaining_time": "1:17:06"}
|
| 19 |
+
{"current_steps": 190, "total_steps": 266, "loss": 0.27093987464904784, "lr": 4.699568817414224e-06, "epoch": 1.4310018903591684, "percentage": 71.43, "elapsed_time": "2:50:17", "remaining_time": "1:08:06"}
|
| 20 |
+
{"current_steps": 200, "total_steps": 266, "loss": 0.26956160068511964, "lr": 3.63386618185811e-06, "epoch": 1.5066162570888468, "percentage": 75.19, "elapsed_time": "2:59:14", "remaining_time": "0:59:08"}
|
| 21 |
+
{"current_steps": 210, "total_steps": 266, "loss": 0.2693511962890625, "lr": 2.678001969593701e-06, "epoch": 1.5822306238185255, "percentage": 78.95, "elapsed_time": "3:09:16", "remaining_time": "0:50:28"}
|
| 22 |
+
{"current_steps": 220, "total_steps": 266, "loss": 0.26824145317077636, "lr": 1.8484682338758154e-06, "epoch": 1.6578449905482042, "percentage": 82.71, "elapsed_time": "3:18:12", "remaining_time": "0:41:26"}
|
| 23 |
+
{"current_steps": 230, "total_steps": 266, "loss": 0.2690474033355713, "lr": 1.159577378464939e-06, "epoch": 1.7334593572778827, "percentage": 86.47, "elapsed_time": "3:27:08", "remaining_time": "0:32:25"}
|
| 24 |
+
{"current_steps": 240, "total_steps": 266, "loss": 0.2695624828338623, "lr": 6.23215217819253e-07, "epoch": 1.8090737240075614, "percentage": 90.23, "elapsed_time": "3:35:59", "remaining_time": "0:23:23"}
|
| 25 |
+
{"current_steps": 250, "total_steps": 266, "loss": 0.27001523971557617, "lr": 2.4863590457230745e-07, "epoch": 1.88468809073724, "percentage": 93.98, "elapsed_time": "3:44:56", "remaining_time": "0:14:23"}
|
| 26 |
+
{"current_steps": 260, "total_steps": 266, "loss": 0.26818113327026366, "lr": 4.230226252580516e-08, "epoch": 1.9603024574669186, "percentage": 97.74, "elapsed_time": "3:53:59", "remaining_time": "0:05:23"}
|
| 27 |
+
{"current_steps": 266, "total_steps": 266, "epoch": 2.0, "percentage": 100.0, "elapsed_time": "3:59:40", "remaining_time": "0:00:00"}
|
designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/trainer_state.json
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": null,
|
| 3 |
+
"best_metric": null,
|
| 4 |
+
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 1.5066162570888468,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 200,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"epoch": 0.07561436672967864,
|
| 14 |
+
"grad_norm": 1.117009952541307,
|
| 15 |
+
"learning_rate": 6.666666666666667e-06,
|
| 16 |
+
"loss": 0.5404598236083984,
|
| 17 |
+
"step": 10
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.15122873345935728,
|
| 21 |
+
"grad_norm": 0.36972853390286087,
|
| 22 |
+
"learning_rate": 1.4074074074074075e-05,
|
| 23 |
+
"loss": 0.4467557430267334,
|
| 24 |
+
"step": 20
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 0.22684310018903592,
|
| 28 |
+
"grad_norm": 1.1836978851487674,
|
| 29 |
+
"learning_rate": 1.999654451568528e-05,
|
| 30 |
+
"loss": 0.3936758041381836,
|
| 31 |
+
"step": 30
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"epoch": 0.30245746691871456,
|
| 35 |
+
"grad_norm": 0.3043289752355995,
|
| 36 |
+
"learning_rate": 1.987585312769669e-05,
|
| 37 |
+
"loss": 0.3615268707275391,
|
| 38 |
+
"step": 40
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"epoch": 0.3780718336483932,
|
| 42 |
+
"grad_norm": 0.27560265185260435,
|
| 43 |
+
"learning_rate": 1.9584768190468624e-05,
|
| 44 |
+
"loss": 0.34326627254486086,
|
| 45 |
+
"step": 50
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"epoch": 0.45368620037807184,
|
| 49 |
+
"grad_norm": 0.26107944603896804,
|
| 50 |
+
"learning_rate": 1.912831195321268e-05,
|
| 51 |
+
"loss": 0.33113551139831543,
|
| 52 |
+
"step": 60
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"epoch": 0.5293005671077504,
|
| 56 |
+
"grad_norm": 0.3697176672713749,
|
| 57 |
+
"learning_rate": 1.8514359907527693e-05,
|
| 58 |
+
"loss": 0.32063558101654055,
|
| 59 |
+
"step": 70
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"epoch": 0.6049149338374291,
|
| 63 |
+
"grad_norm": 0.22233342870182504,
|
| 64 |
+
"learning_rate": 1.7753504907192923e-05,
|
| 65 |
+
"loss": 0.3131831169128418,
|
| 66 |
+
"step": 80
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"epoch": 0.6805293005671077,
|
| 70 |
+
"grad_norm": 0.3295343660094219,
|
| 71 |
+
"learning_rate": 1.6858874403810507e-05,
|
| 72 |
+
"loss": 0.3076876878738403,
|
| 73 |
+
"step": 90
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"epoch": 0.7561436672967864,
|
| 77 |
+
"grad_norm": 0.24442797086141368,
|
| 78 |
+
"learning_rate": 1.584590395163162e-05,
|
| 79 |
+
"loss": 0.30152087211608886,
|
| 80 |
+
"step": 100
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"epoch": 0.831758034026465,
|
| 84 |
+
"grad_norm": 0.31230465891561415,
|
| 85 |
+
"learning_rate": 1.4732070889412693e-05,
|
| 86 |
+
"loss": 0.29860482215881345,
|
| 87 |
+
"step": 110
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"epoch": 0.9073724007561437,
|
| 91 |
+
"grad_norm": 0.21944703769074247,
|
| 92 |
+
"learning_rate": 1.3536592794235696e-05,
|
| 93 |
+
"loss": 0.2935622692108154,
|
| 94 |
+
"step": 120
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"epoch": 0.9829867674858223,
|
| 98 |
+
"grad_norm": 0.2009268662989005,
|
| 99 |
+
"learning_rate": 1.2280095910035343e-05,
|
| 100 |
+
"loss": 0.29182274341583253,
|
| 101 |
+
"step": 130
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"epoch": 1.052930056710775,
|
| 105 |
+
"grad_norm": 0.21168683990895032,
|
| 106 |
+
"learning_rate": 1.0984259271618947e-05,
|
| 107 |
+
"loss": 0.2805715322494507,
|
| 108 |
+
"step": 140
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"epoch": 1.1285444234404536,
|
| 112 |
+
"grad_norm": 0.212560804654357,
|
| 113 |
+
"learning_rate": 9.671440664303813e-06,
|
| 114 |
+
"loss": 0.27776541709899905,
|
| 115 |
+
"step": 150
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"epoch": 1.2041587901701323,
|
| 119 |
+
"grad_norm": 0.18414530626332756,
|
| 120 |
+
"learning_rate": 8.364290872697175e-06,
|
| 121 |
+
"loss": 0.27518510818481445,
|
| 122 |
+
"step": 160
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"epoch": 1.279773156899811,
|
| 126 |
+
"grad_norm": 0.1715856148188389,
|
| 127 |
+
"learning_rate": 7.08536287419749e-06,
|
| 128 |
+
"loss": 0.27352917194366455,
|
| 129 |
+
"step": 170
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"epoch": 1.3553875236294897,
|
| 133 |
+
"grad_norm": 0.17606724373633867,
|
| 134 |
+
"learning_rate": 5.8567227200175865e-06,
|
| 135 |
+
"loss": 0.271071720123291,
|
| 136 |
+
"step": 180
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"epoch": 1.4310018903591684,
|
| 140 |
+
"grad_norm": 0.1586544570017202,
|
| 141 |
+
"learning_rate": 4.699568817414224e-06,
|
| 142 |
+
"loss": 0.27093987464904784,
|
| 143 |
+
"step": 190
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"epoch": 1.5066162570888468,
|
| 147 |
+
"grad_norm": 0.15162846176632078,
|
| 148 |
+
"learning_rate": 3.63386618185811e-06,
|
| 149 |
+
"loss": 0.26956160068511964,
|
| 150 |
+
"step": 200
|
| 151 |
+
}
|
| 152 |
+
],
|
| 153 |
+
"logging_steps": 10,
|
| 154 |
+
"max_steps": 266,
|
| 155 |
+
"num_input_tokens_seen": 0,
|
| 156 |
+
"num_train_epochs": 2,
|
| 157 |
+
"save_steps": 100,
|
| 158 |
+
"stateful_callbacks": {
|
| 159 |
+
"TrainerControl": {
|
| 160 |
+
"args": {
|
| 161 |
+
"should_epoch_stop": false,
|
| 162 |
+
"should_evaluate": false,
|
| 163 |
+
"should_log": false,
|
| 164 |
+
"should_save": true,
|
| 165 |
+
"should_training_stop": false
|
| 166 |
+
},
|
| 167 |
+
"attributes": {}
|
| 168 |
+
}
|
| 169 |
+
},
|
| 170 |
+
"total_flos": 1.098304322535424e+16,
|
| 171 |
+
"train_batch_size": 1,
|
| 172 |
+
"trial_name": null,
|
| 173 |
+
"trial_params": null
|
| 174 |
+
}
|
designcoder_qwen3.5_4b_adamw_bs256_data41287_step200/training_loss.png
ADDED
|