brkirch
27fe3eb6a9
Add workaround for MPS layer_norm on PyTorch 2.0
...
On PyTorch 2.0, with MPS layer_norm only accepts float32 inputs. This was fixed shortly after 2.0 was finalized so the workaround can be applied with an exact version match.
2023-03-24 04:04:22 -04:00
brkirch
c5142e2fbe
Add workaround for broken nn.Linear on macOS 13.2
...
Credit to danieldk (https://github.com/explosion/curated-transformers/pull/124 ) for the workaround this is based on.
2023-03-24 04:04:20 -04:00
brkirch
a4cb96d4ae
Remove test, use bool tensor fix by default
...
The test isn't working correctly on macOS 13.3 and the bool tensor fix for cumsum is currently always needed anyway, so enable the fix by default.
2023-03-11 17:35:17 -05:00
brkirch
4306659c4d
Remove unused code
2023-02-04 01:22:06 -05:00
brkirch
1b8af15f13
Refactor Mac specific code to a separate file
...
Move most Mac related code to a separate file, don't even load it unless web UI is run under macOS.
2023-02-01 14:05:56 -05:00