# SPDX-License-Identifier: Apache-2.0

from sglang.multimodal_gen.runtime.server_args import server_args as _server_args
from sglang.multimodal_gen.runtime.server_args.server_args import (
    BREAKABLE_CUDA_GRAPH_SUPPORTED_MODEL_IDS,
    BREAKABLE_CUDA_GRAPH_SUPPORTED_PIPELINE_CONFIGS,
    DEFAULT_BCG_TEXT_BUCKETS,
    LORA_MERGE_MODES,
    LTX2_TWO_STAGE_DEVICE_MODE_CHOICES,
    Backend,
    PortArgs,
    ServerArgs,
    _normalize_ltx2_two_stage_device_mode,
    get_global_server_args,
    is_ltx2_two_stage_pipeline_name,
    prepare_server_args,
    set_global_server_args,
)

__all__ = [
    "Backend",
    "BREAKABLE_CUDA_GRAPH_SUPPORTED_MODEL_IDS",
    "BREAKABLE_CUDA_GRAPH_SUPPORTED_PIPELINE_CONFIGS",
    "DEFAULT_BCG_TEXT_BUCKETS",
    "LORA_MERGE_MODES",
    "LTX2_TWO_STAGE_DEVICE_MODE_CHOICES",
    "PortArgs",
    "ServerArgs",
    "_normalize_ltx2_two_stage_device_mode",
    "get_global_server_args",
    "is_ltx2_two_stage_pipeline_name",
    "prepare_server_args",
    "set_global_server_args",
]


def __getattr__(name: str):
    if name == "_global_server_args":
        return _server_args._global_server_args
    raise AttributeError(name)
