Last updated: 2026-11-17

Shader Dispatch

Projection Specializations

All API Sections

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

Memory Layout

Size: 1 bytes (alignment: 1)

Offset Size Align Field Type
0 1 1 present bit_set.Integer(8)

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.

src/compute/projection_specializations.zig:13

Methods

3