[Model] Add BAGEL step execution and continuous batching (#6359)

This commit is contained in:
Trigger authored and GitHub committed 2026-09-04 01:36:11 +00:00
1 parent fda3af8bbc
commit e43c787544
24 files changed
+1965 -108

No files matched your search

+9
View File
@@ -73,6 +73,15 @@ class StepBatchSamplingParamsKey:
# because model acceleration hooks are shared by the whole worker batch.
quality: str | None = None
# Step-mode engines can admit a model-specific full-forward fallback. Do
# not mix it with state-driven denoising in one scheduler wave.
use_step_execution: bool = True
# Pipeline-specific structure populated during preprocessing. This keeps
# model-owned settings that must be homogeneous (for example BAGEL CFG
# scales and renormalization) out of the generic sampling-params schema.
condition_key: tuple[Any, ...] | None = None
# Output count. Requests with different num_outputs_per_prompt produce
# differently shaped outputs and cannot share a batch.
num_outputs_per_prompt: int = 1