@@ -46,14 +46,15 @@ jobs:
46
46
echo "$(uname -a)"
47
47
- name : Install dependencies
48
48
run : |
49
- pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
49
+ pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
50
50
pip install -r requirements.txt
51
51
pip list
52
52
- name : Download checkpoints
53
53
run : |
54
54
bash ${TORCHCHAT_ROOT}/.ci/scripts/wget_checkpoint.sh ${{ matrix.repo_name }} "${{ matrix.resources }}"
55
55
- name : Run validation
56
56
run : |
57
+ python3 -c "import torch;print(torch.__version__, torch.version.git_version)"
57
58
pushd ${TORCHCHAT_ROOT}
58
59
bash .ci/scripts/convert_checkpoint.sh ${REPO_NAME}
59
60
bash .ci/scripts/validate.sh "./checkpoints/${REPO_NAME}/model.pth" "cpu" "compile"
79
80
echo "$(uname -a)"
80
81
- name : Install dependencies
81
82
run : |
82
- pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
83
+ pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
83
84
pip install -r requirements.txt
84
85
pip list
85
86
- name : Download checkpoints
@@ -123,7 +124,7 @@ jobs:
123
124
echo "::endgroup::"
124
125
125
126
echo "::group::Install required packages"
126
- pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121
127
+ pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121
127
128
pip install -r ./requirements.txt
128
129
pip list
129
130
echo "::endgroup::"
@@ -157,7 +158,7 @@ jobs:
157
158
echo "::endgroup::"
158
159
159
160
echo "::group::Install required packages"
160
- pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121
161
+ pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121
161
162
pip install -r ./requirements.txt
162
163
pip list
163
164
echo "::endgroup::"
@@ -326,7 +327,7 @@ jobs:
326
327
- name : Install requirements
327
328
run : |
328
329
echo "Installing pip packages"
329
- pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
330
+ pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
330
331
pip install -r requirements.txt
331
332
332
333
- name : Download Stories files
@@ -372,7 +373,7 @@ jobs:
372
373
fi
373
374
- name : Install requirements
374
375
run : |
375
- pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
376
+ pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
376
377
pip install -r requirements.txt
377
378
- name : Download checkpoints
378
379
run : |
@@ -436,19 +437,21 @@ jobs:
436
437
with :
437
438
runner : macos-m1-stable
438
439
script : |
440
+ set -x
441
+ # NS: Remove previous installation of torch first
442
+ # as this script does not isntall anything into conda env but rather as system dep
443
+ pip uninstall -y torch || true
439
444
set -eou pipefail
440
445
441
446
echo "::group::Print machine info"
442
447
uname -a
443
- if [ $(uname -s) == Darwin ]; then
444
- sysctl machdep.cpu.brand_string
445
- sysctl machdep.cpu.core_count
446
- fi
448
+ sysctl machdep.cpu.brand_string
449
+ sysctl machdep.cpu.core_count
447
450
echo "::endgroup::"
448
451
449
452
echo "::group::Install requirements"
450
453
# Install requirements
451
- pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
454
+ pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
452
455
ls -la
453
456
pwd
454
457
pip install -r requirements.txt
@@ -519,7 +522,7 @@ jobs:
519
522
run : |
520
523
echo "Intalling pip packages"
521
524
pip install gguf
522
- pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
525
+ pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
523
526
pip install -r requirements.txt
524
527
525
528
git clone https://github.com/ggerganov/llama.cpp.git
@@ -547,19 +550,22 @@ jobs:
547
550
with :
548
551
runner : macos-m1-stable
549
552
script : |
553
+ set -x
554
+ # NS: Remove previous installation of torch first
555
+ # as this script does not isntall anything into conda env but rather as system dep
556
+ pip uninstall -y torch || true
557
+
550
558
set -eou pipefail
551
559
552
560
echo "::group::Print machine info"
553
561
uname -a
554
- if [ $(uname -s) == Darwin ]; then
555
- sysctl machdep.cpu.brand_string
556
- sysctl machdep.cpu.core_count
557
- fi
562
+ sysctl machdep.cpu.brand_string
563
+ sysctl machdep.cpu.core_count
558
564
echo "::endgroup::"
559
565
560
566
echo "::group::Install requirements"
561
567
# Install requirements
562
- pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
568
+ pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
563
569
ls -la
564
570
pwd
565
571
pip install -r requirements.txt
@@ -624,7 +630,7 @@ jobs:
624
630
- name : Install requirements
625
631
run : |
626
632
pip install gguf
627
- pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
633
+ pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
628
634
pip install -r requirements.txt
629
635
- name : Download GGUF
630
636
run : |
0 commit comments