Skip to content

fix: checkpointing for PEFT.#1576

Merged
akoumpa merged 13 commits intomainfrom
akoumparouli/fix_peft_ckpt_saving
Mar 19, 2026
Merged

fix: checkpointing for PEFT.#1576
akoumpa merged 13 commits intomainfrom
akoumparouli/fix_peft_ckpt_saving

Conversation

@akoumpa
Copy link
Copy Markdown
Contributor

@akoumpa akoumpa commented Mar 18, 2026

Previously, the state_dict in the modelstate class had an if/elseif/else statement where peft was handled in two caces and non-peft on the third one.

The first case of peft, was handling correctly, while the second was including buffers causing issues in downstream consumers.

This fix simplifies the logic (simple if/else) and bypassed the issues with the buffer.

I believe the issue was introduced in 5b49968

What does this PR do ?

Add a one line overview of what this PR aims to accomplish.

Changelog

  • Add specific line by line info of high level changes in this PR.

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you add or update any necessary documentation?

If you haven't finished some of the above items you can still open "Draft" PR.

Additional Information

  • Related to # (issue)

Previously, the state_dict in the modelstate class had an if/elseif/else statement where
peft was handled in two caces and non-peft on the third one.

The first case of peft, was handling correctly, while the second was including
buffers causing issues in downstream consumers.

This fix simplifies the logic (simple if/else) and bypassed the issues with the
buffer.

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot bot commented Mar 18, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@akoumpa
Copy link
Copy Markdown
Contributor Author

akoumpa commented Mar 18, 2026

/ok to test fd06908

@akoumpa
Copy link
Copy Markdown
Contributor Author

akoumpa commented Mar 18, 2026

/ok to test 6670693

u
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
@akoumpa
Copy link
Copy Markdown
Contributor Author

akoumpa commented Mar 19, 2026

/ok to test e37e931

@akoumpa
Copy link
Copy Markdown
Contributor Author

akoumpa commented Mar 19, 2026

/ok to test 56c8f4b

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
@akoumpa
Copy link
Copy Markdown
Contributor Author

akoumpa commented Mar 19, 2026

/ok to test 63ecdf9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

r0.3.0 Add for cherry-pick into release branch r0.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants