Skip to content

Adjust serving notebook to account for underlying shape changes#631

Merged
karlhigley merged 1 commit intoNVIDIA-Merlin:mainfrom
karlhigley:fix/serving-notebook
Mar 7, 2023
Merged

Adjust serving notebook to account for underlying shape changes#631
karlhigley merged 1 commit intoNVIDIA-Merlin:mainfrom
karlhigley:fix/serving-notebook

Conversation

@karlhigley
Copy link
Copy Markdown
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
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 7, 2023

@@ -70,8 +70,56 @@
"text": [
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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