Open GenevieveBuckley opened 8 months ago
Thanks for all the work on this @GenevieveBuckley!
Just two brief comments from my side:
It probably makes sense to just check this again when a new PyTorch release is out.
Ok, we can try that.
The current version of pytorch is 2.2.0 Here is the conda list, with all the version information:
Test
test_mps_batched_mask_to_box
fails on ourmacos-14
CI.tests/test_sam_annotator/test_vendored.py::TestVendored.test_mps_batched_mask_to_box
Details:
macos-14
CI runner, an M1 Mac with 7GB of memory available.ubuntu-latest
,windows-latest
,macos-latest
. At the time of writing,macos-latest provides a CPU only mac, the github actions
macos-12` image.test_vendored.py
file and see the same error (so it is probably not a memory leak coming from other tests)os.environ["PYTORCH_MPS_HIGH_WATERMARK_RATIO"] = "0.0"
as suggested by the error message, did not help.torch.mps
options (see the docs here):torch.mps.set_per_process_memory_fraction(2.0)
did not help. Two is the maximum possible value allowed.torch.mps.empty_cache()
did not help.torch.mps.current_allocated_memory()
andtorch.mps.driver_allocated_memory()
reported zero bytes of allocated MPS memory before the failing line of the test.