pub struct Instance {
pub recipe: String,
pub checkpoint: String,
pub arch: String,
pub variant: Option<String>,
pub precision: PrecisionSpec,
pub target: String,
pub golden: bool,
pub shape: ArchShape,
pub policy: Policy,
pub plans: BTreeMap<Mode, Vec<u64>>,
pub verify_batch: Vec<RowTable>,
}Expand description
2026-09-28: One recipe’s circuit instance.
Fields§
§recipe: String2026-09-28: Recipe id (qwen3.8/qwen3.8-27b-nvfp4-unsloth).
checkpoint: String2026-09-28: Checkpoint id.
arch: String2026-09-28: Circuit arch: kernels/circuits/<arch>.toml.
variant: Option<String>2026-09-30: What tells this instance’s golden plans apart from another golden instance
of the same arch (the recipe served under another --weight-quantization tier); None
for the arch’s only golden instance.
precision: PrecisionSpec2026-09-28: Where each linear module’s formats come from.
target: String2026-09-28: Kernel target, hw/model/quant.
golden: bool2026-09-28: Whether its plans are checked in under kernels/circuits/plans/.
shape: ArchShape2026-09-28: The arch shape.
policy: Policy2026-09-28: The policy.
plans: BTreeMap<Mode, Vec<u64>>2026-09-28: Row counts per mode that have a plan.
verify_batch: Vec<RowTable>2026-09-30: The batched-verify row tables that have a plan. An instance with none is not served a batched verify by the executor: each sequence verifies alone.
Implementations§
Source§impl Instance
impl Instance
Sourcepub fn plan_file(&self, mode: Mode, rows: u64) -> String
pub fn plan_file(&self, mode: Mode, rows: u64) -> String
2026-09-28: The golden file name of one plan: <stem>-<mode>-n<rows>.txt.
Sourcepub fn table_plan_file(&self, table: &RowTable) -> String
pub fn table_plan_file(&self, table: &RowTable) -> String
2026-09-30: The golden file name of one batched-verify plan:
<stem>-verify_batch-<table>.txt, the table’s runs joined by _, f marking a fragmented
run and a leading u- an uncarried table.
Trait Implementations§
impl Eq for Instance
impl StructuralPartialEq for Instance
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnwindSafe for Instance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.