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

Not able to run source code #636

Open
2 of 4 tasks
nirvitarka opened this issue Oct 8, 2024 · 0 comments
Open
2 of 4 tasks

Not able to run source code #636

nirvitarka opened this issue Oct 8, 2024 · 0 comments

Comments

@nirvitarka
Copy link

System Info

OS version: Ubuntu 22.04
Rust version (if self-compiling, cargo version): Cargo 1.75.0
Model being used (curl 127.0.0.1:8080/info | jq):
If local model please explicit the kind of model and/or equivalents.
Hardware used (GPUs, how many, on which cloud) (nvidia-smi):1 gpu on AWS (g4dn.xlarge instance)
Deployment specificities (Kubernetes, EKS, AKS, any particular deployments): Local source code
The current version being used: latest clone from git

Information

  • Docker
  • The CLI directly

Tasks

  • An officially supported command
  • My own modifications

Reproduction

  1. Install rust using curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  2. Clone latest source code using git clone https://github.com/predibase/lorax.git
  3. Following instructions formhttps://loraexchange.ai/getting_started/local/
  4. Run below commands PROTOC_ZIP=protoc-21.12-linux-x86_64.zip curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v21.12/$PROTOC_ZIP sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*' rm -f $PROTOC_ZIP
  5. Run sudo apt-get install libssl-dev gcc -y
  6. Run cd lorax
  7. Run BUILD_EXTENSIONS=True make install
  8. Error is
BUILD_EXTENSIONS=True make install
cd server && make install
make[1]: Entering directory '/home/ubuntu/lorax/server'
# Compile protos
pip install grpcio-tools==1.51.1 mypy-protobuf==3.4.0 'types-protobuf>=3.20.4' --no-cache-dir
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: grpcio-tools==1.51.1 in /home/ubuntu/.local/lib/python3.10/site-packages (1.51.1)
Requirement already satisfied: mypy-protobuf==3.4.0 in /home/ubuntu/.local/lib/python3.10/site-packages (3.4.0)
Requirement already satisfied: types-protobuf>=3.20.4 in /home/ubuntu/.local/lib/python3.10/site-packages (5.28.0.20240924)
Requirement already satisfied: protobuf<5.0dev,>=4.21.6 in /home/ubuntu/.local/lib/python3.10/site-packages (from grpcio-tools==1.51.1) (4.25.5)
Requirement already satisfied: grpcio>=1.51.1 in /home/ubuntu/.local/lib/python3.10/site-packages (from grpcio-tools==1.51.1) (1.66.2)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from grpcio-tools==1.51.1) (59.6.0)
mkdir lorax_server/pb || true
mkdir: cannot create directory ‘lorax_server/pb’: File exists
python -m grpc_tools.protoc -I../proto --python_out=lorax_server/pb \
        --grpc_python_out=lorax_server/pb --mypy_out=lorax_server/pb ../proto/generate.proto
make[1]: python: No such file or directory
make[1]: *** [Makefile:15: gen-server] Error 127
make[1]: Leaving directory '/home/ubuntu/lorax/server'
make: *** [Makefile:2: install-server] Error 2

Expected behavior

Expecting the source code to be built & executed without conda

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

1 participant