comfyui

[Help] RX 9070 XT (AMD) 16g vram + 5600x 32g + win11 – CUDA invalid argument when loading MiniMaxH3VideoVAE / any success stories?

#17
by litacc - opened

Hi everyone,

I’m trying to run ComfyUI with the MiniMaxH3AudioVAE and MiniMaxH3VideoVAE models on my AMD Radeon RX 9070 XT (Windows 11). The audio VAE loads fine, but as soon as the workflow tries to load the video VAE (or decode video latents), I get the following error:

[ERROR] !!! Exception during processing !!! CUDA error: invalid argument
Search for `hipErrorInvalidValue' in https://rocm.docs.amd.com/projects/HIP/en/latest/index.html for more information.
Device-side assertion tracking was not enabled by user.
...
File "C:\ComfyUI-master\comfy\model_patcher.py", line 1075, in load
x[2].to(device_to)
torch.AcceleratorError: CUDA error: invalid argument

My main questions:

Has anyone successfully run the MiniMaxH3VideoVAE (or the whole MiniMaxH3 pipeline) on an RX 9070 XT (or any RDNA 3/4 AMD GPU) under Windows? If yes, what PyTorch version/driver/setup did you use?

Are there any known workarounds for this invalid argument error on AMD hardware – e.g., forcing CPU offload for the VAE, using a different attention implementation, or switching to Linux with proper ROCm support?

Could the error be related to the SageAttention dependency? If so, is there a way to disable it or replace it with standard PyTorch attention?

I’d really appreciate any hints, or even a confirmation that this is currently not supported on AMD GPUs. Thanks in advance for your time!

Feel free to adjust any details (e.g., driver version, PyTorch version) to match your actual setup. Good luck! πŸ€

Here is the traceback:

[INFO] Requested to load MiniMaxH3VideoVAE
[INFO] Unloaded partially: 5001.72 MB freed, 7208.36 MB remains loaded, 918.83 MB buffer reserved, lowvram patches: 0
[ERROR] !!! Exception during processing !!! CUDA error: invalid argument
Search for hipErrorInvalidValue' in https://rocm.docs.amd.com/projects/HIP/en/latest/index.html for more information. Device-side assertion tracking was not enabled by user. [ERROR] Traceback (most recent call last): File "C:\ComfyUI-master\execution.py", line 545, in execute output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI-master\execution.py", line 344, in get_output_data return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI-master\execution.py", line 318, in _async_map_node_over_list await process_inputs(input_dict, i) File "C:\ComfyUI-master\execution.py", line 306, in process_inputs result = f(**inputs) File "C:\ComfyUI-master\nodes.py", line 335, in decode images = vae.decode(latent) File "C:\ComfyUI-master\comfy\sd.py", line 1188, in decode model_management.raise_non_oom(e) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ File "C:\ComfyUI-master\comfy\model_management.py", line 395, in raise_non_oom raise e File "C:\ComfyUI-master\comfy\sd.py", line 1165, in decode model_management.load_models_gpu([self.patcher], memory_required=memory_used, force_full_load=self.disable_offload) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI-master\comfy\model_management.py", line 996, in load_models_gpu loaded_model.model_load(lowvram_model_memory, force_patch_weights=force_patch_weights) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI-master\comfy\model_management.py", line 782, in model_load self.model_use_more_vram(use_more_vram, force_patch_weights=force_patch_weights) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI-master\comfy\model_management.py", line 810, in model_use_more_vram return self.model.partially_load(self.device, extra_memory, force_patch_weights=force_patch_weights) ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI-master\comfy\model_patcher.py", line 1272, in partially_load raise e File "C:\ComfyUI-master\comfy\model_patcher.py", line 1269, in partially_load self.load(device_to, lowvram_model_memory=current_used + extra_memory, force_patch_weights=force_patch_weights, full_load=full_load) ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI-master\comfy\model_patcher.py", line 1075, in load x[2].to(device_to) ~~~~~~~^^^^^^^^^^^ File "C:\Users\***\AppData\Local\Programs\Python\Python313\Lib\site-packages\torch\nn\modules\module.py", line 1383, in to return self._apply(convert) ~~~~~~~~~~~^^^^^^^^^ File "C:\Users\***\AppData\Local\Programs\Python\Python313\Lib\site-packages\torch\nn\modules\module.py", line 964, in _apply param_applied = fn(param) File "C:\Users\***\AppData\Local\Programs\Python\Python313\Lib\site-packages\torch\nn\modules\module.py", line 1369, in convert return t.to( ~~~~^ device, ^^^^^^^ dtype if t.is_floating_point() or t.is_complex() else None, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ non_blocking, ^^^^^^^^^^^^^ ) ^ torch.AcceleratorError: CUDA error: invalid argument Search for hipErrorInvalidValue' in https://rocm.docs.amd.com/projects/HIP/en/latest/index.html for more information.
Device-side assertion tracking was not enabled by user.

please, if you got the solution share you generation time.

Sign up or log in to comment