Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Llama Recipes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
meta-llama
Llama Recipes
Commits
201daff2
"packages/llamaindex/src/tests" did not exist on "c2a345ebb124a6b27999553d5a847ca18ab3c1c3"
Unverified
Commit
201daff2
authored
1 year ago
by
Suraj Subramanian
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Add note on CUDA version + remove 'test' from pytorch whl url
parent
37c8f722
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+9
-6
9 additions, 6 deletions
README.md
with
9 additions
and
6 deletions
README.md
+
9
−
6
View file @
201daff2
...
...
@@ -38,24 +38,27 @@ Some features (especially fine-tuning with FSDP + PEFT) currently require PyTorc
### Installing
Llama-recipes provides a pip distribution for easy install and usage in other projects. Alternatively, it can be installed from source.
> [!NOTE]
> Ensure you use the correct CUDA version (from `nvidia-smi`) when installing the PyTorch wheels. Here we are using 11.8 as `cu118`
#### Install with pip
```
pip install --extra-index-url https://download.pytorch.org/whl/
test/
cu118 llama-recipes
pip install --extra-index-url https://download.pytorch.org/whl/cu118 llama-recipes
```
#### 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:
```
pip install --extra-index-url https://download.pytorch.org/whl/
test/
cu118 llama-recipes[tests]
pip install --extra-index-url https://download.pytorch.org/whl/cu118 llama-recipes[tests]
```
For the vLLM example we need additional requirements that can be installed with:
```
pip install --extra-index-url https://download.pytorch.org/whl/
test/
cu118 llama-recipes[vllm]
pip install --extra-index-url https://download.pytorch.org/whl/cu118 llama-recipes[vllm]
```
To use the sensitive topics safety checker install with:
```
pip install --extra-index-url https://download.pytorch.org/whl/
test/
cu118 llama-recipes[auditnlg]
pip install --extra-index-url https://download.pytorch.org/whl/cu118 llama-recipes[auditnlg]
```
Optional dependencies can also be combines with [option1,option2].
...
...
@@ -65,14 +68,14 @@ To install from source e.g. for development use these commands. We're using hatc
git clone git@github.com:meta-llama/llama-recipes.git
cd llama-recipes
pip install -U pip setuptools
pip install --extra-index-url https://download.pytorch.org/whl/
test/
cu118 -e .
pip install --extra-index-url https://download.pytorch.org/whl/cu118 -e .
```
For development and contributing to llama-recipes please install all optional dependencies:
```
git clone git@github.com:meta-llama/llama-recipes.git
cd llama-recipes
pip install -U pip setuptools
pip install --extra-index-url https://download.pytorch.org/whl/
test/
cu118 -e .[tests,auditnlg,vllm]
pip install --extra-index-url https://download.pytorch.org/whl/cu118 -e .[tests,auditnlg,vllm]
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment