Queue concurrency 1 to prevent CUDA OOM
Mandatory for me as I have a RTX 2070 (8Gb) and I get CUDA OOM if two users launch jobs at the same time. I can also use multiple tabs and jobs will be queued. You may not want it to be the default though.
This commit is contained in:
parent
93e7dbaa71
commit
20c33f4423
1 changed files with 1 additions and 0 deletions
1
webui.py
1
webui.py
|
@ -1340,4 +1340,5 @@ demo = gr.TabbedInterface(
|
|||
"""
|
||||
)
|
||||
|
||||
demo.queue(concurrency_count=1)
|
||||
demo.launch()
|
||||
|
|
Loading…
Reference in a new issue