mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Add an Pipfile example for AMD GPU or CPU only users (#510)
* refactor: add Pipfile example to select various PyTorch package * Update README.md --------- Co-authored-by: Robert Brennan <accounts@rbren.io>
This commit is contained in:
parent
511afa12fe
commit
b609f0681b
36
Pipfile.torchidx
Normal file
36
Pipfile.torchidx
Normal file
@ -0,0 +1,36 @@
|
||||
[[source]]
|
||||
url = "https://pypi.org/simple"
|
||||
verify_ssl = true
|
||||
name = "pypi"
|
||||
|
||||
[[source]]
|
||||
url = "https://download.pytorch.org/whl/cpu"
|
||||
verify_ssl = true
|
||||
name = "pytorch"
|
||||
|
||||
[packages]
|
||||
torch = {version = "*", index = "pytorch"}
|
||||
datasets = "*"
|
||||
pandas = "*"
|
||||
litellm = "*"
|
||||
termcolor = "*"
|
||||
seaborn = "*"
|
||||
docker = "*"
|
||||
fastapi = "*"
|
||||
uvicorn = {extras = ["standard"], version = "*"}
|
||||
ruff = "*"
|
||||
mypy = "*"
|
||||
llama-index = "*"
|
||||
llama-index-vector-stores-chroma = "*"
|
||||
chromadb = "*"
|
||||
llama-index-embeddings-huggingface = "*"
|
||||
llama-index-embeddings-azure-openai = "*"
|
||||
llama-index-embeddings-ollama = "*"
|
||||
google-generativeai = "*"
|
||||
toml = "*"
|
||||
json_repair = "*"
|
||||
|
||||
[dev-packages]
|
||||
|
||||
[requires]
|
||||
python_version = "3.11"
|
||||
@ -47,6 +47,9 @@ If `pipenv` doesn't work for you, you can also run:
|
||||
python -m pipenv requirements > requirements.txt && python -m pip install -r requirements.txt
|
||||
```
|
||||
|
||||
If you're seeing installation errors due to `torch`, try using `Pipfile.torchidx` instead of `Pipfile`.
|
||||
Please consult the value of `--index-url` in [PyTorch install command browser](https://pytorch.org/get-started/locally/#start-locally) to find appropriate package index URL for you.
|
||||
|
||||
Then, in a second terminal, start the frontend:
|
||||
```bash
|
||||
cd frontend
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user