huchenlei / ComfyUI_omost

ComfyUI implementation of Omost
Apache License 2.0
423 stars 30 forks source link

Please help me, KeyError: 'llama' #43

Open Kevinjuly opened 5 months ago

Kevinjuly commented 5 months ago

Error occurred when executing OmostLLMLoaderNode:

'llama'

File "C:\baidu\novelai-webui\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\baidu\novelai-webui\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 "C:\baidu\novelai-webui\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\baidu\novelai-webui\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_omost\omost_nodes.py", line 111, in load_llm llm_model = AutoModelForCausalLM.from_pretrained( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\baidu\novelai-webui\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers\models\auto\auto_factory.py", line 434, in from_pretrained config, kwargs = AutoConfig.from_pretrained( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\baidu\novelai-webui\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers\models\auto\configuration_auto.py", line 873, in from_pretrained config_class = CONFIG_MAPPING[config_dict["model_type"]]


File "C:\baidu\novelai-webui\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers\models\auto\configuration_auto.py", line 579, in __getitem__
raise KeyError(key)

不知道为什么,transfomer已经是最新了,大神救救我
DerrickZhang0108 commented 5 months ago

same problem here