Skip to content

MPS test jobs are failing #8433

@NicolasHug

Description

@NicolasHug

with

Traceback (most recent call last):
  File "/Users/runner/work/vision/vision/pytorch/vision/test/smoke_test.py", line 103, in <module>
    main()
  File "/Users/runner/work/vision/vision/pytorch/vision/test/smoke_test.py", line 99, in main
    smoke_test_torchvision_resnet50_classify("mps")
  File "/Users/runner/work/vision/vision/pytorch/vision/test/smoke_test.py", line 52, in smoke_test_torchvision_resnet50_classify
    img = read_image(str(SCRIPT_DIR / ".." / "gallery" / "assets" / "dog2.jpg")).to(device)
RuntimeError: MPS backend out of memory (MPS allocated: 0 bytes, other allocations: 0 bytes, max allowed: 1.70 GB). Tried to allocate 0 bytes on private pool. Use PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0 to disable upper limit for memory allocations (may cause system failure).

example: https://github.com/pytorch/vision/actions/runs/9157662717/job/25174485539?pr=7990

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions