pub struct Dory {Show 14 fields
pub file: Option<Arc<CmfModel>>,
pub cfg: DoryCfg,
pub embed: QTensor,
pub head: QTensor,
pub logit_scale: Vec<f32>,
pub layers: Vec<Layer>,
pub inv_full: Vec<f32>,
pub inv_sliding: Vec<f32>,
pub attn_layers: usize,
pub o1: Option<DoryO1>,
pub gate: Option<Gate>,
pub prompt_loops: usize,
pub exact: Option<ExactRows>,
pub spill: Option<PathBuf>,
}Fields§
§file: Option<Arc<CmfModel>>The file, for a device that binds its mapping as it is.
cfg: DoryCfg§embed: QTensor§head: QTensor§logit_scale: Vec<f32>logit_scale/σ₀
layers: Vec<Layer>§inv_full: Vec<f32>§inv_sliding: Vec<f32>§attn_layers: usize§o1: Option<DoryO1>§gate: Option<Gate>How a token leaves the loop early, on the last-loop cache.
prompt_loops: usizePasses over a prompt chunk whose logits nobody reads (CMF_DORY_PROMPT_LOOPS):
its cache rows are all that stays of it. 0: as many as any other chunk.
exact: Option<ExactRows>Rows of a sealed prompt the far field would lose (CMF_DORY_EXACT=FILE:rows).
spill: Option<PathBuf>A long prompt’s rows go to files here, and to RAM without it (CMF_O1_SPILL).
Implementations§
Auto Trait Implementations§
impl Forget for Dory
impl Freeze for Dory
impl Move for Dory
impl RefUnwindSafe for Dory
impl Send for Dory
impl Sync for Dory
impl Unpin for Dory
impl UnsafeUnpin for Dory
impl UnwindSafe for Dory
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