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

Local setup using Conda #2057

Open
nopperl opened this issue May 6, 2024 · 0 comments
Open

Local setup using Conda #2057

nopperl opened this issue May 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@nopperl
Copy link
Contributor

nopperl commented May 6, 2024

It might make sense to add the option of using Conda to setup the local dev environment. It should make it easier for contributors as it's cross-platform and doesn't require root access.
To save people who want to do this the hassle of finding all the packages, here's the environment.yaml I used:

name: tabby
channels:
  - conda-forge
  - defaults
  - nvidia/label/cuda-11.8.0
dependencies:
  - cmake>=3.18
  - compilers
  - cuda
  - git
  - gxx=11
  - libopenblas
  - openssl
  - pip
  - protobuf
  - python
  - rust
  - sysroot_linux-64>=2.17

(The cuda package can be removed if CUDA support is not required.)

The Conda env can then be created and activated using:

conda create -f environment.yaml
conda activate tabby

Note: the following env vars need to be set when building tabby:

OPENSSL_INCLUDE_DIR=$CONDA_PREFIX/include/openssl
OPENSSL_LIB_DIR=$CONDA_PREFIX/lib
LD_LIBRARY_PATH=$CONDA_PREFIX/lib/stubs:$CONDA_PREFIX/lib
LIBRARY_PATH=$CONDA_PREFIX/lib/stubs:$CONDA_PREFIX/lib

Please reply with a 👍 if you want this feature.

@nopperl nopperl added the enhancement New feature or request label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant