WeightFormat enum
Values
- f32 → const WeightFormat
-
Weights widened from the bf16 checkpoint and kept as float32.
const WeightFormat(0, 0, 0) - q5p4 → const WeightFormat
-
Four 5-bit fields per lane, one scale per 64 weights: 8.5 bits.
const WeightFormat(5, 4, 4) - q4p5 → const WeightFormat
-
Five 4-bit fields per lane, one scale per 80 weights: 6.8 bits.
const WeightFormat(4, 5, 4) - q7p3 → const WeightFormat
-
Three 7-bit fields per lane, one scale per 48 weights: 11.3 bits. The only one of the three that keeps LFM3 close to float32 (KL 0.02 on the tools case, against 0.4 for q5p4; see tools/lfm3_quant_study.py).
const WeightFormat(7, 3, 4) - q8 → const WeightFormat
-
int8 with one f32 scale per 32 weights (9 bits), in native memory and multiplied by the C kernels (native.dart). Needs --native-lib.
const WeightFormat(8, 0, 0) - q4 → const WeightFormat
-
llama.cpp's Q4_0: 4-bit with one half scale per 32 weights (4.5 bits), native like q8. The tied LM head stays Q8, as Liquid's Q4_0 build keeps it at 6 bits.
const WeightFormat(4, 0, 0)
Properties
- bits → int
-
final
- blockColumns → int
-
no setter
- groupColumns → int
-
no setter
- groupsPerBlock → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isDartPacked → bool
-
Whether the format is decoded by Dart's SIMD kernels in this file.
no setter
- isNative → bool
-
Whether the format lives in native memory and runs on the C kernels
(and can be cached and run on the GPU).
no setter
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - offset → int
-
no setter
- planes → int
-
final
- qmax → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
WeightFormat> - A constant List of the values in this enum, in order of their declaration.