Skip to content

vllm_omni.diffusion.offloader.host_registration

Platform-neutral lifecycle for registering existing host mappings.

HostRegistration

Bases: Protocol

Transport-owned registration for one process-local host mapping.

region_count property

region_count: int

total_bytes property

total_bytes: int

close

close() -> tuple[str, ...]

HostRegistrationBudgetError

Bases: HostRegistrationError

Raised before mutation when the complete mapping exceeds its budget.

HostRegistrationCleanupError

Bases: HostRegistrationError

Raised when registered ranges cannot be released safely.

active_registration instance-attribute

active_registration = active_registration

HostRegistrationError

Bases: RuntimeError

Raised when existing host ranges cannot be registered safely.

register_host_mappings

register_host_mappings(
    regions: Sequence[MappedHostRegion],
    *,
    device: device,
    max_bytes: int | None,
) -> HostRegistration

Register immutable ranges with the active platform implementation.