@@ -25,29 +25,17 @@ jobs:
25
25
sysctl machdep.cpu.core_count
26
26
echo "::endgroup::"
27
27
28
- # echo "::group::Install newer objcopy that supports --set-section-alignment"
29
- # yum install -y devtoolset-10-binutils
30
- # export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH
31
- # echo "::endgroup::"
32
-
33
- echo "::group::Create script to run README"
34
- python3 scripts/updown.py --file README.md --replace 'llama3:stories15M,-l 3:-l 2,meta-llama/Meta-Llama-3-8B-Instruct:stories15M' --suppress huggingface-cli,HF_TOKEN > ./run-readme.sh
35
- # for good measure, if something happened to updown processor,
36
- # and it did not error out, fail with an exit 1
37
- echo "exit 1" >> ./run-readme.sh
38
- echo "::endgroup::"
39
-
40
- echo "::group::Run README"
41
- echo "*******************************************"
42
- cat ./run-readme.sh
28
+ .ci/scripts/run-docs readme
29
+
30
+ echo "::group::Completion"
31
+ echo "tests complete"
43
32
echo "*******************************************"
44
- bash -x ./run-readme.sh
45
33
echo "::endgroup::"
46
-
34
+
47
35
test-quantization-mps-macos :
48
36
uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
49
37
with :
50
- runner : macos-m1-stable # neeps MPS, was macos-m1-stable
38
+ runner : macos-m1-14
51
39
script : |
52
40
set -x
53
41
conda create -y -n test-quantization-mps-macos python=3.10.11
@@ -64,25 +52,62 @@ jobs:
64
52
sysctl machdep.cpu.core_count
65
53
echo "::endgroup::"
66
54
67
- # echo "::group::Install newer objcopy that supports --set-section-algnment"
68
- # yum install -y devtoolset-10-binutils
69
- # export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH
70
- # echo "::endgroup::"
71
-
72
- echo "::group::Create script to run quantization"
73
- python3 scripts/updown.py --file docs/quantization.md --replace llama3:stories15M --suppress huggingface-cli,HF_TOKEN > ./run-quantization.sh
74
- # for good measure, if something happened to updown processor,
75
- # and it did not error out, fail with an exit 1
76
- echo "exit 1" >> ./run-quantization.sh
77
- echo "::endgroup::"
78
-
79
- echo "::group::Run quantization"
55
+ .ci/scripts/run-docs quantization
56
+
57
+ echo "::group::Completion"
58
+ echo "tests complete"
80
59
echo "*******************************************"
81
- cat ./run-quantization.sh
60
+ echo "::endgroup::"
61
+
62
+ test-gguf-mps-macos :
63
+ uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
64
+ with :
65
+ runner : macos-m1-14 # neeps MPS, was macos-m1-stable
66
+ script : |
67
+ set -x
68
+ conda create -y -n test-quantization-mps-macos python=3.10.11
69
+ conda activate test-quantization-mps-macos
70
+ # NS: Remove previous installation of torch first
71
+ # as this script does not isntall anything into conda env
72
+ # but rather system dep
73
+ pip3 uninstall -y torch || true
74
+ set -eou pipefail
75
+
76
+ echo "::group::Print machine info"
77
+ uname -a
78
+ sysctl machdep.cpu.brand_string
79
+ sysctl machdep.cpu.core_count
80
+ echo "::endgroup::"
81
+
82
+ .ci/scripts/run-docs gguf
83
+
84
+ echo "::group::Completion"
85
+ echo "tests complete"
82
86
echo "*******************************************"
83
- bash -x ./run-quantization.sh
84
87
echo "::endgroup::"
85
-
88
+
89
+ test-advanced-mps-macos :
90
+ uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
91
+ with :
92
+ runner : macos-m1-14 # neeps MPS, was macos-m1-stable
93
+ script : |
94
+ set -x
95
+ conda create -y -n test-quantization-mps-macos python=3.10.11
96
+ conda activate test-quantization-mps-macos
97
+ # NS: Remove previous installation of torch first
98
+ # as this script does not isntall anything into conda env
99
+ # but rather system dep
100
+ pip3 uninstall -y torch || true
101
+ set -eou pipefail
102
+
103
+ echo "::group::Print machine info"
104
+ uname -a
105
+ sysctl machdep.cpu.brand_string
106
+ sysctl machdep.cpu.core_count
107
+ echo "::endgroup::"
108
+
109
+ .ci/scripts/run-docs advanced
110
+
86
111
echo "::group::Completion"
87
112
echo "tests complete"
88
113
echo "*******************************************"
0 commit comments