Skip to content

vllm.v1.worker.ubatching

Classes:

  • UBatchContext –

    Context manager for micro-batching synchronization using threading events.

Functions:

UBatchContext

Context manager for micro-batching synchronization using threading events.

Methods:

switch_to_comm_sync(schedule=None)

With schedule, a no-op unless that schedule is running.

yield_and_switch_from_comm_to_compute(schedule=None)

With schedule, a no-op unless that schedule is running.

dbo_comm_stream_priority()

High on ROCm: at the default priority comm and compute can share one hardware queue and serialize.

dbo_current_ubatch_token_offset()

Row offset of the calling ubatch inside the parent batch.

Returns 0 when no DBO context is active on this thread.

dbo_enabled(schedule=None)

With schedule, whether that schedule is running.