Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

envy-ai
Copy link

@envy-ai envy-ai commented Apr 21, 2025

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_

…lity and prompt adherence with llama-only HiDreams
@envy-ai envy-ai requested a review from comfyanonymous as a code owner April 21, 2025 05:17
@n3r3d100ka
Copy link

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

@3dluvr
Copy link

3dluvr commented Apr 25, 2025

@n3r3d100ka

envy-ai@676b934

@n3r3d100ka
Copy link

@n3r3d100ka

envy-ai@676b934

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

@patientx
Copy link

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_

@3dluvr
Copy link

3dluvr commented Apr 25, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants