Ragged Batch Builder#
-
class IdentitySetScratch#
-
class RaggedBatchBuilder#
Public Functions
-
explicit RaggedBatchBuilder(RaggedEngineContract contract)#
-
void reserve(RaggedExecutionBatch &batch)#
- void buildInto(
- ScheduledStep const &step,
- RaggedExecutionBatch &batch
- void finalizeSubsetSelection(
- ScheduledStep const &sourceStep,
- std::vector<int32_t> const &keepStartOffsets,
- std::vector<int32_t> const &concatenatedKeepIndices,
- RaggedExecutionBatch &batch
Public Static Functions
- static void validateRuntimeAdapterStep(
- ScheduledStep const &step,
- int32_t activeBatchSize,
- std::vector<RequestId> const &requestIds,
- std::vector<ResidentRef> const &residentRefs
- static void validateExecutionBatch(
- RaggedExecutionBatch const &batch,
- RaggedEngineContract const &contract
-
explicit RaggedBatchBuilder(RaggedEngineContract contract)#
-
struct RaggedEngineContract#
-
struct RaggedStepShape#
-
struct CompletionSequence#
-
struct RaggedExecutionBatch#
Public Functions
- void validateCommitSnapshot(
- StepId completedStepId,
- std::vector<CompletionSequence> const ¤t
Public Members
-
StepId stepId = {0}#
-
TokenLayoutBackend layout = {TokenLayoutBackend::kEntryPaddedCompatibility}#
-
RaggedStepShape shape#
-
std::vector<SequenceIdentity> sequenceOrder#
-
std::vector<int32_t> positions#
-
std::vector<int32_t> queryStartOffsets#
-
std::vector<int32_t> queryLengths#
-
std::vector<int32_t> pastLengths#
-
std::vector<int32_t> attentionSequenceLengths#
-
std::vector<int32_t> stateIndices#
-
std::vector<int64_t> logitsIndices#
-
std::vector<int32_t> logitsToSequence#
-
std::vector<SequenceWork> sequenceWorks#