You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeError: CLIPTextModel.__init__() got an unexpected keyword argument 'offload_state_dict' #12436
Getting this TypeError: CLIPTextModel.__init__() got an unexpected keyword argument 'offload_state_dict' when running a DiffusionPipeline.from_pretrained
downgraded transformers to 4.49 and diffusers to 0.32.2 and it's working now
Reacted by Camellia Enchantress, pwenker, XiaoYangCui, Yue Yin, Ingo Marquardt, laszlotron, Bruno Cerda Mardini, Burak Eregar, Kevin Wang, Ju Hoon Park and 16 more
Reacted by Camellia Enchantress, Yue Yin, Stepfunction, Burak Eregar, Ju Hoon Park, Sourideb Majumder, an_badseed, Kyaw Ye Thu and Flaming_kid
Reacted by Camellia Enchantress, Yue Yin, Burak Eregar, Ju Hoon Park, Harrison, EverNorif, Sourideb Majumder, Ragamuffin20 and Hoàng Anh Chung
Happening to all the models using CLIP Text, including Qwen Image Edit. And we can't downgrade to 0.32.2 as Qwen Image Edit is not there. Using the branch right now but this is super crafty
I'll revisit that training script, it's really old, both SD1.5 and SDXL are ancient technologies in the AI space, so those scripts are actually just fine by using older versions of all the libraries. We probably should pin the libraries to the latest working versions and remove the using from main line and comment in the instructions.
Just to clarify:
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
check_min_version("0.36.0.dev0")
It is fine if you remove it and install older versions of diffusers, transformers and peft for scripts that haven’t been updated in a long time.
Activity
zillur01 commentedon Oct 6, 2025
downgraded transformers to 4.49 and diffusers to 0.32.2 and it's working now
moha23 commentedon Oct 6, 2025
but doesnt the file require dev version of diffusers? for me it fails while running the file.. saying it needs dev version
sayakpaul commentedon Oct 6, 2025
We will take care of fixing the issue:
You can comment out the line that enforces that requirement for now.
thuthaouelk10 commentedon Oct 6, 2025
I faced the same error when running a workflow using the node Hunyuan3D-Wrapper, I downgraded as you said and it works perfecty! Thank you so much!
sayakpaul commentedon Oct 6, 2025
Can you all check #12438?
moha23 commentedon Oct 6, 2025
works! thanks
juanmartinez-fortis commentedon Oct 6, 2025
Happening to all the models using CLIP Text, including Qwen Image Edit. And we can't downgrade to 0.32.2 as Qwen Image Edit is not there. Using the branch right now but this is super crafty
baizhu0414 commentedon Oct 6, 2025
I also encountered this problem, but what makes me uncomfortable is that my current script requires the version of diffusers:
Does anyone have solusions?
baizhu0414 commentedon Oct 6, 2025
#12436 (comment)
this is the right method.
asomoza commentedon Oct 6, 2025
I'll revisit that training script, it's really old, both SD1.5 and SDXL are ancient technologies in the AI space, so those scripts are actually just fine by using older versions of all the libraries. We probably should pin the libraries to the latest working versions and remove the using from main line and comment in the instructions.
Just to clarify:
It is fine if you remove it and install older versions of
diffusers,transformersandpeftfor scripts that haven’t been updated in a long time.sayakpaul commentedon Oct 7, 2025
Please use #12438, for now.
sayakpaul commentedon Oct 7, 2025
#12438 should fix it.
sergioEl commentedon Oct 7, 2025
If anyone is facing the issue with Qwen-Image-Edit, here is working set up for me
pip install diffusers["torch"]==0.35.1 transformers==4.56.2 accelerate==1.10.1my CUDA
ingo-m commentedon Oct 7, 2025
Thanks. Pinning
transformers==4.56.2fixed it for me as well. (Looks like version4.57.0introduced the issue.)sayakpaul commentedon Oct 8, 2025
#12438 should fix it and you don't have to downgrade
transformers.Instructions:
#12436 (comment)
kevalmorabia97 commentedon Oct 11, 2025
@sayakpaul when can we expect next release with this fix?
siraxe commentedon Nov 1, 2025
it was
transformersfor me as wellpip install transformers==4.56.2worked