Skip to content

[Bug] Abnormal repeated download model #3364

Closed

Description

@Usagi826

When saving the fusion model, if the base model has been switched, it needs to be downloaded again each time, even if it has been downloaded before.For example, if I first fine-tune a 0.6B model, after downloading and fining and saving it, I then have to redownload when switching to fine-tune and merge with the 8B model.

Activity

  1. wektorz commented on Sep 24, 2025

    @wektorz

    Hi, something is wrong with model loading, since I started getting this error and zombie processes after recent upgrade when loading local copy of Qwen3

    '(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /unslothai/vram-96/resolve/main/config.json (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1007)')))"), '(Request ID: be3e29f2-d722-4764-a4c8-0ac4fb15a22e)')' thrown while requesting HEAD https://huggingface.co/unslothai/vram-96/resolve/main/config.json
    

    in my case
    export TRANSFORMERS_OFFLINE="1"
    helped

  2. shimmyshimmer commented on Oct 3, 2025

    @shimmyshimmer
    Member

    This is seems to be a known issue with the way Hugging Face loads and stores their model. We might be able investigate how to counteract it

  3. self-assigned this
    on Oct 9, 2026
  4. danielhanchen commented on Oct 9, 2026

    @danielhanchen
    Member

    Fixed! Sorry on the delay. The merged 16-bit save fetched the original 16-bit base shards straight into the save folder, which never populated the Hugging Face cache, so every save_pretrained_merged / push_to_hub_merged / GGUF export downloaded the full base model again. #6896 now downloads the 16-bit base into the normal Hugging Face cache once, and every later merge copies the shards from the cache instead of re-downloading them. A base model you already have in the Hugging Face cache is also picked up directly. (Switching to a different base such as 0.6B to 8B still needs that new base downloaded the first time, but only once.)
    To update: uv pip install --upgrade unsloth unsloth_zoo --force-reinstall --no-cache-dir (if it's not in the current release yet it'll be in the next one). Reopen if it still happens.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions