[bugfix] providers: run Z-Image-Turbo text-to-image at 9 steps, no CFG #231
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.55) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.55 · 564 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.379
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #231"
general
weight: 0.35
twu3202
Summary
Z-Image-Turbo text-to-image requests sent no
num_inference_stepsorguidance_scale, so vLLM-Omni ran 50 steps with CFG at 1.0 instead of the 9 steps without CFG that its recipe uses: about ten times the work per image.application/creation_generation.py: for thevllm-omni-imageprofile,_parametersfixesnum_inference_steps: 9andguidance_scale: 0.0in the job'sadapterParameterswhen the job is accepted, and_executionrecords them.domain/creation/generation.py:ImageExecutiongainsnumInferenceStepsandguidanceScale, left out when unset, so existing records and other profiles keep their shape.src/contracts/is regenerated.integrations/vllm_omni_image.py: holds the values and sends only what the job's parameters contain, on execution and on recovery. A job accepted before this change has neither and keeps the service defaults. A comment notes that sending them on every job is safe only while this profile takes no reference images.int(steps * (1 - strength)), so 9 steps would push each tool's strength toward more noise: with two fixed seeds, an edit at strength 0.78 (what smart edit uses) came back as an unrelated picture at 9 steps and kept the main subject's place and pose at 50. Guidance also stays at the default on edits for now. Turning CFG off there kept the layout in the same check and halved the time, but I have not checked how well edits follow their instruction without CFG, so that is left for a separate change.docs/guides/openai-images.md: notes the two fields, where they are recorded, and why edits do not send them.Linked issue
Labels
type:bugandarea:providerare applied.Test plan
maine1f2246a:-
tests/test_creation_parameters.py: the image parameter test now checks that a Z-Image-Turbo job records both values and sends them, and that the generic OpenAI-compatible, Qwen-Image-2.1 and Volcengine cases record and send neither.-
tests/test_vllm_omni_image.py: the canvas test expects both fields on the wire and in the job record.test_queued_job_recovery_sends_the_sampling_fixed_at_acceptanceaccepts a job, changes the defaults, then recovers it from a newCreationGenerationand checks that the request carries the accepted values, or neither field for a job accepted without them.test_sends_the_sampling_the_job_was_accepted_withchecks the same ongenerate()directly.-
tests/test_tool_tasks.py(outpaint) checks that the edit form carries neither field.- The new checks fail on
mainand pass with the change, except two that pass on both: the outpaint check and thegenerate()case without sampling. The other-profile cases fail onmainonly because itsImageExecutionhas no such fields.-
pytest tests: 1583 passed, 98 skipped.-
lint-imports: 4 contracts kept.python scripts/generate_contracts.py --check: verified. Againstmain, the contracts only add the twoImageExecutionfields.-
npm run build,npm test(755 passed) andnpm run check:i18n: pass, on Node 26.Evidence that it works
Tongyi-MAI/Z-Image-Turboon vLLM-Omni01bd037with vLLM 0.33.0, RTX 6000 Ada 48 GB, through OpenDirector's adapter. Same prompt ("A small red fishing boat leaving a quiet harbor at sunrise, lighthouse in the background, cinematic"), seed 7, 1344×768:|
main: 50 steps, CFG 1.0, 53.4 s | This PR: 9 steps, no CFG, 5.3 s || --- | --- |
| !main | !this PR |
An edit at strength 0.6 sends the same fields as before, returns the same image, and takes the same time (33.1 s / 33.8 s).
Provider verification
Bilingual UI
docs/guides/openai-images.mdexists only in Chinese.