Skip to main content

Module control

Module control 

Source
Expand description

Control operations (engine/io_struct.py): cache flush, pause, memory release, weight updates, profiling and the like.

A frontend sends one to every engine as a CONTROL message; each engine answers with the matching reply on its output socket, beside the output batches. Replies carry no request id: an engine answers each kind of operation in the order it received them. Every struct is tagged and starts with the two BaseReq fields.

Structs§

DestroyWeightsUpdateGroupReqInput
Leave a weight-update group.
DestroyWeightsUpdateGroupReqOutput
DestroyWeightsUpdateGroupReqInput’s reply.
FlushCacheReqInput
Drop the prefix caches.
FlushCacheReqOutput
FlushCacheReqInput’s reply.
GetInternalStateReq
The engine’s internal state.
GetInternalStateReqOutput
GetInternalStateReq’s reply.
InitWeightsUpdateGroupReqInput
Join the trainer’s weight-update group.
InitWeightsUpdateGroupReqOutput
InitWeightsUpdateGroupReqInput’s reply.
IsSchedulerPausedReqInput
Whether scheduling is paused.
IsSchedulerPausedReqOutput
IsSchedulerPausedReqInput’s reply.
IsSleepingReqInput
Whether the engine released its memory.
IsSleepingReqOutput
IsSleepingReqInput’s reply.
PauseSchedulerReqInput
Stop scheduling: abort aborts what runs, wait lets it finish, keep freezes it in place.
PauseSchedulerReqOutput
PauseSchedulerReqInput’s reply, once the pause took hold.
ProfileReq
Start (kind 1) or stop (kind 2) the profiler.
ProfileReqOutput
ProfileReq’s reply.
RebalanceExpertsReqInput
Start one online expert rebalance now.
RebalanceExpertsReqOutput
RebalanceExpertsReqInput’s reply.
ReleaseMemoryOccupationReqInput
Release GPU memory (weights, kv_cache; all when None).
ReleaseMemoryOccupationReqOutput
ReleaseMemoryOccupationReqInput’s reply.
ResumeMemoryOccupationReqInput
Take released GPU memory back (all released regions when None).
ResumeMemoryOccupationReqOutput
ResumeMemoryOccupationReqInput’s reply.
ResumeSchedulerReqInput
Resume scheduling after a pause.
ResumeSchedulerReqOutput
ResumeSchedulerReqInput’s reply.
SetInternalStateReq
Change server arguments at run time.
SetInternalStateReqOutput
SetInternalStateReq’s reply.
UpdateWeightFromDiskReqInput
Load new weights from a checkpoint on disk.
UpdateWeightFromDiskReqOutput
UpdateWeightFromDiskReqInput’s reply.
UpdateWeightsFromDistributedReqInput
Receive new weights from the trainer’s NCCL group.
UpdateWeightsFromDistributedReqOutput
UpdateWeightsFromDistributedReqInput’s reply.
UpdateWeightsFromMooncakeReqInput
Load one committed version from a Mooncake weight store.
UpdateWeightsFromMooncakeReqOutput
UpdateWeightsFromMooncakeReqInput’s reply.
UpdateWeightsFromTensorReqInput
Load weights from serialized tensors; the engines refuse it.
UpdateWeightsFromTensorReqOutput
UpdateWeightsFromTensorReqInput’s reply.

Enums§

ControlOutput
A control operation’s reply.
ControlRequest
A control operation, the payload of a CONTROL message.

Constants§

PROFILE_START
ProfileReq.kind that starts the profiler.
PROFILE_STOP
ProfileReq.kind that stops it.