pub struct AddressableExpertRouteRequest<'a, T> {
pub unit: usize,
pub input: &'a T,
pub global_experts: &'a [usize],
pub owner_local_experts: &'a [usize],
pub selected_scores: &'a T,
pub coefficients: &'a T,
pub pass: ExpertPass,
pub access: ParameterBankAccess,
pub combination: ExpertRouteCombination,
}Expand description
One owner-local grouped batch submitted after expert exchange.
Fields§
§unit: usizeGlobal execution unit containing the addressable expert bank.
input: &'a TRows received from every source peer.
global_experts: &'a [usize]Checkpoint-global expert identity for every received row.
Addressable storage keys must be derived from this identity. It is
deliberately kept separate from owner_local_experts, whose values
are valid only as indices into the rank-local grouped operator.
owner_local_experts: &'a [usize]Dense owner-local expert identity for every received row.
selected_scores: &'a TSelected router scores aligned one-for-one with received rows.
coefficients: &'a TFinal route coefficients aligned one-for-one with received rows.
pass: ExpertPassPrefill or decode execution classification.
access: ParameterBankAccessStorage access classification derived from pass.
combination: ExpertRouteCombinationArchitecture-declared route combination.
Implementations§
Source§impl<T> AddressableExpertRouteRequest<'_, T>
impl<T> AddressableExpertRouteRequest<'_, T>
Sourcepub fn addressable_bank_key(&self, row: usize) -> Option<ParameterBankKey>
pub fn addressable_bank_key(&self, row: usize) -> Option<ParameterBankKey>
Returns the only valid addressable-bank key for one routed row.
The owner-local ID is intentionally not accepted here: it addresses the compact grouped operator, not checkpoint-global storage.
Sourcepub fn owner_local_execution_id(&self, row: usize) -> Option<usize>
pub fn owner_local_execution_id(&self, row: usize) -> Option<usize>
Returns the rank-local grouped-operator ID for one routed row.