Kaynağa Gözat

remove --find-links which is unsupported by packaging backends; Update documentation how to retireve correct pytorch version

Matthias Reso 1 yıl önce
ebeveyn
işleme
1c473b6e7c
2 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 2 2
      README.md
  2. 1 1
      requirements.txt

+ 2 - 2
README.md

@@ -27,13 +27,13 @@ Llama-recipes provides a pip distribution for easy install and usage in other pr
 
 ## Install with pip
 ```
-pip install llama-recipes
+pip install --extra-index-url https://download.pytorch.org/whl/test/cu118 llama-recipes
 ```
 ## Install from source
 To install from source e.g. for development use this command. We're using hatchling as our build backend which requires an up-to-date pip as well as setuptools package.
 ```
 pip install -U pip setuptools
-pip install -e .
+pip install -e --extra-index-url https://download.pytorch.org/whl/test/cu118 .
 ```
 ⚠️ **Note** ⚠️  Some features (especially fine-tuning with FSDP + PEFT) currently require PyTorch nightlies to be installed. Please make sure to install the nightlies if you're using these features following [this guide](https://pytorch.org/get-started/locally/).
 

+ 1 - 1
requirements.txt

@@ -1,4 +1,4 @@
---index-url https://download.pytorch.org/whl/test/cu118 torch 
+torch>=2.0.1
 accelerate
 appdirs
 loralib