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] POST request to /load in Unsloth Studio does not respond until the model is fully loaded, causing proxies like Cloudflare to time out #5206
The /load API request is a POST request that does not respond (not even sending HTTP headers) until the model is loaded. For larger models this can take multiple minutes.
However, many reverse proxies are configured to kill requests after a relatively short timeout. For example, at my company, we use Cloudflare as a reverse proxy to people's GPU containers where they sometimes run unsloth, but Cloudflare kills connections that don't send HTTP headers within 120 seconds (and except on their Enterprise plan, you cannot change this setting). Many other reverse proxies have similar behavior. For example, Nginx has a default of 60 seconds.
All this together means that to use Unsloth studio behind a reverse proxy usually requires special setup. For this reason, it's generally considered poor practice to have such long-lived REST API endpoints. Especially since there are already other endpoints that tell you about the download progress (eg /gguf-download-progress), IMO the /load endpoint should return immediately once it's been determined that the requested model exists.
Thanks!
Note: Please do not remove the questions. Answer beside them.
Did you update? pip install --upgrade unsloth unsloth_zoo
yes, latest version
Colab or Kaggle or local / cloud
local
Number GPUs used, use nvidia-smi
1 gpu, but doesn't matter
Which notebook? Please link!
Not relevant.
Which Unsloth version, TRL version, transformers version, PyTorch version?
These endpoints are not meant to be used directly from external clients.
If you want to load a model and have it ready for external API access, use unsloth studio run --model . The details of how you'd then call it , will be documented in the release this week.
Hi @rolandtannous, we don't call this API directly. Our clients run into this issue using the official Unsloth Studio web UI behind cloudflare; there's a visible error message when it times out.
Fixed! /load commits headers at 15s and streams keepalive bytes every 20s now so Cloudflare / nginx don't time out.
To update: the desktop app updates itself (Settings > General), otherwise unsloth studio update, or in Docker docker exec <container> unsloth-studio-update.
Activity
rolandtannous commentedon Apr 28, 2026
These endpoints are not meant to be used directly from external clients.
If you want to load a model and have it ready for external API access, use
unsloth studio run --model. The details of how you'd then call it , will be documented in the release this week.markasoftware-tc commentedon Apr 28, 2026
Hi @rolandtannous, we don't call this API directly. Our clients run into this issue using the official Unsloth Studio web UI behind cloudflare; there's a visible error message when it times out.
rolandtannous commentedon May 1, 2026
@markasoftware-tc noted.
danielhanchen commentedon Sep 6, 2026
Fixed! /load commits headers at 15s and streams keepalive bytes every 20s now so Cloudflare / nginx don't time out.
To update: the desktop app updates itself (Settings > General), otherwise
unsloth studio update, or in Dockerdocker exec <container> unsloth-studio-update.