Skip to content

models downloaded by diffusers 0.10 do not appear in scan-cache #1259

@keturn

Description

@keturn

Describe the bug

I downloaded several models with diffusers.StableDiffusionPipeline.from_pretrained. They download successfully and work just fine, but then when I go to try to figure out how to recover some disk space, I see they do not appear in the output of huggingface-cli scan-cache, neither as line-items nor accounted for in the reported total size on disk.

The output does say Got 11 warning(s) while scanning. Use -vvv to print details.

Repo path is not a directory: 🏠/.cache/huggingface/hub/version.txt
Snapshots dir doesn't exist in cached repo: 🏠/.cache/huggingface/hub/models--wavymulder--wavyfusion/snapshots
Reference(s) refer to missing commit hashes: {'f15bc7606314c6fa957b4267bee417ee866c0b84': {'main'}, '3a5394eabe61df7c1b14a554772a48307987bada': {'flax'}} (🏠/.cache/huggingface/hub/models--CompVis--stable-diffusion-v1-4).

the rest of those 11 warnings being of the "Snapshots dir doesn't exist in cached repo" type.

Reproduction

import diffusers, torch
diffusers.StableDiffusionPipeline.from_pretrained("wavymulder/wavyfusion", torch_dtype=torch.float16)
huggingface-cli scan-cache -vvv

Logs

No response

System info

- huggingface_hub version: 0.11.1
- Platform: Linux-5.15.0-56-generic-x86_64-with-glibc2.35
- Python version: 3.10.6
- Running in iPython ?: No
- Running in notebook ?: No
- Running in Google Colab ?: No
- Token path ?: 🏠/.huggingface/token
- Has saved token ?: True
- Who am I ?: keturn
- Configured git credential helpers: 
- FastAI: N/A
- Tensorflow: N/A
- Torch: 1.13.0
- Jinja2: 3.1.2
- Graphviz: N/A
- Pydot: N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions