Skip to content

Replace manual gradient reduction with DDP - #228

Open
Strtus wants to merge 1 commit into
leggedrobotics:mainfrom
Strtus:feature/ddp
Open

Replace manual gradient reduction with DDP#228
Strtus wants to merge 1 commit into
leggedrobotics:mainfrom
Strtus:feature/ddp

Conversation

@Strtus

@Strtus Strtus commented Aug 21, 2026

Copy link
Copy Markdown

The current multi-GPU path concatenates every gradient into one buffer before all_reduce, which spikes VRAM on larger models. This PR uses DistributedDataParallel for PPO and Distillation instead.

broadcast_buffers is off so observation normalizers stay rank-local, same as today. Actor and critic share one wrapper so share_cnn_encoders still works.

Fixes #163

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.

Suggestion: replacing manual gradient reduction with native DDP

1 participant