Class DecodeStepTiming
java.lang.Object
smile.llm.engine.DecodeStepTiming
Per-thread decode step timing filled by
Qwen
and read by InferenceEngine.-
Field Summary
FieldsModifier and TypeFieldDescriptionlongWall time for TP forward (max(rank)when tensor-parallel).longLogits row extraction / copy after forward.longKV activate + host tensor prep before TP forward.Max-across-ranks phase breakdown whenSMILE_DECODE_PROFILE=1; otherwisenull.longGreedy / sampled token selection after forward.longSlowest TP rank forward (GPU work on critical path).longThread-pool sync overhead (forwardNs - slowestRankNs). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclear()Clears the thread-local holder (call after logging).static DecodeStepTimingcurrent()Returns the timing holder for the current decode worker thread.
-
Field Details
-
prepNs
public long prepNsKV activate + host tensor prep before TP forward. -
forwardNs
public long forwardNsWall time for TP forward (max(rank)when tensor-parallel). -
slowestRankNs
public long slowestRankNsSlowest TP rank forward (GPU work on critical path). -
tpBarrierNs
public long tpBarrierNsThread-pool sync overhead (forwardNs - slowestRankNs). -
logitsNs
public long logitsNsLogits row extraction / copy after forward. -
sampleNs
public long sampleNsGreedy / sampled token selection after forward. -
profile
Max-across-ranks phase breakdown whenSMILE_DECODE_PROFILE=1; otherwisenull.
-
-
Constructor Details
-
DecodeStepTiming
public DecodeStepTiming()Creates an empty timing/snapshot holder.
-
-
Method Details
-
current
Returns the timing holder for the current decode worker thread.- Returns:
- timing holder for the current decode worker thread.
-
clear
public static void clear()Clears the thread-local holder (call after logging).
-