yuanyuan10 commited on
Commit
52ed4e5
·
verified ·
1 Parent(s): 9302cf1

Upload folder using huggingface_hub

Browse files
qwen35_cambrian_3d_training_v0_1/MODEL_TRAINING_CHANGES.md CHANGED
@@ -10,10 +10,9 @@
10
  > scene-normalized supervision:pose translation、box center、box size 必须除以同一个固定
11
  > `scene_scale_m`。旧 metadata、旧 trainer 和旧 metric overfit 结果不得与当前版本混用。
12
 
13
- > 2026-08-26 固定显存修订:正式 trainer 现在把所有原始 N=1/2/4/6/8 QA/SFT 行在
14
- > runtime 重复最后一个视角补齐到 N=128,所有任务每卡 micro-batch 固定为 1。原始有效视角
15
- > 始终排在前面;joint QA 同步补齐 camera matrix/intrinsic,但重复位置由 supervision mask
16
- > 排除出 pose loss。该修订不改 JSONL 样本配额,也不引入生成答案时未见过的新视角。
17
 
18
  ## 1. 一句话结论
19
 
@@ -181,12 +180,11 @@ total_loss = pose_weight * pose_loss + lm_loss(若该 batch 有语言 labels
181
 
182
  pose-only 训练启用同一序列共享参数的 ColorJitter;validation 和 overfit 禁用增强。joint
183
  category detection 保持生成时的 N=2/4/6/8 有效图片集合、canonical image 0 和固定 scene
184
- scale,不动态 re-anchor。正式 loader 在 encode 前重复最后一个 image/camera matrix/intrinsic
185
- 补齐到 N=128;重复位置参与完整 128-view 计算,但不参与 joint pose loss。
186
 
187
- 注意:正式训练现在对 pose、joint、QA-only、VSI image/video 全部使用 N=128 runtime shape。
188
- N、`max_pixels` 和显存/上下文长度共同决定峰值开销;如果需要固定 N=32,应作为明确的
189
- Cambrian-P-32f 对齐实验单独启动,而不是在同一训练中混合 N。
190
 
191
  ## 7. 训练方式的改动
192
 
@@ -267,26 +265,26 @@ export CUDA_VISIBLE_DEVICES=0,1,2,3
267
  - cosine scheduler,3% warm-up,gradient clip 1.0;
268
  - 4 卡 launcher 的默认 effective global batch 仍是 256,每卡每个 optimizer step
269
  精确累计 64 条样本;`--gradient-accumulation-steps=64` 在 cost-aware 模式中表示
270
- “每卡样本预算”。所有 runtime sample 都是 N=128、micro-batch 1,因此每个完整 optimizer
271
- step 固定为每卡 64 次 forward;
272
- - 原始 N=1/2/4/6/8 只保留为数据配额和审计桶。loader 通过 `--qa-target-num-views=128`
273
- 重复末视角补齐 QA;pose-only、VSI rec/video 本身已经是 128。所有正式 stream 每卡
274
- micro-batch 均为 1,不再把多条低 N QA 合入同一次 forward;
275
- - 13,754 个 optimizer steps 中 13,749 个是 rank 同步的单任务/原始视图桶,只有 5 个
276
- 不可整除尾数 step 混合。固定 128-view 后完整 run 每卡为 880,256 次 forward;
 
277
  - existing QA-only 先按原始行数为 N=1/2/4/6 桶分配精确整数 quota,再在同 N 的物理
278
  shards 内按行数采样;VSI QA-only 拆成 N=1 image 与 N=128 video 两个调度桶。所有
279
  302,005 条唯一 VSI QA 仍先完整访问,再做原定的 183 条 batch-alignment repeat;
280
- - 所有任务现在都保持 N=128、micro-batch 1,消除由原始 N=1/2/4/6/8/128 切换造成的
281
- view-count 显存跳变。图片实际分辨率、文本长度以及 QA-only 是否经过 pose head 仍会带来
282
- 小幅差异;正式训练已启用 backbone gradient checkpointing。若 N=128 OOM,应降低单图
283
- `max_pixels` 或实现 vision-tower chunking;
284
  - trajectory balance 在真实 batch 内按样本分别除以各自轨迹长度再取平均,避免合批后
285
- 用 batch 平均轨迹长度改变原先 batch=1 的 pose-loss 语义。QA 补齐视角的 camera target
286
- 由显式 valid mask 排除,���始 N-view pose 监督权重不变;
287
  - DDP 混合 SFT 时启用 `find_unused_parameters=True`,因为普通 SFT batch 不走 pose head;
288
  - pose validation 使用 scene-disjoint ScanNet++ val shard;
289
- - QA validation 同样在 runtime 补齐到 128 views,使用 15 个 held-out 物理 shard,覆盖
290
  9 个逻辑任务族;默认每 250 step
291
  按任务族等权抽 32 条/每 rank,同一 single-view 任务的 4 个 part 再按行数分权,记录
292
  teacher-forced LM loss、perplexity、joint loss、以及仅在带
@@ -357,7 +355,8 @@ loader。描述这套实现时,应说“标准 backbone 不改、训练计算
357
  - [ ] 正式训练使用 scene indexes 和 `--strict-scene-level`;
358
  - [ ] `--val-sft-shards` 已指向 15 个 held-out QA part,并通过
359
  `--val-sft-source-weights` 对 9 个逻辑任务族等权,日志同时出现 `eval` 与 `eval_sft`;
360
- - [ ] 确认 pose 与所有 QA stream 日志中的 runtime N 都为 128、local micro-batch 都为 1;
 
361
  - [ ] 根据显存确定 `max_pixels`,必要时启用 vision-tower chunking;
362
  - [ ] checkpoint 同时保留 `qwen35/` 和 `training_aux/pose_head.pt`;
363
  - [ ] 实验记录注明是 scratch、pose-init,还是未来实现的 full resume。
 
10
  > scene-normalized supervision:pose translation、box center、box size 必须除以同一个固定
11
  > `scene_scale_m`。旧 metadata、旧 trainer 和旧 metric overfit 结果不得与当前版本混用。
12
 
13
+ > 2026-08-26 显存预算修订:正式 trainer 保留 QA/SFT 的原始 N,不再重复图片补到128。
14
+ > 每卡每次 forward 按约128个总视角合批:N=2/4/6/8/128 对应
15
+ > batch=64/32/21或22/16/1。该修订不改 JSONL、样本配额或答案监督。
 
16
 
17
  ## 1. 一句话结论
18
 
 
180
 
181
  pose-only 训练启用同一序列共享参数的 ColorJitter;validation 和 overfit 禁用增强。joint
182
  category detection 保持生成时的 N=2/4/6/8 有效图片集合、canonical image 0 和固定 scene
183
+ scale,不动态 re-anchor,也不补图。正式 loader 把相同 N 的多条样本合入一个 forward,
184
+ 通过 local batch 调到约128个总视角;camera pose 对每条样本的原始 N 个位置正常监督。
185
 
186
+ 注意:约128个总视角只是 vision 输入预算;图片分辨率、batch 后文本 padding、是否执行
187
+ pose head 等仍会影响实际峰值显存。
 
188
 
189
  ## 7. 训练方式的改动
190
 
 
265
  - cosine scheduler,3% warm-up,gradient clip 1.0;
266
  - 4 卡 launcher 的默认 effective global batch 仍是 256,每卡每个 optimizer step
267
  精确累计 64 条样本;`--gradient-accumulation-steps=64` 在 cost-aware 模式中表示
268
+ “每卡样本预算”。N=2/4/6/8/128 的正常 forward 分别使用 local batch
269
+ 64/32/21或22/16/1,对应总视角 128/128/126或132/128/128;
270
+ - loader 通过 `--target-views-per-forward=128` 计算 micro-batch,不改原始 QA 图片、prompt
271
+ 或 camera target。pose-only、VSI rec/video 本身为 N=128、batch=1;
272
+ - N=1 因每卡 optimizer 样本预算只有64而封顶为 batch=64;若强行使用128会把 effective
273
+ global batch 从256改成512;
274
+ - 13,754 个 optimizer steps 中 13,750 个是 rank 同步的单任务/原始视图桶,只有 4 个
275
+ 不可整除尾数 step 混合。完整 run 每卡为 274,021 次 forward;
276
  - existing QA-only 先按原始行数为 N=1/2/4/6 桶分配精确整数 quota,再在同 N 的物理
277
  shards 内按行数采样;VSI QA-only 拆成 N=1 image 与 N=128 video 两个调度桶。所有
278
  302,005 条唯一 VSI QA 仍先完整访问,再做原定的 183 条 batch-alignment repeat;
279
+ - 正常 N=2/4/6/8/128 forward 都保持约128个总视角。N=1 和少量精确配额尾 batch 较低;
280
+ 图片实际分辨率、文本 padding、batch 维度以及 QA-only 是否经过 pose head 仍会带来差异。
281
+ 正式训练已启用 backbone gradient checkpointing;若该预算 OOM,应降低单图
282
+ `max_pixels` 或降低 `--target-views-per-forward`;
283
  - trajectory balance 在真实 batch 内按样本分别除以各自轨迹长度再取平均,避免合批后
284
+ 用 batch 平均轨迹长度改变原先 batch=1 的 pose-loss 语义;
 
285
  - DDP 混合 SFT 时启用 `find_unused_parameters=True`,因为普通 SFT batch 不走 pose head;
286
  - pose validation 使用 scene-disjoint ScanNet++ val shard;
287
+ - QA validation 保留原始视角,使用 15 个 held-out 物理 shard,覆盖
288
  9 个逻辑任务族;默认每 250 step
289
  按任务族等权抽 32 条/每 rank,同一 single-view 任务的 4 个 part 再按行数分权,记录
290
  teacher-forced LM loss、perplexity、joint loss、以及仅在带
 
355
  - [ ] 正式训练使用 scene indexes 和 `--strict-scene-level`;
356
  - [ ] `--val-sft-shards` 已指向 15 个 held-out QA part,并通过
357
  `--val-sft-source-weights` 对 9 个逻辑任务族等权,日志同时出现 `eval` 与 `eval_sft`;
358
+ - [ ] 确认 N=2/4/6/8/128 stream 的常规 local micro-batch 分别为
359
+ 64/32/21或22/16/1,并检查日志中的总视角接近128;
360
  - [ ] 根据显存确定 `max_pixels`,必要时启用 vision-tower chunking;
361
  - [ ] checkpoint 同时保留 `qwen35/` 和 `training_aux/pose_head.pt`;
362
  - [ ] 实验记录注明是 scratch、pose-init,还是未来实现的 full resume。
qwen35_cambrian_3d_training_v0_1/README.md CHANGED
@@ -48,18 +48,17 @@ matching the released Cambrian-P main-model launcher. A shorter scene
48
  trajectory repeats its final selected frame to reach 128. The previous dynamic
49
  choice over 2/4/6/8/16/24/32/64/128 was our extension and is no longer used by
50
  the formal launcher. Joint category-detection rows keep their generated
51
- N=2/4/6/8 effective views and canonical anchor, then repeat their final view at
52
- runtime to reach the same N=128 input shape.
53
 
54
- ## 2026-08-26 fixed-128 QA alignment
55
 
56
- The formal four-GPU launcher keeps global batch 256 and runtime-pads every
57
- source N=1/2/4/6/8 QA/SFT row to 128 views by repeating its final image. Joint
58
- camera matrices and intrinsics are repeated in lockstep, while a supervision
59
- mask excludes repeated positions from pose loss. Every stream now uses
60
- per-device micro-batch 1, eliminating view-count memory jumps without changing
61
- sample quotas or adding unseen scene evidence. The complete run makes 880,256
62
- forwards per rank; backbone gradient checkpointing remains enabled.
63
 
64
  ## Layout and extraction
65
 
@@ -116,8 +115,8 @@ Its 1,007 videos are pre-extracted once to fixed 128-frame JPEG sequences, so
116
  training does not repeatedly seek MP4 files. Existing QA-only shards are selected
117
  with exact row-count-proportional quotas per source N=1/2/4/6 bucket, then sampled
118
  in proportion to shard rows inside that bucket. VSI image N=1 and video N=128
119
- retain separate accounting buckets, but both execute as runtime N=128,
120
- micro-batch 1. Validation is uniform across nine logical task families. Every
121
  250 steps it evaluates both held-out camera pose and all 15
122
  QA validation parts.
123
 
 
48
  trajectory repeats its final selected frame to reach 128. The previous dynamic
49
  choice over 2/4/6/8/16/24/32/64/128 was our extension and is no longer used by
50
  the formal launcher. Joint category-detection rows keep their generated
51
+ N=2/4/6/8 effective views and canonical anchor without runtime view padding.
 
52
 
53
+ ## 2026-08-26 128-total-view QA batching
54
 
55
+ The formal four-GPU launcher keeps source QA images unchanged and targets about
56
+ 128 aggregate views per local forward. N=2/4/6/8/128 use micro-batch
57
+ 64/32/21-or-22/16/1, giving 128/128/126-or-132/128/128 total views. N=1 is
58
+ capped at batch 64 by the existing 64-sample per-rank optimizer budget, which
59
+ preserves global batch 256. Sample quotas, answers, and camera targets do not
60
+ change. The complete run makes 274,021 forwards per rank; backbone gradient
61
+ checkpointing remains enabled.
62
 
63
  ## Layout and extraction
64
 
 
115
  training does not repeatedly seek MP4 files. Existing QA-only shards are selected
116
  with exact row-count-proportional quotas per source N=1/2/4/6 bucket, then sampled
117
  in proportion to shard rows inside that bucket. VSI image N=1 and video N=128
118
+ retain separate accounting buckets and use local micro-batch 64 and 1,
119
+ respectively. Validation is uniform across nine logical task families. Every
120
  250 steps it evaluates both held-out camera pose and all 15
121
  QA validation parts.
122
 
qwen35_cambrian_3d_training_v0_1/SHA256SUMS CHANGED
@@ -27,5 +27,5 @@ aad857f424cfe7b8163b100b11cc51dbac010e666df79df4160bf06f99d89338 qwen35_cambria
27
  a66416b1ccd05394675d72bd67d4c460c054d9ec8174c59c0ac8ec4958f7afa6 qwen35_cambrian_3d_training_v0_1-images-026.tar
28
  ae23312cc106864da8fef202ce22acf0a93c3c775178858d9e742daa873cc77d qwen35_cambrian_3d_training_v0_1-images-027.tar
29
  8e38ca199011b2979f3d89430dc4f930c46519e5fbdae6e950483893e0df67dc qwen35_cambrian_3d_training_v0_1-images-028.tar
30
- 5bb01cd6b464d58610e19144fd63bac22009dbaaf25b95e64e4136792d33fb84 qwen35_cambrian_3d_training_v0_1-metadata-000.tar
31
  1f3f2571819c838760cef13d221ae7dd259eea2f5ca6868ef2f5322d7145d9a7 qwen35_cambrian_3d_training_v0_1-model-000.tar
 
27
  a66416b1ccd05394675d72bd67d4c460c054d9ec8174c59c0ac8ec4958f7afa6 qwen35_cambrian_3d_training_v0_1-images-026.tar
28
  ae23312cc106864da8fef202ce22acf0a93c3c775178858d9e742daa873cc77d qwen35_cambrian_3d_training_v0_1-images-027.tar
29
  8e38ca199011b2979f3d89430dc4f930c46519e5fbdae6e950483893e0df67dc qwen35_cambrian_3d_training_v0_1-images-028.tar
30
+ 51fe8bc3389b05cecdf9a42710282237908cf9099242572cbcd0d6e4e3118b6f qwen35_cambrian_3d_training_v0_1-metadata-000.tar
31
  1f3f2571819c838760cef13d221ae7dd259eea2f5ca6868ef2f5322d7145d9a7 qwen35_cambrian_3d_training_v0_1-model-000.tar
qwen35_cambrian_3d_training_v0_1/qwen35_cambrian_3d_training_v0_1-metadata-000.tar CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5bb01cd6b464d58610e19144fd63bac22009dbaaf25b95e64e4136792d33fb84
3
  size 20289136640
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51fe8bc3389b05cecdf9a42710282237908cf9099242572cbcd0d6e4e3118b6f
3
  size 20289136640