Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli_demo.py里,2b模型直接运行,换成5b模型报错 #189

Closed
1 of 2 tasks
henbucuoshanghai opened this issue Aug 28, 2024 · 5 comments
Closed
1 of 2 tasks
Assignees

Comments

@henbucuoshanghai
Copy link

System Info / 系統信息

pipe = CogVideoXPipeline.from_pretrained(model_path, torch_dtype=dtype)

diffusers/models/modeling_utils.py", line 774, in from_pretrained
accelerate.load_checkpoint_and_dispatch(
TypeError: load_checkpoint_and_dispatch() got an unexpected keyword argument 'strict'

Information / 问题信息

  • The official example scripts / 官方的示例脚本
  • My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程

1

Expected behavior / 期待表现

运行

@zixian-wu
Copy link

zixian-wu commented Aug 28, 2024

the same Issue
image

@zRzRzRzRzRzRzR
Copy link
Member

The 2B model needs to be loaded using fp16 and for 5b need to update the diffusers lib to 0.30.1.
the cli demo have updated, please check the comment in code

@zixian-wu
Copy link

I re-run pip install -r requirements.txt&& pip install diffusers==0.30.1, video can be generated normally with 5B model

@caozhenxiang-kouji
Copy link

I changed the diffusers version to 0.30.1 but the problem still exists, what now?

@caozhenxiang-kouji
Copy link

Well, it seems that black-forest-labs/flux#134 (comment) solves my problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants