ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

HiDreams w/ llama only works better with cached encoded empty string conditionings than with all zeroes.

Open envy-ai opened this issue 1 year ago • 5 comments

This is similar to my previous pull request, but it should work fine with the changes the other PR added. What it didn't add were cached, encoded empty prompts for the pooled and t5 outputs, and instead it continued the behavior of sending all zeroes for those.

Llama only, with torch.zeroes for other encoders: ComfyUI_02161_

Llama only, with cached encoded empty strings for other encoders: ComfyUI_02160_

envy-ai avatar Apr 21 '25 05:04 envy-ai

Can you please explain what to change in code to use your test cached encoded empty files. I downloaded them but don't know what to change in hidream.py.

Thx

n3r3d100ka avatar Apr 24 '25 14:04 n3r3d100ka

@n3r3d100ka

https://github.com/envy-ai/ComfyUI/commit/676b93436450e3ecbba12633676065f00d0cd5fd

3dluvr avatar Apr 25 '25 00:04 3dluvr

@n3r3d100ka

envy-ai@676b934

Thank you very much for pointing it out for me. I was not able to find it.

n3r3d100ka avatar Apr 25 '25 18:04 n3r3d100ka

it works, if the devs include it , this will be handy for weaker gpus. first one is quad clip second one is this implementation hidream_00030_ hidream_00029_

patientx avatar Apr 25 '25 22:04 patientx

it works, if the devs include it , this will be handy for weaker gpus. first one is quad clip second one is this implementation

Nice...I re-ran your workflow with Llama only, HiDream Full uncensored, using my new favourite sampler Distance+Beta, in only 10 steps (73.64sec): hidream_full_distance_beta

Compared to UniPC+Simple, in 30 steps (79.21sec): hidream_full_unipc_simple

3dluvr avatar Apr 25 '25 23:04 3dluvr

Test Evidence Check

⚠️ Warning: Test Explanation Missing

If this PR modifies behavior that requires testing, a test explanation is required. PRs lacking applicable test explanations may not be reviewed until added. Please add test explanations to ensure code quality and prevent regressions.

comfy-pr-bot avatar Jan 22 '26 03:01 comfy-pr-bot