Moving DynamicSwap_HunyuanVideoTransformer3DModelPacked to cuda:0 with preserved memory: 6 GB
0%| | 0/25 [00:00<?, ?it/s]main.c
C:\Users\Nature\AppData\Local\Temp\tmpks1qknox\main.c(12): fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
0%| | 0/25 [00:00<?, ?it/s]
Traceback (most recent call last):
File "D:\Game\02_framepack_cu126_torch26_V2\webui\demo_gradio.py", line 241, in worker
generated_latents = sample_hunyuan(
File "D:\Game\02_framepack_cu126_torch26_V2\system\python\lib\site-packages\torch\utils_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "D:\Game\02_framepack_cu126_torch26_V2\webui\diffusers_helper\pipelines\k_diffusion_hunyuan.py", line 116, in sample_hunyuan
results = sample_unipc(k_model, latents, sigmas, extra_args=sampler_kwargs, disable=False, callback=callback)
File "D:\Game\02_framepack_cu126_torch26_V2\webui\diffusers_helper\k_diffusion\uni_pc_fm.py", line 141, in sample_unipc
return FlowMatchUniPC(model, extra_args=extra_args, variant=variant).sample(noise, sigmas=sigmas, callback=callback, disable_pbar=disable)
File "D:\Game\02_framepack_cu126_torch26_V2\webui\diffusers_helper\k_diffusion\uni_pc_fm.py", line 118, in sample
model_prev_list = [self.model_fn(x, vec_t)]
File "D:\Game\02_framepack_cu126_torch26_V2\webui\diffusers_helper\k_diffusion\uni_pc_fm.py", line 23, in model_fn
return self.model(x, t, **self.extra_args)
File "D:\Game\02_framepack_cu126_torch26_V2\webui\diffusers_helper\k_diffusion\wrapper.py", line 37, in k_model
pred_positive = transformer(hidden_states=hidden_states, timestep=timestep, return_dict=False, **extra_args['positive'])[0].float()
File "D:\Game\02_framepack_cu126_torch26_V2\system\python\lib\site-packages\torch\nn\modules\module.py", line 1739, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "D:\Game\02_framepack_cu126_torch26_V2\system\python\lib\site-packages\torch\nn\modules\module.py", line 1750, in _call_impl
return forward_call(*args, **kwargs)
File "D:\Game\02_framepack_cu126_torch26_V2\webui\diffusers_helper\models\hunyuan_video_packed.py", line 973, in forward
hidden_states, encoder_hidden_states = self.gradient_checkpointing_method(
File "D:\Game\02_framepack_cu126_torch26_V2\webui\diffusers_helper\models\hunyuan_video_packed.py", line 832, in gradient_checkpointing_method
result = block(*args)
File "D:\Game\02_framepack_cu126_torch26_V2\system\python\lib\site-packages\torch\nn\modules\module.py", line 1739, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "D:\Game\02_framepack_cu126_torch26_V2\system\python\lib\site-packages\torch\nn\modules\module.py", line 1750, in _call_impl
return forward_call(*args, **kwargs)
File "D:\Game\02_framepack_cu126_torch26_V2\webui\diffusers_helper\models\hunyuan_video_packed.py", line 652, in forward
attn_output, context_attn_output = self.attn(
File "D:\Game\02_framepack_cu126_torch26_V2\system\python\lib\site-packages\torch\nn\modules\module.py", line 1739, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "D:\Game\02_framepack_cu126_torch26_V2\system\python\lib\site-packages\torch\nn\modules\module.py", line 1750, in _call_impl
return forward_call(*args, **kwargs)
File "D:\Game\02_framepack_cu126_torch26_V2\system\python\lib\site-packages\diffusers\models\attention_processor.py", line 605, in forward
return self.processor(
File "D:\Game\02_framepack_cu126_torch26_V2\webui\diffusers_helper\models\hunyuan_video_packed.py", line 172, in call
hidden_states = attn_varlen_func(query, key, value, cu_seqlens_q, cu_seqlens_kv, max_seqlen_q, max_seqlen_kv)
File "D:\Game\02_framepack_cu126_torch26_V2\webui\diffusers_helper\models\hunyuan_video_packed.py", line 111, in attn_varlen_func
x = sageattn(q, k, v, tensor_layout='NHD')
File "D:\Game\02_framepack_cu126_torch26_V2\system\python\lib\site-packages\sageattention\core.py", line 105, in sageattn
q_int8, q_scale, k_int8, k_scale = per_block_int8(q, k, sm_scale=sm_scale, tensor_layout=tensor_layout)
File "D:\Game\02_framepack_cu126_torch26_V2\system\python\lib\site-packages\sageattention\quant_per_block.py", line 63, in per_block_int8
quant_per_block_int8_kernel[grid](
File "D:\Game\02_framepack_cu126_torch26_V2\system\python\lib\site-packages\triton\runtime\jit.py", line 345, in
return lambda *args, **kwargs: self.run(grid=grid, warmup=False, *args, **kwargs)
File "D:\Game\02_framepack_cu126_torch26_V2\system\python\lib\site-packages\triton\runtime\jit.py", line 607, in run
device = driver.active.get_current_device()
File "D:\Game\02_framepack_cu126_torch26_V2\system\python\lib\site-packages\triton\runtime\driver.py", line 23, in getattr
self._initialize_obj()
File "D:\Game\02_framepack_cu126_torch26_V2\system\python\lib\site-packages\triton\runtime\driver.py", line 20, in _initialize_obj
self._obj = self._init_fn()
File "D:\Game\02_framepack_cu126_torch26_V2\system\python\lib\site-packages\triton\runtime\driver.py", line 9, in _create_driver
return actives0
File "D:\Game\02_framepack_cu126_torch26_V2\system\python\lib\site-packages\triton\backends\nvidia\driver.py", line 412, in init
self.utils = CudaUtils() # TODO: make static
File "D:\Game\02_framepack_cu126_torch26_V2\system\python\lib\site-packages\triton\backends\nvidia\driver.py", line 90, in init
mod = compile_module_from_src(Path(os.path.join(dirname, "driver.c")).read_text(), "cuda_utils")
File "D:\Game\02_framepack_cu126_torch26_V2\system\python\lib\site-packages\triton\backends\nvidia\driver.py", line 67, in compile_module_from_src
so = _build(name, src_path, tmpdir, library_dirs(), include_dir, libraries)
File "D:\Game\02_framepack_cu126_torch26_V2\system\python\lib\site-packages\triton\runtime\build.py", line 79, in _build
ret = subprocess.check_call(cc_cmd)
File "subprocess.py", line 369, in check_call
subprocess.CalledProcessError: Command '['C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\bin\Hostx64\x64\cl.EXE', 'C:\Users\Nature\AppData\Local\Temp\tmpks1qknox\main.c', '/nologo', '/O2', '/LD', '/wd4819', '/ID:\Game\02_framepack_cu126_torch26_V2\system\python\Lib\site-packages\triton\backends\nvidia\include', '/IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\include', '/IC:\Users\Nature\AppData\Local\Temp\tmpks1qknox', '/ID:\Game\02_framepack_cu126_torch26_V2\system\python\Include', '/IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\include', '/IC:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\shared', '/IC:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt', '/IC:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um', '/link', '/LIBPATH:D:\Game\02_framepack_cu126_torch26_V2\system\python\Lib\site-packages\triton\backends\nvidia\lib', '/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\lib\x64', '/LIBPATH:D:\Game\02_framepack_cu126_torch26_V2\system\python\libs', '/LIBPATH:D:\Game\02_framepack_cu126_torch26_V2\system\python\libs', '/LIBPATH:C:\Python310\libs', '/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\lib\x64', '/LIBPATH:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\ucrt\x64', '/LIBPATH:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\um\x64', '/LIBPATH:D:\Game\02_framepack_cu126_torch26_V2\system\python\libs', '/LIBPATH:D:\Game\02_framepack_cu126_torch26_V2\system\python\libs', '/LIBPATH:C:\Python310\libs', '/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\lib\x64', '/LIBPATH:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\ucrt\x64', '/LIBPATH:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\um\x64', '/LIBPATH:D:\Game\02_framepack_cu126_torch26_V2\system\python\libs', '/LIBPATH:D:\Game\02_framepack_cu126_torch26_V2\system\python\libs', '/LIBPATH:C:\Python310\libs', '/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\lib\x64', '/LIBPATH:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\ucrt\x64', '/LIBPATH:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\um\x64', '/LIBPATH:D:\Game\02_framepack_cu126_torch26_V2\system\python\libs', '/LIBPATH:D:\Game\02_framepack_cu126_torch26_V2\system\python\libs', '/LIBPATH:C:\Python310\libs', '/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\lib\x64', '/LIBPATH:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\ucrt\x64', '/LIBPATH:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\um\x64', 'cuda.lib', '/OUT:C:\Users\Nature\AppData\Local\Temp\tmpks1qknox\cuda_utils.cp310-win_amd64.pyd']' returned non-zero exit status 2.
which one is error?