Skip to content

Commit

Permalink
Pin cudf to 24.02.00; fix doc link
Browse files Browse the repository at this point in the history
Signed-off-by: Will Killian <wkillian@nvidia.com>
  • Loading branch information
willkill07 committed Mar 3, 2025
1 parent e80ba4d commit ef10261
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion ci/conda/recipes/morpheus-libs/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ python:
- 3.10

rapids_version:
- 25.02
- 25.02.00
2 changes: 1 addition & 1 deletion ci/conda/recipes/morpheus/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ python:
- 3.10

rapids_version:
- 25.02
- 25.02.00
10 changes: 5 additions & 5 deletions conda/environments/all_cuda-128_arch-aarch64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ dependencies:
- cuda-nvtx=12.8
- cuda-sanitizer-api
- cuda-version=12.8
- cudf=25.02
- cuml=25.02.*
- cudf=25.02.00
- cuml=25.02.00
- cupy
- cxx-compiler
- cython=3.0
Expand All @@ -59,7 +59,7 @@ dependencies:
- jsonpatch>=1.33
- kfp
- libcublas-dev
- libcudf=25.02
- libcudf=25.02.00
- libcufft-dev
- libcurand-dev
- libcusolver-dev
Expand Down Expand Up @@ -87,7 +87,7 @@ dependencies:
- pre-commit
- pybind11-stubgen=0.10.5
- pydantic
- pylibcudf=25.02
- pylibcudf=25.02.00
- pylint=3.0.3
- pynvml=12
- pypdf=3.17.4
Expand All @@ -100,7 +100,7 @@ dependencies:
- python-graphviz
- python=3.10
- rapidjson=1.1.0
- rapids-dask-dependency=25.02
- rapids-dask-dependency=25.02.00
- rdma-core>=48
- requests-cache=1.1
- requests-toolbelt=1.0
Expand Down
10 changes: 5 additions & 5 deletions conda/environments/all_cuda-128_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ dependencies:
- cuda-nvtx=12.8
- cuda-sanitizer-api
- cuda-version=12.8
- cudf=25.02
- cuml=25.02.*
- cudf=25.02.00
- cuml=25.02.00
- cupy
- cxx-compiler
- cython=3.0
Expand All @@ -60,7 +60,7 @@ dependencies:
- jsonpatch>=1.33
- kfp
- libcublas-dev
- libcudf=25.02
- libcudf=25.02.00
- libcufft-dev
- libcurand-dev
- libcusolver-dev
Expand Down Expand Up @@ -89,7 +89,7 @@ dependencies:
- pre-commit
- pybind11-stubgen=0.10.5
- pydantic
- pylibcudf=25.02
- pylibcudf=25.02.00
- pylint=3.0.3
- pynvml=12
- pypdf=3.17.4
Expand All @@ -103,7 +103,7 @@ dependencies:
- python-graphviz
- python=3.10
- rapidjson=1.1.0
- rapids-dask-dependency=25.02
- rapids-dask-dependency=25.02.00
- rdma-core>=48
- requests-cache=1.1
- requests-toolbelt=1.0
Expand Down
8 changes: 4 additions & 4 deletions conda/environments/dev_cuda-128_arch-aarch64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies:
- cuda-nvtx-dev=12.8
- cuda-sanitizer-api
- cuda-version=12.8
- cudf=25.02
- cudf=25.02.00
- cupy
- cxx-compiler
- cython=3.0
Expand All @@ -48,7 +48,7 @@ dependencies:
- ipython
- isort
- libcublas-dev
- libcudf=25.02
- libcudf=25.02.00
- libcufft-dev
- libcurand-dev
- libcusolver-dev
Expand All @@ -72,7 +72,7 @@ dependencies:
- pre-commit
- pybind11-stubgen=0.10.5
- pydantic
- pylibcudf=25.02
- pylibcudf=25.02.00
- pylint=3.0.3
- pynvml=12
- pytest-asyncio
Expand All @@ -84,7 +84,7 @@ dependencies:
- python-graphviz
- python=3.10
- rapidjson=1.1.0
- rapids-dask-dependency=25.02
- rapids-dask-dependency=25.02.00
- rdma-core>=48
- requests-cache=1.1
- requests<2.29.0
Expand Down
8 changes: 4 additions & 4 deletions conda/environments/dev_cuda-128_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies:
- cuda-nvtx-dev=12.8
- cuda-sanitizer-api
- cuda-version=12.8
- cudf=25.02
- cudf=25.02.00
- cupy
- cxx-compiler
- cython=3.0
Expand All @@ -49,7 +49,7 @@ dependencies:
- ipython
- isort
- libcublas-dev
- libcudf=25.02
- libcudf=25.02.00
- libcufft-dev
- libcurand-dev
- libcusolver-dev
Expand All @@ -73,7 +73,7 @@ dependencies:
- pre-commit
- pybind11-stubgen=0.10.5
- pydantic
- pylibcudf=25.02
- pylibcudf=25.02.00
- pylint=3.0.3
- pynvml=12
- pypdfium2==4.30
Expand All @@ -86,7 +86,7 @@ dependencies:
- python-graphviz
- python=3.10
- rapidjson=1.1.0
- rapids-dask-dependency=25.02
- rapids-dask-dependency=25.02.00
- rdma-core>=48
- requests-cache=1.1
- requests<2.29.0
Expand Down
6 changes: 3 additions & 3 deletions conda/environments/examples_cuda-128_arch-aarch64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ dependencies:
- beautifulsoup4=4.12
- boto3=1.35
- click>=8
- cudf=25.02
- cuml=25.02.*
- cudf=25.02.00
- cuml=25.02.00
- cupy
- datacompy=0.10
- dill=0.3.7
Expand Down Expand Up @@ -49,7 +49,7 @@ dependencies:
- python-docx==1.1.0
- python-graphviz
- python=3.10
- rapids-dask-dependency=25.02
- rapids-dask-dependency=25.02.00
- requests-cache=1.1
- requests-toolbelt=1.0
- requests<2.29.0
Expand Down
6 changes: 3 additions & 3 deletions conda/environments/examples_cuda-128_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ dependencies:
- beautifulsoup4=4.12
- boto3=1.35
- click>=8
- cudf=25.02
- cuml=25.02.*
- cudf=25.02.00
- cuml=25.02.00
- cupy
- datacompy=0.10
- dill=0.3.7
Expand Down Expand Up @@ -51,7 +51,7 @@ dependencies:
- python-docx==1.1.0
- python-graphviz
- python=3.10
- rapids-dask-dependency=25.02
- rapids-dask-dependency=25.02.00
- requests-cache=1.1
- requests-toolbelt=1.0
- requests<2.29.0
Expand Down
2 changes: 1 addition & 1 deletion conda/environments/model-utils_cuda-128_arch-aarch64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ channels:
- nvidia/label/dev
- pytorch
dependencies:
- cuml=25.02.*
- cuml=25.02.00
- jupyterlab
- matplotlib
- onnx
Expand Down
2 changes: 1 addition & 1 deletion conda/environments/model-utils_cuda-128_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ channels:
- nvidia/label/dev
- pytorch
dependencies:
- cuml=25.02.*
- cuml=25.02.00
- jupyterlab
- matplotlib
- onnx
Expand Down
4 changes: 2 additions & 2 deletions conda/environments/runtime_cuda-128_arch-aarch64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies:
- cuda-nvrtc=12.8
- cuda-nvtx=12.8
- cuda-version=12.8
- cudf=25.02
- cudf=25.02.00
- cupy
- datacompy=0.10
- dill=0.3.7
Expand All @@ -37,7 +37,7 @@ dependencies:
- python-confluent-kafka>=1.9.2,<1.10.0a0
- python-graphviz
- python=3.10
- rapids-dask-dependency=25.02
- rapids-dask-dependency=25.02.00
- requests-cache=1.1
- requests<2.29.0
- scikit-learn=1.3.2
Expand Down
4 changes: 2 additions & 2 deletions conda/environments/runtime_cuda-128_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies:
- cuda-nvrtc=12.8
- cuda-nvtx=12.8
- cuda-version=12.8
- cudf=25.02
- cudf=25.02.00
- cupy
- datacompy=0.10
- dill=0.3.7
Expand All @@ -37,7 +37,7 @@ dependencies:
- python-confluent-kafka>=1.9.2,<1.10.0a0
- python-graphviz
- python=3.10
- rapids-dask-dependency=25.02
- rapids-dask-dependency=25.02.00
- requests-cache=1.1
- requests<2.29.0
- scikit-learn=1.3.2
Expand Down
10 changes: 5 additions & 5 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -296,17 +296,17 @@ dependencies:
- output_types: [conda]
packages:
# Include: cudatoolkit-dev
- &cudf cudf=25.02
- &cudf cudf=25.02.00
- cython=3.0
- glog>=0.7.1,<0.8
- gtest=1.14
- libcudf=25.02
- libcudf=25.02.00
- librdkafka>=1.9.2,<1.10.0a0
- libzlib >=1.3.1,<2
- &mrc mrc=25.06
- nlohmann_json=3.11
- pybind11-stubgen=0.10.5
- pylibcudf=25.02
- pylibcudf=25.02.00
- rapidjson=1.1.0
- rdma-core>=48 # Needed for DOCA.
- scikit-build=0.17.6
Expand Down Expand Up @@ -402,7 +402,7 @@ dependencies:
- python-confluent-kafka>=1.9.2,<1.10.0a0
- python-graphviz
- pluggy=1.3
- rapids-dask-dependency=25.02 # provides dask and distributed
- rapids-dask-dependency=25.02.00 # provides dask and distributed
- requests<2.29.0
- requests-cache=1.1
- scikit-learn=1.3.2
Expand Down Expand Up @@ -533,7 +533,7 @@ dependencies:
common:
- output_types: [conda]
packages:
- &cuml cuml=25.02.*
- &cuml cuml=25.02.00
- pip
- pip:
- --find-links https://data.dgl.ai/wheels/cu121/repo.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ else:
pipeline.add_stage(RecipientFeaturesStage(config))
```

To tokenize the input data we will use Morpheus' `PreprocessNLPStage`. This stage uses the [cuDF subword tokenizer](https://docs.rapids.ai/api/cudf/legacy/user_guide/api_docs/subword_tokenize/#subwordtokenizer) to transform strings into a tensor of numbers to be fed into the neural network model. Rather than split the string by characters or whitespaces, we split them into meaningful subwords based upon the occurrence of the subwords in a large training corpus. You can find more details here: [https://arxiv.org/abs/1810.04805v2](https://arxiv.org/abs/1810.04805v2). All we need to know for now is that the text will be converted to subword token ids based on the vocabulary file that we provide (`vocab_hash_file=vocab file`).
To tokenize the input data we will use Morpheus' `PreprocessNLPStage`. This stage uses the [cuDF nvtext subword tokenizer](https://docs.rapids.ai/api/cudf/stable/pylibcudf/api_docs/nvtext/subword_tokenize/) to transform strings into a tensor of numbers to be fed into the neural network model. Rather than split the string by characters or whitespaces, we split them into meaningful subwords based upon the occurrence of the subwords in a large training corpus. You can find more details here: [https://arxiv.org/abs/1810.04805v2](https://arxiv.org/abs/1810.04805v2). All we need to know for now is that the text will be converted to subword token ids based on the vocabulary file that we provide (`vocab_hash_file=vocab file`).

Let's go ahead and instantiate our `PreprocessNLPStage` and add it to the pipeline:

Expand Down

0 comments on commit ef10261

Please sign in to comment.