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