Skip to content

Avoid materializing init data on single device for sharded simulations - #117

Merged
ratheron merged 2 commits into
mainfrom
feat.full_sharding
Sep 16, 2026
Merged

ratheron merged 2 commits into
mainfrom
feat.full_sharding

Conversation

@amacati

@amacati amacati commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

We currently allocate all data on a single device, always. With this patch, we can allocate across devices instead and avoid running OOM for simulations that are too big for a single GPU would fit on multiple ones.

Comment thread crazyflow/sim/sharding.py Outdated
Comment thread crazyflow/sim/sim.py Outdated
Comment thread crazyflow/sim/sim.py Outdated
Comment thread crazyflow/sim/sim.py Outdated
Co-authored-by: Marcel Rath <75042654+ratheron@users.noreply.github.com>
@ratheron
ratheron merged commit db6f943 into main Sep 16, 2026
6 checks passed
@ratheron
ratheron deleted the feat.full_sharding branch September 16, 2026 22:38
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.

2 participants