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

Refactor digital_fingerprinting stages and add morpheus-split conda recipe (core, dfp, llm) #1897

Merged
merged 17 commits into from
Oct 4, 2024

Conversation

AnuradhaKaruppiah
Copy link
Contributor

@AnuradhaKaruppiah AnuradhaKaruppiah commented Sep 18, 2024

  • Move dfp stages to python/morpheus_dfp
  • Create morpheus_dfp python package
  • Rename morpheus-core conda recipe to morpheus-libs, a split package conda recipe that generates morpheus-core, morpheus-dfp and morpheus-llm
  • Update github workflow to upload the morpheus-dfp conda package to anaconda

Other pending tasks, including test and doc refactoring, is tracked via python/morpheus_dfp/todo.md

Dev install now requires -

pip install -e python/morpheus
pip install -e python/morpheus_dfp
pip install -e python/morpheus_llm

@AnuradhaKaruppiah AnuradhaKaruppiah added non-breaking Non-breaking change feature request New feature or request DO NOT MERGE PR should not be merged; see PR for details labels Sep 18, 2024
Copy link

copy-pr-bot bot commented Sep 18, 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.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@AnuradhaKaruppiah AnuradhaKaruppiah changed the title [draft] Refactor the digitalfingerprinting source [draft] Refactor digital_fingerprinting stages and create morpheus_dfp conda package Sep 18, 2024
@AnuradhaKaruppiah
Copy link
Contributor Author

/ok to test

@AnuradhaKaruppiah AnuradhaKaruppiah removed DO NOT MERGE PR should not be merged; see PR for details labels Sep 18, 2024
@AnuradhaKaruppiah
Copy link
Contributor Author

/ok to test

@AnuradhaKaruppiah AnuradhaKaruppiah added conda-build Enables running the conda-build step on a PR conda-core-build labels Sep 19, 2024
@AnuradhaKaruppiah
Copy link
Contributor Author

@mdemoret-nv I have merged the morpheus-llm packaging recipe here. It was challenging to fixup the recipe across two PRs. I have also merged the individual recipes into a split package one for all the libraries (morpheus-libs). The old recipe, for building everything, is still present (morpheus). I will remove this once the morpheus container is updated to stop using it.

@AnuradhaKaruppiah
Copy link
Contributor Author

/ok to test

Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
Style used for purposes of consistency -
1. Imports in __init__ and pipeline are absolute
2. All other imports (withing morpheus_dfp) are relative

Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
The morpheus_dfp package is entirely python and setup.py can be used directly to
create this package. However for the sake of consistency cmake with
mopheus_utils_build_python_package is used.

Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
1. Add a build flag to disable compiling morpheus-core
2. Add a build flag for morpheus_dfp
3. Add morpheus_dfp conda recipe

Cleanup:
1. Avoid enabling morpheus extended package flags in the runner container.
Instead set them via the build scripts. This is mainly to avoid the
confusion in managing the flags.
2. Removed some of the build flags passed to the conda recipes to avoid
confusion.
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
1. conda-build is used for building conda pacakge for the morpheus libraries.
2. Dropped the conda package with "all components". This will be replaced with
the individual conda packages.

Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
That generates morpheus-core, morpheus-dfp, morpheus-llm

Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
Using .conda format can improve download and extract times.

Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
@AnuradhaKaruppiah
Copy link
Contributor Author

/ok to test

python/CMakeLists.txt Outdated Show resolved Hide resolved
Copy link
Contributor

@dagardner-nv dagardner-nv left a comment

Choose a reason for hiding this comment

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

LGTM, just a few minor things

python/morpheus_dfp/todo.md Outdated Show resolved Hide resolved
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
@AnuradhaKaruppiah
Copy link
Contributor Author

/ok to test

Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
@AnuradhaKaruppiah
Copy link
Contributor Author

/ok to test

@AnuradhaKaruppiah
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 502cbf3 into nv-morpheus:branch-24.10 Oct 4, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conda-build Enables running the conda-build step on a PR feature request New feature or request non-breaking Non-breaking change
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants