pub struct MlxImportOptions {
pub container: ContainerKind,
pub include_graph: bool,
pub compress_sidecars: bool,
pub auto_tier: bool,
pub dequant_to_f32: bool,
pub graph_batch: usize,
pub graph_seq: usize,
pub graph_num_layers: Option<usize>,
}Expand description
Options for mlx_to_rlxp.
Fields§
§container: ContainerKind§include_graph: bool§compress_sidecars: bool§auto_tier: bool§dequant_to_f32: boolWhen true (default), dequantize affine/mxfp layers to f32 before packing.
When false, keep {base}.weight/.scales/.biases as packed scheme rows
for Op::DequantMatMul.
graph_batch: usizePrefill batch / seq when embedding a Llama-like graph (include_graph
- keep-packed + arch in config). Defaults: batch=1, seq=1.
graph_seq: usize§graph_num_layers: Option<usize>Cap decoder layers in the embedded graph (None = all).
Trait Implementations§
Source§impl Clone for MlxImportOptions
impl Clone for MlxImportOptions
Source§fn clone(&self) -> MlxImportOptions
fn clone(&self) -> MlxImportOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MlxImportOptions
impl Debug for MlxImportOptions
Auto Trait Implementations§
impl Freeze for MlxImportOptions
impl RefUnwindSafe for MlxImportOptions
impl Send for MlxImportOptions
impl Sync for MlxImportOptions
impl Unpin for MlxImportOptions
impl UnsafeUnpin for MlxImportOptions
impl UnwindSafe for MlxImportOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more