Skip to content

Commit

Permalink
Merge branch 'branch-24.10' of https://github.com/nv-morpheus/Morpheus
Browse files Browse the repository at this point in the history
…into benchmark-fixes
  • Loading branch information
efajardo-nv committed Oct 31, 2024
2 parents 4968c43 + f5d8191 commit f045a47
Show file tree
Hide file tree
Showing 107 changed files with 2,670 additions and 1,263 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
triton:
container_name: morpheus-triton
runtime: nvidia
image: nvcr.io/nvidia/tritonserver:23.06-py3
image: nvcr.io/nvidia/tritonserver:24.09-py3
command: tritonserver --model-repository=/models/triton-model-repo --exit-on-error=false ${TRITON_MODEL_ARGS}
ports:
- 8000:8000
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_pipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ on:
env:
CHANGE_TARGET: "${{ github.base_ref }}"
CUDA_PATH: "/usr/local/cuda/"
CUDA_VER: "12.1"
CUDA_VER: "12.5"
GH_TOKEN: "${{ github.token }}"
GIT_COMMIT: "${{ github.sha }}"
MORPHEUS_ROOT: "${{ github.workspace }}/morpheus"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ jobs:
# Upload morpheus conda packages only for non PR branches. Use 'main' for main branch and 'dev' for all other branches
conda_upload_label: ${{ !fromJSON(needs.prepare.outputs.is_pr) && (fromJSON(needs.prepare.outputs.is_main_branch) && 'main' || 'dev') || '' }}
base_container: rapidsai/ci-conda:cuda12.5.1-ubuntu22.04-py3.10
container: nvcr.io/ea-nvidia-morpheus/morpheus:morpheus-ci-build-241004
test_container: nvcr.io/ea-nvidia-morpheus/morpheus:morpheus-ci-test-241004
container: nvcr.io/ea-nvidia-morpheus/morpheus:morpheus-ci-build-241024
test_container: nvcr.io/ea-nvidia-morpheus/morpheus:morpheus-ci-test-241024
secrets:
CONDA_TOKEN: ${{ secrets.CONDA_TOKEN }}
NGC_API_KEY: ${{ secrets.NGC_API_KEY }}
1 change: 1 addition & 0 deletions ci/iwyu/mappings.imp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
{ "include": [ "\"mrc/protos/tensor_meta_data.pb.h\"", private, "<mrc/protos/tensor_meta_data.pb.h>", "public" ] },

# stdlib
{ "include": [ "<bits/chrono.h>", private, "<chrono>", "public" ] },
{ "include": [ "<bits/cxxabi_forced.h>", private, "<mutex>", "public" ] },
{ "include": [ "<bits/cxxabi_forced.h>", private, "<vector>", "public" ] },
{ "include": [ "<bits/this_thread_sleep.h>", private, "<thread>", "public" ] },
Expand Down
4 changes: 2 additions & 2 deletions ci/release/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ NEXT_PATCH=$(echo ${NEXT_FULL_VERSION} | awk '{split($0, a, "."); print a[3]}')
NEXT_SHORT_TAG=${NEXT_MAJOR}.${NEXT_MINOR}

# Need to distutils-normalize the versions for some use cases
CURRENT_SHORT_TAG_PEP440=$(python -c "from setuptools.extern import packaging; print(packaging.version.Version('${CURRENT_SHORT_TAG}'))")
NEXT_SHORT_TAG_PEP440=$(python -c "from setuptools.extern import packaging; print(packaging.version.Version('${NEXT_SHORT_TAG}'))")
CURRENT_SHORT_TAG_PEP440=$(python -c "from packaging import version; print(version.Version('${CURRENT_SHORT_TAG}'))")
NEXT_SHORT_TAG_PEP440=$(python -c "from packaging import version; print(version.Version('${NEXT_SHORT_TAG}'))")

echo "Preparing release $CURRENT_FULL_VERSION (PEP ${CURRENT_SHORT_TAG_PEP440}) => $NEXT_FULL_VERSION (PEP ${NEXT_SHORT_TAG_PEP440})"

Expand Down
6 changes: 0 additions & 6 deletions ci/runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ SHELL ["/bin/bash", "-c"]
# Create conda environment
COPY ./dependencies.yaml /tmp/conda/

RUN <<EOF
rapids-mamba-retry install -y \
"rapids-dependency-file-generator>=1.13.*"
conda clean -aipty
EOF

# ============ build ==================
FROM base as build

Expand Down
7 changes: 1 addition & 6 deletions ci/scripts/github/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@ source ${WORKSPACE}/ci/scripts/github/morpheus_env.sh
source ${WORKSPACE}/ci/scripts/github/cmake_all.sh
/usr/bin/nvidia-smi

rapids-dependency-file-generator \
--output conda \
--file-key all \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee "${WORKSPACE_TMP}/env.yaml"

update_conda_env "${WORKSPACE_TMP}/env.yaml"
update_conda_env "${WORKSPACE}/conda/environments/all_cuda-125_arch-x86_64.yaml"

log_toolchain

Expand Down
2 changes: 1 addition & 1 deletion ci/scripts/run_ci_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ GIT_BRANCH=$(git branch --show-current)
GIT_COMMIT=$(git log -n 1 --pretty=format:%H)

