#[repr(C)]pub struct RKLLMInferParam {
pub mode: RKLLMInferMode,
pub lora_params: *mut RKLLMLoraParam,
pub prompt_cache_params: *mut RKLLMPromptCacheParam,
pub keep_history: c_int,
}Expand description
@struct RKLLMInferParam @brief Structure for defining parameters during inference.
Fields§
§mode: RKLLMInferMode< Inference mode (e.g., generate or get last hidden layer).
lora_params: *mut RKLLMLoraParam< Pointer to Lora adapter parameters.
prompt_cache_params: *mut RKLLMPromptCacheParam< Pointer to prompt cache parameters.
keep_history: c_intTrait 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
impl Copy for RKLLMInferParam
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