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

Upgrade openai version to 1.13 and langchain to version 0.1.9 #1529

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
21125c6
Upgrading `openai` to version 1.13
mdemoret-nv Feb 20, 2024
7bbff5b
Fixing issues with the conda solve
mdemoret-nv Feb 21, 2024
9a569d7
Removing duplicated conftest
mdemoret-nv Feb 21, 2024
fff3db4
Improving the LLM Services
mdemoret-nv Feb 21, 2024
28c257f
Style cleanup
mdemoret-nv Feb 21, 2024
47740ba
Removing quiet argument for debugging
mdemoret-nv Feb 21, 2024
5c85be2
Updating the runner versions
mdemoret-nv Feb 22, 2024
b379329
Style cleanup
mdemoret-nv Feb 22, 2024
af1d2fd
Adding numexpr
mdemoret-nv Feb 22, 2024
b1e2ec2
Adding ability to run CI locally with volume mounted source
mdemoret-nv Feb 23, 2024
402ef43
Fixing a test
mdemoret-nv Feb 23, 2024
b98cb68
Merge branch 'branch-24.03' into mdd_upgrade-openai-version
mdemoret-nv Feb 23, 2024
b06ead0
Reverting some changes
mdemoret-nv Feb 23, 2024
7da0b9e
Fixing deprecation message
mdemoret-nv Feb 23, 2024
a883a1f
Incorporating code review feedback
mdemoret-nv Feb 23, 2024
bb08a0b
Add pydantic to autodoc_mock_imports to prevent sphinx from trying to…
dagardner-nv Feb 23, 2024
ca34d76
update openai mocks
dagardner-nv Feb 23, 2024
69f7350
Update tests to match constructor arguments are now keyword only
dagardner-nv Feb 23, 2024
5bdfed6
Update tests to use updated mocks
dagardner-nv Feb 23, 2024
42e5305
get_client is keyword only now
dagardner-nv Feb 23, 2024
65dc0c6
Always need to pass in the parent object, we no longer send the syste…
dagardner-nv Feb 23, 2024
318931f
Update tests
dagardner-nv Feb 23, 2024
ed59700
pylint fixes
dagardner-nv Feb 23, 2024
d805858
Pass temperature directly
dagardner-nv Feb 23, 2024
4d952c8
Update langchain version to be compat with our openai version
dagardner-nv Feb 23, 2024
675b9ca
Fix paths to conda yamls
dagardner-nv Feb 23, 2024
73d2062
Update tests to match langchain changes
dagardner-nv Feb 23, 2024
ccdbdf6
Fix test
dagardner-nv Feb 23, 2024
d5f049c
pylint fix
dagardner-nv Feb 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixing issues with the conda solve
  • Loading branch information
mdemoret-nv committed Feb 21, 2024
commit 7bbff5b1520e948204851bdd6db573434eba524d
2 changes: 1 addition & 1 deletion conda/environments/all_cuda-121_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ dependencies:
- isort
- jsonpatch>=1.33
- kfp
- langchain=0.0.190
- librdkafka>=1.9.2,<1.10.0a0
- libtool
- libwebp=1.3.2
Expand Down Expand Up @@ -119,6 +118,7 @@ dependencies:
- dgl
- dglgo
- google-search-results==2.4
- langchain==0.0.310
- milvus==2.3.5
- nemollm
- pymilvus==2.3.6
Expand Down
2 changes: 1 addition & 1 deletion conda/environments/examples_cuda-121_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ dependencies:
- huggingface_hub=0.20.2
- jsonpatch>=1.33
- kfp
- langchain=0.0.190
- libwebp=1.3.2
- mlflow=2.9.2
- networkx=2.8.8
Expand Down Expand Up @@ -63,6 +62,7 @@ dependencies:
- dgl
- dglgo
- google-search-results==2.4
- langchain==0.0.310
- milvus==2.3.5
- nemollm
- pymilvus==2.3.6
Expand Down
88 changes: 39 additions & 49 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,107 +21,97 @@ files:
cuda: ["12.1"]
arch: [x86_64]
includes:
- data_retrieval
- benchmark_cpp
- build_cpp
- checks
- cudatoolkit
- cve-mitigation
- data_retrieval
- development
- benchmark_cpp
- runtime
- doca
- docs
- example-dfp-prod
- example-gnn
- example-llm-agents
- example-llm-completion
- example-llm-rag
- example-llm-vdb-upload
- test_python_morpheus
- docs
- cudatoolkit
- python
- checks
- cve-mitigation
- doca
- runtime
- test_python_morpheus

dev:
output: conda
matrix:
cuda: ["12.1"]
arch: [x86_64]
includes:
- data_retrieval
- benchmark_cpp
- build_cpp
- checks
- cudatoolkit
- data_retrieval
- development
- benchmark_cpp
- runtime
- test_python_morpheus
- docs
- cudatoolkit
- python
- checks

