Error occurred when executing Phi3mini_4k_ModelLoader_Zho: Using `low_cpu_mem_usage=True` or a `device_map` requires Accelerate: `pip install accelerate`
satangel2222 opened this issue · 0 comments
Traceback (most recent call last):
File "D:\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\ComfyUI_windows_portable\ComfyUI\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "D:\ComfyUI_windows_portable\ComfyUI\execution.py", line 69, in map_node_over_list
results.append(getattr(obj, func)())
File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Phi-3-mini\Phi3mini.py", line 26, in load_model
model = AutoModelForCausalLM.from_pretrained(
File "D:\ComfyUI_windows_portable\python_embeded\lib\site-packages\transformers\models\auto\auto_factory.py", line 558, in from_pretrained
return model_class.from_pretrained(
File "D:\ComfyUI_windows_portable\python_embeded\lib\site-packages\transformers\modeling_utils.py", line 3086, in from_pretrained
raise ImportError(
ImportError: Using low_cpu_mem_usage=True
or a device_map
requires Accelerate: pip install accelerate
请问怎么回事呢