Skip to content

Conversation

@tchawada
Copy link
Contributor

@tchawada tchawada commented Nov 4, 2025

No description provided.

intermediate_epoch = int(train_config.from_peft_checkpoint.split("/")[-2].split("_")[-1]) - 1
intermediate_step = int(train_config.from_peft_checkpoint.split("/")[-1].split("_")[-1])
try:
intermediate_epoch = int(train_config.from_peft_checkpoint.split("/")[-2].split("_")[-1]) - 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @tchawada , the code handles our use case. One suggestion is current exception block is broad and catches any kind of errors. Make it more specific. Please utilize Qgenie extension which helps cover all the edge cases.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I do that.

Copy link
Contributor

@quic-meetkuma quic-meetkuma Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tchawada, have you checked by passing complete_epoch_2 as --from_peft_checkpoint argument. Also, try to check the existing behavior as well.
If not please do it once.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I tried with the path "epoch_2" and checked the overall behavior.

Copy link
Contributor

@quic-meetkuma quic-meetkuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Let me know once Ann's comment is addressed.

Copy link
Contributor

@quic-akuruvil quic-akuruvil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Contributor

@quic-meetkuma quic-meetkuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Let us merge it. Thanks Tanisha for quick fix. Please refer this PR in JIRA and close it. :)

@quic-akuruvil quic-akuruvil merged commit 04f1ad7 into quic:main Nov 5, 2025
4 checks passed
@quic-meetkuma quic-meetkuma changed the title Adding support to load checkpoints from epoch [QEff. Finetune]: Adding support to load checkpoints from epoch Nov 6, 2025
vjanfaza pushed a commit to vjanfaza/efficient-transformers that referenced this pull request Nov 7, 2025
vjanfaza pushed a commit to vjanfaza/efficient-transformers that referenced this pull request Nov 7, 2025
abhishek-singh591 pushed a commit to quic-rishinr/efficient-transformers that referenced this pull request Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants