Add Engine event to the follow up requests after checkpointing#3473
Add Engine event to the follow up requests after checkpointing#3473tdene merged 2 commits intoNVIDIA:mainfrom
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
| # Preserve event_add_engine from old request if it exists, otherwise set it. | ||
| # This ensures TTFT calculation works correctly for evicted/resumed requests. | ||
| if old_request.event_add_engine is not None: | ||
| new_request.event_add_engine = old_request.event_add_engine |
There was a problem hiding this comment.
I feel like there are 2 ways to handle this:
- propagate the
event_add_engineobject from request to request - store ttft on the
recordobject instead of the individual request, which I didn't think to do before
I think it's a bit cleaner to store it on the record (or keep it on the first request and remember that the first request is the owner of this event) rather than referencing the same event object on all requests inside the record. What do you think?
There was a problem hiding this comment.
Let's revisit this later.
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA/Megatron-LM/actions/runs/22153787124 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA/Megatron-LM/actions/runs/22154719742 |
What does this PR do ?
Add an ENGINE_ADD event to the follow up request created when checkpointing. Prevents errors with missing add engine events when calculating ttft on the follow up requests.
Contribution process
flowchart LR A[Pre-checks] --> B[PR Tests] subgraph Code Review/Approval C1[Expert Review] --> C2[Final Review] end B --> C1 C2 --> D[Merge]Pre-checks
Core 0.8)Code review
The following process is enforced via the CODEOWNERS file for changes into
megatron/core. For changes outside ofmegatron/core, it is up to the PR author whether or not to tag the Final Reviewer team.For MRs into `main` branch
Feel free to message or comment the @mcore-oncall to help accelerate your merge into main. The less complex your PR is, the faster it will be approved and merged!
(Step 1): Add PR label
Expert Review(Step 2): Collect the expert reviewers reviews
Expert Reviewlabel when your PR is ready for review.Final Review might get declined if these requirements are not fulfilled.
(Step 3): Final Review
Final Reviewlabel(Optional Step 4): Cherry-pick into release branch
If this PR also needs to be merged into
core_r*release branches, after this PR has been merged, selectCherry-pickto open a new PR into the release branch.For MRs into `dev` branch
The proposed review process for `dev` branch is under active discussion.MRs are mergable after one approval by either
eharper@nvidia.comorzijiey@nvidia.com.Merging your PR
Any member of core-adlr and
core-nemowill be able to merge your PR.