Skip to main content

PriorPlan

Struct PriorPlan 

Source
pub struct PriorPlan {
    pub archive_bytes: u64,
    pub archive_sha256: String,
    pub vocab_sha256: String,
    pub initialization_kind: InitializationKind,
    pub source_depth: usize,
    pub block_mapping: Vec<usize>,
    pub block_schedule: Option<Vec<usize>>,
    pub target_sources: BTreeMap<usize, usize>,
    pub root_names: Vec<String>,
    pub block_suffixes: Vec<String>,
    pub zero_unmapped_targets: Vec<usize>,
    pub policy: Option<String>,
}
Expand description

Validated plan for applying a QPI1 prior to a target Transformer.

Fields§

§archive_bytes: u64

Size of the archive file in bytes.

§archive_sha256: String

SHA-256 hex digest of the archive file.

§vocab_sha256: String

SHA-256 hex digest of the pinned vocabulary file.

§initialization_kind: InitializationKind

Initialization strategy used by the prior.

§source_depth: usize

Number of physical blocks stored in the archive.

§block_mapping: Vec<usize>

Effective block mapping (Vec<usize>) recorded for diagnostics.

§block_schedule: Option<Vec<usize>>

Recurrent block schedule if loop-untying.

§target_sources: BTreeMap<usize, usize>

Map from target block index to archive source block index.

§root_names: Vec<String>

Root (non-block) parameter names verified present in both prior and target.

§block_suffixes: Vec<String>

Per-block suffix names (after "blocks.{i}.").

§zero_unmapped_targets: Vec<usize>

Unmapped target block indices whose residual output projections must be zeroed (depth-growth).

§policy: Option<String>

Optional quantization policy name.

Trait Implementations§

Source§

impl Clone for PriorPlan

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PriorPlan

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for PriorPlan

Source§

impl PartialEq for PriorPlan

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PriorPlan

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V