|  | 
| 33 | 33 |           sysctl machdep.cpu.core_count | 
| 34 | 34 |           echo "::endgroup::" | 
| 35 | 35 | 
 | 
| 36 |  | -          .ci/scripts/run-docs readme | 
|  | 36 | +          echo "using workaround for #1416 and #1315 by setting torchchat device explicitly" | 
|  | 37 | +          TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs readme | 
| 37 | 38 |    | 
| 38 | 39 |           echo "::group::Completion" | 
| 39 | 40 |           echo "tests complete" | 
|  | 
| 68 | 69 |           sysctl machdep.cpu.core_count | 
| 69 | 70 |           echo "::endgroup::" | 
| 70 | 71 | 
 | 
| 71 |  | -          .ci/scripts/run-docs quantization | 
|  | 72 | +          echo "using workaround for #1416 and #1315 by setting torchchat device explicitly" | 
|  | 73 | +          TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs quantization | 
| 72 | 74 |    | 
| 73 | 75 |           echo "::group::Completion" | 
| 74 | 76 |           echo "tests complete" | 
| @@ -103,7 +105,8 @@ jobs: | 
| 103 | 105 |           sysctl machdep.cpu.core_count | 
| 104 | 106 |           echo "::endgroup::" | 
| 105 | 107 | 
 | 
| 106 |  | -          .ci/scripts/run-docs gguf | 
|  | 108 | +          echo "using workaround for #1416 and #1315 by setting torchchat device explicitly" | 
|  | 109 | +          TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs gguf | 
| 107 | 110 | 
 | 
| 108 | 111 |           echo "::group::Completion" | 
| 109 | 112 |           echo "tests complete" | 
| @@ -137,9 +140,113 @@ jobs: | 
| 137 | 140 |           sysctl machdep.cpu.core_count | 
| 138 | 141 |           echo "::endgroup::" | 
| 139 | 142 | 
 | 
| 140 |  | -          .ci/scripts/run-docs advanced | 
|  | 143 | +          echo "using workaround for #1416 and #1315 by setting torchchat device explicitly" | 
|  | 144 | +          TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs advanced | 
| 141 | 145 | 
 | 
| 142 | 146 |           echo "::group::Completion" | 
| 143 | 147 |           echo "tests complete" | 
| 144 | 148 |           echo "*******************************************" | 
| 145 | 149 |           echo "::endgroup::" | 
|  | 150 | +
 | 
|  | 151 | +  test-eval-macos: | 
|  | 152 | +    runs-on: macos-14-xlarge | 
|  | 153 | +    steps: | 
|  | 154 | +      - name: Checkout code | 
|  | 155 | +        uses: actions/checkout@v2 | 
|  | 156 | +      - uses: actions/setup-python@v4 | 
|  | 157 | +        with: | 
|  | 158 | +          python-version: '3.10.11' | 
|  | 159 | +      - name: Setup Xcode | 
|  | 160 | +        if: runner.os == 'macOS' | 
|  | 161 | +        uses: maxim-lobanov/setup-xcode@v1 | 
|  | 162 | +        with: | 
|  | 163 | +          xcode-version: '15.3' | 
|  | 164 | +      - name: Run script | 
|  | 165 | +        run: | | 
|  | 166 | +          set -x | 
|  | 167 | +          # NS: Remove previous installation  of torch first | 
|  | 168 | +          # as this script does not isntall anything into conda env but rather as system dep | 
|  | 169 | +          pip3 uninstall -y torch || true | 
|  | 170 | +          set -eou pipefail | 
|  | 171 | +
 | 
|  | 172 | +          echo "::group::Print machine info" | 
|  | 173 | +          uname -a | 
|  | 174 | +          sysctl machdep.cpu.brand_string | 
|  | 175 | +          sysctl machdep.cpu.core_count | 
|  | 176 | +          echo "::endgroup::" | 
|  | 177 | +
 | 
|  | 178 | +          .ci/scripts/run-docs evaluation | 
|  | 179 | +
 | 
