Skip to content
Discussion options

You must be logged in to vote

Alright, for anyone who wants a setting for Comfyui that achieves the following.
A: llama-swap pokes comfyui's api/prompt, that tells us how many active jobs/queue, we then wait until they are done.
B: api/free unload_models and free_memory, telling comfyui to clean up now that its hopefully not busy.
C: api/system_stats, we fetch vram_total and vram_free, and do some math, accounting for comfyui being a mess, if 93% is free, comfyui is probably done clearing up, if not, repeat from B.

Idle time between vram_threshold is met and llama-swap loads something else is at best 3 seconds or so, good enough!
The result is with one GPU, you can now reliably have Comfyui hooked up to llama-swap, wi…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@jamilnielsen
Comment options

@jamilnielsen
Comment options

Comment options

You must be logged in to vote
1 reply
@mostlygeek
Comment options

Comment options

You must be logged in to vote
1 reply
@LvNaTiCC
Comment options

Answer selected by jamilnielsen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants