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

Compatibility Issues with httpx Version and GPU/CPU Behavior #31

Open
jia-shan opened this issue Dec 9, 2024 · 1 comment
Open

Compatibility Issues with httpx Version and GPU/CPU Behavior #31

jia-shan opened this issue Dec 9, 2024 · 1 comment

Comments

@jia-shan
Copy link

jia-shan commented Dec 9, 2024

I encountered the following compatibility issues when running the run_rag.py script in an environment created with rye:

  1. httpx Version Conflict:

    • The environment works fine for processing and indexing tasks.
    • However, when running run_rag.py, the script requires httpx to be downgraded to 0.27.2 for it to work.
      (Originally at 0.28.0, this error appeared: ImportError: cannot import name 'VerifyTypes' from 'httpx._types'.)
    • Downgrading httpx to versions smaller than 0.25.0 causes conflicts.
  2. GPU/CPU Behavior with transformers:

    • If the desired behavior is to use the CPU by default, transformers==4.46.0 is compatible.
    • To use the GPU by default, it works only with transformers==4.47.0 (on my laptop at least).

Suggestions:

  • It might be beneficial to freeze the versions of all libraries to avoid these issues.
  • After downgrading the libraries, everything worked fine, but I do not know if the problem is system-dependent.
  • Additionally, I noticed that the requirements.txt files are not updated, so it might be better to remove them

Distributive system: Ubuntu 24.04.1 LTS

@Stefanstud
Copy link
Collaborator

The issue should be fixed - master has been updated. We are also planning to release this as a PyPI package soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants