Add optional SSD model cache for models stored on HDD

Open
#17,914 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python, pytorch
Domain
api, backend, frontend

Research direction

The issue names no files, tests or entry points, so there is no obvious starting code. Before any edit, the design needs settling: cache location, size limit, eviction, and how copies are validated after an interrupted copy. Done means a maintainer has agreed that design in the thread and a scoped first step exists.

Written by the indexing model from the issue text.

Description

Feature
Feature Idea

With SSDs expensive, many users may keep a large model collection on an HDD and reserve limited SSD space for active work. Moving an entire collection to SSD is often impractical.

Could ComfyUI add an optional model cache with these UI locations?

  • Settings → Model Cache: choose an SSD folder and cache size limit; enable or disable automatic staging.
  • Execution Queue: show “Copying models to cache” with the file name and byte-level progress before generation starts.
  • Model Library: mark cached models and offer Delete cached copy, without deleting the HDD original.

When a workflow is queued, ComfyUI would copy only the models it needs, then reuse those copies for later prompts and batches. It should handle insufficient space, cancellation, and interrupted copies without loading a partial file. Exposing the same progress through the API or WebSocket would support clients that submit prompts remotely.

Existing Solutions

No response

Other

No response

Dominant language
Python
Stars
150k
Forks
17.9k
Avg merge
1d 1h
Merged PRs (30d)
181

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Comfy-Org/ComfyUI

All issues in Comfy-Org/ComfyUI

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.