pub struct DsparkAnchorRecord {
pub position: usize,
pub hidden: Vec<f32>,
pub tokens: Vec<u32>,
pub target_top_ids: Vec<u32>,
pub target_top_logits: Vec<f32>,
pub target_top_probs: Vec<f32>,
pub target_tail_probs: Vec<f32>,
}Expand description
One compact, anchor-bounded DSpark supervision record. tokens[0] is the anchor at p and
hidden is its predecessor carrier h[p-1], matching the live NextN/DSpark pairing. Target
rows p..p+gamma-1 score tokens p+1..p+gamma. They are the full-target softmax’s top-k
entries; target_tail_probs[j] is the probability mass outside those rows. All flattened
target arrays are [gamma, top_k] in row-major order.
Fields§
§position: usize§tokens: Vec<u32>§target_top_ids: Vec<u32>§target_top_logits: Vec<f32>§target_top_probs: Vec<f32>§target_tail_probs: Vec<f32>Auto Trait Implementations§
impl Freeze for DsparkAnchorRecord
impl RefUnwindSafe for DsparkAnchorRecord
impl Send for DsparkAnchorRecord
impl Sync for DsparkAnchorRecord
impl Unpin for DsparkAnchorRecord
impl UnsafeUnpin for DsparkAnchorRecord
impl UnwindSafe for DsparkAnchorRecord
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