tin2tin / Pallaidium

PALLAIDIUM - a generative AI movie studio integrated in the Blender Video Editor.
GNU General Public License v3.0
986 stars 80 forks source link

Bark Model error cant generate at all on Linux #117

Closed vuaieo closed 2 months ago

vuaieo commented 2 months ago

hi the bark model dont run even here the error messege:

Traceback (most recent call last): File "/home/vuaieo/.config/upbge/4.3/scripts/addons/Pallaidium-main/init.py", line 3044, in execute from resemble_enhance.enhancer.inference import denoise, enhance File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/resemble_enhance/enhancer/inference.py", line 8, in from .train import Enhancer, HParams File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/resemble_enhance/enhancer/train.py", line 8, in from deepspeed import DeepSpeedConfig File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/deepspeed/init.py", line 22, in from . import module_inject File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/deepspeed/module_inject/init.py", line 6, in from .replace_module import replace_transformer_layer, revert_transformer_layer, ReplaceWithTensorSlicing, GroupQuantizer, generic_injection File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/deepspeed/module_inject/replace_module.py", line 587, in from ..pipe import PipelineModule File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/deepspeed/pipe/init.py", line 6, in from ..runtime.pipe import PipelineModule, LayerSpec, TiedLayerSpec File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/deepspeed/runtime/pipe/init.py", line 6, in from .module import PipelineModule, LayerSpec, TiedLayerSpec File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/deepspeed/runtime/pipe/module.py", line 19, in from ..activation_checkpointing import checkpointing File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/deepspeed/runtime/activation_checkpointing/checkpointing.py", line 26, in from deepspeed.runtime.config import DeepSpeedConfig File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/deepspeed/runtime/config.py", line 41, in from ..elasticity import ( File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/deepspeed/elasticity/init.py", line 10, in from .elastic_agent import DSElasticAgent File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/deepspeed/elasticity/elastic_agent.py", line 9, in from torch.distributed.elastic.agent.server.api import log, _get_socket_with_port ImportError: cannot import name 'log' from 'torch.distributed.elastic.agent.server.api' (/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/torch/distributed/elastic/agent/server/api.py) Error: Python: Traceback (most recent call last): File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/resemble_enhance/enhancer/inference.py", line 8, in from .train import Enhancer, HParams File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/resemble_enhance/enhancer/train.py", line 8, in from deepspeed import DeepSpeedConfig File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/deepspeed/init.py", line 22, in from . import module_inject File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/deepspeed/module_inject/init.py", line 6, in from .replace_module import replace_transformer_layer, revert_transformer_layer, ReplaceWithTensorSlicing, GroupQuantizer, generic_injection File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/deepspeed/module_inject/replace_module.py", line 587, in from ..pipe import PipelineModule File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/deepspeed/pipe/init.py", line 6, in from ..runtime.pipe import PipelineModule, LayerSpec, TiedLayerSpec File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/deepspeed/runtime/pipe/init.py", line 6, in from .module import PipelineModule, LayerSpec, TiedLayerSpec File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/deepspeed/runtime/pipe/module.py", line 19, in from ..activation_checkpointing import checkpointing File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/deepspeed/runtime/activation_checkpointing/checkpointing.py", line 26, in from deepspeed.runtime.config import DeepSpeedConfig File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/deepspeed/runtime/config.py", line 41, in from ..elasticity import ( File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/deepspeed/elasticity/init.py", line 10, in from .elastic_agent import DSElasticAgent File "/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/deepspeed/elasticity/elastic_agent.py", line 9, in from torch.distributed.elastic.agent.server.api import log, _get_socket_with_port ImportError: cannot import name 'log' from 'torch.distributed.elastic.agent.server.api' (/home/vuaieo/Desktop/UPBGE_29_8_2024/4.3/python/lib/python3.11/site-packages/torch/distributed/elastic/agent/server/api.py)

tin2tin commented 2 months ago

What I do when I see an error like that, then I google: ImportError: cannot import name 'log' from 'torch.distributed.elastic.agent.server.api'

And something like this shows up: https://github.com/huggingface/alignment-handbook/issues/180

image

So, they're suggesting to install a different version of deepspeed: deepspeed==0.14.4

Now you can try, using the pip add-on, to uninstall deepspeed, and then copy/paste deepspeed==0.14.4 and install that. Then restart Blender, and see if it is working.

And then let me know if it is working. And if it is not, I'll disable Bark on Linux, as you know I do not run Pallaidium on Linux, and can't fix bugs not showing up on Windows.

tin2tin commented 2 months ago

I've updated Pallaidium som deepspeed==0.14.4 is installed on Linux. So, I'll close this.