Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekgfb committed May 8, 2024
1 parent 899d72a commit e625959
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 46 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/run-readme-periodic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
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::"
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::"
# echo "::group::get_llama"
# (
Expand Down
85 changes: 43 additions & 42 deletions .github/workflows/run-readme-pr-mps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,45 +49,46 @@ jobs:
echo "*******************************************"
echo "::endgroup::"

test-quantization-mps-macos:
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
with:
runner: macos-m1-stable # neeps MPS, was macos-m1-stable
script: |
set -x
conda create -y -n test-quantization-mps-macos python=3.10.11
conda activate test-quantization-mps-macos
# NS: Remove previous installation of torch first
# as this script does not isntall anything into conda env but rather as system dep
pip3 uninstall -y torch || true
set -eou pipefail
echo "::group::Print machine info"
uname -a
sysctl machdep.cpu.brand_string
sysctl machdep.cpu.core_count
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::"
echo "::group::Create script to run quantization"
python3 scripts/updown.py --file docs/quantization.md --replace llama3:stories15M --suppress huggingface-cli,HF_TOKEN > ./run-quantization.sh
# for good measure, if something happened to updown processor,
# and it did not error out, fail with an exit 1
echo "exit 1" >> ./run-quantization.sh
echo "::endgroup::"

echo "::group::Run quantization"
echo "*******************************************"
cat ./run-quantization.sh
echo "*******************************************"
bash -x ./run-quantization.sh
echo "::endgroup::"

echo "::group::Completion"
echo "tests complete"
echo "*******************************************"
echo "::endgroup::"
# test-quantization-mps-macos:
# uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
# with:
# runner: macos-m1-stable # neeps MPS, was macos-m1-stable
# script: |
# set -x
# conda create -y -n test-quantization-mps-macos python=3.10.11
# conda activate test-quantization-mps-macos
# # NS: Remove previous installation of torch first
# # as this script does not isntall anything into conda env but rather as system dep
# pip3 uninstall -y torch || true
# set -eou pipefail
#
# echo "::group::Print machine info"
# uname -a
# sysctl machdep.cpu.brand_string
# sysctl machdep.cpu.core_count
# 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::"
#
# echo "::group::Create script to run quantization"
# python3 scripts/updown.py --file docs/quantization.md --replace llama3:stories15M --suppress huggingface-cli,HF_TOKEN > ./run-quantization.sh
# # for good measure, if something happened to updown processor,
# # and it did not error out, fail with an exit 1
# echo "exit 1" >> ./run-quantization.sh
# echo "::endgroup::"
#
# echo "::group::Run quantization"
# echo "*******************************************"
# cat ./run-quantization.sh
# echo "*******************************************"
# bash -x ./run-quantization.sh
# echo "::endgroup::"
#
# echo "::group::Completion"
# echo "tests complete"
# echo "*******************************************"
# echo "::endgroup::"
#

0 comments on commit e625959

Please sign in to comment.