[Model][MiniMax-H3] Multi-GPU serving fixes and layer-wise offload component selection (#7047)
Signed-off-by: heyuanliu-intel <heyuan.liu@intel.com>
This commit is contained in:
1 parent
2f1a18e69f
commit
40f8e94400
21 files changed
+1857
-60
No files matched your search
@@ -189,6 +189,16 @@ def default_image_to_image_prompt(
|
||||
return result
|
||||
|
||||
|
||||
def _always_preserve_reference_image_size(
|
||||
*,
|
||||
model: str | None,
|
||||
revision: str | None = None,
|
||||
) -> bool:
|
||||
"""Declare that a pipeline owns reference-image geometry."""
|
||||
del model, revision
|
||||
return True
|
||||
|
||||
|
||||
_EXTRA_SPECS: dict[str, dict[str, Any]] = {
|
||||
"BagelPipeline": {
|
||||
"extra_body_params": BAGEL_EXTRA_BODY_PARAMS,
|
||||
@@ -230,6 +240,15 @@ _EXTRA_SPECS: dict[str, dict[str, Any]] = {
|
||||
# Shared T2I/I2V envelopes select the output modality. LingBot's
|
||||
# pipeline owns model-specific validation and normalization.
|
||||
},
|
||||
**{
|
||||
model_class_name: {
|
||||
"reference_image_size_resolver": _always_preserve_reference_image_size,
|
||||
}
|
||||
for model_class_name in (
|
||||
"MiniMaxH3Pipeline",
|
||||
"MiniMaxH3ModularPipeline",
|
||||
)
|
||||
},
|
||||
**{
|
||||
model_class_name: {
|
||||
"extra_body_params": LTX_EXTRA_BODY_PARAMS,
|
||||
|
||||
Reference in new issue
Block a user