pub enum MoeLoraRoute {
Fold,
Skip,
Refuse,
}Expand description
2026-09-25: MoE-LoRA fold decision for one forward pass. One MoE adapter is active at
a time; MoeLayer::moe_route_gate (layers/moe/lora.rs) folds on Fold, skips on
Skip and returns an error on Refuse. lora::resolve_moe_lora_route maps a
request’s adapter_slot to a route.
Variants§
Fold
2026-09-25: The request uses the active MoE adapter, or no MoE delta is installed. The default.
Skip
2026-09-25: No fold. resolve_moe_lora_route returns it for a base request
(adapter_slot < 0).
Refuse
2026-09-25: The request routes to an adapter other than the active one, or the pass is a kernel-batched multi-stream prefill; the fold returns an error instead of applying the active adapter to rows it does not own.
Trait Implementations§
Source§impl Clone for MoeLoraRoute
impl Clone for MoeLoraRoute
Source§fn clone(&self) -> MoeLoraRoute
fn clone(&self) -> MoeLoraRoute
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MoeLoraRoute
impl Debug for MoeLoraRoute
Source§impl Default for MoeLoraRoute
impl Default for MoeLoraRoute
Source§fn default() -> MoeLoraRoute
fn default() -> MoeLoraRoute
Returns the “default value” for a type. Read more
Source§impl PartialEq for MoeLoraRoute
impl PartialEq for MoeLoraRoute
impl Copy for MoeLoraRoute
impl Eq for MoeLoraRoute
impl StructuralPartialEq for MoeLoraRoute
Auto Trait Implementations§
impl Freeze for MoeLoraRoute
impl RefUnwindSafe for MoeLoraRoute
impl Send for MoeLoraRoute
impl Sync for MoeLoraRoute
impl Unpin for MoeLoraRoute
impl UnwindSafe for MoeLoraRoute
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.