-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test failure on macos-14 CI (M1 Mac, MPS torch backend): test_mps_batched_mask_to_box #380
Comments
Thanks for all the work on this @GenevieveBuckley! Just two brief comments from my side:
|
Ok, we can try that. The current version of pytorch is 2.2.0 Details (click to expand)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.The text was updated successfully, but these errors were encountered: