pub struct GenParams {
pub max_new: usize,
pub max_ctx: Option<usize>,
pub eos: Vec<u32>,
}Expand description
Generation parameters for the reusable serving API (generate_with).
Fields§
§max_new: usize§max_ctx: Option<usize>§eos: Vec<u32>Trait Implementations§
Auto Trait Implementations§
impl Freeze for GenParams
impl RefUnwindSafe for GenParams
impl Send for GenParams
impl Sync for GenParams
impl Unpin for GenParams
impl UnsafeUnpin for GenParams
impl UnwindSafe for GenParams
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