@@ -27,20 +27,33 @@ jobs:
27
27
export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH
28
28
echo "::endgroup::"
29
29
30
- echo "::group::Create script to run README"
31
- python3 scripts/updown.py --create-sections --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
32
- # for good measure, if something happened to updown processor,
33
- # and it did not error out, fail with an exit 1
34
- echo "exit 1" >> ./run-readme.sh
35
- echo "::endgroup::"
30
+ .ci/scripts/run-docs readme
36
31
37
- echo "::group::Run README"
38
- echo "*******************************************"
39
- cat ./run-readme.sh
32
+ echo "::group::Completion"
33
+ echo "tests complete"
40
34
echo "*******************************************"
41
- bash -x ./run-readme.sh
42
35
echo "::endgroup::"
43
36
37
+ test-readme-cpu :
38
+ uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
39
+ with :
40
+ runner : linux.g5.4xlarge.nvidia.gpu
41
+ secrets-env : " HF_TOKEN_PERIODIC"
42
+ gpu-arch-type : cuda
43
+ gpu-arch-version : " 12.1"
44
+ timeout : 60
45
+ script : |
46
+ echo "::group::Print machine info"
47
+ uname -a
48
+ echo "::endgroup::"
49
+
50
+ echo "::group::Install newer objcopy that supports --set-section-alignment"
51
+ yum install -y devtoolset-10-binutils
52
+ export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH
53
+ echo "::endgroup::"
54
+
55
+ TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs readme
56
+
44
57
echo "::group::Completion"
45
58
echo "tests complete"
46
59
echo "*******************************************"
@@ -63,20 +76,32 @@ jobs:
63
76
export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH
64
77
echo "::endgroup::"
65
78
66
- echo "::group::Create script to run quantization"
67
- python3 scripts/updown.py --create-sections --file docs/quantization.md --replace llama3:stories15M --suppress huggingface-cli,HF_TOKEN > ./run-quantization.sh
68
- # for good measure, if something happened to updown processor,
69
- # and it did not error out, fail with an exit 1
70
- echo "exit 1" >> ./run-quantization.sh
71
- echo "::endgroup::"
79
+ .ci/scripts/run-docs quantization
72
80
73
- echo "::group::Run quantization"
74
- echo "*******************************************"
75
- cat ./run-quantization.sh
81
+ echo "::group::Completion"
82
+ echo "tests complete"
76
83
echo "*******************************************"
77
- bash -x ./run-quantization.sh
78
84
echo "::endgroup::"
79
85
86
+ test-quantization-cpu :
87
+ uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
88
+ with :
89
+ runner : linux.g5.4xlarge.nvidia.gpu
90
+ gpu-arch-type : cuda
91
+ gpu-arch-version : " 12.1"
92
+ timeout : 60
93
+ script : |
94
+ echo "::group::Print machine info"
95
+ uname -a
96
+ echo "::endgroup::"
97
+
98
+ echo "::group::Install newer objcopy that supports --set-section-alignment"
99
+ yum install -y devtoolset-10-binutils
100
+ export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH
101
+ echo "::endgroup::"
102
+
103
+ TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs quantization
104
+
80
105
test-gguf-any :
81
106
uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
82
107
secrets : inherit
0 commit comments