You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E:\v311\Lib\site-packages_distutils_hack_init_.py:53: UserWarning: Reliance on distutils from stdlib is deprecated. Users must rely on setuptools to provide the distutils module. Avoid importing distutils or import setuptools first, and avoid setting SETUPTOOLS_USE_DISTUTILS=stdlib. Register concerns at https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml
warnings.warn(
Multiple distributions found for package optimum. Picked distribution: optimum
[Rewriter] Disabled (pass --rewrite to enable)
F:\NAVA\nava_src\models\nava\modules\vae2_2.py:906: UserWarning: expandable_segments not supported on this platform (Triggered internally at C:\actions-runner_work\pytorch\pytorch\pytorch\c10/cuda/CUDAAllocatorConfig.h:35.)
mean = torch.tensor(
Using cache found in C:\Users\nsg/.cache\torch\hub\IDRnD_ReDimNet_master
[AudioVAE] ReDimNet speaker model loaded successfully on cuda:0
temporal_scaling: 0.24 !!!!!
Score model (MMDIT) all parameters:6296995520
missing: [], unexpected: []
[Offload] T5 CPU offload enabled: encoder moves to GPU only during text encoding
Traceback (most recent call last):
File "F:\NAVA\inference_nava.py", line 810, in
main()
File "E:\v311\Lib\site-packages\torch\utils_contextlib.py", line 120, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "F:\NAVA\inference_nava.py", line 504, in main
apply_group_offload(pipe.model.backbone, args.offload_group_size, device)
File "F:\NAVA\inference_nava.py", line 147, in apply_group_offload
d[name] = p.data.pin_memory()
^^^^^^^^^^^^^^^^^^^
torch.AcceleratorError: CUDA error: resource already mapped
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.
python inference_nava.py --config configs/nava.yaml --ckpt /NAVA-model/NAVA_fp8.safetensors --out_dir ./eval_results_sp --data_format json --data_file text.jsonl --t5_offload --frames 17 --fps 8 --steps 30 --gen_turn 1
JSONL: {"prompt": "女子在跳舞", "image_path": "E:/13.png"}
你好,我用4090的48G 加载FP8模型,无论宽高大小,帧数大小,FPS在8-24之间,I2V出来的视频除首帧外,后面都变形的,T2V也是人像模糊不成样,感觉是生图模块不清晰,合成出来就不行,请问是否这样,还是有什么参数没设好?
idx0_.-av-0.mp4
另外如果加载全量的NAVA模型,使用了--group_offload,GPU占28G,内存占85G时,还没推理提示错误如下:
E:\v311\Lib\site-packages_distutils_hack_init_.py:53: UserWarning: Reliance on distutils from stdlib is deprecated. Users must rely on setuptools to provide the distutils module. Avoid importing distutils or import setuptools first, and avoid setting SETUPTOOLS_USE_DISTUTILS=stdlib. Register concerns at https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml
warnings.warn(
Multiple distributions found for package optimum. Picked distribution: optimum
[Rewriter] Disabled (pass --rewrite to enable)
F:\NAVA\nava_src\models\nava\modules\vae2_2.py:906: UserWarning: expandable_segments not supported on this platform (Triggered internally at C:\actions-runner_work\pytorch\pytorch\pytorch\c10/cuda/CUDAAllocatorConfig.h:35.)
mean = torch.tensor(
Using cache found in C:\Users\nsg/.cache\torch\hub\IDRnD_ReDimNet_master
[AudioVAE] ReDimNet speaker model loaded successfully on cuda:0
temporal_scaling: 0.24 !!!!!
Score model (MMDIT) all parameters:6296995520
missing: [], unexpected: []
[Offload] T5 CPU offload enabled: encoder moves to GPU only during text encoding
Traceback (most recent call last):
File "F:\NAVA\inference_nava.py", line 810, in
main()
File "E:\v311\Lib\site-packages\torch\utils_contextlib.py", line 120, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "F:\NAVA\inference_nava.py", line 504, in main
apply_group_offload(pipe.model.backbone, args.offload_group_size, device)
File "F:\NAVA\inference_nava.py", line 147, in apply_group_offload
d[name] = p.data.pin_memory()
^^^^^^^^^^^^^^^^^^^
torch.AcceleratorError: CUDA error: resource already mapped
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1
Compile with
TORCH_USE_CUDA_DSAto enable device-side assertions.这能怎么解决,请求解!