Skip to content

vllm_omni.diffusion.models.cosmos3.mixed_precision.runtime

Format-agnostic schedule state, linear discovery, and dispatch.

PrecisionPath module-attribute

PrecisionPath = Literal['reasoner', 'generation']

Cosmos3MixedPrecisionLinearMethod

Bases: LinearMethodBase

Dispatch between a checkpoint-native method and dense A16.

base_method instance-attribute

base_method = base_method

module_name instance-attribute

module_name = module_name

path instance-attribute

path = path

runtime instance-attribute

runtime = runtime

strategy instance-attribute

strategy = strategy

apply

apply(
    layer: Module, x: Tensor, bias: Tensor | None = None
) -> Tensor

create_weights

create_weights(*args, **kwargs) -> None

process_weights_after_loading

process_weights_after_loading(layer: Module) -> None

Cosmos3MixedPrecisionRuntime

Own one transformer's schedule state and wrapped linear inventory.

config instance-attribute

config = config

install

install(transformer: Module) -> None

reset

reset() -> None

set_step

set_step(step_index: int, num_steps: int) -> None

use_high_precision

use_high_precision(path: PrecisionPath) -> bool