source instead of exec in run-readme-pr-macos.yml #2602
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run the README instructions - with stories | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
test-readme-any: | |
permissions: | |
id-token: write | |
contents: read | |
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | |
with: | |
runner: linux.g5.4xlarge.nvidia.gpu | |
gpu-arch-type: cuda | |
gpu-arch-version: "12.4" | |
timeout: 60 | |
script: | | |
echo "::group::Print machine info and try install pip and/or pip3" | |
set -x | |
which pip || true | |
which pip3 || true | |
which conda || true | |
apt-get install pip3 pip || true | |
which pip || true | |
which pip3 || true | |
which conda || true | |
uname -a | |
echo "::endgroup::" | |
which pip || true | |
which pip3 || true | |
which conda || true | |
.ci/scripts/run-docs readme | |
echo "::group::Completion" | |
echo "tests complete" | |
echo "*******************************************" | |
echo "::endgroup::" | |
test-readme-cpu: | |
permissions: | |
id-token: write | |
contents: read | |
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | |
with: | |
runner: linux.g5.4xlarge.nvidia.gpu | |
gpu-arch-type: cuda | |
gpu-arch-version: "12.4" | |
timeout: 60 | |
script: | | |
echo "::group::Print machine info and try install pip and/or pip3" | |
set -x | |
apt-get install pip3 pip || true | |
uname -a | |
which pip || true | |
which pip3 || true | |
which conda || true | |
echo "::endgroup::" | |
TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs readme | |
echo "::group::Completion" | |
echo "tests complete" | |
echo "*******************************************" | |
echo "::endgroup::" | |
test-quantization-any: | |
permissions: | |
id-token: write | |
contents: read | |
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | |
with: | |
runner: linux.g5.4xlarge.nvidia.gpu | |
gpu-arch-type: cuda | |
gpu-arch-version: "12.4" | |
timeout: 60 | |
script: | | |
echo "::group::Print machine info and try install pip and/or pip3" | |
set -x | |
apt-get install pip3 pip || true | |
uname -a | |
echo "::endgroup::" | |
.ci/scripts/run-docs quantization | |
echo "::group::Completion" | |
echo "tests complete" | |
echo "*******************************************" | |
echo "::endgroup::" | |
test-quantization-cpu: | |
permissions: | |
id-token: write | |
contents: read | |
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | |
with: | |
runner: linux.g5.4xlarge.nvidia.gpu | |
gpu-arch-type: cuda | |
gpu-arch-version: "12.4" | |
timeout: 60 | |
script: | | |
echo "::group::Print machine info and try install pip and/or pip3" | |
set -x | |
apt-get install pip3 pip || true | |
uname -a | |
echo "::endgroup::" | |
TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs quantization | |
test-gguf-any: | |
permissions: | |
id-token: write | |
contents: read | |
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | |
with: | |
runner: linux.g5.4xlarge.nvidia.gpu | |
gpu-arch-type: cuda | |
gpu-arch-version: "12.4" | |
timeout: 60 | |
script: | | |
echo "::group::Print machine info" | |
uname -a | |
echo "::endgroup::" | |
# failing | |
# .ci/scripts/run-docs gguf | |
echo "::group::Completion" | |
echo "tests complete" | |
echo "*******************************************" | |
echo "::endgroup::" | |
test-gguf-cpu: | |
permissions: | |
id-token: write | |
contents: read | |
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | |
with: | |
runner: linux.g5.4xlarge.nvidia.gpu | |
gpu-arch-type: cuda | |
gpu-arch-version: "12.4" | |
timeout: 60 | |
script: | | |
echo "::group::Print machine info" | |
uname -a | |
echo "::endgroup::" | |
# failing | |
# TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs gguf | |
echo "::group::Completion" | |
echo "tests complete" | |
echo "*******************************************" | |
echo "::endgroup::" | |
test-advanced-any: | |
permissions: | |
id-token: write | |
contents: read | |
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | |
with: | |
runner: linux.g5.4xlarge.nvidia.gpu | |
gpu-arch-type: cuda | |
gpu-arch-version: "12.4" | |
timeout: 60 | |
script: | | |
echo "::group::Print machine info" | |
uname -a | |
echo "::endgroup::" | |
# failing | |
# .ci/scripts/run-docs advanced | |
echo "::group::Completion" | |
echo "tests complete" | |
echo "*******************************************" | |
echo "::endgroup::" | |
test-advanced-cpu: | |
permissions: | |
id-token: write | |
contents: read | |
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | |
with: | |
runner: linux.g5.4xlarge.nvidia.gpu | |
gpu-arch-type: cuda | |
gpu-arch-version: "12.4" | |
timeout: 60 | |
script: | | |
echo "::group::Print machine info" | |
uname -a | |
echo "::endgroup::" | |
# failing | |
# TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs advanced | |
echo "::group::Completion" | |
echo "tests complete" | |
echo "*******************************************" | |
echo "::endgroup::" | |
test-evaluation-any: | |
permissions: | |
id-token: write | |
contents: read | |
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | |
with: | |
runner: linux.g5.4xlarge.nvidia.gpu | |
gpu-arch-type: cuda | |
gpu-arch-version: "12.4" | |
timeout: 60 | |
script: | | |
echo "::group::Print machine info" | |
uname -a | |
echo "::endgroup::" | |
# .ci/scripts/run-docs evaluation | |
echo "::group::Completion" | |
echo "tests complete" | |
echo "*******************************************" | |
echo "::endgroup::" | |
test-evaluation-cpu: | |
permissions: | |
id-token: write | |
contents: read | |
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | |
with: | |
runner: linux.g5.4xlarge.nvidia.gpu | |
gpu-arch-type: cuda | |
gpu-arch-version: "12.4" | |
timeout: 60 | |
script: | | |
echo "::group::Print machine info" | |
uname -a | |
echo "::endgroup::" | |
# TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs evaluation | |
echo "::group::Completion" | |
echo "tests complete" | |
echo "*******************************************" | |
echo "::endgroup::" | |
test-multimodal-any: | |
permissions: | |
id-token: write | |
contents: read | |
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | |
with: | |
runner: linux.g5.4xlarge.nvidia.gpu | |
gpu-arch-type: cuda | |
gpu-arch-version: "12.4" | |
timeout: 60 | |
script: | | |
echo "::group::Print machine info" | |
uname -a | |
echo "::endgroup::" | |
.ci/scripts/run-docs multimodal | |
echo "::group::Completion" | |
echo "tests complete" | |
echo "*******************************************" | |
echo "::endgroup::" | |
test-multimodal-cpu: | |
permissions: | |
id-token: write | |
contents: read | |
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | |
with: | |
runner: linux.g5.4xlarge.nvidia.gpu | |
gpu-arch-type: cuda | |
gpu-arch-version: "12.4" | |
timeout: 60 | |
script: | | |
echo "::group::Print machine info" | |
uname -a | |
echo "::endgroup::" | |
TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs multimodal | |
test-native-any: | |
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main | |
with: | |
runner: linux.g5.4xlarge.nvidia.gpu | |
gpu-arch-type: cuda | |
gpu-arch-version: "12.1" | |
timeout: 60 | |
script: | | |
echo "::group::Print machine info" | |
uname -a | |
echo "::endgroup::" | |
echo "::group::Install newer objcopy that supports --set-section-alignment" | |
yum install -y devtoolset-10-binutils | |
export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH | |
echo "::endgroup::" | |
.ci/scripts/run-docs native | |
echo "::group::Completion" | |
echo "tests complete" | |
echo "*******************************************" | |
echo "::endgroup::" | |
test-native-cpu: | |
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main | |
with: | |
runner: linux.g5.4xlarge.nvidia.gpu | |
gpu-arch-type: cuda | |
gpu-arch-version: "12.1" | |
timeout: 60 | |
script: | | |
echo "::group::Print machine info" | |
uname -a | |
echo "::endgroup::" | |
echo "::group::Install newer objcopy that supports --set-section-alignment" | |
yum install -y devtoolset-10-binutils | |
export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH | |
echo "::endgroup::" | |
TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs native | |
test-distributed-cuda: | |
permissions: | |
id-token: write | |
contents: read | |
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | |
with: | |
runner: linux.g5.4xlarge.nvidia.gpu | |
gpu-arch-type: cuda | |
gpu-arch-version: "12.4" | |
timeout: 60 | |
script: | | |
echo "::group::Print machine info" | |
uname -a | |
echo "::endgroup::" | |
.ci/scripts/run-docs distributed | |
echo "::group::Completion" | |
echo "tests complete" | |
echo "*******************************************" | |
echo "::endgroup::" |