Shuibai12138 commited on
Commit
dec7064
·
verified ·
1 Parent(s): 4dd56e2

Upload CDLM Open-Dcoder-0.5B trained on OpenCodeInstruct (CDLM code release)

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: fredzzp/open-dcoder-0.5B
4
+ datasets:
5
+ - nvidia/OpenCodeInstruct
6
+ language:
7
+ - code
8
+ pipeline_tag: text-generation
9
+ tags:
10
+ - masked-diffusion
11
+ - diffusion-language-model
12
+ - code
13
+ - code-correction
14
+ - cdlm
15
+ ---
16
+
17
+ # Open-Dcoder-0.5B-CDLM-OpenCodeInstruct
18
+
19
+ Open-dCoder-0.5B continued for 2,000 steps on [nvidia/OpenCodeInstruct](https://huggingface.co/datasets/nvidia/OpenCodeInstruct) with the CDLM corrective objective: absorbing (mask) corruption plus uniform replacement of 10% of the still-visible tokens, with a cross-entropy term on the replaced positions (weight 0.1). It is one of a matched pair; Shuibai12138/Open-Dcoder-0.5B-MDLM-OpenCodeInstruct is its matched MDLM control (absorbing-only objective, otherwise identical).
20
+
21
+ This model is part of the code release of *Corrective Diffusion Language Models* (NeurIPS 2026). **It is not a model from the paper.** The paper's 0.5B models ([Shuibai12138/CDLM-0.5B](https://huggingface.co/Shuibai12138/CDLM-0.5B)) were trained on Nemotron-SFT-Code, which is gated and licensed for internal training only. This pair uses the same code and hyperparameters on a public, ungated corpus so that the recipe can be reproduced and compared by anyone. Results on it are not the paper's results.
22
+
23
+ ## Training
24
+
25
+ | | |
26
+ |---|---|
27
+ | Initialisation | [fredzzp/open-dcoder-0.5B](https://huggingface.co/fredzzp/open-dcoder-0.5B) (revision `d0d86d5b9996`) |
28
+ | Objective | `mixture_prob=0.1`, `noise_token_wt=0.1`, `clean_token_wt=0.0` |
29
+ | Data | nvidia/OpenCodeInstruct, revision `8f3ba5bafe4d`, all 50 shards in sorted order, each row rendered as `"input: " + input + " output: " + output` (the text format of the paper's corpus), no filtering |
30
+ | Steps | 2,000 (step 2,000 of a 20,345,053-step schedule, the same truncated long-horizon schedule as the paper's CDLM-0.5B) |
31
+ | Optimiser | AdamW, peak lr 3e-4, cosine, 20,345 warmup steps (lr at step 2,000 = 2.95e-5), weight decay 0.01, grad clip 1.0, bf16 |
32
+ | Batch | global 12 sequences x 4,096 packed tokens (micro 3 x 4 GPUs) |
33
+ | Frozen | `lm_head`, `embed_tokens` |
34
+ | Seed | 42 |
35
+ | Hardware | 4 x A100-PCIE-40GB, about 19 minutes |
36
+ | Code | [zhangshuibai/CDLM](https://github.com/zhangshuibai/CDLM), trained at commit `5e52812`; tag `v1.0-corrective-training` contains the same training code. Command: `ARM=cdlm bash training/scripts/train_0.5b_opencodeinstruct.sh` |
37
+
38
+ `training_config.yaml` in this repository is the fully resolved configuration the trainer saved for this run.
39
+
40
+ ## Usage
41
+
42
+ This is a masked diffusion language model with bidirectional attention. Loading it with `AutoModelForCausalLM` gives a causal Qwen2 model and wrong outputs. Use the evaluation pipeline of the [code repository](https://github.com/zhangshuibai/CDLM), which loads models whose name contains `open-dcoder` with the diffusion Qwen2 implementation (bidirectional attention, shifted logits):
43
+
44
+ ```bash
45
+ git clone https://github.com/zhangshuibai/CDLM && cd CDLM
46
+ # see README.md for the evaluation environment and commands, then pass
47
+ # --model_name Shuibai12138/Open-Dcoder-0.5B-CDLM-OpenCodeInstruct
48
+ ```
49
+
50
+ ## Licence and attribution
51
+
52
+ Model weights: MIT. Trained on [nvidia/OpenCodeInstruct](https://huggingface.co/datasets/nvidia/OpenCodeInstruct) (CC BY 4.0, NVIDIA). Base model: [fredzzp/open-dcoder-0.5B](https://huggingface.co/fredzzp/open-dcoder-0.5B).
53
+
54
+ ## Citation
55
+
56
+ ```bibtex
57
+ @inproceedings{zhang2026corrective,
58
+ title = {Corrective Diffusion Language Models},
59
+ author = {Zhang, Shuibai and Peng, Fred Zhangzhi and Zhang, Yiheng and Pan, Jin and Chrysos, Grigorios G.},
60
+ booktitle = {Advances in Neural Information Processing Systems},
61
+ year = {2026}
62
+ }
63
+ ```
added_tokens.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</tool_call>": 151658,
3
+ "<M>": 151665,
4
+ "<tool_call>": 151657,
5
+ "<|box_end|>": 151649,
6
+ "<|box_start|>": 151648,
7
+ "<|endoftext|>": 151643,
8
+ "<|file_sep|>": 151664,
9
+ "<|fim_middle|>": 151660,
10
+ "<|fim_pad|>": 151662,
11
+ "<|fim_prefix|>": 151659,
12
+ "<|fim_suffix|>": 151661,
13
+ "<|im_end|>": 151645,
14
+ "<|im_start|>": 151644,
15
+ "<|image_pad|>": 151655,
16
+ "<|object_ref_end|>": 151647,
17
+ "<|object_ref_start|>": 151646,
18
+ "<|quad_end|>": 151651,
19
+ "<|quad_start|>": 151650,
20
+ "<|repo_name|>": 151663,
21
+ "<|video_pad|>": 151656,
22
+ "<|vision_end|>": 151653,
23
+ "<|vision_pad|>": 151654,
24
+ "<|vision_start|>": 151652
25
+ }
chat_template.jinja ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0]['role'] == 'system' %}
4
+ {{- messages[0]['content'] }}
5
+ {%- else %}
6
+ {{- 'You are a helpful assistant.' }}
7
+ {%- endif %}
8
+ {{- "\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 <tools></tools> XML tags:\n<tools>" }}
9
+ {%- for tool in tools %}
10
+ {{- "\n" }}
11
+ {{- tool | tojson }}
12
+ {%- endfor %}
13
+ {{- "\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" }}
14
+ {%- else %}
15
+ {%- if messages[0]['role'] == 'system' %}
16
+ {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
17
+ {%- else %}
18
+ {{- '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}
19
+ {%- endif %}
20
+ {%- endif %}
21
+ {%- for message in messages %}
22
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
23
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
24
+ {%- elif message.role == "assistant" %}
25
+ {{- '<|im_start|>' + message.role }}
26
+ {%- if message.content %}
27
+ {{- '\n' + message.content }}
28
+ {%- endif %}
29
+ {%- for tool_call in message.tool_calls %}
30
+ {%- if tool_call.function is defined %}
31
+ {%- set tool_call = tool_call.function %}
32
+ {%- endif %}
33
+ {{- '\n<tool_call>\n{"name": "' }}
34
+ {{- tool_call.name }}
35
+ {{- '", "arguments": ' }}
36
+ {{- tool_call.arguments | tojson }}
37
+ {{- '}\n</tool_call>' }}
38
+ {%- endfor %}
39
+ {{- '<|im_end|>\n' }}
40
+ {%- elif message.role == "tool" %}
41
+ {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
42
+ {{- '<|im_start|>user' }}
43
+ {%- endif %}
44
+ {{- '\n<tool_response>\n' }}
45
+ {{- message.content }}
46
+ {{- '\n</tool_response>' }}
47
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
48
+ {{- '<|im_end|>\n' }}
49
+ {%- endif %}
50
+ {%- endif %}
51
+ {%- endfor %}
52
+ {%- if add_generation_prompt %}
53
+ {{- '<|im_start|>assistant\n' }}
54
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "architectures": [
4
+ "Qwen2ForCausalLM"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 151643,
8
+ "dtype": "bfloat16",
9
+ "eos_token_id": 151643,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 896,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 4864,
14
+ "layer_types": [
15
+ "full_attention",
16
+ "full_attention",
17
+ "full_attention",
18
+ "full_attention",
19
+ "full_attention",
20
+ "full_attention",
21
+ "full_attention",
22
+ "full_attention",
23
+ "full_attention",
24
+ "full_attention",
25
+ "full_attention",
26
+ "full_attention",
27
+ "full_attention",
28
+ "full_attention",
29
+ "full_attention",
30
+ "full_attention",
31
+ "full_attention",
32
+ "full_attention",
33
+ "full_attention",
34
+ "full_attention",
35
+ "full_attention",
36
+ "full_attention",
37
+ "full_attention",
38
+ "full_attention"
39
+ ],
40
+ "max_position_embeddings": 32768,
41
+ "max_window_layers": 24,
42
+ "model_type": "qwen2",
43
+ "num_attention_heads": 14,
44
+ "num_hidden_layers": 24,
45
+ "num_key_value_heads": 2,
46
+ "rms_norm_eps": 1e-06,
47
+ "rope_scaling": null,
48
+ "rope_theta": 1000000.0,
49
+ "sliding_window": null,
50
+ "tie_word_embeddings": true,
51
+ "transformers_version": "4.57.0",
52
+ "use_cache": true,
53
+ "use_sliding_window": false,
54
+ "vocab_size": 151936
55
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ae362eb296006bcd139234967bcc5503296b7912261fda337b867d44713acd4
3
+ size 1260367448
special_tokens_map.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ "<|object_ref_start|>",
6
+ "<|object_ref_end|>",
7
+ "<|box_start|>",
8
+ "<|box_end|>",
9
+ "<|quad_start|>",
10
+ "<|quad_end|>",
11
+ "<|vision_start|>",
12
+ "<|vision_end|>",
13
+ "<|vision_pad|>",
14
+ "<|image_pad|>",
15
+ "<|video_pad|>"
16
+ ],
17
+ "eos_token": {
18
+ "content": "<|endoftext|>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "mask_token": {
25
+ "content": "<M>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ },
31
+ "pad_token": {
32
+ "content": "<|endoftext|>",
33
+ "lstrip": false,
34
+ "normalized": false,
35
+ "rstrip": false,
36
+ "single_word": false
37
+ }
38
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f3ead5ffbb2abfb9e51757b104af5174f59c994ff3b2ca715d344dc66ee1f4e
3
+ size 11422076
tokenizer_config.json ADDED
@@ -0,0 +1,217 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ },
181
+ "151665": {
182
+ "content": "<M>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": true
188
+ }
189
+ },
190
+ "additional_special_tokens": [
191
+ "<|im_start|>",
192
+ "<|im_end|>",
193
+ "<|object_ref_start|>",
194
+ "<|object_ref_end|>",
195
+ "<|box_start|>",
196
+ "<|box_end|>",
197
+ "<|quad_start|>",
198
+ "<|quad_end|>",
199
+ "<|vision_start|>",
200
+ "<|vision_end|>",
201
+ "<|vision_pad|>",
202
+ "<|image_pad|>",
203
+ "<|video_pad|>"
204
+ ],
205
+ "bos_token": null,
206
+ "clean_up_tokenization_spaces": false,
207
+ "eos_token": "<|endoftext|>",
208
+ "errors": "replace",
209
+ "extra_special_tokens": {},
210
+ "mask_token": "<M>",
211
+ "model_max_length": 32768,
212
+ "pad_token": "<|endoftext|>",
213
+ "padding_side": "right",
214
+ "split_special_tokens": false,
215
+ "tokenizer_class": "Qwen2Tokenizer",
216
+ "unk_token": null
217
+ }
training_config.yaml ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Fully resolved training configuration of this run (saved by the trainer as veomni_cli.yaml).
2
+ # Paths replaced by placeholders. World size 4 (4 x A100-PCIE-40GB), gradient accumulation 1.
3
+ data:
4
+ chat_template: default
5
+ data_name: null
6
+ data_tag: default
7
+ data_type: plaintext
8
+ dataloader_type: native
9
+ datasets_type: iterable
10
+ drop_last: true
11
+ image_keys: images
12
+ max_seq_len: 4096
13
+ num_workers: 2
14
+ pin_memory: true
15
+ prefetch_factor: 2
16
+ text_keys: text
17
+ train_path: ${OCI_TEXT_DIR}/000,...,${OCI_TEXT_DIR}/049 # the 50 rendered shards in sorted order (train_path.txt written by prepare_opencodeinstruct.py)
18
+ train_size: 1000000000000
19
+ model:
20
+ attn_implementation: flash_attention_2
21
+ basic_modules: []
22
+ config_path: fredzzp/open-dcoder-0.5B
23
+ decoders: {}
24
+ encode_target: false
25
+ encoders: {}
26
+ input_encoder: encoder
27
+ model_path: fredzzp/open-dcoder-0.5B
28
+ moe_implementation: null
29
+ output_encoder: decoder
30
+ tokenizer_path: fredzzp/open-dcoder-0.5B
31
+ train:
32
+ activation_gpu_limit: 0.0
33
+ auto_resume: true
34
+ bsz_warmup_init_mbtoken: 200
35
+ bsz_warmup_ratio: 0.0
36
+ ckpt_manager: dcp
37
+ clean_token_wt: 0.0
38
+ context_parallel_size: 1
39
+ data_parallel_mode: ddp
40
+ dyn_bsz: true
41
+ dyn_bsz_buffer_size: 100
42
+ dyn_bsz_margin: 0
43
+ empty_cache_steps: 1000
44
+ enable_activation_offload: false
45
+ enable_forward_prefetch: true
46
+ enable_fsdp_offload: false
47
+ enable_full_determinism: false
48
+ enable_full_shard: false
49
+ enable_gradient_checkpointing: false
50
+ enable_manual_eager: false
51
+ enable_masking: true
52
+ enable_mixed_precision: false
53
+ enable_profiling: false
54
+ enable_reentrant: false
55
+ eval_batch_size: 10
56
+ eval_before_train: false
57
+ eval_every: 0
58
+ expert_parallel_size: 1
59
+ freeze_layers: lm_head,embed_tokens
60
+ global_batch_size: 12
61
+ init_device: cuda
62
+ load_checkpoint_path: ''
63
+ lr: 0.0003
64
+ lr_decay_ratio: 1.0
65
+ lr_decay_style: cosine
66
+ lr_min: 3.0e-06
67
+ lr_start: 0.0
68
+ lr_warmup_ratio: 0.001
69
+ max_grad_norm: 1.0
70
+ max_steps: null
71
+ micro_batch_size: 3
72
+ mixture_prob: 0.1
73
+ noise_token_wt: 0.1
74
+ num_train_epochs: 1
75
+ optimizer: adamw
76
+ output_dir: ${OUTPUT_DIR}/open-dcoder-0.5B-oci-cdlm-seed42-step2000 # placeholder
77
+ pipeline_parallel_size: 1
78
+ profile_end_step: 2
79
+ profile_profile_memory: true
80
+ profile_record_shapes: true
81
+ profile_start_step: 1
82
+ profile_trace_dir: ./trace
83
+ profile_with_stack: true
84
+ repr_align_wt: 0.0
85
+ rmpad: false
86
+ rmpad_with_pos_ids: true
87
+ save_epochs: 1
88
+ save_hf_weights: true
89
+ save_steps: 2000
90
+ save_time_interval_minutes: 0
91
+ seed: 42
92
+ tensor_parallel_size: 1
93
+ ulysses_parallel_size: 1
94
+ use_doptim: false
95
+ use_wandb: true
96
+ wandb_entity: ''
97
+ wandb_name: open-dcoder-0.5B-oci-cdlm-seed42-step2000
98
+ wandb_project: Qwen2.5-Coder-0.5B
99
+ weight_decay: 0.01
vocab.json ADDED
The diff for this file is too large to render. See raw diff