Skip to content

upgrade?running under Transformers 4.57.3,but my env is Transformers 5.2.0...... #263

Description

@syser09

Hi!
As the title words, my comfyui running [ComfyUI-Qwen-TTS] , but when restart the comfyui , will popup the errors log as the follow .
I have tried to fix this issue, but found that if I downgrade transformers, I will have more problems.
So, I'm here to seek help, is there an update running on version 5.2.0?

B.R
Pablo

---------------------------------logs------------------------------------------------------

Comfyroll Studio v1.76 : 175 Nodes Loaded
** For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md
** For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki
[PainterVRAM] Warning: pynvml not installed. Auto mode will be disabled.
[PainterNodes] Loaded 29 nodes successfully!🎉

Warning: flash-attn is not installed. Will only run the manual PyTorch version. Please install flash-attn for faster inference.

❌ [Qwen3-TTS] Critical Import Error: cannot import name 'check_model_inputs' from 'transformers.utils.generic' (/mnt/n1t/ComfyUI/comfyuivenv/lib/python3.12/site-packages/transformers/utils/generic.py)
Traceback for debugging:
Traceback (most recent call last):
File "/mnt/n1t/ComfyUI/custom_nodes/qwen3-tts-comfyui/nodes.py", line 91, in
import qwen_tts
File "/mnt/n1t/ComfyUI/custom_nodes/qwen3-tts-comfyui/qwen_tts/init.py", line 21, in
from .inference.qwen3_tts_model import Qwen3TTSModel, VoiceClonePromptItem
File "/mnt/n1t/ComfyUI/custom_nodes/qwen3-tts-comfyui/qwen_tts/inference/qwen3_tts_model.py", line 29, in
from ..core.models import Qwen3TTSConfig, Qwen3TTSForConditionalGeneration, Qwen3TTSProcessor
File "/mnt/n1t/ComfyUI/custom_nodes/qwen3-tts-comfyui/qwen_tts/core/init.py", line 19, in
from .tokenizer_12hz.modeling_qwen3_tts_tokenizer_v2 import Qwen3TTSTokenizerV2Model
File "/mnt/n1t/ComfyUI/custom_nodes/qwen3-tts-comfyui/qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py", line 60, in
from transformers.utils.generic import check_model_inputs
ImportError: cannot import name 'check_model_inputs' from 'transformers.utils.generic' (/mnt/n1t/ComfyUI/comfyuivenv/lib/python3.12/site-packages/transformers/utils/generic.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mnt/n1t/ComfyUI/custom_nodes/qwen3-tts-comfyui/nodes.py", line 97, in
from qwen_tts import Qwen3TTSModel, VoiceClonePromptItem
File "/mnt/n1t/ComfyUI/custom_nodes/qwen3-tts-comfyui/qwen_tts/init.py", line 21, in
from .inference.qwen3_tts_model import Qwen3TTSModel, VoiceClonePromptItem
File "/mnt/n1t/ComfyUI/custom_nodes/qwen3-tts-comfyui/qwen_tts/inference/qwen3_tts_model.py", line 29, in
from ..core.models import Qwen3TTSConfig, Qwen3TTSForConditionalGeneration, Qwen3TTSProcessor
File "/mnt/n1t/ComfyUI/custom_nodes/qwen3-tts-comfyui/qwen_tts/core/init.py", line 19, in
from .tokenizer_12hz.modeling_qwen3_tts_tokenizer_v2 import Qwen3TTSTokenizerV2Model
File "/mnt/n1t/ComfyUI/custom_nodes/qwen3-tts-comfyui/qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py", line 60, in
from transformers.utils.generic import check_model_inputs
ImportError: cannot import name 'check_model_inputs' from 'transformers.utils.generic' (/mnt/n1t/ComfyUI/comfyuivenv/lib/python3.12/site-packages/transformers/utils/generic.py)
Common fix: run 'pip install -r requirements.txt' in your ComfyUI environment.
Training node missing dependencies: cannot import name 'check_model_inputs' from 'transformers.utils.generic' (/mnt/n1t/ComfyUI/comfyuivenv/lib/python3.12/site-packages/transformers/utils/generic.py)
✅ ComfyUI-Qwen-TTS v1.0.6 loaded
[AnimateDiffEvo] - ERROR - No motion models found. Please download one and place in: ['/mnt/n1t/ComfyUI/custom_nodes/comfyui-animatediff-evolved/models', '/mnt/n1t/ComfyUI/models/animatediff_models']

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions