Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@keerthanvasist
Copy link
Contributor

Description of changes:
Fetch log probability jmespath from JS metadata. This is a non-breaking change.

We were using a constant path, and so far that was also correct. But, going forward, for new models, it might not be. It is better to fetch the jmespath directly from metadata.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

self._log_prob_compiler, f"Model {self._model_id} does not include input log probabilities in it's response"
)
try:
assert (
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we have this second assert when we have util.require above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's there just to satisfy mypy. I could also make it ignore it, but I chose this path instead.

@keerthanvasist keerthanvasist merged commit 43028ba into aws:main May 7, 2024
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.

3 participants