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

Importing langchain takes too long #164

Open
jianzs opened this issue Mar 27, 2024 · 0 comments
Open

Importing langchain takes too long #164

jianzs opened this issue Mar 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jianzs
Copy link
Contributor

jianzs commented Mar 27, 2024

The example "langchain-llama2-chatbot-sagemaker-python" creates a llama2 conversational chatbot using AWS and LangChain. When deploying it on AWS, the initial execution might time out. The issue we've identified is that importing LangChain is taking too long, about 50 seconds, even with .pyc files available. However, after the initial import, subsequent executions run smoothly.

We need to find why the initial import is taking so long and fix it.

@jianzs jianzs added the bug Something isn't working label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant