pub struct VerifyBatchedOpts {
pub write_on_accept: bool,
}Expand description
One beam-search request for a translation model (NLLB). Carries the resolved
per-request parameters the scheduler stamps onto the sequence; the model runs
the whole beam search to completion and returns the winning hypothesis.
Per-call options for Model::decode_verify_batched.
Fields§
§write_on_accept: boolAsk the GDN layers for the write-on-accept K=4 verify. The caller
commits to running Model::gdn_fold_accepted with every verdict
before its commit_accepted_prefix calls. Off by default so a
caller that commits through another path (the MTP batched K-row
verify) never reaches a state the layer wrote nothing for.
Trait Implementations§
Source§impl Clone for VerifyBatchedOpts
impl Clone for VerifyBatchedOpts
Source§fn clone(&self) -> VerifyBatchedOpts
fn clone(&self) -> VerifyBatchedOpts
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VerifyBatchedOpts
impl Debug for VerifyBatchedOpts
Source§impl Default for VerifyBatchedOpts
impl Default for VerifyBatchedOpts
Source§fn default() -> VerifyBatchedOpts
fn default() -> VerifyBatchedOpts
Returns the “default value” for a type. Read more
Source§impl PartialEq for VerifyBatchedOpts
impl PartialEq for VerifyBatchedOpts
impl Copy for VerifyBatchedOpts
impl Eq for VerifyBatchedOpts
impl StructuralPartialEq for VerifyBatchedOpts
Auto Trait Implementations§
impl Freeze for VerifyBatchedOpts
impl RefUnwindSafe for VerifyBatchedOpts
impl Send for VerifyBatchedOpts
impl Sync for VerifyBatchedOpts
impl Unpin for VerifyBatchedOpts
impl UnwindSafe for VerifyBatchedOpts
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
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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.