forked from nv-morpheus/Morpheus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decouple TritonInferenceStage from pipeline mode (nv-morpheus#1402)
* Add `needs_logits` & `inout_mapping` a constructor arguments to `TritonInferenceStage`. * Consolidate triton inference worker impls into a single `TritonInferenceWorker` class * For compatibility the `needs_logits` & `inout_mapping` arguments default to default values inferred by the pipeline mode. * Refactor custom triton inference stage from `examples/log_parsing` example as a subclass of `TritonInferenceStage` removing several lines of redundant code. * `examples/log_parsing` example now works in C++ mode * Add the ability to subclass a stage registered with the CLI, and register the sublcass with a new CLI name. * Add the ability to parse dictionary types with click. * Remove `inf-triton` from the AE mode in the CLI * Misc linting/formatting pylint suggestions Closes nv-morpheus#1378 ## By Submitting this PR I confirm: - I am familiar with the [Contributing Guidelines](https://github.com/nv-morpheus/Morpheus/blob/main/docs/source/developer_guide/contributing.md). - 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. Authors: - David Gardner (https://github.com/dagardner-nv) Approvers: - Devin Robison (https://github.com/drobison00) - Michael Demoret (https://github.com/mdemoret-nv) URL: nv-morpheus#1402
- Loading branch information
1 parent
bbc1cda
commit 2e3f4e4
Showing
16 changed files
with
402 additions
and
815 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.