Disk Usage Duplication
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
Research direction
Reproduce the behavior on Windows using the paths under %USERPROFILE%.docker\models\blobs\sha256 and bundles\sha256, then trace how downloaded models are materialized and how active downloads are listed. Confirm whether the blob and .gguf files are both required, and determine what should happen to download visibility while a model is still downloading.
Written by the indexing model from the issue text.
Description
Hello.
I hope you'll see this as an improvement. I've found a problem, more of a bug than a bug, and I don't think I'm the only one...
In my case, I have very little disk space, only 512 GB, of which I have around 100 GB available. As you can imagine, I'm constantly trying to delete unnecessary files and applications. Using large file search tools, I've noticed that the downloaded AI models are "duplicated." I found the AI model, which in my case is a small 3 GB one, and there's another one of the same size (3 GB). When I delete the model, both are deleted.
The files are located primarily in this path (I'm a Windows user):
%USERPROFILE%.docker\models\
From this path, the folders that matter in this case are "blobs" and "bundles." Both contain the "sha256" folder, and the large files are located within it:
-
Path: %USERPROFILE%.docker\models\blobs\sha256\
-
File: b8906b8c5e05e57b657646bbc657bd35814a269b2c20f0a2579047fafa1a67dd
-
Path: %USERPROFILE%.docker\models\bundles\sha256\2181595ff93ee2e979ccba03ab07c02ecbfaa31db978df52b429cc1e78fb83cc\model\
-
File: gemma-4-E2B-it-UD-Q4_K_XL.gguf
I don't know if it's a bug, intentional, or if it provides some benefit I'm missing, but with the current prices of hard drives and RAM, it's a problem, at least for me, since I don't have the budget and storage space is limited.
I asked Gordon, its AI, if I could delete any of those files, and it said no, explaining that one is the AI model and the other is the uncompressed hash, and it's used to verify that the same model isn't downloaded again...
That's surprising, because Actually, it's not 3 GB being downloaded, but 6 GB. For me, that's too much, especially if you want to download a larger model.
If what Gordon says is true, why not use another mechanism to identify that the AI model has already been downloaded, like Docker images? Yes, I also asked him that, and he said it's because the models don't use layers like Docker images, but I wasn't referring to that. I meant the use of tags, a smaller hash, or another methodology.
NOTE: When downloading the model, the two files aren't generated; instead, when using the downloaded model, the .gguf file is generated.
Oh! Also, in the list of AI models, when another model is being downloaded, the model being downloaded disappears; it's just not listed. It continues downloading in the background (apparently), but the download tracking is lost.
- Dominant language
- Go
- Stars
- 665
- Forks
- 161
- Avg merge
- 4h 25m
- Merged PRs (30d)
- 18
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker/model-runner
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
docker/model-runner#1118 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 20/100
docker/model-runner#1107 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 43/100
docker/model-runner#1103 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 Half a day Newbie friendliness 45/100
docker/model-runner#1100 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
docker/model-runner#1077 · 1 comment ·
Maintainers usually reply within 1 day
All issues in docker/model-runner
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
Add CybeDefendOpen
Difficulty 1/5 Under an hour Newbie friendliness 66/100
slavakurilyak/awesome-ai-agents#1031 ·