-
Notifications
You must be signed in to change notification settings - Fork 243
update configs #706
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
update configs #706
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1636,7 +1636,6 @@ def get_quant_scheme(quant_detected, quant_op_val): | |||||
|
|
||||||
| # zero_cond_t 设置为 true(2511 的特性) | ||||||
| qwen_image_config["zero_cond_t"] = True | ||||||
| qwen_image_config["_auto_resize"] = True | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This refactoring from To maintain the original behavior, You can replace the removed line with the new config key, and then remove the hardcoded
Suggested change
|
||||||
| qwen_image_config["attn_type"] = attention_type | ||||||
|
|
||||||
| config_graio = { | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This refactoring from
_auto_resizetoresize_modehas an unintended side effect. The newresize_modeis now hardcoded to"adaptive"for all model types inconfig_graio(line 1645), whereas_auto_resizewas previously only enabled forqwen_imagemodels. This changes the resizing behavior forwan2.1andwan2.2models in the Gradio demo.To maintain the original behavior,
resize_modeshould only be set forqwen_imagemodels. I recommend moving theresize_modesetting fromconfig_graiointo thisqwen_image_configblock.You can replace the removed line with the new config key, and then remove the hardcoded
resize_modefromconfig_graio.