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] Desktop: Hugging Face quant discovery blocks loading On Device models offline #12415
[Bug] Desktop: Hugging Face quant discovery blocks loading On Device models offline
Environment
Unsloth Desktop 0.1.815-beta, macOS.
Observed behaviour
With no internet connection, selecting an already downloaded model under On Device attempts to query Hugging Face for available quantizations and prevents loading. The same downloaded model runs offline through the CLI.
Reproduction
Download a GGUF model and confirm it appears under On Device.
Disconnect internet access.
Select that model and attempt to choose/load its quantization.
Quant discovery attempts to access Hugging Face and blocks loading.
Run the same model through the CLI offline: it works.
This describes the reported desktop workflow; no network trace or reproduction against current main has been captured yet.
Expected behaviour
On Device should list complete quantizations already on disk and allow loading without contacting Hugging Face. Remote quant discovery and update checks should not block local inference.
Investigation / proposed PR
The installed studio/backend/hub/services/models/gguf_variants.py already supports prefer_local_cache and offline. However, its cache-authorization gate runs before local listing and receives only the offline flag. Check whether cache-preferred requests still perform a remote probe, and whether all On Device callers request local-only discovery independently of browser connectivity detection. These are suspected contributors, not a confirmed root cause.
A scoped fix should make On Device discovery local-only while retaining existing offline private-repo/account authorization and completeness checks. Current main may differ from the installed release, so reproduce there first.
Regression tests should cover a complete cached quant with Hugging Face calls mocked to fail, including when the webview reports online; incomplete shards/companions must remain non-loadable, access controls must remain intact, and online remote discovery must still work.
Happy to help with a narrowly scoped PR if this is not already fixed on main.
This is valid, I was able to repro unnecessary hugging face calls on current main, locally, and on macos runners, even with a complete model already downloaded.
Didn’t yet reproduce the permanent loading failure, for now planning a scoped fix so on device discovery stays local.
@luminer — i opened #12451 for this: On Device variant listing now uses prefer_local_cache when offline (incl. navigator.onLine) or when “Show all quantizations” is off, and the backend stops prefer_local_cache from probing/falling through to Hub list_gguf_variants. Are you OK with me taking this issue via that PR, or were you already planning a different fix?
Hi, I experienced this exact same behavior during an ISP outage today. Unsloth Desktop became completely unusable, as above, trying to open the on-device model selection list just showed a permanent loading spinner.
Also, the chat history completely disappeared while the app was stuck in this state. It seems like the network timeout blocked the backend from initializing fully, which prevented it from connecting to my local SQLite database.
I got 404 errors when trying to load chat threads:
Perhaps the huggingface discovery check is blocking the startup sequence before the local database can be served.
Update: I had another ISP outage again while Unsloth Desktop was already active and my local LLM was in the middle of doing a task. Unsloth crashed completely without a connection and the model stopped working. So, at the moment Unsloth Desktop does not work offline at all. It would be great if locally downloaded models and Unsloth were unaffected by internet connections
Activity
Imagineer99 commentedon Oct 1, 2026
This is valid, I was able to repro unnecessary hugging face calls on current main, locally, and on macos runners, even with a complete model already downloaded.
Didn’t yet reproduce the permanent loading failure, for now planning a scoped fix so on device discovery stays local.
Souravrajvi0 commentedon Oct 1, 2026
@luminer — i opened #12451 for this: On Device variant listing now uses
prefer_local_cachewhen offline (incl.navigator.onLine) or when “Show all quantizations” is off, and the backend stopsprefer_local_cachefrom probing/falling through to Hublist_gguf_variants. Are you OK with me taking this issue via that PR, or were you already planning a different fix?SignetOHara commentedon Oct 3, 2026
Hi, I experienced this exact same behavior during an ISP outage today. Unsloth Desktop became completely unusable, as above, trying to open the on-device model selection list just showed a permanent loading spinner.
Also, the chat history completely disappeared while the app was stuck in this state. It seems like the network timeout blocked the backend from initializing fully, which prevented it from connecting to my local SQLite database.
I got 404 errors when trying to load chat threads:
{"timestamp": "...", "event": "request_completed", "method": "GET", "path": "/api/chat/threads/__LOCALID_...", "status_code": 404}Perhaps the huggingface discovery check is blocking the startup sequence before the local database can be served.
Update: I had another ISP outage again while Unsloth Desktop was already active and my local LLM was in the middle of doing a task. Unsloth crashed completely without a connection and the model stopped working. So, at the moment Unsloth Desktop does not work offline at all. It would be great if locally downloaded models and Unsloth were unaffected by internet connections