winglian commited on
Commit
a01b998
1 Parent(s): 33e1170

Update deps 202401 (#1204) [skip ci]

Browse files

* update deps

* xformers fix too

Files changed (2) hide show
  1. requirements.txt +2 -4
  2. setup.py +2 -2
requirements.txt CHANGED
@@ -1,6 +1,6 @@
1
  --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/
2
  packaging==23.2
3
- peft==0.7.0
4
  transformers==4.37.0
5
  tokenizers==0.15.0
6
  bitsandbytes>=0.41.1
@@ -15,16 +15,14 @@ sentencepiece
15
  wandb
16
  einops
17
  xformers==0.0.22
18
- optimum==1.13.2
19
  hf_transfer
20
  colorama
21
  numba
22
  numpy>=1.24.4
23
  mlflow
24
  # qlora things
25
- bert-score==0.3.13
26
  evaluate==0.4.0
27
- rouge-score==0.1.2
28
  scipy
29
  scikit-learn==1.2.2
30
  pynvml
 
1
  --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/
2
  packaging==23.2
3
+ peft==0.7.1
4
  transformers==4.37.0
5
  tokenizers==0.15.0
6
  bitsandbytes>=0.41.1
 
15
  wandb
16
  einops
17
  xformers==0.0.22
18
+ optimum==1.16.2
19
  hf_transfer
20
  colorama
21
  numba
22
  numpy>=1.24.4
23
  mlflow
24
  # qlora things
 
25
  evaluate==0.4.0
 
26
  scipy
27
  scikit-learn==1.2.2
28
  pynvml
setup.py CHANGED
@@ -27,9 +27,9 @@ def parse_requirements():
27
 
28
  try:
29
  torch_version = version("torch")
30
- if torch_version.startswith("2.1.1"):
31
  _install_requires.pop(_install_requires.index("xformers==0.0.22"))
32
- _install_requires.append("xformers==0.0.23")
33
  except PackageNotFoundError:
34
  pass
35
 
 
27
 
28
  try:
29
  torch_version = version("torch")
30
+ if torch_version.startswith("2.1."):
31
  _install_requires.pop(_install_requires.index("xformers==0.0.22"))
32
+ _install_requires.append("xformers>=0.0.23")
33
  except PackageNotFoundError:
34
  pass
35