Skip to content

[Bug] Unsloth Studio unable to access sufficient memory on Strix Halo- hard coded to 80% #7878

Closed

Description

@runxc1

I'm using unsloth studio and per

https://github.com/unslothai/unsloth/blob/main/studio/backend/core/training/worker.py#L2901-L2939

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

Activity

  1. LeoBorcherding commented on Aug 9, 2026

    @LeoBorcherding
    Collaborator

    @runxc1 Could you post what torch reports for your device total?

    import torch
    p = torch.cuda.get_device_properties(0)
    print("total_memory :", p.total_memory / 1024**3, "GiB")
    print("is_integrated:", getattr(p, "is_integrated", None))
    print("gcnArchName  :", getattr(p, "gcnArchName", None))
    print("mem_get_info :", [x / 1024**3 for x in torch.cuda.mem_get_info(0)], "GiB")
    print("torch        :", torch.__version__)

    #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.

  2. LeoBorcherding commented on Aug 9, 2026

    @LeoBorcherding
    Collaborator

    Adding to the above so it is one paste. Two more lines on the Python side:

    print("name:", p.name)
    print("hip :", torch.version.hip)

    And the host side:

    uname -sr
    grep PRETTY_NAME /etc/os-release
    lscpu | grep "Model name"
    free -g | head -2
    cat /proc/cmdline
    cat /sys/class/drm/card*/device/mem_info_vram_total /sys/class/drm/card*/device/mem_info_gtt_total
    sudo dmesg | grep -iE "amdgpu.*(VRAM|GTT)" || journalctl -k | grep -iE "amdgpu.*(VRAM|GTT)"

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions