thoddnn / ComfyUI-MLX

MIT License
61 stars 4 forks source link

Question: MLXClipTextEncoder run time #9

Open jonny7737 opened 1 day ago

jonny7737 commented 1 day ago

Some times this node take 2 seconds to run and other times it takes 15-20 seconds to run.

Any idea why?

thoddnn commented 7 hours ago

Hey @jonny7737, can you send your workflow? Does the difference you see occur with the same prompt?

jonny7737 commented 6 hours ago

I test by modifying the prompt text. I change 'a beautiful woman' to 'an old man'.

What I see is that one will clip encode in 2 - 3 seconds and the next one will take 15 - 25 ( sometimes 35) seconds. There does not seem to be a correlation between the prompt text and the time. It is, in my tests, related to the order in which the prompts are encoded: man first or woman first.

I hope this is clear.

MLX-Test.json