Open fyepi opened 1 month ago
Try it.
pip install accelerate
pip install accelerate
already installed accelerate
!pip3 install accelerate
Requirement already satisfied: accelerate in /opt/conda/lib/python3.10/site-packages (0.32.1)
[请问你们解决了,这个问题!我的也是这样,安装加速库也是这样!不管用的!
Thanks @wailovet It works for me.
Running comfy in container on Ubuntu 22.04.
Error occurred when executing MZ_ChatGLM3Loader:
local variable 'is_accelerate_available' referenced before assignment
File "/workspace/app/execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/workspace/app/execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "/workspace/app/execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "/workspace/app/custom_nodes/ComfyUI-Kolors-MZ/init.py", line 41, in load_chatglm3 return mz_kolors_core.MZ_ChatGLM3Loader_call(kwargs) File "/workspace/app/custom_nodes/ComfyUI-Kolors-MZ/mz_kolors_core.py", line 101, in MZ_ChatGLM3Loader_call with (init_empty_weights() if is_accelerate_available else nullcontext()):