pub struct RKLLMInferParam {
pub mode: RKLLMInferMode,
pub lora_params: Option<String>,
pub prompt_cache_params: Option<RKLLMPromptCacheParam>,
pub keep_history: KeepHistory,
}Expand description
Structure for defining parameters during inference.
Fields§
§mode: RKLLMInferModeInference mode, such as generating text or getting the last hidden layer.
lora_params: Option<String>Optional Lora adapter parameters.
prompt_cache_params: Option<RKLLMPromptCacheParam>Optional prompt cache parameters.
keep_history: KeepHistoryTrait Implementations§
Source§impl Clone for RKLLMInferParam
impl Clone for RKLLMInferParam
Source§fn clone(&self) -> RKLLMInferParam
fn clone(&self) -> RKLLMInferParam
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 RKLLMInferParam
impl Debug for RKLLMInferParam
Source§impl Default for RKLLMInferParam
impl Default for RKLLMInferParam
Source§fn default() -> RKLLMInferParam
fn default() -> RKLLMInferParam
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RKLLMInferParam
impl RefUnwindSafe for RKLLMInferParam
impl Send for RKLLMInferParam
impl Sync for RKLLMInferParam
impl Unpin for RKLLMInferParam
impl UnwindSafe for RKLLMInferParam
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