Enable async offload by default for AMD.

This commit is contained in:
comfyanonymous 2025-12-27 18:50:18 -05:00 committed by GitHub
parent 36deef2c57
commit 17e2e9bef7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1019,8 +1019,8 @@ NUM_STREAMS = 0
if args.async_offload is not None: if args.async_offload is not None:
NUM_STREAMS = args.async_offload NUM_STREAMS = args.async_offload
else: else:
# Enable by default on Nvidia # Enable by default on Nvidia and AMD
if is_nvidia(): if is_nvidia() or is_amd():
NUM_STREAMS = 2 NUM_STREAMS = 2
if args.disable_async_offload: if args.disable_async_offload: