Skip to content

Error: probability tensor contains either inf, nan or element < 0 #69

@Mirodil

Description

@Mirodil

Hello,

Thank you for this awesome project.

I am running into the following issues when I install and run the example workflow for this node.
The first issue is that I see this warning: Workflow contains unsupported nodes(highlighted red). Remove those to run the workflow.

The second issue is that when I ran despite the warning above, I got the following error message:

probability tensor contains either `inf`, `nan` or element < 0

Here are details for the error:

probability tensor contains either `inf`, `nan` or element < 0 (Toggle me!)

ComfyUI Error Report

Error Details

  • Node ID: 11
  • Node Type: VibeVoiceTTS
  • Exception Type: RuntimeError
  • Exception Message: probability tensor contains either inf, nan or element < 0

Stack Trace

  File "/.../ComfyUI/execution.py", line 510, 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, hidden_inputs=hidden_inputs)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/.../ComfyUI/execution.py", line 324, 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, hidden_inputs=hidden_inputs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/.../ComfyUI/execution.py", line 298, in _async_map_node_over_list
    await process_inputs(input_dict, i)

  File "/.../ComfyUI/execution.py", line 286, in process_inputs
    result = f(**inputs)
             ^^^^^^^^^^^

  File "/.../ComfyUI/custom_nodes/ComfyUI-VibeVoice/vibevoice_nodes.py", line 174, in generate_audio
    raise e

  File "/.../ComfyUI/custom_nodes/ComfyUI-VibeVoice/vibevoice_nodes.py", line 161, in generate_audio
    outputs = model.generate(
              ^^^^^^^^^^^^^^^

  File "/.../ComfyUI/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 120, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^

  File "/.../ComfyUI/custom_nodes/ComfyUI-VibeVoice/vibevoice/modular/modeling_vibevoice_inference.py", line 513, in generate
    next_tokens = torch.multinomial(probs, num_samples=1).squeeze(1)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

System Information

  • ComfyUI Version: 0.3.75
  • Arguments: main.py
  • OS: posix
  • Python Version: 3.12.3 (main, May 30 2024, 10:24:29) [Clang 15.0.0 (clang-1500.3.9.4)]
  • Embedded Python: false
  • PyTorch Version: 2.9.1

Devices

  • Name: mps
    • Type: mps
    • VRAM Total: 68719476736
    • VRAM Free: 43540004864
    • Torch VRAM Total: 68719476736
    • Torch VRAM Free: 43540004864

Logs

2025-11-26T21:12:23.616636 - [START] Security scan2025-11-26T21:12:23.616649 - 
2025-11-26T21:12:23.903219 - [ComfyUI-Manager] Using uv as Python module for pip operations.
2025-11-26T21:12:24.405723 - [DONE] Security scan2025-11-26T21:12:24.405744 - 
2025-11-26T21:12:24.450129 - ## ComfyUI-Manager: installing dependencies done.2025-11-26T21:12:24.450267 - 
2025-11-26T21:12:24.450313 - ** ComfyUI startup time:2025-11-26T21:12:24.450331 -  2025-11-26T21:12:24.450345 - 2025-11-26 21:12:24.4502025-11-26T21:12:24.450359 - 
2025-11-26T21:12:24.450417 - ** Platform:2025-11-26T21:12:24.450438 -  2025-11-26T21:12:24.450451 - Darwin2025-11-26T21:12:24.450465 - 
2025-11-26T21:12:24.450479 - ** Python version:2025-11-26T21:12:24.450493 -  2025-11-26T21:12:24.450506 - 3.12.3 (main, May 30 2024, 10:24:29) [Clang 15.0.0 (clang-1500.3.9.4)]2025-11-26T21:12:24.450524 - 
2025-11-26T21:12:24.450539 - ** Python executable:2025-11-26T21:12:24.450552 -  2025-11-26T21:12:24.450564 - /.../ComfyUI/.venv/bin/python2025-11-26T21:12:24.450577 - 
2025-11-26T21:12:24.450591 - ** ComfyUI Path:2025-11-26T21:12:24.450603 -  2025-11-26T21:12:24.450616 - /.../ComfyUI2025-11-26T21:12:24.450628 - 
2025-11-26T21:12:24.450645 - ** ComfyUI Base Folder Path:2025-11-26T21:12:24.450658 -  2025-11-26T21:12:24.450670 - /.../ComfyUI2025-11-26T21:12:24.450683 - 
2025-11-26T21:12:24.450702 - ** User directory:2025-11-26T21:12:24.450715 -  2025-11-26T21:12:24.450729 - /.../ComfyUI/user2025-11-26T21:12:24.450742 - 
2025-11-26T21:12:24.450757 - ** ComfyUI-Manager config path:2025-11-26T21:12:24.450770 -  2025-11-26T21:12:24.450786 - /.../ComfyUI/user/default/ComfyUI-Manager/config.ini2025-11-26T21:12:24.450799 - 
2025-11-26T21:12:24.450817 - ** Log path:2025-11-26T21:12:24.450832 -  2025-11-26T21:12:24.450846 - /.../ComfyUI/user/comfyui.log2025-11-26T21:12:24.450861 - 
2025-11-26T21:12:24.512474 - 
Prestartup times for custom nodes:
2025-11-26T21:12:24.512596 -    1.0 seconds: /.../ComfyUI/custom_nodes/comfyui-manager
2025-11-26T21:12:24.512633 - 
2025-11-26T21:12:25.032503 - Checkpoint files will always be loaded safely.
2025-11-26T21:12:25.048222 - Total VRAM 65536 MB, total RAM 65536 MB
2025-11-26T21:12:25.048293 - pytorch version: 2.9.1
2025-11-26T21:12:25.050826 - Mac Version (26, 0, 1)
2025-11-26T21:12:25.050946 - Set vram state to: SHARED
2025-11-26T21:12:25.050994 - Device: mps
2025-11-26T21:12:25.657664 - Using sub quadratic optimization for attention, if you have memory or speed issues try using: --use-split-cross-attention
2025-11-26T21:12:26.803023 - Python version: 3.12.3 (main, May 30 2024, 10:24:29) [Clang 15.0.0 (clang-1500.3.9.4)]
2025-11-26T21:12:26.803107 - ComfyUI version: 0.3.75
2025-11-26T21:12:26.804711 - ComfyUI frontend version: 1.32.9
2025-11-26T21:12:26.805038 - [Prompt Server] web root: /.../ComfyUI/.venv/lib/python3.12/site-packages/comfyui_frontend_package/static
2025-11-26T21:12:27.037580 - Total VRAM 65536 MB, total RAM 65536 MB
2025-11-26T21:12:27.037666 - pytorch version: 2.9.1
2025-11-26T21:12:27.037809 - Mac Version (26, 0, 1)
2025-11-26T21:12:27.037914 - Set vram state to: SHARED
2025-11-26T21:12:27.037953 - Device: mps
2025-11-26T21:12:27.292751 - ### Loading: ComfyUI-Manager (V3.37.2)
2025-11-26T21:12:27.293032 - [ComfyUI-Manager] network_mode: public
2025-11-26T21:12:27.383248 - ### ComfyUI Version: v0.3.75-12-geaf68c9b | Released on '2025-11-26'
2025-11-26T21:12:27.395807 - [ComfyUI-VibeVoice] Scanning for VibeVoice models in: /.../ComfyUI/models/tts/VibeVoice
2025-11-26T21:12:27.396020 - [ComfyUI-VibeVoice] Discovered VibeVoice models: ['VibeVoice-1.5B', 'VibeVoice-Large']
2025-11-26T21:12:27.556444 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
2025-11-26T21:12:27.557012 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
2025-11-26T21:12:27.674819 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
2025-11-26T21:12:27.692235 - [ComfyUI-VibeVoice] APEX FusedRMSNorm not available, using native implementation
2025-11-26T21:12:27.713647 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
2025-11-26T21:12:27.748989 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
2025-11-26T21:12:27.929722 - 
Import times for custom nodes:
2025-11-26T21:12:27.929824 -    0.0 seconds: /.../ComfyUI/custom_nodes/websocket_image_save.py
2025-11-26T21:12:27.929861 -    0.1 seconds: /.../ComfyUI/custom_nodes/comfyui-manager
2025-11-26T21:12:27.929892 -    0.5 seconds: /.../ComfyUI/custom_nodes/ComfyUI-VibeVoice
2025-11-26T21:12:27.929917 - 
2025-11-26T21:12:28.096524 - Context impl SQLiteImpl.
2025-11-26T21:12:28.096606 - Will assume non-transactional DDL.
2025-11-26T21:12:28.097090 - No target revision found.
2025-11-26T21:12:28.111514 - Starting server

2025-11-26T21:12:28.111758 - To see the GUI go to: http://127.0.0.1:8188
2025-11-26T21:12:30.830171 - FETCH ComfyRegistry Data: 5/1082025-11-26T21:12:30.830417 - 
2025-11-26T21:12:34.788483 - FETCH ComfyRegistry Data: 10/1082025-11-26T21:12:34.788652 - 
2025-11-26T21:12:38.263891 - FETCH ComfyRegistry Data: 15/1082025-11-26T21:12:38.264065 - 
2025-11-26T21:12:41.756486 - FETCH ComfyRegistry Data: 20/1082025-11-26T21:12:41.756664 - 
2025-11-26T21:12:45.224665 - FETCH ComfyRegistry Data: 25/1082025-11-26T21:12:45.224755 - 
2025-11-26T21:12:49.441151 - FETCH ComfyRegistry Data: 30/1082025-11-26T21:12:49.441326 - 
2025-11-26T21:12:52.930145 - FETCH ComfyRegistry Data: 35/1082025-11-26T21:12:52.930224 - 
2025-11-26T21:12:55.179669 - got prompt
2025-11-26T21:12:55.184703 - WARNING: [Errno 2] No such file or directory: '/.../ComfyUI/input/male_rickmorty.mp3'
2025-11-26T21:12:55.185733 - WARNING: [Errno 2] No such file or directory: '/.../ComfyUI/input/male_stewie.mp3'
2025-11-26T21:12:55.186673 - Requested to load VibeVoiceModelHandler
2025-11-26T21:12:55.189241 - [ComfyUI-VibeVoice] Loading VibeVoice models for 'VibeVoice-1.5B' to mps...
2025-11-26T21:12:55.190416 - [ComfyUI-VibeVoice] Attention Mode: Eager (Most Compatible)
2025-11-26T21:12:55.345909 - [ComfyUI-VibeVoice] Loading model 'VibeVoice-1.5B' with dtype: torch.float16 and attention: 'eager'
2025-11-26T21:12:55.348896 - `torch_dtype` is deprecated! Use `dtype` instead!
2025-11-26T21:12:56.409908 - 
Loading checkpoint shards: 100%|█████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00,  3.24it/s]2025-11-26T21:12:56.410138 - 
Loading checkpoint shards: 100%|█████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00,  3.09it/s]2025-11-26T21:12:56.410195 - 
2025-11-26T21:12:56.426333 - [ComfyUI-VibeVoice] Successfully configured model 'VibeVoice-1.5B' with eager attention
2025-11-26T21:12:56.454165 - loaded completely; 95367431640625005117571072.00 MB usable, 5602.38 MB loaded, full load: True
2025-11-26T21:12:56.457417 - FETCH ComfyRegistry Data: 40/1082025-11-26T21:12:56.458068 - 
2025-11-26T21:12:56.531925 - 
Generating (active: 1/1):   0%|                                                                                        | 0/250 [00:00<?, ?it/s]2025-11-26T21:12:56.659467 - 
2025-11-26T21:12:56.659677 - [ComfyUI-VibeVoice] Error during VibeVoice generation with eager attention: probability tensor contains either `inf`, `nan` or element < 0
2025-11-26T21:12:56.659810 - !!! Exception during processing !!! probability tensor contains either `inf`, `nan` or element < 0
2025-11-26T21:12:56.660989 - Traceback (most recent call last):
  File "/.../ComfyUI/execution.py", line 510, 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, hidden_inputs=hidden_inputs)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/.../ComfyUI/execution.py", line 324, 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, hidden_inputs=hidden_inputs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/.../ComfyUI/execution.py", line 298, in _async_map_node_over_list
    await process_inputs(input_dict, i)
  File "/.../ComfyUI/execution.py", line 286, in process_inputs
    result = f(**inputs)
             ^^^^^^^^^^^
  File "/.../ComfyUI/custom_nodes/ComfyUI-VibeVoice/vibevoice_nodes.py", line 174, in generate_audio
    raise e
  File "/.../ComfyUI/custom_nodes/ComfyUI-VibeVoice/vibevoice_nodes.py", line 161, in generate_audio
    outputs = model.generate(
              ^^^^^^^^^^^^^^^
  File "/.../ComfyUI/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 120, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/.../ComfyUI/custom_nodes/ComfyUI-VibeVoice/vibevoice/modular/modeling_vibevoice_inference.py", line 513, in generate
    next_tokens = torch.multinomial(probs, num_samples=1).squeeze(1)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: probability tensor contains either `inf`, `nan` or element < 0

2025-11-26T21:12:56.662017 - Prompt executed in 1.48 seconds
2025-11-26T21:12:59.976970 - FETCH ComfyRegistry Data: 45/1082025-11-26T21:12:59.977152 - 
2025-11-26T21:13:03.473296 - FETCH ComfyRegistry Data: 50/1082025-11-26T21:13:03.473410 - 
2025-11-26T21:13:07.024706 - FETCH ComfyRegistry Data: 55/1082025-11-26T21:13:07.024781 - 
2025-11-26T21:13:10.516160 - FETCH ComfyRegistry Data: 60/1082025-11-26T21:13:10.516366 - 
2025-11-26T21:13:14.763337 - FETCH ComfyRegistry Data: 65/1082025-11-26T21:13:14.763466 - 
2025-11-26T21:13:18.249515 - FETCH ComfyRegistry Data: 70/1082025-11-26T21:13:18.249626 - 
2025-11-26T21:13:21.786438 - FETCH ComfyRegistry Data: 75/1082025-11-26T21:13:21.786599 - 
2025-11-26T21:13:25.314171 - FETCH ComfyRegistry Data: 80/1082025-11-26T21:13:25.314357 - 
2025-11-26T21:13:28.823881 - FETCH ComfyRegistry Data: 85/1082025-11-26T21:13:28.824049 - 
2025-11-26T21:13:32.394538 - FETCH ComfyRegistry Data: 90/1082025-11-26T21:13:32.394843 - 
2025-11-26T21:13:35.871516 - FETCH ComfyRegistry Data: 95/1082025-11-26T21:13:35.871685 - 
2025-11-26T21:13:39.367507 - FETCH ComfyRegistry Data: 100/1082025-11-26T21:13:39.367686 - 
2025-11-26T21:13:42.898032 - FETCH ComfyRegistry Data: 105/1082025-11-26T21:13:42.898170 - 
2025-11-26T21:13:45.517365 - FETCH ComfyRegistry Data [DONE]2025-11-26T21:13:45.517460 - 
2025-11-26T21:13:45.626112 - [ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes
2025-11-26T21:13:45.632719 - FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json2025-11-26T21:13:45.632738 - 2025-11-26T21:13:45.960094 -  [DONE]2025-11-26T21:13:45.960168 - 
2025-11-26T21:13:45.997303 - [ComfyUI-Manager] All startup tasks have been completed.
2025-11-26T21:15:05.158329 - got prompt
2025-11-26T21:15:05.160907 - WARNING: [Errno 2] No such file or directory: '/.../ComfyUI/input/male_rickmorty.mp3'
2025-11-26T21:15:05.161238 - WARNING: [Errno 2] No such file or directory: '/.../ComfyUI/input/male_stewie.mp3'
2025-11-26T21:15:05.195740 - 
Generating (active: 1/1):   0%|                                                                                        | 0/250 [00:00<?, ?it/s]2025-11-26T21:15:05.376751 - 
2025-11-26T21:15:05.376960 - [ComfyUI-VibeVoice] Error during VibeVoice generation with eager attention: probability tensor contains either `inf`, `nan` or element < 0
2025-11-26T21:15:05.377086 - !!! Exception during processing !!! probability tensor contains either `inf`, `nan` or element < 0
2025-11-26T21:15:05.378206 - Traceback (most recent call last):
  File "/.../ComfyUI/execution.py", line 510, 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, hidden_inputs=hidden_inputs)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/.../ComfyUI/execution.py", line 324, 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, hidden_inputs=hidden_inputs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/.../ComfyUI/execution.py", line 298, in _async_map_node_over_list
    await process_inputs(input_dict, i)
  File "/.../ComfyUI/execution.py", line 286, in process_inputs
    result = f(**inputs)
             ^^^^^^^^^^^
  File "/.../ComfyUI/custom_nodes/ComfyUI-VibeVoice/vibevoice_nodes.py", line 174, in generate_audio
    raise e
  File "/.../ComfyUI/custom_nodes/ComfyUI-VibeVoice/vibevoice_nodes.py", line 161, in generate_audio
    outputs = model.generate(
              ^^^^^^^^^^^^^^^
  File "/.../ComfyUI/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 120, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/.../ComfyUI/custom_nodes/ComfyUI-VibeVoice/vibevoice/modular/modeling_vibevoice_inference.py", line 513, in generate
    next_tokens = torch.multinomial(probs, num_samples=1).squeeze(1)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: probability tensor contains either `inf`, `nan` or element < 0

2025-11-26T21:15:05.379437 - Prompt executed in 0.22 seconds
2025-11-26T21:15:37.584435 - got prompt
2025-11-26T21:15:37.588016 - WARNING: [Errno 2] No such file or directory: '/.../ComfyUI/input/male_rickmorty.mp3'
2025-11-26T21:15:37.588516 - WARNING: [Errno 2] No such file or directory: '/.../ComfyUI/input/male_stewie.mp3'
2025-11-26T21:15:37.628964 - 
Generating (active: 1/1):   0%|                                                                                        | 0/250 [00:00<?, ?it/s]2025-11-26T21:15:37.790540 - 
2025-11-26T21:15:37.790759 - [ComfyUI-VibeVoice] Error during VibeVoice generation with eager attention: probability tensor contains either `inf`, `nan` or element < 0
2025-11-26T21:15:37.790842 - !!! Exception during processing !!! probability tensor contains either `inf`, `nan` or element < 0
2025-11-26T21:15:37.791827 - Traceback (most recent call last):
  File "/.../ComfyUI/execution.py", line 510, 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, hidden_inputs=hidden_inputs)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/.../ComfyUI/execution.py", line 324, 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, hidden_inputs=hidden_inputs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/.../ComfyUI/execution.py", line 298, in _async_map_node_over_list
    await process_inputs(input_dict, i)
  File "/.../ComfyUI/execution.py", line 286, in process_inputs
    result = f(**inputs)
             ^^^^^^^^^^^
  File "/.../ComfyUI/custom_nodes/ComfyUI-VibeVoice/vibevoice_nodes.py", line 174, in generate_audio
    raise e
  File "/.../ComfyUI/custom_nodes/ComfyUI-VibeVoice/vibevoice_nodes.py", line 161, in generate_audio
    outputs = model.generate(
              ^^^^^^^^^^^^^^^
  File "/.../ComfyUI/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 120, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/.../ComfyUI/custom_nodes/ComfyUI-VibeVoice/vibevoice/modular/modeling_vibevoice_inference.py", line 513, in generate
    next_tokens = torch.multinomial(probs, num_samples=1).squeeze(1)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: probability tensor contains either `inf`, `nan` or element < 0

2025-11-26T21:15:37.793079 - Prompt executed in 0.21 seconds
2025-11-26T21:18:13.001374 - got prompt
2025-11-26T21:18:13.006048 - WARNING: [Errno 2] No such file or directory: '/.../ComfyUI/input/male_rickmorty.mp3'
2025-11-26T21:18:13.008401 - WARNING: [Errno 2] No such file or directory: '/.../ComfyUI/input/male_stewie.mp3'
2025-11-26T21:18:13.037880 - 
Generating (active: 1/1):   0%|                                                                                        | 0/250 [00:00<?, ?it/s]2025-11-26T21:18:13.214001 - 
2025-11-26T21:18:13.214134 - [ComfyUI-VibeVoice] Error during VibeVoice generation with eager attention: probability tensor contains either `inf`, `nan` or element < 0
2025-11-26T21:18:13.214214 - !!! Exception during processing !!! probability tensor contains either `inf`, `nan` or element < 0
2025-11-26T21:18:13.215358 - Traceback (most recent call last):
  File "/.../ComfyUI/execution.py", line 510, 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, hidden_inputs=hidden_inputs)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/.../ComfyUI/execution.py", line 324, 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, hidden_inputs=hidden_inputs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/.../ComfyUI/execution.py", line 298, in _async_map_node_over_list
    await process_inputs(input_dict, i)
  File "/.../ComfyUI/execution.py", line 286, in process_inputs
    result = f(**inputs)
             ^^^^^^^^^^^
  File "/.../ComfyUI/custom_nodes/ComfyUI-VibeVoice/vibevoice_nodes.py", line 174, in generate_audio
    raise e
  File "/.../ComfyUI/custom_nodes/ComfyUI-VibeVoice/vibevoice_nodes.py", line 161, in generate_audio
    outputs = model.generate(
              ^^^^^^^^^^^^^^^
  File "/.../ComfyUI/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 120, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/.../ComfyUI/custom_nodes/ComfyUI-VibeVoice/vibevoice/modular/modeling_vibevoice_inference.py", line 513, in generate
    next_tokens = torch.multinomial(probs, num_samples=1).squeeze(1)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: probability tensor contains either `inf`, `nan` or element < 0

2025-11-26T21:18:13.216788 - Prompt executed in 0.21 seconds
2025-11-26T21:22:22.729226 - got prompt
2025-11-26T21:22:22.732931 - WARNING: [Errno 2] No such file or directory: '/.../ComfyUI/input/male_rickmorty.mp3'
2025-11-26T21:22:22.733454 - WARNING: [Errno 2] No such file or directory: '/.../ComfyUI/input/male_stewie.mp3'
2025-11-26T21:22:22.767687 - 
Generating (active: 1/1):   0%|                                                                                        | 0/250 [00:00<?, ?it/s]2025-11-26T21:22:22.944320 - 
2025-11-26T21:22:22.944449 - [ComfyUI-VibeVoice] Error during VibeVoice generation with eager attention: probability tensor contains either `inf`, `nan` or element < 0
2025-11-26T21:22:22.944654 - !!! Exception during processing !!! probability tensor contains either `inf`, `nan` or element < 0
2025-11-26T21:22:22.945814 - Traceback (most recent call last):
  File "/.../ComfyUI/execution.py", line 510, 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, hidden_inputs=hidden_inputs)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/.../ComfyUI/execution.py", line 324, 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, hidden_inputs=hidden_inputs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/.../ComfyUI/execution.py", line 298, in _async_map_node_over_list
    await process_inputs(input_dict, i)
  File "/.../ComfyUI/execution.py", line 286, in process_inputs
    result = f(**inputs)
             ^^^^^^^^^^^
  File "/.../ComfyUI/custom_nodes/ComfyUI-VibeVoice/vibevoice_nodes.py", line 174, in generate_audio
    raise e
  File "/.../ComfyUI/custom_nodes/ComfyUI-VibeVoice/vibevoice_nodes.py", line 161, in generate_audio
    outputs = model.generate(
              ^^^^^^^^^^^^^^^
  File "/.../ComfyUI/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 120, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/.../ComfyUI/custom_nodes/ComfyUI-VibeVoice/vibevoice/modular/modeling_vibevoice_inference.py", line 513, in generate
    next_tokens = torch.multinomial(probs, num_samples=1).squeeze(1)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: probability tensor contains either `inf`, `nan` or element < 0

2025-11-26T21:22:22.947263 - Prompt executed in 0.22 seconds

Attached Workflow

Please make sure that workflow does not contain any sensitive information such as API keys or passwords.

{"id":"b91265e5-1b03-4b63-8dc3-4abd9a030e08","revision":0,"last_node_id":14,"last_link_id":44,"nodes":[{"id":3,"type":"SaveAudio","pos":[-1245.9999597167966,-1389.999971923828],"size":[324,140.390625],"flags":{},"order":6,"mode":0,"inputs":[{"localized_name":"audio","name":"audio","type":"AUDIO","link":27},{"localized_name":"filename_prefix","name":"filename_prefix","type":"STRING","widget":{"name":"filename_prefix"},"link":null},{"localized_name":"audioUI","name":"audioUI","type":"AUDIO_UI","widget":{"name":"audioUI"},"link":null}],"outputs":[],"properties":{"cnr_id":"comfy-core","ver":"0.3.52","Node name for S&R":"SaveAudio","ue_properties":{"widget_ue_connectable":{"filename_prefix":true,"audioUI":true},"version":"7.0.1"}},"widgets_values":["audio/VibeVoice"]},{"id":13,"type":"MarkdownNote","pos":[-2273.501355224609,-1878.0755686035154],"size":[1242.734375,412.484375],"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[],"title":"Note","properties":{},"widgets_values":["# ComfyUI-VibeVoice\n\nVibeVoice is a novel framework by Microsoft for generating expressive, long-form, multi-speaker conversational audio. It excels at creating natural-sounding dialogue, podcasts, and more, with consistent voices for up to 4 speakers.\n\n**✨ Key Features:**\n*   **Multi-Speaker TTS:** Generate conversations with up to 4 distinct voices in a single audio output.\n*   **High-Fidelity Voice Cloning:** Use any audio file (`.wav`, `.mp3`) as a reference for a speaker's voice.\n*   **Hybrid Generation Mode:** Mix and match cloned voices with high-quality, zero-shot generated voices in the same script.\n*   **Flexible Scripting:** Use simple `[1]` tags or the classic `Speaker 1:` format to write your dialogue.\n*   **Advanced Attention Mechanisms:** Choose between `eager`, `sdpa`, `flash_attention_2`, and the high-performance `sage` attention for fine-tuned control over speed and compatibility.\n*   **Robust 4-Bit Quantization:** Run the large language model component in 4-bit mode to significantly reduce VRAM usage.\n*   **Automatic Model Management:** Models are downloaded automatically and managed efficiently by ComfyUI to save VRAM."],"color":"#233","bgcolor":"#355"},{"id":4,"type":"LoadAudio","pos":[-2277.9999792480467,-1389.999971923828],"size":[327.5625,178],"flags":{},"order":1,"mode":0,"inputs":[{"localized_name":"audio","name":"audio","type":"COMBO","widget":{"name":"audio"},"link":null},{"localized_name":"audioUI","name":"audioUI","type":"AUDIO_UI","widget":{"name":"audioUI"},"link":null},{"localized_name":"choose file to upload","name":"upload","type":"AUDIOUPLOAD","widget":{"name":"upload"},"link":null}],"outputs":[{"localized_name":"AUDIO","name":"AUDIO","type":"AUDIO","links":[]}],"properties":{"cnr_id":"comfy-core","ver":"0.3.52","Node name for S&R":"LoadAudio","ue_properties":{"widget_ue_connectable":{"audio":true,"audioUI":true,"upload":true},"version":"7.0.1"}},"widgets_values":["male_rickmorty.mp3",null,null]},{"id":8,"type":"LoadAudio","pos":[-2279.32001953125,-1172.5597814941407],"size":[328.890625,178],"flags":{},"order":2,"mode":0,"inputs":[{"localized_name":"audio","name":"audio","type":"COMBO","widget":{"name":"audio"},"link":null},{"localized_name":"audioUI","name":"audioUI","type":"AUDIO_UI","widget":{"name":"audioUI"},"link":null},{"localized_name":"choose file to upload","name":"upload","type":"AUDIOUPLOAD","widget":{"name":"upload"},"link":null}],"outputs":[{"localized_name":"AUDIO","name":"AUDIO","type":"AUDIO","links":[]}],"properties":{"cnr_id":"comfy-core","ver":"0.3.52","Node name for S&R":"LoadAudio","ue_properties":{"widget_ue_connectable":{"audio":true,"audioUI":true,"upload":true},"version":"7.0.1"}},"widgets_values":["male_stewie.mp3",null,null]},{"id":12,"type":"MarkdownNote","pos":[-2296.8422729492186,-948.8561572265625],"size":[375.421875,639.015625],"flags":{},"order":3,"mode":0,"inputs":[],"outputs":[],"title":"Note","properties":{},"widgets_values":["### Scripting and Voice Modes\n\n#### Speaker Tagging\nYou can assign lines to speakers in two ways. Both are treated identically.\n\n*   **Modern Format (Recommended):** `[1] This is the first speaker.`\n*   **Classic Format:** `Speaker 1: This is the first speaker.`\n\nYou can also add an optional colon to the modern format (e.g., `[1]: ...`). The node handles all variations consistently.\n\n#### Hybrid Voice Generation\nThis is a powerful feature that lets you mix cloned voices and generated (zero-shot) voices.\n\n*   **To Clone a Voice:** Connect a `Load Audio` node to the speaker's input (e.g., `speaker_1_voice`).\n*   **To Generate a Voice:** Leave the speaker's input empty. The model will create a unique, high-quality voice for that speaker."],"color":"#233","bgcolor":"#355"},{"id":14,"type":"MarkdownNote","pos":[-1256.039326171875,-1187.0526037597656],"size":[336.953125,679.0625],"flags":{},"order":4,"mode":0,"inputs":[],"outputs":[],"title":"Note","properties":{},"widgets_values":["## Models\n\nWill be downloaded on the first run, or download them manually and place them into the directory: /models/tts/VibeVoice\n\n| Model | Context Length | Generation Length |  Weight |\n|-------|----------------|----------|----------|\n| VibeVoice-1.5B | 64K | ~90 min | [HF link](https://huggingface.co/microsoft/VibeVoice-1.5B) |\n| VibeVoice-Large| 32K | ~45 min | [HF link](https://huggingface.co/microsoft/VibeVoice-Large) |\n\n## Support \n\n- Don't know how to update PyTorch?\n- Need help with ComfyUI?\n- Need technical support?\n\n### Or do you just have questions? Then join the [@TokenDiffusion Hub](https://t.me/TokenDiff_hub) group\n\n### AI news [TokenDiffusion](https://t.me/TokenDiff)"],"color":"#233","bgcolor":"#355"},{"id":11,"type":"VibeVoiceTTS","pos":[-1882.0000061035157,-1389.999971923828],"size":[570.46875,801.46875],"flags":{},"order":5,"mode":0,"inputs":[{"localized_name":"speaker_1_voice","name":"speaker_1_voice","shape":7,"type":"AUDIO","link":null},{"localized_name":"speaker_2_voice","name":"speaker_2_voice","shape":7,"type":"AUDIO","link":null},{"localized_name":"speaker_3_voice","name":"speaker_3_voice","shape":7,"type":"AUDIO","link":null},{"localized_name":"speaker_4_voice","name":"speaker_4_voice","shape":7,"type":"AUDIO","link":null},{"localized_name":"model_name","name":"model_name","type":"COMBO","widget":{"name":"model_name"},"link":null},{"localized_name":"text","name":"text","type":"STRING","widget":{"name":"text"},"link":null},{"localized_name":"quantize_llm_4bit","name":"quantize_llm_4bit","type":"BOOLEAN","widget":{"name":"quantize_llm_4bit"},"link":null},{"localized_name":"attention_mode","name":"attention_mode","type":"COMBO","widget":{"name":"attention_mode"},"link":null},{"localized_name":"cfg_scale","name":"cfg_scale","type":"FLOAT","widget":{"name":"cfg_scale"},"link":null},{"localized_name":"inference_steps","name":"inference_steps","type":"INT","widget":{"name":"inference_steps"},"link":null},{"localized_name":"seed","name":"seed","type":"INT","widget":{"name":"seed"},"link":null},{"localized_name":"do_sample","name":"do_sample","type":"BOOLEAN","widget":{"name":"do_sample"},"link":null},{"localized_name":"temperature","name":"temperature","type":"FLOAT","widget":{"name":"temperature"},"link":null},{"localized_name":"top_p","name":"top_p","type":"FLOAT","widget":{"name":"top_p"},"link":null},{"localized_name":"top_k","name":"top_k","type":"INT","widget":{"name":"top_k"},"link":null},{"localized_name":"force_offload","name":"force_offload","type":"BOOLEAN","widget":{"name":"force_offload"},"link":null}],"outputs":[{"localized_name":"AUDIO","name":"AUDIO","type":"AUDIO","links":[27]}],"properties":{"cnr_id":"ComfyUI-VibeVoice","ver":"37803a884fb8f9b43c38286f6d654c7f97181a73","Node name for S&R":"VibeVoiceTTS","ue_properties":{"widget_ue_connectable":{"model_name":true,"text":true,"quantize_llm_4bit":true,"attention_mode":true,"cfg_scale":true,"inference_steps":true,"seed":true,"do_sample":true,"temperature":true,"top_p":true,"top_k":true},"version":"7.0.1"}},"widgets_values":["VibeVoice-1.5B","[1] I can't believe you did it again. I waited for two hours. Two hours! Not a single call, not a text. Do you have any idea how embarrassing that was, just sitting there alone?\n[2] Look, I know, I'm sorry, alright? Work was a complete nightmare. My boss dropped a critical deadline on me at the last minute. I didn't even have a second to breathe, let alone check my phone.\n",false,"eager",1.3,10,471935335072093,"fixed",true,0.95,0.95,0,false],"color":"#232","bgcolor":"#353"}],"links":[[27,11,0,3,0,"AUDIO"]],"groups":[],"config":{},"extra":{"ds":{"scale":1,"offset":[2319.7052830140037,1504.7987855326369]},"frontendVersion":"1.26.11","ue_links":[],"links_added_by_ue":[],"VHS_latentpreview":false,"VHS_latentpreviewrate":0,"VHS_MetadataImage":true,"VHS_KeepIntermediate":true,"workflowRendererVersion":"Vue"},"version":0.4}

Could you please advise on the appropriate remedy for this issue? Your guidance would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions