[Core] Supports stage abstraction in the diffusion model (#391)
Signed-off-by: Chenguang ZHENG <645327136@qq.com> Signed-off-by: yinpeiqi <yinpeiqi809@gmail.com> Co-authored-by: yinpeiqi <yinpeiqi809@gmail.com> Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
41 files changed
+2473
-1242
No files matched your search
@@ -132,8 +132,9 @@ def test_client(mock_async_diffusion):
|
||||
app.include_router(router)
|
||||
|
||||
# Set up app state with diffusion engine
|
||||
app.state.diffusion_engine = mock_async_diffusion
|
||||
app.state.diffusion_model_name = "Qwen/Qwen-Image"
|
||||
app.state.engine_client = mock_async_diffusion
|
||||
app.state.stage_configs = [{"stage_type": "diffusion"}]
|
||||
app.state.served_model_names = "Qwen/Qwen-Image"
|
||||
|
||||
return TestClient(app)
|
||||
|
||||
|
||||
Reference in new issue
Block a user