Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 8e2ca2d

Browse files
authored
Add support for extracting distributed inference tests in run-docs
Add support for extracting distributed inference tests in run-docs
1 parent 3be38cc commit 8e2ca2d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.ci/scripts/run-docs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,20 @@ if [ "$1" == "native" ]; then
125125
bash -x ./run-native.sh
126126
echo "::endgroup::"
127127
fi
128+
129+
if [ "$1" == "distributed" ]; then
130+
131+
echo "::group::Create script to run distributed"
132+
python3 torchchat/utils/scripts/updown.py --file docs/distributed.md > ./run-distributed.sh
133+
# for good measure, if something happened to updown processor,
134+
# and it did not error out, fail with an exit 1
135+
echo "exit 1" >> ./run-distributed.sh
136+
echo "::endgroup::"
137+
138+
echo "::group::Run distributed"
139+
echo "*******************************************"
140+
cat ./run-distributed.sh
141+
echo "*******************************************"
142+
bash -x ./run-distributed.sh
143+
echo "::endgroup::"
144+
fi

0 commit comments

Comments
 (0)