rope_scaling must be a dictionary with two fields, type and factor, got {'factor': 8.0, 'high_freq_factor': 4.0, 'low_freq_factor': 1.0, 'original_max_position_embeddings': 8192, 'rope_type': 'llama3'}
File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\ComfyUI\execution.py", line 317, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\ComfyUI\execution.py", line 192, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\ComfyUI\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\ComfyUI\custom_nodes\Comfyui_CXH_joy_caption\Joy_caption_node.py", line 144, in gen
joy_pipeline.parent.loadCheckPoint()
File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\ComfyUI\custom_nodes\Comfyui_CXH_joy_caption\Joy_caption_node.py", line 92, in loadCheckPoint
text_model = AutoModelForCausalLM.from_pretrained(MODEL_PATH, device_map="auto",trust_remote_code=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\python_embeded\Lib\site-packages\transformers\models\auto\auto_factory.py", line 523, in from_pretrained
config, kwargs = AutoConfig.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\python_embeded\Lib\site-packages\transformers\models\auto\configuration_auto.py", line 958, in from_pretrained
return config_class.from_dict(config_dict, unused_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\python_embeded\Lib\site-packages\transformers\configuration_utils.py", line 768, in from_dict
config = cls(**config_dict)
^^^^^^^^^^^^^^^^^^
File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\python_embeded\Lib\site-packages\transformers\models\llama\configuration_llama.py", line 161, in init
self._rope_scaling_validation()
File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\python_embeded\Lib\site-packages\transformers\models\llama\configuration_llama.py", line 182, in _rope_scaling_validation
raise ValueError(
Error occurred when executing Joy_caption:
rope_scaling
must be a dictionary with two fields,type
andfactor
, got {'factor': 8.0, 'high_freq_factor': 4.0, 'low_freq_factor': 1.0, 'original_max_position_embeddings': 8192, 'rope_type': 'llama3'}File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\ComfyUI\execution.py", line 317, in execute output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\ComfyUI\execution.py", line 192, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\ComfyUI\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\ComfyUI\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\ComfyUI\custom_nodes\Comfyui_CXH_joy_caption\Joy_caption_node.py", line 144, in gen joy_pipeline.parent.loadCheckPoint() File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\ComfyUI\custom_nodes\Comfyui_CXH_joy_caption\Joy_caption_node.py", line 92, in loadCheckPoint text_model = AutoModelForCausalLM.from_pretrained(MODEL_PATH, device_map="auto",trust_remote_code=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\python_embeded\Lib\site-packages\transformers\models\auto\auto_factory.py", line 523, in from_pretrained config, kwargs = AutoConfig.from_pretrained( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\python_embeded\Lib\site-packages\transformers\models\auto\configuration_auto.py", line 958, in from_pretrained return config_class.from_dict(config_dict, unused_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\python_embeded\Lib\site-packages\transformers\configuration_utils.py", line 768, in from_dict config = cls(**config_dict) ^^^^^^^^^^^^^^^^^^ File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\python_embeded\Lib\site-packages\transformers\models\llama\configuration_llama.py", line 161, in init self._rope_scaling_validation() File "E:\StableSwarmUI\StableSwarmUI\dlbackend\comfy\python_embeded\Lib\site-packages\transformers\models\llama\configuration_llama.py", line 182, in _rope_scaling_validation raise ValueError(