[Core] Add token_ids output type and enforce canonical names (#7843)
Signed-off-by: Jungle430 <junglece430@gmail.com> Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
1 parent
0b0d2d7009
commit
67d21b5fff
12 files changed
+471
-58
No files matched your search
@@ -105,7 +105,7 @@ class OmniModelConfig(ModelConfig):
|
||||
worker_type: Model Type, e.g., "ar" or "generation"
|
||||
engine_output_type: Optional output type specification for the engine.
|
||||
Used to route outputs to appropriate processors (e.g., "image",
|
||||
"audio", "latents"). If None, output type is inferred.
|
||||
"audio", "latent", "token_ids"). If None, output type is inferred.
|
||||
stage_connector_config: Stage connector configuration dictionary.
|
||||
Contains "name" (connector name), "extra" (extra connector config).
|
||||
task_type: Model-defined startup task type. Each model validates its
|
||||
|
||||
@@ -1050,7 +1050,7 @@ def _build_engine_args(
|
||||
engine_args["retains_state_across_chunks"] = ps.retains_state_across_chunks
|
||||
if ps.execution_type == StageExecutionType.DIFFUSION and ps.model_arch:
|
||||
engine_args.setdefault("model_class_name", ps.model_arch)
|
||||
if ps.engine_output_type:
|
||||
if ps.engine_output_type is not None:
|
||||
engine_args["engine_output_type"] = ps.engine_output_type
|
||||
if next_stage_proc:
|
||||
engine_args["custom_process_next_stage_input_func"] = next_stage_proc
|
||||
|
||||
Reference in new issue
Block a user