Struct llm_base::InferenceSessionParameters
source · pub struct InferenceSessionParameters {
pub repetition_penalty_last_n: usize,
pub memory_k_type: ModelKVMemoryType,
pub memory_v_type: ModelKVMemoryType,
}Expand description
Parameters for an inference session.
Fields§
§repetition_penalty_last_n: usizeThe number of tokens to consider for the repetition penalty.
memory_k_type: ModelKVMemoryTypeThe type of the memory K tensor.
memory_v_type: ModelKVMemoryTypeThe type of the memory V tensor.
Trait Implementations§
source§impl Clone for InferenceSessionParameters
impl Clone for InferenceSessionParameters
source§fn clone(&self) -> InferenceSessionParameters
fn clone(&self) -> InferenceSessionParameters
Returns a copy 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 InferenceSessionParameters
impl Debug for InferenceSessionParameters
source§impl Default for InferenceSessionParameters
impl Default for InferenceSessionParameters
source§impl<'de> Deserialize<'de> for InferenceSessionParameters
impl<'de> Deserialize<'de> for InferenceSessionParameters
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<InferenceSessionParameters> for InferenceSessionParameters
impl PartialEq<InferenceSessionParameters> for InferenceSessionParameters
source§fn eq(&self, other: &InferenceSessionParameters) -> bool
fn eq(&self, other: &InferenceSessionParameters) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for InferenceSessionParameters
impl Eq for InferenceSessionParameters
impl StructuralEq for InferenceSessionParameters
impl StructuralPartialEq for InferenceSessionParameters
Auto Trait Implementations§
impl RefUnwindSafe for InferenceSessionParameters
impl Send for InferenceSessionParameters
impl Sync for InferenceSessionParameters
impl Unpin for InferenceSessionParameters
impl UnwindSafe for InferenceSessionParameters
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