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

Adjust serving notebook to account for underlying shape changes #631

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

karlhigley
Copy link
Contributor

@karlhigley karlhigley commented Mar 7, 2023

Those two changes are a workaround to make everything line up while we sort out shapes and ragged support in T4R, but should be okay for now AFAIK. We use padding in the NVT workflow, and capture the sparse_max list lengths in the schema, and the serving notebook then runs successfully.

Those two changes are a workaround to make everything line up while we sort out shapes and ragged support in T4R, but should be okay for now AFAIK. We use padding in the NVT workflow, and capture the `sparse_max` list lengths in the schema, and the serving notebook then runs successfully.
@karlhigley karlhigley added bug Something isn't working P0 labels Mar 7, 2023
@karlhigley karlhigley added this to the Merlin 23.02 milestone Mar 7, 2023
@karlhigley karlhigley requested a review from rnyak March 7, 2023 19:23
@karlhigley karlhigley self-assigned this Mar 7, 2023
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions
Copy link

github-actions bot commented Mar 7, 2023

@@ -70,8 +70,56 @@
"text": [
Copy link
Contributor

@rnyak rnyak Mar 7, 2023

Choose a reason for hiding this comment

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

Line #1.    for col_name, col_schema in input_schema.column_schemas.items():

so this cell is needed to tell Ensemble api that model does not consume ragged inputs since value count min and max are same? would input_schema wont print out required properties without executing this cell?


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, that's right. This is a manual step to capture the info from the sparse_max dictionary in the schemas, which helps the serving code know the shapes of the inputs we ended up with after padding in the Workflow.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the longer term, we'll probably want to re-evaluate this and see if we can migrate from sparse_max to capturing shapes in the model schemas (which you're already working on the first part of.)

@rnyak
Copy link
Contributor

rnyak commented Mar 7, 2023

Those two changes are a workaround to make everything line up while we sort out shapes and ragged support in T4R, but should be okay for now AFAIK. We use padding in the NVT workflow, and capture the sparse_max list lengths in the schema, and the serving notebook then runs successfully.

thanks for that. LGTM. I only added one comment, out of curiosity. thanks!

@karlhigley karlhigley merged commit b46f3f0 into NVIDIA-Merlin:main Mar 7, 2023
jperez999 pushed a commit that referenced this pull request Mar 7, 2023
Those two changes are a workaround to make everything line up while we sort out shapes and ragged support in T4R, but should be okay for now AFAIK. We use padding in the NVT workflow, and capture the `sparse_max` list lengths in the schema, and the serving notebook then runs successfully.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants