Skip to content

Commit 217cb72

Browse files
mikekgfbmalfet
authored andcommitted
Pip to pip3 (#504)
* remove macos-12 test * pip to pip3
1 parent da07eea commit 217cb72

File tree

3 files changed

+60
-60
lines changed

3 files changed

+60
-60
lines changed

.github/workflows/hqq-dtype.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
2828
echo "::group::Download checkpoints"
2929
# Install requirements
30-
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121
31-
pip install -r requirements.txt
32-
pip list
30+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121
31+
pip3 install -r requirements.txt
32+
pip3 list
3333
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
3434
echo "::endgroup::"
3535

.github/workflows/periodic.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ jobs:
4747
echo "$(uname -a)"
4848
- name: Install dependencies
4949
run: |
50-
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
51-
pip install -r requirements.txt
52-
pip list
50+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
51+
pip3 install -r requirements.txt
52+
pip3 list
5353
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
5454
- name: Download checkpoints
5555
run: |
@@ -81,9 +81,9 @@ jobs:
8181
echo "$(uname -a)"
8282
- name: Install dependencies
8383
run: |
84-
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
85-
pip install -r requirements.txt
86-
pip list
84+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
85+
pip3 install -r requirements.txt
86+
pip3 list
8787
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
8888
- name: Download checkpoints
8989
run: |
@@ -128,9 +128,9 @@ jobs:
128128
echo "::endgroup::"
129129
130130
echo "::group::Install required packages"
131-
pip install --progress-bar off --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121
132-
pip install -r ./requirements.txt
133-
pip list
131+
pip3 install --progress-bar off --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121
132+
pip3 install -r ./requirements.txt
133+
pip3 list
134134
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
135135
echo "::endgroup::"
136136

.github/workflows/pull.yml

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ jobs:
4646
echo "$(uname -a)"
4747
- name: Install dependencies
4848
run: |
49-
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
50-
pip install -r requirements.txt
51-
pip list
49+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
50+
pip3 install -r requirements.txt
51+
pip3 list
5252
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
5353
- name: Download checkpoints
5454
run: |
@@ -82,9 +82,9 @@ jobs:
8282
echo "$(uname -a)"
8383
- name: Install dependencies
8484
run: |
85-
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
86-
pip install -r requirements.txt
87-
pip list
85+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
86+
pip3 install -r requirements.txt
87+
pip3 list
8888
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
8989
- name: Download checkpoints
9090
run: |
@@ -117,9 +117,9 @@ jobs:
117117
echo "$(uname -a)"
118118
- name: Install dependencies
119119
run: |
120-
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
121-
pip install -r requirements.txt
122-
pip list
120+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
121+
pip3 install -r requirements.txt
122+
pip3 list
123123
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
124124
- name: Download checkpoints
125125
run: |
@@ -164,9 +164,9 @@ jobs:
164164
echo "::endgroup::"
165165
166166
echo "::group::Install required packages"
167-
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121
168-
pip install -r ./requirements.txt
169-
pip list
167+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121
168+
pip3 install -r ./requirements.txt
169+
pip3 list
170170
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
171171
echo "::endgroup::"
172172
@@ -206,9 +206,9 @@ jobs:
206206
echo "::endgroup::"
207207
208208
echo "::group::Install required packages"
209-
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121
210-
pip install -r ./requirements.txt
211-
pip list
209+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121
210+
pip3 install -r ./requirements.txt
211+
pip3 list
212212
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
213213
echo "::endgroup::"
214214
@@ -247,9 +247,9 @@ jobs:
247247
echo "::endgroup::"
248248
249249
echo "::group::Install required packages"
250-
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121
251-
pip install -r ./requirements.txt
252-
pip list
250+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121
251+
pip3 install -r ./requirements.txt
252+
pip3 list
253253
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
254254
echo "::endgroup::"
255255
@@ -287,12 +287,12 @@ jobs:
287287
fi
288288
- name: Install requirements
289289
run: |
290-
echo "Intalling pip packages"
291-
pip install wheel
292-
pip install cmake
293-
pip install ninja
294-
pip install zstd
295-
pip install -r requirements.txt
290+
echo "Intalling pip3 packages"
291+
pip3 install wheel
292+
pip3 install cmake
293+
pip3 install ninja
294+
pip3 install zstd
295+
pip3 install -r requirements.txt
296296
297297
echo "Executorch: cloning"
298298
mkdir etorch
@@ -436,9 +436,9 @@ jobs:
436436
fi
437437
- name: Install requirements
438438
run: |
439-
echo "Installing pip packages"
440-
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
441-
pip install -r requirements.txt
439+
echo "Installing pip3 packages"
440+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
441+
pip3 install -r requirements.txt
442442
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
443443
444444
- name: Download Stories files
@@ -477,7 +477,7 @@ jobs:
477477
set -x
478478
# NS: Remove previous installation of torch first
479479
# as this script does not isntall anything into conda env but rather as system dep
480-
pip uninstall -y torch || true
480+
pip3 uninstall -y torch || true
481481
set -eou pipefail
482482
483483
echo "::group::Print machine info"
@@ -488,10 +488,10 @@ jobs:
488488
489489
echo "::group::Install requirements"
490490
# Install requirements
491-
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
491+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
492492
ls -la
493493
pwd
494-
pip install -r requirements.txt
494+
pip3 install -r requirements.txt
495495
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
496496
echo "::endgroup::"
497497
@@ -552,10 +552,10 @@ jobs:
552552
fi
553553
- name: Install requirements
554554
run: |
555-
echo "Intalling pip packages"
556-
pip install gguf
557-
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
558-
pip install -r requirements.txt
555+
echo "Intalling pip3 packages"
556+
pip3 install gguf
557+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
558+
pip3 install -r requirements.txt
559559
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
560560
561561
git clone https://github.com/ggerganov/llama.cpp.git
@@ -586,7 +586,7 @@ jobs:
586586
set -x
587587
# NS: Remove previous installation of torch first
588588
# as this script does not isntall anything into conda env but rather as system dep
589-
pip uninstall -y torch || true
589+
pip3 uninstall -y torch || true
590590
591591
set -eou pipefail
592592
@@ -598,10 +598,10 @@ jobs:
598598
599599
echo "::group::Install requirements"
600600
# Install requirements
601-
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
601+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
602602
ls -la
603603
pwd
604-
pip install -r requirements.txt
604+
pip3 install -r requirements.txt
605605
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
606606
echo "::endgroup::"
607607
@@ -657,9 +657,9 @@ jobs:
657657
fi
658658
- name: Install requirements
659659
run: |
660-
pip install gguf
661-
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
662-
pip install -r requirements.txt
660+
pip3 install gguf
661+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
662+
pip3 install -r requirements.txt
663663
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
664664
- name: Download GGUF
665665
run: |
@@ -731,8 +731,8 @@ jobs:
731731
fi
732732
- name: Install requirements
733733
run: |
734-
echo "Intalling pip packages"
735-
pip install -r requirements.txt
734+
echo "Intalling pip3 packages"
735+
pip3 install -r requirements.txt
736736
737737
export TORCHCHAT_ROOT=${PWD}
738738
bash scripts/build_native.sh et
@@ -780,9 +780,9 @@ jobs:
780780
echo "$(uname -a)"
781781
- name: Install dependencies
782782
run: |
783-
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
784-
pip install -r requirements.txt
785-
pip list
783+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
784+
pip3 install -r requirements.txt
785+
pip3 list
786786
787787
bash scripts/build_native.sh aoti
788788
@@ -821,10 +821,10 @@ jobs:
821821
fi
822822
git submodule sync
823823
git submodule update --init
824-
echo "Intalling pip packages"
825-
pip install cmake --upgrade
824+
echo "Intalling pip3 packages"
825+
pip3 install cmake --upgrade
826826
cmake --version
827-
pip install -r requirements.txt
827+
pip3 install -r requirements.txt
828828
export TORCHCHAT_ROOT=${PWD}
829829
pushd /tmp
830830
wget https://dl.google.com/android/repository/android-ndk-r26c-linux.zip

0 commit comments

Comments
 (0)