Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing the deprecated log_xxx_metadata calls #11

Closed
wants to merge 1 commit into from
Closed

Conversation

bcdurak
Copy link
Contributor

@bcdurak bcdurak commented Nov 13, 2024

Describe changes

I implemented/fixed _ to achieve _.

Pre-requisites

Please ensure you have done the following:

  • If my change requires a change to docs, I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • I have updated ref-zenml in .github/workflows/ci.yml accordingly (if you don't know - main would be a solid choice)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Other (add details above)

Comment on lines +36 to +45
context = get_step_context()
if context.model:
log_metadata(
metadata={
"system_prompt": system_prompt,
"base_model_id": base_model_id,
},
model_name=context.model.name,
model_version=context.model.version,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks like a quite complicated code piece vs what we had before, just saying 🙂

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. Perhaps, we can keep the log_model_metadata for cases like this?

@bcdurak bcdurak closed this Nov 28, 2024
@bcdurak bcdurak deleted the 2024.11.13 branch November 28, 2024 14:02
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