Skip to content

Commit

Permalink
Pin httpx <0.28 to work-around known issue openai/openai-python#1915
Browse files Browse the repository at this point in the history
Templatize langchain versions
Add dependency to langchain-openai, as openai is being removed from langchain-community
  • Loading branch information
dagardner-nv committed Dec 14, 2024
1 parent a150293 commit 3e76cd5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
2 changes: 2 additions & 0 deletions conda/environments/all_cuda-125_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ dependencies:
- grpcio-status
- gtest=1.14
- gxx=12.1
- httpx>=0.23,<0.28
- huggingface_hub=0.20.2
- include-what-you-use=0.20
- indicators=2.3
Expand Down Expand Up @@ -136,6 +137,7 @@ dependencies:
- faiss-cpu
- google-search-results==2.4
- langchain-nvidia-ai-endpoints==0.0.11
- langchain-openai==0.1.3
- langchain==0.1.16
- milvus==2.3.5
- nemollm==0.3.5
Expand Down
2 changes: 2 additions & 0 deletions conda/environments/examples_cuda-125_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ dependencies:
- feedparser=6.0
- grpcio
- grpcio-status
- httpx>=0.23,<0.28
- huggingface_hub=0.20.2
- jsonpatch>=1.33
- kfp
Expand Down Expand Up @@ -73,6 +74,7 @@ dependencies:
- faiss-cpu
- google-search-results==2.4
- langchain-nvidia-ai-endpoints==0.0.11
- langchain-openai==0.1.3
- langchain==0.1.16
- milvus==2.3.5
- nemollm==0.3.5
Expand Down
23 changes: 13 additions & 10 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,14 @@ dependencies:
common:
- output_types: [requirements]
packages:
- faiss-cpu
- google-search-results==2.4
- langchain==0.1.16
- langchain-nvidia-ai-endpoints==0.0.11
- &faiss-cpu faiss-cpu
- &google-search-results google-search-results==2.4
- &langchain langchain==0.1.16
- &langchain-nvidia-ai-endpoints langchain-nvidia-ai-endpoints==0.0.11
- &langchain-openai langchain-openai==0.1.3
- milvus==2.3.5 # update to match pymilvus when available
- pymilvus==2.3.6
- nemollm==0.3.5
- &nemollm nemollm==0.3.5

example-dfp-prod:
common:
Expand Down Expand Up @@ -487,6 +488,7 @@ dependencies:
- &transformers transformers=4.36.2 # newer versions are incompatible with our pinned version of huggingface_hub
- anyio>=3.7
- arxiv=1.4
- httpx>=0.23,<0.28 # work-around for https://github.com/openai/openai-python/issues/1915
- huggingface_hub=0.20.2 # work-around for https://github.com/UKPLab/sentence-transformers/issues/1762
- jsonpatch>=1.33
- newspaper3k=0.2
Expand All @@ -499,11 +501,12 @@ dependencies:
- requests-toolbelt=1.0 # Transitive dep needed by nemollm, specified here to ensure we get a compatible version
- pip
- pip:
- langchain==0.1.16
- langchain-nvidia-ai-endpoints==0.0.11
- faiss-cpu
- google-search-results==2.4
- nemollm==0.3.5
- *faiss-cpu
- *google-search-results
- *langchain
- *langchain-nvidia-ai-endpoints
- *langchain-openai
- *nemollm
- sentence-transformers==2.7 # using pip now instead of conda to avoid install of pytorch cpu

model-training-tuning:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
faiss-cpu
google-search-results==2.4
langchain-nvidia-ai-endpoints==0.0.11
langchain-openai==0.1.3
langchain==0.1.16
milvus==2.3.5
nemollm==0.3.5
Expand Down

0 comments on commit 3e76cd5

Please sign in to comment.