kikocis/llama-stack public
Changesets · Branches · Tags · Compare
| Changeset | 0accf0976683afb3683a422537179857fb12ffe85b59d1c1ef7892e3e36a4d03 |
|---|---|
| Author | Ashwin Bharambe <ashwin.bharambe@gmail.com> · 2024-09-24 10:10 -07:00 |
| Committer | Ashwin Bharambe <ashwin.bharambe@gmail.com> · 2024-09-24 10:12 -07:00 |
| Parents | 4c775f673340 |
2 files changed
modified README.md +1 −1
| @@ -55,7 +55,7 @@ | ||
| 55 | 55 | conda activate stack |
| 56 | 56 | |
| 57 | 57 | cd llama-stack |
| 58 | -pip install -e . | |
| 58 | +$CONDA_PREFIX/bin/pip install -e . | |
| 59 | 59 | ``` |
| 60 | 60 | |
| 61 | 61 | ## The Llama CLI |
modified llama_stack/distribution/build_conda_env.sh +7 −7
| @@ -77,8 +77,8 @@ | ||
| 77 | 77 | |
| 78 | 78 | if [ -n "$TEST_PYPI_VERSION" ]; then |
| 79 | 79 | # these packages are damaged in test-pypi, so install them first |
| 80 | - pip install fastapi libcst | |
| 81 | - pip install --extra-index-url https://test.pypi.org/simple/ llama-models==$TEST_PYPI_VERSION llama-stack==$TEST_PYPI_VERSION $pip_dependencies | |
| 80 | + $CONDA_PREFIX/bin/pip install fastapi libcst | |
| 81 | + $CONDA_PREFIX/bin/pip install --extra-index-url https://test.pypi.org/simple/ llama-models==$TEST_PYPI_VERSION llama-stack==$TEST_PYPI_VERSION $pip_dependencies | |
| 82 | 82 | else |
| 83 | 83 | # Re-installing llama-stack in the new conda environment |
| 84 | 84 | if [ -n "$LLAMA_STACK_DIR" ]; then |
| @@ -88,9 +88,9 @@ | ||
| 88 | 88 | fi |
| 89 | 89 | |
| 90 | 90 | printf "Installing from LLAMA_STACK_DIR: $LLAMA_STACK_DIR\n" |
| 91 | - pip install --no-cache-dir -e "$LLAMA_STACK_DIR" | |
| 91 | + $CONDA_PREFIX/bin/pip install --no-cache-dir -e "$LLAMA_STACK_DIR" | |
| 92 | 92 | else |
| 93 | - pip install --no-cache-dir llama-stack | |
| 93 | + $CONDA_PREFIX/bin/pip install --no-cache-dir llama-stack | |
| 94 | 94 | fi |
| 95 | 95 | |
| 96 | 96 | if [ -n "$LLAMA_MODELS_DIR" ]; then |
| @@ -100,14 +100,14 @@ | ||
| 100 | 100 | fi |
| 101 | 101 | |
| 102 | 102 | printf "Installing from LLAMA_MODELS_DIR: $LLAMA_MODELS_DIR\n" |
| 103 | - pip uninstall -y llama-models | |
| 104 | - pip install --no-cache-dir -e "$LLAMA_MODELS_DIR" | |
| 103 | + $CONDA_PREFIX/bin/pip uninstall -y llama-models | |
| 104 | + $CONDA_PREFIX/bin/pip install --no-cache-dir -e "$LLAMA_MODELS_DIR" | |
| 105 | 105 | fi |
| 106 | 106 | |
| 107 | 107 | # Install pip dependencies |
| 108 | 108 | if [ -n "$pip_dependencies" ]; then |
| 109 | 109 | printf "Installing pip dependencies: $pip_dependencies\n" |
| 110 | - pip install $pip_dependencies | |
| 110 | + $CONDA_PREFIX/bin/pip install $pip_dependencies | |
| 111 | 111 | fi |
| 112 | 112 | fi |
| 113 | 113 | } |