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

Fix log_parsing example pipeline null output issue #2024

Conversation

yczhang-nv
Copy link
Contributor

Description

This bug is caused by the transition from MultiMessage to ControlMessage.

inference_stage.py::InferenceStage::_build_single calls _convert_one_response in a loop for a batch, and the argument is passing is the same for the whole batch, but inside _convert_one_response we're grabbing the tensors and assigning starting at zero, so the tensors are overwriting each other and causes the issue.

Added batch_offset variable to keep track where the next incoming tensor should start writing to the output message.

Closes #2019

By Submitting this PR I confirm:

  • I am familiar with the Contributing Guidelines.
  • When the PR is ready for review, new or existing tests cover these changes.
  • When the PR is ready for review, the documentation is up to date with these changes.

@yczhang-nv yczhang-nv added the bug Something isn't working label Oct 30, 2024
@yczhang-nv yczhang-nv self-assigned this Oct 30, 2024
@yczhang-nv yczhang-nv requested review from a team as code owners October 30, 2024 22:59
Copy link

copy-pr-bot bot commented Oct 30, 2024

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@yczhang-nv
Copy link
Contributor Author

/ok to test

@yczhang-nv yczhang-nv added the non-breaking Non-breaking change label Oct 30, 2024
Copy link
Contributor

@cwharris cwharris left a comment

Choose a reason for hiding this comment

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

LGTM

@yczhang-nv
Copy link
Contributor Author

/ok to test

@yczhang-nv
Copy link
Contributor Author

/ok to test

@yczhang-nv
Copy link
Contributor Author

/ok to test

…github.com:yczhang-nv/Morpheus into fix-log-parsing-example-pipeline-null-output-issue
@yczhang-nv
Copy link
Contributor Author

/ok to test

@dagardner-nv
Copy link
Contributor

/merge

@rapids-bot rapids-bot bot merged commit de72aaf into nv-morpheus:branch-24.10 Oct 31, 2024
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Non-breaking change
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants