Cannot install needed Python library requirements

I have been working on building a custom RAG LLM using Langchain with a FAISS vector store and a HuggingFace model as the LLM, and I want to deploy it as an API using FastAPI. The project works fine locally, but when I try to deploy it onto Vercel I run into build issues where the needed libraries cannot be installed and I have no idea why. From what I’ve gathered in the error messages, the libraries that are giving Vercel problems are as follows:

accelerate==0.33.0
bitsandbytes==0.43.3
sentence-transformers==3.0.1
torchaudio==2.4.0
torch==2.3.0

Here is the full error message list, does anyone have any suggestions? Any help is greatly appreciated!

Error: Command failed: pip3.12 install --disable-pip-version-check --target . --upgrade -r /vercel/path0/requirements.txt
ERROR: Cannot install -r /vercel/path0/requirements.txt (line 1), -r /vercel/path0/requirements.txt (line 104), -r /vercel/path0/requirements.txt (line 11), -r /vercel/path0/requirements.txt (line 119) and torch==2.3.0 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Could it be related to this?

Hi Pauline,

Looking in my requirements file I don’t use FastHTML as a library. For extra help, here is a link to my requirements file in case there’s another library that’s known to cause issues: requirements file.