1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// SPDX-License-Identifier: MIT OR Apache-2.0
//! Backend-agnostic quantized (ggml/gguf block-format) numerics.
//!
//! This crate owns the format-side of fuel's quantization stack:
//!
//! - [`k_quants`] — `BlockQX` block types, the [`GgmlType`](k_quants::GgmlType)
//! trait, and scalar reference impls of every fmt fuel supports.
//! - [`avx`] / [`neon`] — cfg-gated CPU SIMD `vec_dot` helpers
//! used by `GgmlType::vec_dot` impls in `k_quants`. They live here (rather
//! than in `fuel-cpu-backend`) because the orphan rule pins them to the
//! crate that defines `BlockQX`.
//! - [`utils`] — quantization-time helpers shared by k_quants impls.
//! - [`cpu`] — CPU-side adapters that bridge `Vec<BlockQX>` to the
//! backend-agnostic [`fuel_backend_contract::quantized::DynQuantizedStorage`]
//! trait, plus the `QuantizedDeviceKernels` impl on
//! `fuel_cpu_backend::CpuBackendDevice`.
//!
//! Per-backend (CUDA, Metal, future Vulkan) quantized fast paths live in
//! their own crates and implement the same trait pair from
//! `fuel-core-types`.
pub use ;
pub use dequant_ggml_bytes;
pub use ;
// Re-export GgmlDType so downstream callers can write
// `fuel_quantized::GgmlDType` without naming fuel-core-types.
pub use ;
pub use GgmlDType;