Skip to content

Conversation

HonakerM
Copy link
Contributor

What this PR does / why we need it:
This Pr fixes a regression with caikit 0.27 where the save_path was no longer included in the model trainer future base.

Special notes for your reviewer:

If applicable:

  • this PR contains documentation
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

Signed-off-by: Michael Honaker <Michael.Honaker@ibm.com>
Signed-off-by: Michael Honaker <Michael.Honaker@ibm.com>
Signed-off-by: Michael Honaker <Michael.Honaker@ibm.com>
@@ -44,6 +44,9 @@ def __init__(self, *args, **kwargs):
kwargs["future_name"] = kwargs["trainer_name"]
if "training_id" in kwargs:
kwargs["future_id"] = kwargs["training_id"]
# If save path is provided then add it as a property
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we might want to do this no matter what and just assign it to None given that the log line will fire on any trainer?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a good point. The save_path should almost always be included in future construction but that does rely on the trainer implementations

Signed-off-by: Michael Honaker <Michael.Honaker@ibm.com>
Copy link
Collaborator

@gabe-l-hart gabe-l-hart left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix!

Signed-off-by: Michael Honaker <Michael.Honaker@ibm.com>
@gabe-l-hart gabe-l-hart merged commit 84bb257 into caikit:main Sep 11, 2024
8 checks passed
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