modrill commited on
Commit
5ff807e
·
verified ·
1 Parent(s): 4f7e198

Publish CN11 FIELD_OCI100 LoRA (DIAGNOSTIC_ONLY / NOT_WINNER)

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,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen3-4B-Base
3
+ library_name: peft
4
+ license: apache-2.0
5
+ pipeline_tag: text-generation
6
+ tags:
7
+ - lora
8
+ - peft
9
+ - qwen3
10
+ - code
11
+ - livecodebench
12
+ - diagnostic-only
13
+ ---
14
+
15
+ # CN11 FIELD_OCI100 LoRA (Qwen3-4B-Base)
16
+
17
+ **DIAGNOSTIC_ONLY / NOT_WINNER / OPERATIONAL_SCREENING_ONLY**
18
+
19
+ This is a **PEFT LoRA adapter only** (not merged full weights) for
20
+ [`Qwen/Qwen3-4B-Base`](https://huggingface.co/Qwen/Qwen3-4B-Base) revision `906bfd4b4dc7f14ee4320094d8b41684abff8539`.
21
+
22
+ User shorthand **CI100** maps to the local CN11 arm **`FIELD_OCI100`**.
23
+ There is no literal `CI100` / `CN11_CI100` adapter in the local experiment tree.
24
+
25
+ ## Identity
26
+
27
+ | Field | Value |
28
+ | --- | --- |
29
+ | Local arm | `FIELD_OCI100` |
30
+ | Route | `fieldfix_targeted` (`run_20260815T072135Z`) |
31
+ | Train seed | `43` |
32
+ | Train status | `COMPLETE` (attempt 3) |
33
+ | Update mode | `token_balanced_64` (U=64) |
34
+ | Dose | 500,000 non-padding unique clean supervised target tokens |
35
+ | Recipe | Nemotron CP-v2 final-code **400K** + OCI fieldfix_v2 **100K** |
36
+ | Rows | 1,832 (1,298 CP-v2 + 534 OCI fieldfix); reasoning tokens = 0 |
37
+ | Cutoff | 2048 |
38
+ | LoRA | r=64, alpha=128, dropout=0.0, target-only CE, AdamW 1e-5, cosine+warmup |
39
+ | Local adapter | `.../training/FIELD_OCI100/seed_43/attempt3/adapter` |
40
+ | `adapter_manifest_sha256` | `927727c4434afcca19179a7fdcf8266bfbd79e848e062190bc27e6734ea47f40` |
41
+
42
+ ## Public full-LCB diagnostic (1055 tasks, seeds 5227 / 5233 / 5303)
43
+
44
+ Source: local `PUBLIC_DIAGNOSTIC_AGGREGATE.json` for the fieldfix targeted route.
45
+ **Not** a hidden-dev confirmation and **not** a winner gate.
46
+
47
+ | Entity | 3-seed mean pass@1 |
48
+ | --- | --- |
49
+ | `FIELD_OCI100` | **24.83%** |
50
+ | `BASE` | 24.39% |
51
+ | `FIELD_FC500_CONTROL` | 23.76% |
52
+
53
+ Paired task-cluster bootstrap (10,000 replicates):
54
+
55
+ - vs BASE: **+0.44pp**, 95% CI **[-0.92, +1.77] pp — crosses zero**
56
+ - vs FC500 control: **+1.07pp**, 95% CI **[+0.16, +1.99] pp — excludes zero**
57
+
58
+ Per-seed pass@1: 5227=25.21%, 5233=24.74%, 5303=24.55%.
59
+
60
+ ## Load with PEFT
61
+
62
+ ```python
63
+ from transformers import AutoModelForCausalLM, AutoTokenizer
64
+ from peft import PeftModel
65
+
66
+ base_id = "Qwen/Qwen3-4B-Base"
67
+ base_rev = "906bfd4b4dc7f14ee4320094d8b41684abff8539"
68
+ adapter_id = "modrill/qwen3-4b-cn11-oci100-u64"
69
+
70
+ tokenizer = AutoTokenizer.from_pretrained(base_id, revision=base_rev, trust_remote_code=True)
71
+ model = AutoModelForCausalLM.from_pretrained(
72
+ base_id,
73
+ revision=base_rev,
74
+ torch_dtype="bfloat16",
75
+ device_map="auto",
76
+ trust_remote_code=True,
77
+ )
78
+ model = PeftModel.from_pretrained(model, adapter_id)
79
+ model.eval()
80
+ ```
81
+
82
+ Do **not** treat this as a merged standalone model. The published `adapter_config.json`
83
+ rewrites the training-time local `base_model_name_or_path` to `Qwen/Qwen3-4B-Base`;
84
+ weights (`adapter_model.safetensors`) are byte-identical to the COMPLETE local adapter.
85
+
86
+ ## What this is not
87
+
88
+ - Not a winner / not confirmation / not holdout
89
+ - Not D2 / mix / THINK
90
+ - Not a full-weight merge
91
+ - Positive signal vs FC500 is a **final-code mix** result, not a long-CoT / think contract
adapter_config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "Qwen/Qwen3-4B-Base",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 128,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0.0,
22
+ "lora_ga_config": null,
23
+ "megatron_config": null,
24
+ "megatron_core": "megatron.core",
25
+ "modules_to_save": null,
26
+ "monteclora_config": null,
27
+ "peft_type": "LORA",
28
+ "peft_version": "0.20.0",
29
+ "qalora_group_size": 16,
30
+ "r": 64,
31
+ "rank_pattern": {},
32
+ "revision": null,
33
+ "target_modules": [
34
+ "down_proj",
35
+ "v_proj",
36
+ "k_proj",
37
+ "gate_proj",
38
+ "o_proj",
39
+ "q_proj",
40
+ "up_proj"
41
+ ],
42
+ "target_parameters": null,
43
+ "task_type": "CAUSAL_LM",
44
+ "trainable_token_indices": null,
45
+ "use_bdlora": null,
46
+ "use_dora": false,
47
+ "use_qalora": false,
48
+ "use_rslora": false,
49
+ "velora_config": null
50
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1c104800ee3d705197125c0c13a180375bc5c13b975318d8f1a17719fb12cd4
3
+ size 528550256
chat_template.jinja ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0].role == 'system' %}
4
+ {{- messages[0].content + '\n\n' }}
5
+ {%- endif %}
6
+ {{- "# 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>" }}
7
+ {%- for tool in tools %}
8
+ {{- "\n" }}
9
+ {{- tool | tojson }}
10
+ {%- endfor %}
11
+ {{- "\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" }}
12
+ {%- else %}
13
+ {%- if messages[0].role == 'system' %}
14
+ {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
15
+ {%- endif %}
16
+ {%- endif %}
17
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
18
+ {%- for message in messages[::-1] %}
19
+ {%- set index = (messages|length - 1) - loop.index0 %}
20
+ {%- if ns.multi_step_tool and message.role == "user" and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}
21
+ {%- set ns.multi_step_tool = false %}
22
+ {%- set ns.last_query_index = index %}
23
+ {%- endif %}
24
+ {%- endfor %}
25
+ {%- for message in messages %}
26
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
27
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
28
+ {%- elif message.role == "assistant" %}
29
+ {%- set content = message.content %}
30
+ {%- set reasoning_content = '' %}
31
+ {%- if message.reasoning_content is defined and message.reasoning_content is not none %}
32
+ {%- set reasoning_content = message.reasoning_content %}
33
+ {%- else %}
34
+ {%- if '</think>' in message.content %}
35
+ {%- set content = message.content.split('</think>')[-1].lstrip('\n') %}
36
+ {%- set reasoning_content = message.content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
37
+ {%- endif %}
38
+ {%- endif %}
39
+ {%- if loop.index0 > ns.last_query_index %}
40
+ {%- if loop.last or (not loop.last and reasoning_content) %}
41
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}
42
+ {%- else %}
43
+ {{- '<|im_start|>' + message.role + '\n' + content }}
44
+ {%- endif %}
45
+ {%- else %}
46
+ {{- '<|im_start|>' + message.role + '\n' + content }}
47
+ {%- endif %}
48
+ {%- if message.tool_calls %}
49
+ {%- for tool_call in message.tool_calls %}
50
+ {%- if (loop.first and content) or (not loop.first) %}
51
+ {{- '\n' }}
52
+ {%- endif %}
53
+ {%- if tool_call.function %}
54
+ {%- set tool_call = tool_call.function %}
55
+ {%- endif %}
56
+ {{- '<tool_call>\n{"name": "' }}
57
+ {{- tool_call.name }}
58
+ {{- '", "arguments": ' }}
59
+ {%- if tool_call.arguments is string %}
60
+ {{- tool_call.arguments }}
61
+ {%- else %}
62
+ {{- tool_call.arguments | tojson }}
63
+ {%- endif %}
64
+ {{- '}\n</tool_call>' }}
65
+ {%- endfor %}
66
+ {%- endif %}
67
+ {{- '<|im_end|>\n' }}
68
+ {%- elif message.role == "tool" %}
69
+ {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
70
+ {{- '<|im_start|>user' }}
71
+ {%- endif %}
72
+ {{- '\n<tool_response>\n' }}
73
+ {{- message.content }}
74
+ {{- '\n</tool_response>' }}
75
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
76
+ {{- '<|im_end|>\n' }}
77
+ {%- endif %}
78
+ {%- endif %}
79
+ {%- endfor %}
80
+ {%- if add_generation_prompt %}
81
+ {{- '<|im_start|>assistant\n' }}
82
+ {%- if enable_thinking is defined and enable_thinking is false %}
83
+ {{- '<think>\n\n</think>\n\n' }}
84
+ {%- endif %}
85
+ {%- endif %}
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be75606093db2094d7cd20f3c2f385c212750648bd6ea4fb2bf507a6a4c55506
3
+ size 11422650
tokenizer_config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": null,
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|endoftext|>",
7
+ "errors": "replace",
8
+ "extra_special_tokens": [
9
+ "<|im_start|>",
10
+ "<|im_end|>",
11
+ "<|object_ref_start|>",
12
+ "<|object_ref_end|>",
13
+ "<|box_start|>",
14
+ "<|box_end|>",
15
+ "<|quad_start|>",
16
+ "<|quad_end|>",
17
+ "<|vision_start|>",
18
+ "<|vision_end|>",
19
+ "<|vision_pad|>",
20
+ "<|image_pad|>",
21
+ "<|video_pad|>"
22
+ ],
23
+ "is_local": true,
24
+ "local_files_only": false,
25
+ "model_max_length": 131072,
26
+ "pad_token": "<|endoftext|>",
27
+ "split_special_tokens": false,
28
+ "tokenizer_class": "Qwen2Tokenizer",
29
+ "unk_token": null
30
+ }