|  | 180 | +          echo "::group::Completion" | 
|  | 181 | +          echo "tests complete" | 
|  | 182 | +          echo "*******************************************" | 
|  | 183 | +          echo "::endgroup::"    | 
|  | 184 | +
 | 
|  | 185 | +  test-multimodal-macos: | 
|  | 186 | +    runs-on: macos-14-xlarge | 
|  | 187 | +    steps: | 
|  | 188 | +      - name: Checkout code | 
|  | 189 | +        uses: actions/checkout@v2 | 
|  | 190 | +      - uses: actions/setup-python@v4 | 
|  | 191 | +        with: | 
|  | 192 | +          python-version: '3.10.11' | 
|  | 193 | +      - name: Setup Xcode | 
|  | 194 | +        if: runner.os == 'macOS' | 
|  | 195 | +        uses: maxim-lobanov/setup-xcode@v1 | 
|  | 196 | +        with: | 
|  | 197 | +          xcode-version: '15.3' | 
|  | 198 | +      - name: Run script | 
|  | 199 | +        run: | | 
|  | 200 | +          set -x | 
|  | 201 | +          # NS: Remove previous installation  of torch first | 
|  | 202 | +          # as this script does not isntall anything into conda env but rather as system dep | 
|  | 203 | +          pip3 uninstall -y torch || true | 
|  | 204 | +          set -eou pipefail | 
|  | 205 | +
 | 
|  | 206 | +          echo "::group::Print machine info" | 
|  | 207 | +          uname -a | 
|  | 208 | +          sysctl machdep.cpu.brand_string | 
|  | 209 | +          sysctl machdep.cpu.core_count | 
|  | 210 | +          echo "::endgroup::" | 
|  | 211 | +
 | 
|  | 212 | +          .ci/scripts/run-docs multimodal | 
|  | 213 | +
 | 
|  | 214 | +          echo "::group::Completion" | 
|  | 215 | +          echo "tests complete" | 
|  | 216 | +          echo "*******************************************" | 
|  | 217 | +          echo "::endgroup::" | 
|  | 218 | +
 | 
|  | 219 | +  test-native-macos: | 
|  | 220 | +    runs-on: macos-14-xlarge | 
|  | 221 | +    steps: | 
|  | 222 | +      - name: Checkout code | 
|  | 223 | +        uses: actions/checkout@v2 | 
|  | 224 | +      - uses: actions/setup-python@v4 | 
|  | 225 | +        with: | 
|  | 226 | +          python-version: '3.10.11' | 
|  | 227 | +      - name: Setup Xcode | 
|  | 228 | +        if: runner.os == 'macOS' | 
|  | 229 | +        uses: maxim-lobanov/setup-xcode@v1 | 
|  | 230 | +        with: | 
|  | 231 | +          xcode-version: '15.3' | 
|  | 232 | +      - name: Run script | 
|  | 233 | +        run: | | 
|  | 234 | +          set -x | 
|  | 235 | +          # NS: Remove previous installation  of torch first | 
|  | 236 | +          # as this script does not isntall anything into conda env but rather as system dep | 
|  | 237 | +          pip3 uninstall -y torch || true | 
|  | 238 | +          set -eou pipefail | 
|  | 239 | +
 | 
|  | 240 | +          echo "::group::Print machine info" | 
|  | 241 | +          uname -a | 
|  | 242 | +          sysctl machdep.cpu.brand_string | 
|  | 243 | +          sysctl machdep.cpu.core_count | 
|  | 244 | +          echo "::endgroup::" | 
|  | 245 | +
 | 
|  | 246 | +          .ci/scripts/run-docs native | 
|  | 247 | +
 | 
|  | 248 | +          echo "::group::Completion" | 
|  | 249 | +          echo "tests complete" | 
|  | 250 | +          echo "*******************************************" | 
|  | 251 | +          echo "::endgroup::" | 
|  | 252 | +   | 
0 commit comments