1- name : Run the README instructions - with stories - on MacOS   
2- on :   
1+ name : Run the README instructions - with stories - on MacOS 
2+ on :
33  pull_request :
44  push :
55    branches :
66      - main 
77  workflow_dispatch :
88jobs :
99  test-readme-macos :
10-     runs-on : macos-14-xlarge 
10+     runs-on : macos-14-xlarge   
1111    steps :
1212      - name : Checkout code 
1313        uses : actions/checkout@v2 
@@ -26,32 +26,85 @@ jobs:
2626          # as this script does not isntall anything into conda env but rather as system dep 
2727          pip3 uninstall -y torch || true  
2828          set -eou pipefail 
29-    
29+ 
3030          echo "::group::Print machine info" 
3131          uname -a 
3232          sysctl machdep.cpu.brand_string 
3333          sysctl machdep.cpu.core_count 
3434          echo "::endgroup::" 
35-    
35+ 
3636          # echo "::group::Install newer objcopy that supports --set-section-alignment" 
3737          # yum install -y  devtoolset-10-binutils 
3838          # export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH 
3939          # echo "::endgroup::" 
4040   
41-           echo "::group::Create script" 
42-           python3 scripts/updown.py --file README.md --replace llama3:stories15M -- suppress huggingface-cli,HF_TOKEN > ./we- run-this .sh 
43-              #  for good measure, if something happened to updown processor,
41+           echo "::group::Create script to run README " 
42+           python3 scripts/updown.py --file README.md --replace ' llama3:stories15M,-l 3:-l 2,meta-llama/Meta-Llama-3-8B-Instruct:stories15M' -- suppress huggingface-cli,HF_TOKEN > ./run-readme .sh 
43+           #  for good measure, if something happened to updown processor,
4444          #  and it did not error out, fail with an exit 1
45-           echo "exit 1" >> ./we- run-this .sh 
45+           echo "exit 1" >> ./run-readme .sh 
4646          echo "::endgroup::" 
47- 
48-           echo "::group::Run This " 
47+    
48+           echo "::group::Run README " 
4949          echo "*******************************************" 
50-           cat ./we- run-this .sh 
50+           cat ./run-readme .sh 
5151          echo "*******************************************" 
52-           bash -x ./we-run-this.sh 
53-         
52+           bash -x ./run-readme.sh 
53+           echo "::endgroup::" 
54+   
55+           echo "::group::Completion" 
5456          echo "tests complete" 
5557          echo "*******************************************" 
5658          echo "::endgroup::" 
5759
60+ 
61+   test-quantization-macos :
62+     runs-on : macos-14-xlarge  
63+     steps :
64+       - name : Checkout code 
65+         uses : actions/checkout@v2 
66+       - uses : actions/setup-python@v4 
67+         with :
68+           python-version : ' 3.10.11' 
69+       - name : Setup Xcode 
70+         if : runner.os == 'macOS' 
71+         uses : maxim-lobanov/setup-xcode@v1 
72+         with :
73+           xcode-version : ' 15.3' 
74+       - name : Run script 
75+         run : | 
76+           set -x 
77+           # NS: Remove previous installation  of torch first 
78+           # as this script does not isntall anything into conda env but rather as system dep 
79+           pip3 uninstall -y torch || true  
80+           set -eou pipefail 
81+ 
82+           echo "::group::Print machine info" 
83+           uname -a 
84+           sysctl machdep.cpu.brand_string 
85+           sysctl machdep.cpu.core_count 
86+           echo "::endgroup::" 
87+ 
88+           # echo "::group::Install newer objcopy that supports --set-section-alignment" 
89+           # yum install -y  devtoolset-10-binutils 
90+           # export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH 
91+           # echo "::endgroup::" 
92+    
93+           echo "::group::Create script to run quantization" 
94+           python3 scripts/updown.py --file docs/quantization.md --replace llama3:stories15M --suppress huggingface-cli,HF_TOKEN > ./run-quantization.sh 
95+           #  for good measure, if something happened to updown processor,
96+           #  and it did not error out, fail with an exit 1
97+           echo "exit 1" >> ./run-quantization.sh 
98+           echo "::endgroup::" 
99+   
100+           echo "::group::Run quantization" 
101+           echo "*******************************************" 
102+           cat ./run-quantization.sh 
103+           echo "*******************************************" 
104+           bash -x ./run-quantization.sh 
105+           echo "::endgroup::" 
106+   
107+           echo "::group::Completion" 
108+           echo "tests complete" 
109+           echo "*******************************************" 
110+           echo "::endgroup::" 
0 commit comments