Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

source instead of exec in run-readme-pr-macos.yml #1476

Merged
merged 53 commits into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
b716bf6
Update run-readme-pr-macos.yml
mikekgfb Jan 24, 2025
b0deb2a
Update run-docs
mikekgfb Jan 24, 2025
35dbb95
Merge branch 'main' into patch-43
Jack-Khuu Jan 24, 2025
b7af6b9
Update README.md
mikekgfb Jan 24, 2025
6ea3d55
Update multimodal.md
mikekgfb Jan 24, 2025
278b3fc
Merge branch 'pytorch:main' into patch-43
mikekgfb Jan 24, 2025
2e6b5ae
Update ADVANCED-USERS.md
mikekgfb Jan 24, 2025
049418d
Merge branch 'main' into patch-43
mikekgfb Jan 24, 2025
52fd00b
Update native-execution.md
mikekgfb Jan 25, 2025
76f7edf
Update run-readme-pr-macos.yml
mikekgfb Jan 25, 2025
da9a92a
Update run-readme-pr-mps.yml
mikekgfb Jan 25, 2025
3e4ad3d
Update ADVANCED-USERS.md
mikekgfb Jan 25, 2025
c2cb227
Update run-readme-pr-macos.yml
mikekgfb Jan 25, 2025
72702f0
Update run-readme-pr-mps.yml
mikekgfb Jan 25, 2025
170729b
Merge branch 'main' into patch-43
mikekgfb Jan 27, 2025
79c4a23
Update run-docs
mikekgfb Jan 28, 2025
ed702af
Create cuda-32.json
mikekgfb Jan 28, 2025
286bb08
Create mobile-32.json
mikekgfb Jan 28, 2025
e04d175
Merge branch 'main' into patch-43
mikekgfb Jan 30, 2025
0e21e95
Update run-readme-pr.yml
mikekgfb Jan 30, 2025
e901c03
Update install_requirements.sh
mikekgfb Jan 31, 2025
684816a
Update install_requirements.sh
mikekgfb Jan 31, 2025
11dd083
Merge branch 'pytorch:main' into patch-43
mikekgfb Jan 31, 2025
b3c4b9e
Update README.md
mikekgfb Jan 31, 2025
ead5b6a
Update run-docs
mikekgfb Jan 31, 2025
835ae0e
Update run-readme-pr-macos.yml
mikekgfb Jan 31, 2025
30f6ba8
Update run-readme-pr-mps.yml
mikekgfb Jan 31, 2025
5e65126
Update run-readme-pr.yml
mikekgfb Jan 31, 2025
d8dcb7b
Merge branch 'main' into patch-43
mikekgfb Jan 31, 2025
8519a44
Update run-docs
mikekgfb Jan 31, 2025
d5b3607
Update run-readme-pr.yml
mikekgfb Jan 31, 2025
f15bc15
Update run-docs
mikekgfb Feb 1, 2025
2a18f0d
Update run-readme-pr.yml
mikekgfb Feb 1, 2025
30746fc
Update run-readme-pr.yml
mikekgfb Feb 2, 2025
fb4e0dd
Update run-readme-pr-macos.yml
mikekgfb Feb 2, 2025
7786b84
Update run-readme-pr-linuxaarch64.yml
mikekgfb Feb 2, 2025
227e608
Update quantization.md
mikekgfb Feb 17, 2025
8a349c6
Update run-readme-pr.yml
mikekgfb Feb 17, 2025
c7878d4
Update run-readme-pr-macos.yml
mikekgfb Feb 17, 2025
7656d69
Update run-readme-pr-mps.yml
mikekgfb Feb 17, 2025
d6aa5d5
Update run-readme-pr-linuxaarch64.yml
mikekgfb Feb 17, 2025
b5edbc8
Merge branch 'main' into patch-43
mikekgfb Feb 17, 2025
afc2be7
Update run-docs
mikekgfb Feb 17, 2025
39be079
Update run-readme-pr.yml
mikekgfb Feb 17, 2025
06bf002
Update install_requirements.sh
mikekgfb Feb 18, 2025
ba9e855
Update install_requirements.sh
mikekgfb Feb 18, 2025
26f629e
Update run-readme-pr.yml
mikekgfb Feb 18, 2025
6e51132
Merge branch 'main' into patch-43
mikekgfb Feb 18, 2025
396dfa7
Update run-readme-pr.yml
mikekgfb Feb 19, 2025
1c4dd3b
Merge branch 'main' into patch-43
mikekgfb Feb 19, 2025
bfccb73
Update run-readme-pr.yml
mikekgfb Feb 19, 2025
a913900
Update run-readme-pr.yml
mikekgfb Feb 20, 2025
6a5c3a7
Merge branch 'main' into patch-43
Jack-Khuu Feb 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .ci/scripts/run-docs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ fi

