Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions miles/backends/fsdp_utils/configs/sd3.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class SD3TrainPipelineConfig(TrainPipelineConfig):
"attn.to_add_out",
]
needs_timestep_scaling = False
input_dtype_policy = {"latents": "default", "cond": None, "timestep": "fp32"}

def prepare_cond_kwargs(self, cond: CondKwargs | None, device: torch.device) -> dict:
if cond is None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def _compute_server_args(args, host, port, nccl_port):
# dit_precision / vae_precision are PipelineConfig fields, not ServerArgs, so forward them explicitly (only when changed from the class default, to avoid clobbering a subclass override).
from sglang.multimodal_gen.configs.pipeline_configs.base import PipelineConfig

for field_name in ("dit_precision", "vae_precision"):
for field_name in ("dit_precision", "vae_precision", "text_encoder_precisions"):
val = getattr(args, f"sglang_{field_name}", None)
if val is not None and val != getattr(PipelineConfig, field_name, None):
kwargs[field_name] = val
Expand Down
1 change: 1 addition & 0 deletions miles/utils/arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -1420,6 +1420,7 @@ def add_sglang_tp_size():
)

parser.set_defaults(sglang_tensor_parallel_size=add_sglang_tp_size())
parser.set_defaults(sglang_text_encoder_precisions=None)
return parser

return add_miles_arguments
Expand Down
Loading