Open 108863258 opened 4 months ago
TypeError: can only concatenate str (not "dict") to str
Hi,
Most likely it is happening because of the incompatible transformers version. microsoft/Phi-3-mini-4k-instruct
requires transformers 4.41.0.dev0
version. Please check yours using the pip list | grep transformers
or on windows: pip show transformers
commands in the ComfyUI python environment. If it is not 4.41.0.dev0
, it will not work.
The normal uninstall old / reinstall new version did not work for me. Every time I started ComfyUI, it removed the new and re-installed the old version**, one of the nodes always forced reinstalling the old transformers version.
I could solve this issue by performing the following steps:
pip install --upgrade pip
or on Windowspy -m pip install --upgrade pip
pip uninstall -y transformers
pip uninstall -y image-reward
(there was dependency conflict)pip install git+https://github.com/huggingface/transformers
Reference: https://huggingface.co/microsoft/Phi-3-mini-4k-instruct#how-to-use
Cheers, kupe
TypeError: can only concatenate str (not "dict") to str