Hangover3832 / ComfyUI-Hangover-Moondream

Moondream is a lightweight multimodal large language model

Home Page:https://github.com/Hangover3832/ComfyUI-Hangover-Moondream

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: pre-existing copy of the model.

caniyabanci76 opened this issue · comments

Not a bug, but a question. If I already have a local copy of the moondream model, what do i need to change to make it point to that instead of the cached version that it tries to download?

commented

What you can try is to place all the files into ConfyUI/models/moondream2 and change the following code:

124:                self.model = AutoModel.from_pretrained(
125:                    "ComfyUI/models/moondream2", 
126:                    trust_remote_code=trust_remote_code,
127:                    revision=model_revision
128:                ).to(dev)
129:                self.tokenizer = Tokenizer.from_pretrained("ComfyUI/models/moondream2")

Thanks!