Skip to content

zero-3 dynamic tracing support - #873

Closed
jeffra wants to merge 9 commits into
masterfrom
jeffra/z3dtracer
Closed

jeffra wants to merge 9 commits into
masterfrom
jeffra/z3dtracer

Conversation

@jeffra

@jeffra jeffra commented Mar 18, 2021

Copy link
Copy Markdown
Collaborator

Previously ZeRO-3's prefetcher was essentially disabled if the sub-module access pattern changed after the first iteration. This PR adds support for detecting and adapting our sub-module trace to more dynamic access patterns.

In initial testing with a modified version of Megatron that adds a new sub-module into forward after a few steps we're seeing ~10% boost in performance.

@jeffra jeffra changed the title zero-3 dynamic tracing zero-3 dynamic tracing support Mar 18, 2021
@jeffra
jeffra marked this pull request as draft April 7, 2021 20:18
@rocm-mici

Copy link
Copy Markdown

Can one of the admins verify this patch?

@jeffra jeffra closed this Jun 15, 2022
@jeffra
jeffra deleted the jeffra/z3dtracer branch June 15, 2022 00:20
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