LOCAL_CI_TMP=${LOCAL_CI_TMP:-${MORPHEUS_ROOT}/.tmp/local_ci_tmp}
CONTAINER_VER=${CONTAINER_VER:-241004}
CONTAINER_VER=${CONTAINER_VER:-241024}
CUDA_VER=${CUDA_VER:-12.5}
CUDA_FULL_VER=${CUDA_FULL_VER:-12.5.1}
DOCKER_EXTRA_ARGS=${DOCKER_EXTRA_ARGS:-""}
Expand Down
3 changes: 2 additions & 1 deletion conda/environments/all_cuda-125_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ dependencies:
- s3fs
- scikit-build=0.17.6
- scikit-learn=1.3.2
- sentence-transformers=2.7
- sphinx
- sphinx_rtd_theme
- sqlalchemy<2.0
Expand Down Expand Up @@ -141,5 +140,7 @@ dependencies:
- nemollm==0.3.5
- pymilvus==2.3.6
- pytest-kafka==0.6.0
- python-logging-loki
- sentence-transformers==2.7
- torch==2.4.0+cu124
name: all_cuda-125_arch-x86_64
3 changes: 2 additions & 1 deletion conda/environments/examples_cuda-125_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ dependencies:
- requests-toolbelt=1.0
- s3fs
- scikit-learn=1.3.2
- sentence-transformers=2.7
- sqlalchemy<2.0
- tqdm=4
- transformers=4.36.2
Expand All @@ -78,5 +77,7 @@ dependencies:
- milvus==2.3.5
- nemollm==0.3.5
- pymilvus==2.3.6
- python-logging-loki
- sentence-transformers==2.7
- torch==2.4.0+cu124
name: examples_cuda-125_arch-x86_64
3 changes: 3 additions & 0 deletions conda/environments/model-utils_cuda-125_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ dependencies:
- matplotlib
- onnx
- pandas
- pip
- python=3.10
- scikit-learn=1.3.2
- seaborn
- seqeval=1.2.2
- transformers=4.36.2
- xgboost
- pip:
- tensorrt-cu12
name: model-utils_cuda-125_arch-x86_64
31 changes: 30 additions & 1 deletion dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,18 @@ files:
- morpheus_core_pip
- morpheus_llm_pip

# dfp example conda dependencies
dfp_example:
output: conda
matrix:
cuda: ["12.5"]
arch: [x86_64]
output: conda
conda_dir: examples/digital_fingerprinting/production/conda/environments
includes:
- example-dfp-container
- example-dfp-prod

channels:
- conda-forge
- huggingface
Expand Down Expand Up @@ -434,6 +446,20 @@ dependencies:
- kfp
- papermill=2.4.0
- s3fs
- pip
- pip:
- python-logging-loki

# packages needed in the DFP example container
example-dfp-container:
common:
- output_types: [conda]
packages:
- morpheus-dfp=24.10
- tini=0.19
- pip:
- --extra-index-url https://download.pytorch.org/whl/cu124
- torch==2.4.0+cu124

example-gnn:
common:
Expand Down Expand Up @@ -470,14 +496,14 @@ dependencies:
- *pypdfium2
- *python-docx
- requests-toolbelt=1.0 # Transitive dep needed by nemollm, specified here to ensure we get a compatible version
- sentence-transformers=2.7
- pip
- pip:
- langchain==0.1.16
- langchain-nvidia-ai-endpoints==0.0.11
- faiss-cpu
- google-search-results==2.4
- nemollm==0.3.5
- sentence-transformers==2.7 # using pip now instead of conda to avoid install of pytorch cpu

model-training-tuning:
common:
Expand All @@ -493,6 +519,9 @@ dependencies:
- seaborn
- seqeval=1.2.2
- xgboost
- pip
- pip:
- tensorrt-cu12

cve-mitigation:
common:
Expand Down
3 changes: 1 addition & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ RUN --mount=type=bind,source=.,target=/opt/host_repo \
git clone file:///opt/host_repo/${MORPHEUS_ROOT_HOST} /tmp/morpheus_repo &&\
cd /tmp/morpheus_repo &&\
git lfs install &&\
./scripts/fetch_data.py fetch datasets examples
./scripts/fetch_data.py fetch examples

# ============ Stage: runtime ============
# Setup container for runtime environment
Expand All @@ -360,7 +360,6 @@ COPY --from=git_clone "/tmp/morpheus_repo/conda/environments/*.yaml" "./conda/en
COPY --from=git_clone "/tmp/morpheus_repo/docker" "./docker"
COPY --from=build_docs "/workspace/${MORPHEUS_ROOT_HOST}/build/docs/html" "./docs"
COPY --from=git_clone "/tmp/morpheus_repo/examples" "./examples"
COPY --from=git_clone "/tmp/morpheus_repo/models/datasets" "./models/datasets"
COPY --from=git_clone "/tmp/morpheus_repo/scripts" "./scripts"
COPY --from=git_clone "/tmp/morpheus_repo/*.md" "./"
COPY --from=git_clone "/tmp/morpheus_repo/LICENSE" "./"
Expand Down
Loading

0 comments on commit f045a47

Please sign in to comment.