Add files using upload-large-folder tool
Browse files- .gitattributes +4 -0
- code/f3_filtering/reports/F3_stage4_report.json +28 -0
- code/f3_filtering/reports/F3_v4_report.json +24 -0
- code/f3_filtering/reports/PIPELINE_REPORT.json +76 -0
- data/f3/output/scicode_sft_swift_F3_clean_v2.jsonl +3 -0
- data/pretrain/code_messages_pre_train_filtered_stage1.jsonl +3 -0
- models/pretrained/stage1_cpt/model.safetensors +3 -0
- models/pretrained/stage1_cpt/tokenizer.json +3 -0
- models/sft/sft_f3_refined_instruct/model.safetensors +3 -0
- models/sft/sft_f3_refined_instruct/tokenizer.json +3 -0
.gitattributes
CHANGED
|
@@ -36,3 +36,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 36 |
data/f3/intermediate/F3_stage2.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 37 |
data/f3/intermediate/F3_stage1.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 38 |
data/f3/intermediate/F3_stage3.jsonl filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
data/f3/intermediate/F3_stage2.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 37 |
data/f3/intermediate/F3_stage1.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 38 |
data/f3/intermediate/F3_stage3.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
models/sft/sft_f3_refined_instruct/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
models/pretrained/stage1_cpt/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
data/f3/output/scicode_sft_swift_F3_clean_v2.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
data/pretrain/code_messages_pre_train_filtered_stage1.jsonl filter=lfs diff=lfs merge=lfs -text
|
code/f3_filtering/reports/F3_stage4_report.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"src": "/raid/data/weifeng/Datasets/Instruction-turning/F3_v2_pipeline/F3_stage3.jsonl",
|
| 3 |
+
"dst": "/raid/data/weifeng/Datasets/Instruction-turning/F3_v2_pipeline/F3_stage4.jsonl",
|
| 4 |
+
"model": "/mnt/moon-data/jfjiang/swf/skillsecure/data/models/Qwen3-Coder-30B-A3B-Instruct",
|
| 5 |
+
"threshold": 3,
|
| 6 |
+
"n_total": 362367,
|
| 7 |
+
"n_kept": 207009,
|
| 8 |
+
"n_dropped": 155358,
|
| 9 |
+
"drop_rate": 0.4287,
|
| 10 |
+
"n_skipped_too_long_kept_default": 115,
|
| 11 |
+
"score_distribution": {
|
| 12 |
+
"0": 115,
|
| 13 |
+
"1": 10545,
|
| 14 |
+
"2": 144813,
|
| 15 |
+
"3": 159159,
|
| 16 |
+
"4": 47474,
|
| 17 |
+
"5": 261
|
| 18 |
+
},
|
| 19 |
+
"score_distribution_pct": {
|
| 20 |
+
"0": 0.03,
|
| 21 |
+
"1": 2.91,
|
| 22 |
+
"2": 39.96,
|
| 23 |
+
"3": 43.92,
|
| 24 |
+
"4": 13.1,
|
| 25 |
+
"5": 0.07
|
| 26 |
+
},
|
| 27 |
+
"elapsed_sec": 5039.8
|
| 28 |
+
}
|
code/f3_filtering/reports/F3_v4_report.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"input": "/raid/data/weifeng/Datasets/Instruction-turning/scicode_sft_swift_F3_clean_v3.jsonl",
|
| 3 |
+
"output": "/raid/data/weifeng/Datasets/Instruction-turning/scicode_sft_swift_F3_clean_v4.jsonl",
|
| 4 |
+
"input_size": 154103,
|
| 5 |
+
"final_size": 134775,
|
| 6 |
+
"kept_rate": 0.8746,
|
| 7 |
+
"rules": [
|
| 8 |
+
"S1: MinHash near-dup, Jaccard >= 0.85, bottom-128 shingle-8",
|
| 9 |
+
"S2: template ctor / setup / main with trivial body (content-based)",
|
| 10 |
+
"S3: trivial body (< 3 non-trivial statements)",
|
| 11 |
+
"S4: comment+docstring ratio > 0.7",
|
| 12 |
+
"S6: import-only / docstring-only assistant",
|
| 13 |
+
"S8: placeholder residue (TODO, FIXME, XXX, HACK, pdb.set_trace, ...)"
|
| 14 |
+
],
|
| 15 |
+
"applied_drops": {
|
| 16 |
+
"S1_near_dup": 6390,
|
| 17 |
+
"S3_trivial": 6376,
|
| 18 |
+
"S8_placeholder": 3958,
|
| 19 |
+
"S4_comment_ratio": 2286,
|
| 20 |
+
"S2_template": 318
|
| 21 |
+
},
|
| 22 |
+
"total_dropped": 19328,
|
| 23 |
+
"elapsed_sec": 101.0
|
| 24 |
+
}
|
code/f3_filtering/reports/PIPELINE_REPORT.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"final_output": "/raid/data/weifeng/Datasets/Instruction-turning/scicode_sft_swift_F3_clean_v2.jsonl",
|
| 3 |
+
"input": "/raid/data/weifeng/Datasets/Instruction-turning/scicode_sft_swift_F3_clean.jsonl",
|
| 4 |
+
"input_size": 473465,
|
| 5 |
+
"final_size": 207009,
|
| 6 |
+
"kept_rate": 0.4373,
|
| 7 |
+
"dropped_total": 266456,
|
| 8 |
+
"drop_rate_total": 0.5627,
|
| 9 |
+
"stages": [
|
| 10 |
+
{
|
| 11 |
+
"stage": 1,
|
| 12 |
+
"name": "structural filters",
|
| 13 |
+
"rules": [
|
| 14 |
+
"1a: Python AST must parse (other languages skip this)",
|
| 15 |
+
"1b: drop if any line >=5 chars repeats >=5 times",
|
| 16 |
+
"1c: drop if <3 lines or >500 lines",
|
| 17 |
+
"1d: drop hardcoded local paths",
|
| 18 |
+
"1e: drop pure placeholder bodies (Python only)",
|
| 19 |
+
"1f: drop debug residue (pdb, breakpoint, >=3 TODO/FIXME)"
|
| 20 |
+
],
|
| 21 |
+
"n_in": 473465,
|
| 22 |
+
"n_out": 437671,
|
| 23 |
+
"n_dropped": 35794,
|
| 24 |
+
"kept_languages": {
|
| 25 |
+
"python": 400263,
|
| 26 |
+
"cpp": 16733,
|
| 27 |
+
"c": 10995,
|
| 28 |
+
"java": 6879,
|
| 29 |
+
"rust": 2577,
|
| 30 |
+
"go": 224
|
| 31 |
+
}
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"stage": 2,
|
| 35 |
+
"name": "per-project cap=300 with D1xD2 stratified sampling",
|
| 36 |
+
"rules": [
|
| 37 |
+
"D1 buckets (code lines): S<15, M1=15-39, M2=40-99, L>=100",
|
| 38 |
+
"D2 buckets (line repeat): norep<5, rep>=5 (after stage1 mostly empty)",
|
| 39 |
+
"Per project: target 75 per D1; rep cap=5 per D1; reallocate shortfall",
|
| 40 |
+
"Within bucket: random (seed=0)",
|
| 41 |
+
"Only projects with >300 samples are capped (217 of 14408)"
|
| 42 |
+
],
|
| 43 |
+
"n_in": 437671,
|
| 44 |
+
"n_out": 366672,
|
| 45 |
+
"n_dropped": 70999
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"stage": 3,
|
| 49 |
+
"name": "per-project assistant deduplication, K=3",
|
| 50 |
+
"n_in": 366672,
|
| 51 |
+
"n_out": 362367,
|
| 52 |
+
"n_dropped": 4305
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"stage": 4,
|
| 56 |
+
"name": "Qwen3-Coder-30B-A3B-Instruct quality scoring (1-5)",
|
| 57 |
+
"rules": [
|
| 58 |
+
"threshold: keep score >= 3",
|
| 59 |
+
"115 samples too long for 8192 max_model_len, kept by default"
|
| 60 |
+
],
|
| 61 |
+
"model": "/mnt/moon-data/jfjiang/swf/skillsecure/data/models/Qwen3-Coder-30B-A3B-Instruct",
|
| 62 |
+
"n_in": 362367,
|
| 63 |
+
"n_out": 207009,
|
| 64 |
+
"n_dropped": 155358,
|
| 65 |
+
"score_distribution": {
|
| 66 |
+
"1": 10545,
|
| 67 |
+
"2": 144813,
|
| 68 |
+
"3": 159159,
|
| 69 |
+
"4": 47474,
|
| 70 |
+
"5": 261,
|
| 71 |
+
"too_long_kept": 115
|
| 72 |
+
},
|
| 73 |
+
"elapsed_min": 84
|
| 74 |
+
}
|
| 75 |
+
]
|
| 76 |
+
}
|
data/f3/output/scicode_sft_swift_F3_clean_v2.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fa3521aaac5ed5cb1575a2f92c0386cec598002175aa47dbbaaaf71b6aad5ac7
|
| 3 |
+
size 1125890366
|
data/pretrain/code_messages_pre_train_filtered_stage1.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e582cefbfb377aee6f3cc0c23f8159d5a77b14de27cf9fb2c4722078b905459a
|
| 3 |
+
size 1657338573
|
models/pretrained/stage1_cpt/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c119b284587312405231891869c326215379ec62890899a0b6af324204f8d290
|
| 3 |
+
size 988097824
|
models/pretrained/stage1_cpt/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8
|
| 3 |
+
size 11421892
|
models/sft/sft_f3_refined_instruct/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:05bca1c3ba20caad5a14ef0f450b6788aff7c9594bf90fe6deb5ecd2c5561847
|
| 3 |
+
size 988097824
|
models/sft/sft_f3_refined_instruct/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8
|
| 3 |
+
size 11421892
|