Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 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
23f3c49
align run-readme-pr.yml with pull.yml
mike94043 Feb 6, 2025
ee35cd4
Merge branch 'main' into newtemplate
mikekgfb Feb 6, 2025
de6eb7e
Update run-readme-pr.yml
mikekgfb Feb 7, 2025
48f8e8b
Update run-readme-pr.yml
mikekgfb Feb 8, 2025
18ba560
Merge branch 'pytorch:main' into newtemplate
mikekgfb Feb 8, 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
8 changes: 6 additions & 2 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 Down Expand Up @@ -63,5 +66,6 @@ echo "::group::Run $1"
echo "*******************************************"
cat "$script_name"
echo "*******************************************"
bash -x "$script_name"
set -x
. "$script_name"
echo "::endgroup::"
21 changes: 20 additions & 1 deletion .github/workflows/run-readme-pr-linuxaarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
uname -a
echo "::endgroup::"

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

echo "::group::Completion"
Expand All @@ -44,7 +47,11 @@ jobs:
echo "::group::Print machine info"
uname -a
echo "::endgroup::"


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

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

test-gguf-cpu:
Expand All @@ -62,6 +69,10 @@ jobs:
uname -a
echo "::endgroup::"

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

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

echo "::group::Completion"
Expand All @@ -84,6 +95,10 @@ jobs:
uname -a
echo "::endgroup::"

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

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

echo "::group::Completion"
Expand All @@ -106,6 +121,10 @@ jobs:
uname -a
echo "::endgroup::"

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

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

echo "::group::Completion"
Expand Down
24 changes: 17 additions & 7 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 @@ -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
8 changes: 5 additions & 3 deletions .github/workflows/run-readme-pr-mps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 Down Expand Up @@ -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