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
{{ message }}
Repository navigation
[Bug] Unsloth Studio unable to access sufficient memory on Strix Halo- hard coded to 80% #7878
You can see that it is hard coded at .80 on Linux, this is blocking me from training higher models when I have memory just sitting there that is free. I've got about 30GB of memory I can't use
#7960 computes the cap from props.total_memory, and it only loosens above 80 GiB. A tester on another 128 GB Strix Halo just reported that value as 62.47 GiB rather than 128, because amdgpu.gttsize is deprecated and the TTM page limit was still at its RAM/2 default. On that configuration the fix changes nothing, so I want to know which side of the line you are on before claiming this closes your issue.
If you report near 128 GiB, #7960 raises your cap from 0.80 to 0.875 and hands back about 9.6 GiB of the 25.6 GiB currently withheld. If you report around 62 GiB, the cap is already correct for what torch can see, and your fix is ttm.pages_limit (=31457280 for ~120 GiB, check with dmesg | grep amdgpu) rather than anything in this PR.
If those sysfs paths do not exist, say so rather than digging, it means WSL rather than bare metal and the memory picture there is different. This gives the same shape as the gfx1151 report on #7960 so the two are directly comparable.
Activity
LeoBorcherding commentedon Aug 9, 2026
@runxc1 Could you post what torch reports for your device total?
#7960 computes the cap from
props.total_memory, and it only loosens above 80 GiB. A tester on another 128 GB Strix Halo just reported that value as 62.47 GiB rather than 128, becauseamdgpu.gttsizeis deprecated and the TTM page limit was still at its RAM/2 default. On that configuration the fix changes nothing, so I want to know which side of the line you are on before claiming this closes your issue.If you report near 128 GiB, #7960 raises your cap from 0.80 to 0.875 and hands back about 9.6 GiB of the 25.6 GiB currently withheld. If you report around 62 GiB, the cap is already correct for what torch can see, and your fix is
ttm.pages_limit(=31457280for ~120 GiB, check withdmesg | grep amdgpu) rather than anything in this PR.LeoBorcherding commentedon Aug 9, 2026
Adding to the above so it is one paste. Two more lines on the Python side:
And the host side:
If those sysfs paths do not exist, say so rather than digging, it means WSL rather than bare metal and the memory picture there is different. This gives the same shape as the gfx1151 report on #7960 so the two are directly comparable.
fix(studio): reserve a bounded OS headroom on unified ROCm APUs, not …