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
Bug Report: Changing context size forces model to load only in system RAM, ignoring VRAM
Description
I am experiencing an issue only when I resize the context size in the UI. When I make the change, the model begins loading into system RAM only, completely ignoring and bypassing the VRAM.
Steps to Reproduce
Open the application and load a model.
Go to the run settings panel on the right.
Change the Context Length value.
Notice that the model reloads, but it stops utilizing the GPU, causing system RAM usage to spike while VRAM is ignored.
Expected Behavior
The model should reload using the VRAM allocation properly, respecting the GPU settings even after the context size is adjusted.
Environment & Context
App Version: Latest version available (updated to the latest commit).
Context Length Apply should reload through the same GGUF path and re-run GPU placement; it should only fall back toward CPU if the requested context no longer fits or the GPU backend fails to load.
Can you add the exact model/GGUF, the context value you set, and the Studio backend log lines after pressing Apply, especially GGUF size: ... selected: ... fit: ... and Starting llama-server: ..., so we can track?
Context Length Apply should reload through the same GGUF path and re-run GPU placement; it should only fall back toward CPU if the requested context no longer fits or the GPU backend fails to load.
Can you add the exact model/GGUF, the context value you set, and the Studio backend log lines after pressing Apply, especially GGUF size: ... selected: ... fit: ... and Starting llama-server: ..., so we can track?
The issue occurs the moment I change the context length. Even when setting a much smaller length, it still only tries to use the RAM.
To test the PR locally, you can install Studio from the PR branch:
git clone -b patch-7826 https://github.com/Etherll/unsloth.git unsloth-pr-6976
cd unsloth-pr-6976
UNSLOTH_STUDIO_HOME="$PWD/.studio" ./install.sh --local
UNSLOTH_STUDIO_HOME="$PWD/.studio" unsloth studio -p 8888
Then open http://127.0.0.1:8888, load a local .gguf model, change the Context Length in Chat settings, and click Apply.
This should be fixed now - sorry on the delay - please update Unsloth Studio to the latest via curl -fsSL https://unsloth.ai/install.sh | sh for Linux, Mac, WSL or irm https://unsloth.ai/install.ps1 | iex for Windows - if it's not fixed yet, it'll be in the next Studio release - if it's still not working after that, please open another issue - appreciate it again!
Fixed in #7207 - reloading with a new context length now routes through the native GGUF path and keeps the model on the GPU, so your VRAM is used instead of falling back to system RAM.
This should be fixed now - sorry on the delay - please update Unsloth Studio to the latest via curl -fsSL https://unsloth.ai/install.sh | sh for Linux, Mac, WSL or irm https://unsloth.ai/install.ps1 | iex for Windows - if it's not fixed yet, it'll be in the next Studio release - if it's still not working after that, please open another issue - appreciate it again!
Applying a context length to a file-picked local GGUF now reloads through llama.cpp with the GGUF identity and your GPU placement kept, instead of falling back to defaults.
Activity
[-][Bug] Please fill in your issue title here.[/-][+][Bug] VRAM being ignored[/+]Etherll commentedon Jul 7, 2026
Context Length Apply should reload through the same GGUF path and re-run GPU placement; it should only fall back toward CPU if the requested context no longer fits or the GPU backend fails to load.
Can you add the exact model/GGUF, the context value you set, and the Studio backend log lines after pressing Apply, especially GGUF size: ... selected: ... fit: ... and Starting llama-server: ..., so we can track?
Dspofu commentedon Jul 8, 2026
The issue occurs the moment I change the context length. Even when setting a much smaller length, it still only tries to use the RAM.
Logs:
Etherll commentedon Jul 8, 2026
Thanks for reporting this. I opened a PR that should fix the local GGUF reload issue when changing Context Length:
#6976
To test the PR locally, you can install Studio from the PR branch:
Then open
http://127.0.0.1:8888, load a local.ggufmodel, change the Context Length in Chat settings, and click Apply.danielhanchen commentedon Jul 21, 2026
This should be fixed now - sorry on the delay - please update Unsloth Studio to the latest via
curl -fsSL https://unsloth.ai/install.sh | shfor Linux, Mac, WSL orirm https://unsloth.ai/install.ps1 | iexfor Windows - if it's not fixed yet, it'll be in the next Studio release - if it's still not working after that, please open another issue - appreciate it again!Fixed in #7207 - reloading with a new context length now routes through the native GGUF path and keeps the model on the GPU, so your VRAM is used instead of falling back to system RAM.
danielhanchen commentedon Aug 28, 2026
This should be fixed now - sorry on the delay - please update Unsloth Studio to the latest via
curl -fsSL https://unsloth.ai/install.sh | shfor Linux, Mac, WSL orirm https://unsloth.ai/install.ps1 | iexfor Windows - if it's not fixed yet, it'll be in the next Studio release - if it's still not working after that, please open another issue - appreciate it again!Applying a context length to a file-picked local GGUF now reloads through llama.cpp with the GGUF identity and your GPU placement kept, instead of falling back to defaults.