#[repr(C)]pub struct CrispasrChatGenerateParams {
pub max_tokens: c_int,
pub temperature: c_float,
pub top_k: c_int,
pub top_p: c_float,
pub min_p: c_float,
pub repeat_penalty: c_float,
pub repeat_last_n: c_int,
pub seed: u32,
pub stop: *const *const c_char,
pub n_stop: usize,
pub prefill_only: bool,
}Expand description
Per-call, sampler-level generate params. Fill via
crispasr_chat_generate_params_default before overriding fields.
Fields§
§max_tokens: c_int§temperature: c_float0.0 = greedy (short-circuits the rest of the sampler chain).
top_k: c_int§top_p: c_float§min_p: c_float§repeat_penalty: c_float§repeat_last_n: c_int§seed: u320xFFFFFFFF = random.
stop: *const *const c_charArray of n_stop NUL-terminated stop strings; null = none.
n_stop: usize§prefill_only: boolPrefill the prompt but suppress assistant generation.
Trait Implementations§
Source§impl Clone for CrispasrChatGenerateParams
impl Clone for CrispasrChatGenerateParams
Source§fn clone(&self) -> CrispasrChatGenerateParams
fn clone(&self) -> CrispasrChatGenerateParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CrispasrChatGenerateParams
Source§impl Debug for CrispasrChatGenerateParams
impl Debug for CrispasrChatGenerateParams
Auto Trait Implementations§
impl !Send for CrispasrChatGenerateParams
impl !Sync for CrispasrChatGenerateParams
impl Freeze for CrispasrChatGenerateParams
impl RefUnwindSafe for CrispasrChatGenerateParams
impl Unpin for CrispasrChatGenerateParams
impl UnsafeUnpin for CrispasrChatGenerateParams
impl UnwindSafe for CrispasrChatGenerateParams
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