pub struct BatchGroup<P> {
pub model: String,
pub prefix_hash: u64,
pub context_bucket: u32,
pub items: Vec<WorkItem<P>>,
}Expand description
A group of work items that should be submitted together.
All items in a group share the same model and prefix hash, maximizing cache reuse.
Fields§
§model: StringModel identifier shared by all items in this group.
prefix_hash: u64Prefix hash shared by all items in this group.
context_bucket: u32Context length bucket (token_count / bucket_size).
items: Vec<WorkItem<P>>The work items in this group.
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for BatchGroup<P>
impl<P> RefUnwindSafe for BatchGroup<P>where
P: RefUnwindSafe,
impl<P> Send for BatchGroup<P>where
P: Send,
impl<P> Sync for BatchGroup<P>where
P: Sync,
impl<P> Unpin for BatchGroup<P>where
P: Unpin,
impl<P> UnsafeUnpin for BatchGroup<P>
impl<P> UnwindSafe for BatchGroup<P>where
P: UnwindSafe,
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