examples:
output: conda
matrix:
cuda: ["12.1"]
arch: [x86_64]
includes:
- examples
- runtime
- cudatoolkit
- test_python_morpheus

build:
output: none
matrix:
cuda: ["12.1"]
arch: [x86_64]
includes:
- data_retrieval
- benchmark_cpp
- build_cpp
- cudatoolkit
- data_retrieval
- development
- benchmark_cpp
- python
- runtime
- test_python_morpheus
- cudatoolkit
- python

test:
output: none
matrix:
cuda: ["12.1"]
arch: [x86_64]
includes:
- data_retrieval
- benchmark_cpp
- build_cpp
- cudatoolkit
- data_retrieval
- development
- benchmark_cpp
- runtime
- test_python_morpheus
- example-dfp-prod
- example-gnn
- example-llm-agents
- example-llm-completion
- example-llm-rag
- example-llm-vdb-upload
- cudatoolkit
- python
- runtime
- test_python_morpheus

docs:
output: none
matrix:
cuda: ["12.1"]
arch: [x86_64]
includes:
- data_retrieval
- build_cpp
- benchmark_cpp
- build_cpp
- cudatoolkit
- python
- data_retrieval
- docs
- runtime
- example-dfp-prod
- example-gnn
- example-llm-agents
- example-llm-completion
- example-llm-rag
- example-llm-vdb-upload
- python
- runtime

runtime:
output: conda
Expand All @@ -138,15 +128,15 @@ files:
cuda: ["12.1"]
arch: [x86_64]
includes:
- runtime
- cve-mitigation
- example-dfp-prod
- example-gnn
- example-llm-agents
- example-llm-completion
- example-llm-rag
- example-llm-vdb-upload
- python
- cve-mitigation
- runtime

model-utils:
output: conda
Expand Down Expand Up @@ -231,18 +221,18 @@ dependencies:
common:
- output_types: [conda]
packages:
- &click click >=8
- &numpydoc numpydoc=1.5
- breathe=4.35.0
- doxygen=1.9.2
- exhale=0.3.6
- ipython
- myst-parser=0.18.1
- nbsphinx
- pluggy=1.3
- python-graphviz
- sphinx
- sphinx_rtd_theme
- &numpydoc numpydoc=1.5
- pluggy=1.3
- &click click >=8

benchmark_cpp:
common:
Expand Down Expand Up @@ -287,10 +277,10 @@ dependencies:
- output_types: [conda]
packages:
- &nodejs nodejs=18.*
- pytest=7.4.4
- pytest-asyncio
- pytest-benchmark=4.0
- pytest-cov
- pytest=7.4.4
- python-docx==1.1.0
- pip
- pip:
Expand Down Expand Up @@ -328,12 +318,12 @@ dependencies:
- output_types: [conda]
packages:
- &grpcio-status grpcio-status==1.59
- &langchain langchain=0.0.190
- &transformers transformers=4.36.2 # newer versions are incompatible with our pinned version of huggingface_hub
- huggingface_hub=0.20.2 # work-around for https://github.com/UKPLab/sentence-transformers/issues/1762
- pip
- sentence-transformers
- pip
- pip:
- &langchain langchain==0.0.310
- nemollm

example-llm-completion:
Expand All @@ -350,12 +340,12 @@ dependencies:
- output_types: [conda]
packages:
- *grpcio-status
- *langchain
- anyio>=3.7
- jsonpatch>=1.33
- openai=1.13
- pip
- pip:
- *langchain
- google-search-results==2.4

example-llm-vdb-upload:
Expand All @@ -364,27 +354,27 @@ dependencies:
packages:
- *arxiv
- *grpcio-status
- *langchain
- *newspaper3k
- *pypdf
- onnx
- pip
- pip:
- PyMuPDF==1.23.21
- *langchain

model-training-tuning:
common:
- output_types: [conda]
packages:
- *cuml
- *scikit-learn
- *transformers
- jupyterlab
- matplotlib
- onnx
- pandas
- *scikit-learn
- seaborn
- seqeval=1.2.2
- *transformers
- xgboost

cve-mitigation:
Expand Down
2 changes: 1 addition & 1 deletion morpheus/stages/inference/inference_stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,4 +443,4 @@ def _convert_one_response(output: MultiResponseMessage, inf: MultiInferenceMessa
for i, idx in enumerate(mess_ids):
probs[idx, :] = cp.maximum(probs[idx, :], resp_probs[i, :])

return MultiResponseMessage.from_message(inf, memory=memory, offset=inf.offset, count=inf.mess_count)
return MultiResponseMessage.from_message(inf, memory=memory, offset=seq_offset, count=seq_count)
mdemoret-nv marked this conversation as resolved.
Show resolved Hide resolved