You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@oobabooga extending torch_device_probe rather than adding a second mechanism is the right shape, and catching that _torch_get_device_inventory reaches mem_get_info on exactly the APUs where _rocm_props_total_is_carve_out is true is a good find. Caching failure as well as success matters here too.
My one concern: I don't think the hardened call sites are reachable on the reporting user's config. His log has amd-smi disabled on Windows (no HIP SDK detected), so _run_amd_smi returns None (amd.py:113) → available: False (amd.py:432) → _smi_query returns None (hardware.py:1368). Both reconcile functions sit inside if result is not None, so neither runs, and the only _torch_get_device_inventory call in get_visible_gpu_utilization is Linux-gated (hardware.py:2491).
What runs instead is _rocm_windows_per_device_vram, which reads get_device_properties only. When it returns [], control falls to _torch_get_per_device_info (hardware.py:2138, 2520) — still calling mem_get_info in the parent after this PR. Any interest in extending containment there, or is there a path I've missed?
Non-blocking: device_can_allocate is called from one rare user-initiated path (RAG embeddings) where the 120 s budget is fine; rocm_memory_totals is on the telemetry poll path, so the first call pays a cold torch import in a child — 48 s in-process on that user's machine. Cached after, but worth confirming the caller isn't on the event loop.
Separately: neither of us has the stack yet. The backend already aims faulthandler at ~/.unsloth/studio/logs/server/ (run.py:1850), but the diagnostics report never collects that directory, which is why his report showed exit code: 3 and nothing else. #8877 adds those tails to the report — complementary to this, not competing, and it's what would confirm or rule out mem_get_info as the aborting call. Worth asking him for the newest server-*.log either way.
I'm closing this as speculative and unconfirmed. We should focus on #8877 and reproducibility before proposing any specific fix to an undiagnosed crash.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reported on Reddit.
Testing
python -m pytest -q studio/backend/tests/test_torch_device_probe.py studio/backend/tests/test_system_poll_no_cuda_context.py studio/backend/tests/test_rocm_windows_vram_7072.pypython -m pytest -q studio/backend/tests/test_gpu_selection.py tests/studio/install/test_rocm_support.pyruff checkon the changed Python files