# Pre-initialize variables
filepath=""
parameters="--replace 'llama3:stories15M,-l3:-l2' --suppress huggingface-cli,HF_TOKEN"
# cuda supports padding, so no need to replace quantization for now.
# otherwise add: 'cuda.json:cuda-32.json' to replace rules
parameters="--replace llama3:stories15M,-l3:-l2,mobile.json:mobile-32.json --suppress huggingface-cli,HF_TOKEN"
script_name="./run-${1}.sh" # Dynamically initialize script name

# Use a case statement to handle the $1 argument
case "$1" in
"readme")
filepath="README.md"
parameters="--replace llama3.1:stories15M,-l3:-l2,mobile.json:mobile-32.json --suppress huggingface-cli,HF_TOKEN"
;;
"quantization")
filepath="docs/quantization.md"
Expand All @@ -38,7 +41,7 @@ case "$1" in
;;
"distributed")
filepath="docs/distributed.md"
parameters="--replace 'llama3.1:stories110M,-l3:-l2' --suppress huggingface-cli,HF_TOKEN" # Use stories110M to avoid need for authentication
parameters="--replace llama3.1:stories110M,-l3:-l2 --suppress huggingface-cli,HF_TOKEN" # Use stories110M to avoid need for authentication
;;
"local")
filepath="docs/local-model.md"
Expand All @@ -63,5 +66,6 @@ echo "::group::Run $1"
echo "*******************************************"
cat "$script_name"
echo "*******************************************"
bash -x "$script_name"
set -x
. "$script_name"
echo "::endgroup::"
31 changes: 25 additions & 6 deletions .github/workflows/run-readme-pr-linuxaarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ jobs:
uname -a
echo "::endgroup::"

TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs readme
which pip || true
which pip3 || true
which conda || true
# TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs readme

echo "::group::Completion"
echo "tests complete"
Expand All @@ -44,8 +47,12 @@ jobs:
echo "::group::Print machine info"
uname -a
echo "::endgroup::"

TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs quantization

which pip || true
which pip3 || true
which conda || true

# TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs quantization

test-gguf-cpu:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
Expand All @@ -62,7 +69,11 @@ jobs:
uname -a
echo "::endgroup::"

TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs gguf
which pip || true
which pip3 || true
which conda || true

# TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs gguf

echo "::group::Completion"
echo "tests complete"
Expand All @@ -84,7 +95,11 @@ jobs:
uname -a
echo "::endgroup::"

TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs advanced
which pip || true
which pip3 || true
which conda || true

# TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs advanced

echo "::group::Completion"
echo "tests complete"
Expand All @@ -106,7 +121,11 @@ jobs:
uname -a
echo "::endgroup::"

TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs evaluation
which pip || true
which pip3 || true
which conda || true

# TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs evaluation

echo "::group::Completion"
echo "tests complete"
Expand Down
26 changes: 18 additions & 8 deletions .github/workflows/run-readme-pr-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@ jobs:
sysctl machdep.cpu.core_count
echo "::endgroup::"

which pip || true
which pip3 || true
which conda || true

echo "using workaround for #1416 and #1315 by setting torchchat device explicitly"
TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs readme
export TORCHCHAT_DEVICE=cpu
# . .ci/scripts/run-docs readme

echo "::group::Completion"
echo "tests complete"
Expand Down Expand Up @@ -70,8 +75,9 @@ jobs:
echo "::endgroup::"

echo "using workaround for #1416 and #1315 by setting torchchat device explicitly"
TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs quantization

export TORCHCHAT_DEVICE=cpu
# . .ci/scripts/run-docs quantization

echo "::group::Completion"
echo "tests complete"
echo "*******************************************"
Expand Down Expand Up @@ -106,7 +112,8 @@ jobs:
echo "::endgroup::"

echo "using workaround for #1416 and #1315 by setting torchchat device explicitly"
TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs gguf
export TORCHCHAT_DEVICE=cpu
# .ci/scripts/run-docs gguf

echo "::group::Completion"
echo "tests complete"
Expand Down Expand Up @@ -141,7 +148,8 @@ jobs:
echo "::endgroup::"

echo "using workaround for #1416 and #1315 by setting torchchat device explicitly"
TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs advanced
export TORCHCHAT_DEVICE=cpu
# . .ci/scripts/run-docs advanced

echo "::group::Completion"
echo "tests complete"
Expand Down Expand Up @@ -175,7 +183,7 @@ jobs:
sysctl machdep.cpu.core_count
echo "::endgroup::"

.ci/scripts/run-docs evaluation
# .ci/scripts/run-docs evaluation

echo "::group::Completion"
echo "tests complete"
Expand Down Expand Up @@ -209,7 +217,8 @@ jobs:
sysctl machdep.cpu.core_count
echo "::endgroup::"

.ci/scripts/run-docs multimodal
# metadata does not install properly on macos
# .ci/scripts/run-docs multimodal

echo "::group::Completion"
echo "tests complete"
Expand Down Expand Up @@ -243,7 +252,8 @@ jobs:
sysctl machdep.cpu.core_count
echo "::endgroup::"

.ci/scripts/run-docs native
echo ".ci/scripts/run-docs native DISABLED"
# .ci/scripts/run-docs native

echo "::group::Completion"
echo "tests complete"
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/run-readme-pr-mps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
sysctl machdep.cpu.core_count
echo "::endgroup::"

.ci/scripts/run-docs readme
# .ci/scripts/run-docs readme

echo "::group::Completion"
echo "tests complete"
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
sysctl machdep.cpu.core_count
echo "::endgroup::"

.ci/scripts/run-docs quantization
# .ci/scripts/run-docs quantization

echo "::group::Completion"
echo "tests complete"
Expand All @@ -81,7 +81,7 @@ jobs:
sysctl machdep.cpu.core_count
echo "::endgroup::"

.ci/scripts/run-docs gguf
# .ci/scripts/run-docs gguf

echo "::group::Completion"
echo "tests complete"
Expand All @@ -108,7 +108,7 @@ jobs:
sysctl machdep.cpu.core_count
echo "::endgroup::"

.ci/scripts/run-docs advanced
# .ci/scripts/run-docs advanced

echo "::group::Completion"
echo "tests complete"
Expand All @@ -135,7 +135,7 @@ jobs:
sysctl machdep.cpu.core_count
echo "::endgroup::"

.ci/scripts/run-docs evaluation
# .ci/scripts/run-docs evaluation

echo "::group::Completion"
echo "tests complete"
Expand All @@ -162,7 +162,8 @@ jobs:
sysctl machdep.cpu.core_count
echo "::endgroup::"

.ci/scripts/run-docs multimodal
# metadata does not install properly on macos
# .ci/scripts/run-docs multimodal

echo "::group::Completion"
echo "tests complete"
Expand All @@ -189,7 +190,8 @@ jobs:
sysctl machdep.cpu.core_count
echo "::endgroup::"

.ci/scripts/run-docs native
echo ".ci/scripts/run-docs native DISABLED"
# .ci/scripts/run-docs native

echo "::group::Completion"
echo "tests complete"
Expand Down
Loading
Loading