Переглянути джерело

Added install from source commands with optional dependencies

Matthias Reso 1 рік тому
батько
коміт
e9d1e627a6
2 змінених файлів з 10 додано та 0 видалено
  1. 5 0
      CONTRIBUTING.md
  2. 5 0
      README.md

+ 5 - 0
CONTRIBUTING.md

@@ -38,6 +38,11 @@ We use **pytest** for our unit tests and to run them locally you need to install
 ```
 pip install --extra-index-url https://download.pytorch.org/whl/test/cu118 llama-recipes[tests]
 ```
+For development and contributing to llama-recipes please install from source with all optional dependencies:
+```
+pip install -U pip setuptools
+pip install --extra-index-url https://download.pytorch.org/whl/test/cu118 -e .[tests,auditnlg,vllm]
+```
 The unit tests can be found in the [tests](./tests/) folder and you can run them from the main directory using:
 ```
 python -m pytest tests/

+ 5 - 0
README.md

@@ -35,6 +35,11 @@ To install from source e.g. for development use this command. We're using hatchl
 pip install -U pip setuptools
 pip install --extra-index-url https://download.pytorch.org/whl/test/cu118 -e .
 ```
+For development and contributing to llama-recipes please install all optional dependencies:
+```
+pip install -U pip setuptools
+pip install --extra-index-url https://download.pytorch.org/whl/test/cu118 -e .[tests,auditnlg,vllm]
+```
 ## Install with optional dependencies
 Llama-recipes offers the installation of optional packages. There are three optional dependency groups.
 To run the unit tests we can install the required dependencies with: