Skip to content

Overhead optimization#233

Merged
guillaume-byte merged 2 commits into
ddp-support-wipfrom
overhead_optimization
Jun 29, 2026
Merged

Overhead optimization#233
guillaume-byte merged 2 commits into
ddp-support-wipfrom
overhead_optimization

Conversation

@guillaume-byte

Copy link
Copy Markdown
Member

Merged overhead opt. into the DDP branch as both are related and necessary for v1.3.1

Alexandru Rotaru added 2 commits June 24, 2026 15:06
…_H5_APPEND_ONLY delta flush

Captured from the box's in-place pip-1.2.6 patches (sdk_overhead_patches/), ported onto
ddp-support-wip. All env-gated (off by default):
- WL_INSTANCE_TARGETS_CPU: detach per-instance targets to CPU at enqueue (seg-mask VRAM fix).
- empty-mask guard: np.max([]) on 0-instance rows.
- WL_H5_APPEND_ONLY: O(delta) append-only H5 flush vs read-all->merge->rewrite-all.
…ple signals

Under UL native DDP the trainer model is a DDP wrapper, so signal hooks that read
model.criterion/init_criterion/args/modules raised AttributeError. Unwrap to
model.module in install_per_sample_signals (single entry point feeding both
default_train_signals + install_train_pipeline). Unblocks UL-YOLO under DDP.
Found via re-exec spike: WLAwareTrainer survives DDP re-exec + per-rank init works;
this was the first real blocker.
@guillaume-byte guillaume-byte merged commit 015fb04 into ddp-support-wip Jun 29, 2026
8 checks passed
@guillaume-byte guillaume-byte deleted the overhead_optimization branch June 29, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant