Upload folder using huggingface_hub
Browse files- MODEL_TRAINING_CHANGES.md +14 -6
- README.md +19 -9
- SHA256SUMS +7 -1
MODEL_TRAINING_CHANGES.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
# Qwen3.5 + Cambrian-P pose 训练改动交接
|
| 2 |
|
| 3 |
-
更新时间:2026-08-
|
| 4 |
|
| 5 |
这份文档记录为了让 Qwen3.5 同时做语言 SFT 和相机 pose 回归,当前实现相对原生
|
| 6 |
`Qwen3_5ForConditionalGeneration` 增加了什么,以及训练、保存、恢复时必须保持的约定。
|
|
@@ -165,7 +165,7 @@ total_loss = pose_weight * pose_loss + lm_loss(若该 batch 有语言 labels
|
|
| 165 |
- MultiScan 使用 launcher fallback:60% / 60%。
|
| 166 |
|
| 167 |
pose-only 训练启用同一序列共享参数的 ColorJitter;validation 和 overfit 禁用增强。joint
|
| 168 |
-
category detection 的 N=2/4/6 不更换图片集合,但会在集合内动态选择任意视图作为 image 0,
|
| 169 |
并把 camera pose、box center、box rotation 一起 rebase;固定 scene scale 不变。
|
| 170 |
|
| 171 |
注意:支持 N=128 不等于任何显卡都能承受 N=128。N、`max_pixels` 和显存/上下文长度共同
|
|
@@ -223,7 +223,15 @@ export CUDA_VISIBLE_DEVICES=0,1,2,3
|
|
| 223 |
- 严格全局计数:pose-only 640,000、joint category detection+pose 640,000、
|
| 224 |
QA-only 567,808;默认 global batch 256、7,218 optimizer steps;
|
| 225 |
- pose-only 与 joint 的 pose 监督严格 1:1,pose-only 原绝对数量不减少;
|
| 226 |
-
- joint detection 按
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
- pose sources 权重:ARKitScenes/MultiScan/ScanNet/ScanNet++ =
|
| 228 |
`0.35/0.05/0.30/0.30`;
|
| 229 |
- detection 必须给定 category;同 label 恰好 1 个实例是 `detection_one`,多个实例是
|
|
@@ -239,7 +247,7 @@ export CUDA_VISIBLE_DEVICES=0,1,2,3
|
|
| 239 |
gradient accumulation 达成;
|
| 240 |
- DDP 混合 SFT 时启用 `find_unused_parameters=True`,因为普通 SFT batch 不走 pose head;
|
| 241 |
- pose validation 使用 scene-disjoint ScanNet++ val shard;
|
| 242 |
-
- QA validation 使用
|
| 243 |
按任务族等权抽 32 条/每 rank,同一 single-view 任务的 4 个 part 再按行数分权,记录
|
| 244 |
teacher-forced LM loss、perplexity、joint loss、以及仅在带
|
| 245 |
camera auxiliary 的行上统计的 pose loss。
|
|
@@ -307,8 +315,8 @@ loader。描述这套实现时,应说“标准 backbone 不改、训练计算
|
|
| 307 |
- [ ] query/head 梯度非 0,ATE/rotation 明显下降;
|
| 308 |
- [ ] 多场景 warm-up 检查两个 FoV 输出都被激活;
|
| 309 |
- [ ] 正式训练使用 scene indexes 和 `--strict-scene-level`;
|
| 310 |
-
- [ ] `--val-sft-shards` 已指向
|
| 311 |
-
`--val-sft-source-weights` 对
|
| 312 |
- [ ] 根据显存确定最大 N,不盲目启用 128 views;
|
| 313 |
- [ ] checkpoint 同时保留 `qwen35/` 和 `training_aux/pose_head.pt`;
|
| 314 |
- [ ] 实验记录注明是 scratch、pose-init,还是未来实现的 full resume。
|
|
|
|
| 1 |
# Qwen3.5 + Cambrian-P pose 训练改动交接
|
| 2 |
|
| 3 |
+
更新时间:2026-08-19
|
| 4 |
|
| 5 |
这份文档记录为了让 Qwen3.5 同时做语言 SFT 和相机 pose 回归,当前实现相对原生
|
| 6 |
`Qwen3_5ForConditionalGeneration` 增加了什么,以及训练、保存、恢复时必须保持的约定。
|
|
|
|
| 165 |
- MultiScan 使用 launcher fallback:60% / 60%。
|
| 166 |
|
| 167 |
pose-only 训练启用同一序列共享参数的 ColorJitter;validation 和 overfit 禁用增强。joint
|
| 168 |
+
category detection 的 N=2/4/6/8 不更换图片集合,但会在集合内动态选择任意视图作为 image 0,
|
| 169 |
并把 camera pose、box center、box rotation 一起 rebase;固定 scene scale 不变。
|
| 170 |
|
| 171 |
注意:支持 N=128 不等于任何显卡都能承受 N=128。N、`max_pixels` 和显存/上下文长度共同
|
|
|
|
| 223 |
- 严格全局计数:pose-only 640,000、joint category detection+pose 640,000、
|
| 224 |
QA-only 567,808;默认 global batch 256、7,218 optimizer steps;
|
| 225 |
- pose-only 与 joint 的 pose 监督严格 1:1,pose-only 原绝对数量不减少;
|
| 226 |
+
- joint detection 先按 dataset -> scene -> N -> anchor -> category 从完整池中无放回选出
|
| 227 |
+
640,000 条,再按全局行无放回循环;DDP ranks 互斥;64 个 canonical
|
| 228 |
+
anchor 已在生成时随机无放回选定,loader 不再动态换 anchor;
|
| 229 |
+
- 完整 joint train 池为 1,971,133 条,val 为 80,346 条;正式 640,000 条中
|
| 230 |
+
N=2/4/6/8 分别为 157,626/159,790/160,622/161,962,其中
|
| 231 |
+
`detection_one` 477,544 条、`detection_all` 162,456 条;
|
| 232 |
+
- 正式 joint 的数据集计数为 ScanNet 148,979、ScanNet++ 148,978、
|
| 233 |
+
ARKitScenes 148,979、MultiScan 44,086、NymeriaPlus 148,978;MultiScan 容量
|
| 234 |
+
小于均分配额,因此 44,086 条全部使用;
|
| 235 |
- pose sources 权重:ARKitScenes/MultiScan/ScanNet/ScanNet++ =
|
| 236 |
`0.35/0.05/0.30/0.30`;
|
| 237 |
- detection 必须给定 category;同 label 恰好 1 个实例是 `detection_one`,多个实例是
|
|
|
|
| 247 |
gradient accumulation 达成;
|
| 248 |
- DDP 混合 SFT 时启用 `find_unused_parameters=True`,因为普通 SFT batch 不走 pose head;
|
| 249 |
- pose validation 使用 scene-disjoint ScanNet++ val shard;
|
| 250 |
+
- QA validation 使用 15 个 held-out 物理 shard,覆盖 9 个逻辑任务族;默认每 250 step
|
| 251 |
按任务族等权抽 32 条/每 rank,同一 single-view 任务的 4 个 part 再按行数分权,记录
|
| 252 |
teacher-forced LM loss、perplexity、joint loss、以及仅在带
|
| 253 |
camera auxiliary 的行上统计的 pose loss。
|
|
|
|
| 315 |
- [ ] query/head 梯度非 0,ATE/rotation 明显下降;
|
| 316 |
- [ ] 多场景 warm-up 检查两个 FoV 输出都被激活;
|
| 317 |
- [ ] 正式训练使用 scene indexes 和 `--strict-scene-level`;
|
| 318 |
+
- [ ] `--val-sft-shards` 已指向 15 个 held-out QA part,并通过
|
| 319 |
+
`--val-sft-source-weights` 对 9 个逻辑任务族等权,日志同时出现 `eval` 与 `eval_sft`;
|
| 320 |
- [ ] 根据显存确定最大 N,不盲目启用 128 views;
|
| 321 |
- [ ] checkpoint 同时保留 `qwen35/` 和 `training_aux/pose_head.pt`;
|
| 322 |
- [ ] 实验记录注明是 scratch、pose-init,还是未来实现的 full resume。
|
README.md
CHANGED
|
@@ -23,9 +23,18 @@ pose checkpoint with this revision. The 2026-08-10 metric-label overfit run only
|
|
| 23 |
validated the pose gradient path; run the packaged normalized one-scene overfit
|
| 24 |
before starting the formal 5K-step job.
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
## Layout and extraction
|
| 27 |
|
| 28 |
-
The release has one metadata tar, one model tar, and
|
| 29 |
image tar volumes.
|
| 30 |
Every tar has the same top-level directory `qwen35_cambrian_3d_training_v0_1`. Download all
|
| 31 |
files into one directory, then run:
|
|
@@ -68,10 +77,11 @@ The launcher defaults to a global batch size of 256 and
|
|
| 68 |
pose-only samples, 640,000 joint category-detection+pose samples,
|
| 69 |
and 567,808 QA-only samples. Thus pose-only and joint pose
|
| 70 |
supervision are strictly 1:1 without reducing the original pose-only amount.
|
| 71 |
-
Joint rows
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
|
|
|
| 75 |
QA validation parts.
|
| 76 |
|
| 77 |
Detection always has a requested category. If exactly one matching instance is
|
|
@@ -92,17 +102,17 @@ box_size_norm = box_size_m / scene_scale_m
|
|
| 92 |
|
| 93 |
## Contents
|
| 94 |
|
| 95 |
-
- QA/SFT train:
|
| 96 |
-
- QA/SFT validation:
|
| 97 |
- Pose: 51,905 train rows plus 703 ScanNet++ validation rows.
|
| 98 |
- Dynamic pose: 4,424 `.npz` scene indexes spanning 3,657,730 pose-valid frames.
|
| 99 |
-
- Images:
|
| 100 |
- Model: Qwen3.5-9B BF16 checkpoint, four safetensors shards (about 18.0 GiB).
|
| 101 |
- Recipe: `manifests/training_data_manifest.json` records every train/validation
|
| 102 |
shard, row count, and sampling weight.
|
| 103 |
- Geometry: `manifests/scene_scales.jsonl` records the fixed scale and provenance
|
| 104 |
for every scene; `manifests/normalization_report.json` records its audit;
|
| 105 |
-
`manifests/
|
| 106 |
- Integrity: `SHA256SUMS`, `manifests/archive_plan.json`, and
|
| 107 |
`manifests/images.jsonl.gz`.
|
| 108 |
|
|
|
|
| 23 |
validated the pose gradient path; run the packaged normalized one-scene overfit
|
| 24 |
before starting the formal 5K-step job.
|
| 25 |
|
| 26 |
+
## 2026-08-19 anchor64 joint-detection refresh
|
| 27 |
+
|
| 28 |
+
The complete refreshed joint pool contains 1,971,133 train rows and 80,346
|
| 29 |
+
scene-disjoint validation rows for N=2/4/6/8. Formal training uses exactly
|
| 30 |
+
640,000 rows selected without replacement. Dataset counts are ScanNet 148,979,
|
| 31 |
+
ScanNet++ 148,978, ARKitScenes 148,979, MultiScan 44,086, and NymeriaPlus
|
| 32 |
+
148,978; N=2/4/6/8 counts are 157,626/159,790/160,622/161,962. Every row has
|
| 33 |
+
pose supervision and asks for a named category.
|
| 34 |
+
|
| 35 |
## Layout and extraction
|
| 36 |
|
| 37 |
+
The release has one metadata tar, one model tar, and 25 independent
|
| 38 |
image tar volumes.
|
| 39 |
Every tar has the same top-level directory `qwen35_cambrian_3d_training_v0_1`. Download all
|
| 40 |
files into one directory, then run:
|
|
|
|
| 77 |
pose-only samples, 640,000 joint category-detection+pose samples,
|
| 78 |
and 567,808 QA-only samples. Thus pose-only and joint pose
|
| 79 |
supervision are strictly 1:1 without reducing the original pose-only amount.
|
| 80 |
+
Joint rows are selected without replacement by dataset, scene, N, anchor, and
|
| 81 |
+
category; they then cycle without replacement across DDP ranks and are
|
| 82 |
+
kept at their generated canonical anchors. QA-only shards are selected in proportion
|
| 83 |
+
to their row counts. Validation is uniform across nine logical task families. Every
|
| 84 |
+
250 steps it evaluates both held-out camera pose and all 15
|
| 85 |
QA validation parts.
|
| 86 |
|
| 87 |
Detection always has a requested category. If exactly one matching instance is
|
|
|
|
| 102 |
|
| 103 |
## Contents
|
| 104 |
|
| 105 |
+
- QA/SFT train: 15 selected JSONL shards, 9741373 rows.
|
| 106 |
+
- QA/SFT validation: 15 matched JSONL shards, 383348 rows.
|
| 107 |
- Pose: 51,905 train rows plus 703 ScanNet++ validation rows.
|
| 108 |
- Dynamic pose: 4,424 `.npz` scene indexes spanning 3,657,730 pose-valid frames.
|
| 109 |
+
- Images: 4,938,640 canonical files, deduplicated across pose and QA.
|
| 110 |
- Model: Qwen3.5-9B BF16 checkpoint, four safetensors shards (about 18.0 GiB).
|
| 111 |
- Recipe: `manifests/training_data_manifest.json` records every train/validation
|
| 112 |
shard, row count, and sampling weight.
|
| 113 |
- Geometry: `manifests/scene_scales.jsonl` records the fixed scale and provenance
|
| 114 |
for every scene; `manifests/normalization_report.json` records its audit;
|
| 115 |
+
`manifests/hierarchical_joint_subset.json` records exact QA/task/dataset/N coverage.
|
| 116 |
- Integrity: `SHA256SUMS`, `manifests/archive_plan.json`, and
|
| 117 |
`manifests/images.jsonl.gz`.
|
| 118 |
|
SHA256SUMS
CHANGED
|
@@ -17,5 +17,11 @@ aad857f424cfe7b8163b100b11cc51dbac010e666df79df4160bf06f99d89338 qwen35_cambria
|
|
| 17 |
8a8f71adc2e7da75592ede729390abbfef40f98eb541e8a22a929654c469d34f qwen35_cambrian_3d_training_v0_1-images-016.tar
|
| 18 |
46764f54a0a33395146f46ae691ca5683ed1b9ee35101fbbfc8026a520ea9aeb qwen35_cambrian_3d_training_v0_1-images-017.tar
|
| 19 |
14a060cb30f9a6f0ec2d4bac519b47ed233ee1e1d51b9003ec078e5c89771928 qwen35_cambrian_3d_training_v0_1-images-018.tar
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
1f3f2571819c838760cef13d221ae7dd259eea2f5ca6868ef2f5322d7145d9a7 qwen35_cambrian_3d_training_v0_1-model-000.tar
|
|
|
|
| 17 |
8a8f71adc2e7da75592ede729390abbfef40f98eb541e8a22a929654c469d34f qwen35_cambrian_3d_training_v0_1-images-016.tar
|
| 18 |
46764f54a0a33395146f46ae691ca5683ed1b9ee35101fbbfc8026a520ea9aeb qwen35_cambrian_3d_training_v0_1-images-017.tar
|
| 19 |
14a060cb30f9a6f0ec2d4bac519b47ed233ee1e1d51b9003ec078e5c89771928 qwen35_cambrian_3d_training_v0_1-images-018.tar
|
| 20 |
+
313a22ba9b6eb1039480072d34e3053789fc4c5d498b02e934893a395aee1e56 qwen35_cambrian_3d_training_v0_1-images-019.tar
|
| 21 |
+
18e816681085eced01c8a2dc655d7d7a9d9a3f2b109141733110fadd1d6f2ad0 qwen35_cambrian_3d_training_v0_1-images-020.tar
|
| 22 |
+
0f565717640ed6185f7ac5ef4787409bb2fc987aa3d019591db897ca4bfe86f4 qwen35_cambrian_3d_training_v0_1-images-021.tar
|
| 23 |
+
48ef6990c3b98fa0bd9620057b11eead61b9de879c34534677308368752869f5 qwen35_cambrian_3d_training_v0_1-images-022.tar
|
| 24 |
+
47c99e3e38c5703e5fc0830c6494679dbd48d4996df44e8c0b546cfbcb5a1080 qwen35_cambrian_3d_training_v0_1-images-023.tar
|
| 25 |
+
6e3bb3cf3c166bf4b2a8772c6b5c2f24648da62fb3612a8831832a5bc771bea3 qwen35_cambrian_3d_training_v0_1-images-024.tar
|
| 26 |
+
229753bbbd317dfeec21f06bc67c2df338aaa6f9409cc08cd6a6e27dd720856a qwen35_cambrian_3d_training_v0_1-metadata-000.tar
|
| 27 |
1f3f2571819c838760cef13d221ae7dd259eea2f5ca6868ef2f5322d7145d9a7 qwen35_cambrian_3d_training_v0_1-model-000.tar
|