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

/root/.cache/chroma/onnx_models/all-MiniLM-L6-v2/onnx.tar.gz: very slow download #904

Closed
7 of 17 tasks
mongolu opened this issue Aug 12, 2023 · 5 comments
Closed
7 of 17 tasks
Labels
needs triage Needs labels assigned. type | report | bug Confirmed bug in source code.

Comments

@mongolu
Copy link
Contributor

mongolu commented Aug 12, 2023

Description

When doing first time a Learning, the all-MiniLM-L6-v2 is downloading, but is very veeeery slow: 80kiB/s

Steps to Reproduce the Bug

Can smth be done here?

Expected Behavior

Do a learning from file first time after a fresh docker start (option 3).
(i purged containers first)

Operating System

  • Linux
  • Microsoft Windows
  • Apple MacOS
  • Android
  • iOS
  • Other

Python Version

  • Python <= 3.9
  • Python 3.10
  • Python 3.11

Environment Type - Connection

  • Local - You run AGiXT in your home network
  • Remote - You access AGiXT through the internet

Runtime environment

  • Using docker compose
  • Using local
  • Custom setup (please describe above!)

Acknowledgements

  • I have searched the existing issues to make sure this bug has not been reported yet.
  • I am using the latest version of AGiXT.
  • I have provided enough information for the maintainers to reproduce and diagnose the issue.
@mongolu mongolu added needs triage Needs labels assigned. type | report | bug Confirmed bug in source code. labels Aug 12, 2023
@Josh-XT
Copy link
Owner

Josh-XT commented Aug 13, 2023

The file it downloads is 80mb, it downloaded in about 20 seconds for me. How large of a file are you getting?

@Josh-XT
Copy link
Owner

Josh-XT commented Aug 13, 2023

I just added the model to the repo, waiting on the build to finish but that should hopefully resolve this issue.

@mongolu
Copy link
Contributor Author

mongolu commented Aug 13, 2023

This would be nice.

I've retried now v.1.3.95 (after deleting container and images and rebuild them) with website learning at it throws:

agixt-agixt-1                    |   File "/agixt/Embedding.py", line 31, in get_embedder
agixt-agixt-1                    |     embed = embedding_functions.ONNXMiniLM_L6_V2(DOWNLOAD_PATH=os.getcwd())
agixt-agixt-1                    | TypeError: ONNXMiniLM_L6_V2.__init__() got an unexpected keyword argument 'DOWNLOAD_PATH'

It's the same for GitHub Repository.

For file learning it only throws:
agixt-agixt-1 | INFO: 172.18.0.5:47078 - "POST /api/agent/Starchat/learn/file HTTP/1.1" 500 Internal Server Error

@Josh-XT
Copy link
Owner

Josh-XT commented Aug 13, 2023

I should have that error fixed in the latest AGiXT build for v1.3.96 that just finished.

I also put it in a pull request with Chroma that will help. We need to have the tar.gz and extracted onnx folder in the repo for it to work properly currently, having one or the other wasn't working. chroma-core/chroma#976

@mongolu
Copy link
Contributor Author

mongolu commented Aug 13, 2023

Thank you, it's ok now.

@mongolu mongolu closed this as completed Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Needs labels assigned. type | report | bug Confirmed bug in source code.
Projects
None yet
Development

No branches or pull requests

2 participants