Last updated: 2026-11-17
Shader Dispatch
Projection Specializations
Select fixed-input-width projection variants from existing GGUF metadata.
This module is host-only so its selection contracts run on every backend.
1 exports shown
struct
ProjectionSpecializations
pub const ProjectionSpecializations = struct Fixed-K variants are useful only when a model has a matrix with that input width.
Creating every variant retains unrelated driver code and compilation state for the model's lifetime. Generic pipelines remain available, and unknown future specialization widths load conservatively until listed here.
Methods
3method
ProjectionSpecializations.all
pub fn all() ProjectionSpecializations Retain every variant for standalone kernel benchmarks.
method
ProjectionSpecializations.includeTensor
pub fn includeTensor(self: *ProjectionSpecializations, tensor: TensorInfo) void Record the input width of a matrix or expert tensor.
method
ProjectionSpecializations.needs
pub fn needs(self: ProjectionSpecializations, width: u32) bool Whether a fixed-K pipeline can be used by the loaded model.