Package smile.llm.engine
package smile.llm.engine
-
ClassDescriptionPhase 2c: optional CUDA graph capture for batch-1 decode forward.INFO logging for decode CUDA graph bucket lifecycle (once per bucket event).Per-device CUDA graph session for uniform decode (batch 1 or power-of-two B).Optional decode-forward phase timers (attn / DeltaNet / MLP / NCCL).Per-thread / per-rank nanosecond accumulators.Per-thread decode step timing filled by
Qwenand read byInferenceEngine.Handle for an in-flight or queuedGenerationRequest.One generation job submitted toInferenceEngine.Continuous-batching inference runtime.Low-level execution surface used byInferenceEngine.Shared sampling helpers for greedy / temperature + nucleus decoding.Greedy speculative accept/reject helpers (Leviathan-style prefix match).Result of one speculative verify round.Coalesces generated token ids into streamed UTF-8 text chunks.Optional CUDA graph capture for the multi-token MTP window-verify forward (S = numDrafts + 1), independent ofDecodeCudaGraph.Per-device CUDA graph session for the uniform MTP window-verify forward.