Skip to content

[Bug] AMD: Unsloth Studio puts model weights in system RAM on Strix Halo (Windows) and shows no VRAM #7449

Closed

Description

@szigmond

When loading models and running inference tasks in Unsloth Studio with local models, Unsloth Studio uses my system RAM instead of VRAM. Strangely, the GPU's compute does show use in task manager during inference tasks, but its VRAM is not used. In Unsloth Studio's settings, it does recognize my machine's GPU, but it does not recognize the VRAM free or used. I have only seen this in inference/running local agents with Unsloth Studio, as I have not attempted training/fine-tuning yet. For reference, I have a new AMD Strix Halo machine (GMKtec EVO X-2 with 128 GB unified memory) and a fresh install of Unsloth Studio, so Unsloth should be up to date. This issue persists on Windows 11.

Image Image

I also get the following error when I launch Unsloth Studio (though the program still runs), and I think this might be linked with the GPU/VRAM issue:

Image Image

Activity

  1. szigmond commented on Jul 26, 2026

    @szigmond
    Author

    This might be related to this problem or be a separate issue, but models loaded in Unsloth Studio take up much more system RAM than they should. I loaded the Qwen-AgentWorld-35B-A3B-GGUF model, and Unsloth Studio says the 8-bit quantization (UD-Q8_K_XL) takes up 38 GB. However, running this model on Unsloth Studio also takes up way more than 38 GB (>42 GB of system RAM on llamaserver on Task Manager, but >70 GB RAM difference vs before loading the model in). Even the 4-bit quantization (UD-Q4_K_XL) takes up ~48 GB when loaded, even though Unsloth Studio says the size is 22 GB.

    This isn't just an issue with the Qwen models either. The medgemma-1.5-4b-it-GGUF model is supposed to take up to 7.8 GB, but system RAM usage is closer to 16 GB when loaded in Unsloth Studio.

    Separately, Ollama does not have this problem, and VRAM usage is closer to the models' expected sizes (around 29 GB usage for Qwen 3.6 35B).

  2. szigmond commented on Jul 26, 2026

    @szigmond
    Author

    Training/fine-tuning models on Unsloth Studio doesn't work either. The following error is thrown when training is attempted:

    Command '['C:\Users\Stephen Zigmond\.unsloth\studio\unsloth_studio\Lib\site-packages\_rocm_sdk_core\lib\llvm\bin\clang-cl.exe', '\\?\C:\Users\STEPHE1\AppData\Local\Temp\tmp491zu2dg\hip_utils.c', '/nologo', '/O2', '/LD', '/wd4819', '/std:c11', '/IC:\Users\Stephen Zigmond\.unsloth\studio\unsloth_studio\Lib\site-packages\triton\backends\amd\include', '/I\\?\C:\Users\STEPHE1\AppData\Local\Temp\tmp491zu2dg', '/IC:\Users\Stephen Zigmond\AppData\Local\Programs\Python\Python312\Include', '/Fo\\?\C:\Users\STEPHE1\AppData\Local\Temp\tmp491zu2dg\hip_utils.cp312-win_amd64.obj', '/link', '/LIBPATH:C:\Users\Stephen Zigmond\AppData\Local\Programs\Python\Python312\libs', 'python312.lib', '/OUT:\\?\C:\Users\STEPHE1\AppData\Local\Temp\tmp491zu2dg\hip_utils.cp312-win_amd64.pyd', '/IMPLIB:\\?\C:\Users\STEPHE1\AppData\Local\Temp\tmp491zu2dg\hip_utils.cp312-win_amd64.lib', '/PDB:\\?\C:\Users\STEPHE1\AppData\Local\Temp\tmp491zu2dg\hip_utils.cp312-win_amd64.pdb']' returned non-zero exit status 1.

    Image Image Image
  3. eslam-ahmed43 commented on Jul 26, 2026

    @eslam-ahmed43

    Hi, I would like to work on this issue if it is still available. I have been working with AI and ML projects and I think I can contribute here. I will look into it and open a PR when ready.

  4. blakgum commented on Aug 7, 2026

    @blakgum

    Seeing this as well, but I'm not getting the error in the logs

  5. LeoBorcherding commented on Aug 25, 2026

    @LeoBorcherding
    Collaborator

    hi @szigmond #8863 merged recently and fixes the display side of this issue for the vram monitor, if you are still having issues with it not using the GPU please share what you experience now after updating, hopefully this is fixed.

  6. danielhanchen commented on Aug 28, 2026

    @danielhanchen
    Member

    Only the VRAM readout was corrected: Studio still sets GGML_CUDA_ENABLE_UNIFIED_MEMORY=1 on a gfx1151 part, which is what places weights in system RAM, and the Triton hip_utils.c build failure is unhandled.

  7. LeoBorcherding commented on Sep 2, 2026

    @LeoBorcherding
    Collaborator

    Following up on Daniel's split, with what has landed since.

    The training crash is Triton compiling hip_utils.c with the ROCm wheel's clang-cl and finding no Windows SDK or MSVC headers. That needs Visual Studio Build Tools with the C++ workload on the machine; #7704 in v0.1.806 now detects the gap at startup and prints the install command instead of dying mid-run, but the kernels still need the toolchain, so please install it before retrying training:

    winget install Microsoft.VisualStudio.2022.BuildTools --override "--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended"
    

    The weights landing in system RAM is the GGML_CUDA_ENABLE_UNIFIED_MEMORY default Daniel named. #9884 (also .806) now sets it only when host RAM is the larger pool, and on Windows that comparison is expected to leave it off, but nobody has run it on a Windows Strix Halo yet. The VRAM readout got two fixes on top of #8863: #9314 (.803) reads the total from the driver rather than the carve-out.

    @szigmond could you update to .806 and say whether the weights still land in system RAM, what the System tab shows for VRAM total and used, and how much memory your BIOS gives the GPU? Those three answer what's left here.

  8. changed the title [-][Bug] Unsloth Studio recognizes my GPU and uses it, but does not recognize VRAM and instead uses system RAM for inference[/-] [+][Bug] AMD: Unsloth Studio puts model weights in system RAM on Strix Halo (Windows) and shows no VRAM[/+] on Sep 25, 2026
  9. LeoBorcherding commented on Oct 10, 2026

    @LeoBorcherding
    Collaborator

    Closing this since all three parts have fixes on main: the VRAM readout (#8863, #9314), the weights landing in system RAM (#9884 and #10351, and since #10381 AMD integrated GPUs run on the Vulkan llama.cpp build), and the training crash, where Unsloth Studio now tells you at startup to install the Build Tools (#7704). @szigmond if the weights still end up in system RAM on the latest version, reopen and include what the System tab shows for VRAM, and we'll pick it back up.

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