pub struct Qwen35Kernels {Show 27 fields
pub rms: KernelHandle,
pub rope: KernelHandle,
pub kvap: KernelHandle,
pub attn: KernelHandle,
pub sg: KernelHandle,
pub add_rms: KernelHandle,
pub qkv_split: KernelHandle,
pub conv1d: KernelHandle,
pub gdn_gate: KernelHandle,
pub sigmoid: KernelHandle,
pub gdn_dec: KernelHandle,
pub kvap_turbo8: KernelHandle,
pub attn_turbo8: KernelHandle,
pub kvap_turbo4: KernelHandle,
pub attn_turbo4: KernelHandle,
pub kvap_turbo3: KernelHandle,
pub attn_turbo3: KernelHandle,
pub kvap_turbo2: KernelHandle,
pub attn_turbo2: KernelHandle,
pub kvap_bf16k_turbo4v: KernelHandle,
pub attn_bf16k_turbo4v: KernelHandle,
pub kvap_bf16k_turbo3v: KernelHandle,
pub attn_bf16k_turbo3v: KernelHandle,
pub kvap_bf16k_turbo2v: KernelHandle,
pub attn_bf16k_turbo2v: KernelHandle,
pub wht: KernelHandle,
pub wht_inv: KernelHandle,
}Expand description
2026-09-25: Kernel handles for both layer forwards, looked up once by
Self::resolve.
Fields§
§rms: KernelHandle§rope: KernelHandle§kvap: KernelHandle§attn: KernelHandle§sg: KernelHandle§add_rms: KernelHandle§qkv_split: KernelHandle§conv1d: KernelHandle§gdn_gate: KernelHandle§sigmoid: KernelHandle§gdn_dec: KernelHandle§kvap_turbo8: KernelHandle2026-09-25: Turbo KV cache kernels: quantizing appends, dequantizing decode
attentions, and the WHT rotations around them. resolve looks them up
even for a bf16 cache, so a missing one fails at startup.
attn_turbo8: KernelHandle§kvap_turbo4: KernelHandle§attn_turbo4: KernelHandle§kvap_turbo3: KernelHandle§attn_turbo3: KernelHandle§kvap_turbo2: KernelHandle§attn_turbo2: KernelHandle§kvap_bf16k_turbo4v: KernelHandle§attn_bf16k_turbo4v: KernelHandle§kvap_bf16k_turbo3v: KernelHandle§attn_bf16k_turbo3v: KernelHandle§kvap_bf16k_turbo2v: KernelHandle§attn_bf16k_turbo2v: KernelHandle§wht: KernelHandle§wht_inv: KernelHandleImplementations§
Source§impl Qwen35Kernels
impl Qwen35Kernels
Sourcepub fn resolve(gpu: &dyn GpuBackend) -> Result<Self>
pub fn resolve(gpu: &dyn GpuBackend) -> Result<Self>
2026-09-25: Looks up every kernel both layer forwards use; returns an error if any is missing.
Auto Trait Implementations§
impl Freeze for Qwen35Kernels
impl RefUnwindSafe for Qwen35Kernels
impl Send for Qwen35Kernels
impl Sync for Qwen35Kernels
impl Unpin for Qwen35Kernels
impl UnwindSafe for Qwen35Kernels
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