This repository was archived by the owner on Sep 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +61
-1
lines changed Expand file tree Collapse file tree 2 files changed +61
-1
lines changed Original file line number Diff line number Diff line change 9595if [ "$1" == "multimodal" ]; then
9696
9797 # Expecting that this might fail this test as-is, because
98- # it's the first on-pr test depending on githib secrets for access with HF token access
98+ # it's the first on-pr test depending on github secrets for access with HF token access
9999
100100 echo "::group::Create script to run multimodal"
101101 python3 torchchat/utils/scripts/updown.py --file docs/multimodal.md > ./run-multimodal.sh
@@ -111,3 +111,20 @@ if [ "$1" == "multimodal" ]; then
111111 bash -x ./run-multimodal.sh
112112 echo "::endgroup::"
113113fi
114+
115+ if [ "$1" == "native" ]; then
116+
117+ echo "::group::Create script to run native-execution"
118+ python3 torchchat/utils/scripts/updown.py --file docs/native-execution.md > ./run-native.sh
119+ # for good measure, if something happened to updown processor,
120+ # and it did not error out, fail with an exit 1
121+ echo "exit 1" >> ./run-native.sh
122+ echo "::endgroup::"
123+
124+ echo "::group::Run native-execution"
125+ echo "*******************************************"
126+ cat ./run-native.sh
127+ echo "*******************************************"
128+ bash -x ./run-native.sh
129+ echo "::endgroup::"
130+ fi
Original file line number Diff line number Diff line change @@ -287,3 +287,46 @@ jobs:
287287 echo "::endgroup::"
288288
289289 TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs multimodal
290+
291+ test-native-any :
292+ uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
293+ with :
294+ runner : linux.g5.4xlarge.nvidia.gpu
295+ gpu-arch-type : cuda
296+ gpu-arch-version : " 12.1"
297+ timeout : 60
298+ script : |
299+ echo "::group::Print machine info"
300+ uname -a
301+ echo "::endgroup::"
302+
303+ echo "::group::Install newer objcopy that supports --set-section-alignment"
304+ yum install -y devtoolset-10-binutils
305+ export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH
306+ echo "::endgroup::"
307+
308+ .ci/scripts/run-docs native
309+
310+ echo "::group::Completion"
311+ echo "tests complete"
312+ echo "*******************************************"
313+ echo "::endgroup::"
314+
315+ test-native-cpu :
316+ uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
317+ with :
318+ runner : linux.g5.4xlarge.nvidia.gpu
319+ gpu-arch-type : cuda
320+ gpu-arch-version : " 12.1"
321+ timeout : 60
322+ script : |
323+ echo "::group::Print machine info"
324+ uname -a
325+ echo "::endgroup::"
326+
327+ echo "::group::Install newer objcopy that supports --set-section-alignment"
328+ yum install -y devtoolset-10-binutils
329+ export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH
330+ echo "::endgroup::"
331+
332+ TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs native
You can’t perform that action at this time.
0 commit comments