mlx-native 0.24.0

Pure-Rust Metal GPU compute library for MLX-compatible inference on Apple Silicon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Independent expected compiler inputs, not values read back from the registry.
// Pipeline identity must cover shared-header bytes as well as the entry file.
pub const EXPERT_MV_SOURCE: &str = concat!(
    include_str!("../../src/shaders/prepared_f16_tiles.h"), "\n",
    include_str!("../../src/shaders/prepared_legacy_readers.h"), "\n",
    include_str!("../../src/shaders/quantized_matmul_id_ggml.metal"),
);

pub const EXPERT_MM_SOURCE: &str = concat!(
    include_str!("../../src/shaders/prepared_f16_tiles.h"), "\n",
    include_str!("../../src/shaders/quantized_matmul_id_mm.metal"),
);

pub const EXPERT_TENSOR_MM_SOURCE: &str = concat!(
    include_str!("../../src/shaders/prepared_f16_tiles.h"), "\n",
    include_str!("../../src/shaders/quantized_matmul_id_mm_tensor.metal"),
);