Skip to content

[Bug] Desktop: Hugging Face quant discovery blocks loading On Device models offline #12415

Closed

Description

@ccaprani

[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

  1. Download a GGUF model and confirm it appears under On Device.
  2. Disconnect internet access.
  3. Select that model and attempt to choose/load its quantization.
  4. Quant discovery attempts to access Hugging Face and blocks loading.
  5. 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.

Activity

  1. self-assigned this
    on Oct 1, 2026
  2. Imagineer99 commented on Oct 1, 2026

    @Imagineer99
    Member

    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.

  3. Souravrajvi0 commented on Oct 1, 2026

    @Souravrajvi0
    Contributor

    @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?

  4. SignetOHara commented on Oct 3, 2026

    @SignetOHara

    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

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions