diffusers
diffusers copied to clipboard
[WIP] Add Apple M1 tests
testing things live, don't merge
The documentation is not available anymore as the PR was closed or merged.
@pcuenca the tests are ready for inspection right in this PR :)
Note: [MPSTemporaryNDArray initWithDevice:descriptor:] Error: product of dimension sizes > 2**31' outright segfaults, so we might not check all tests if the number of such failures is more than the number of pytest workers (4).
Looks very cool ! Feel free to merge whenever @anton-l - also fine if they fail for a bit on master and we fix step-by-step
Hi @anton-l !
I made a couple of changes:
- Use the RC of the upcoming PyTorch 1.13.
- Skip the test that crashed, added another one to test the attention layer that is compatible with MPS.
- Skip some cuda tests on MPS.
However, AutoencoderKLTests.test_output_pretrained is still failing, I don't know the reason why.
Could you please take a look at my changes? I think we can merge with this one failure and I'll try to fix it in a couple days.
Thank you @pcuenca, everything looks good!