vllm.v1.worker.ubatching
¶
Classes:
-
UBatchContext–Context manager for micro-batching synchronization using threading events.
Functions:
-
dbo_comm_stream_priority–High on ROCm: at the default priority comm and compute can share one
-
dbo_current_ubatch_token_offset–Row offset of the calling ubatch inside the parent batch.
-
dbo_enabled–With
schedule, whether that schedule is running.
UBatchContext
¶
Context manager for micro-batching synchronization using threading events.
Methods:
-
switch_to_comm_sync–With
schedule, a no-op unless that schedule is running. -
yield_and_switch_from_comm_to_compute–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.