pub enum RKLLMInferMode {
InferGenerate = 0,
InferGetLastHiddenLayer = 1,
}Expand description
Defines the inference mode for the LLM.
Variants§
InferGenerate = 0
The LLM generates text based on the input. This is the default mode.
InferGetLastHiddenLayer = 1
The LLM retrieves the last hidden layer for further processing.
Trait Implementations§
Source§impl Clone for RKLLMInferMode
impl Clone for RKLLMInferMode
Source§fn clone(&self) -> RKLLMInferMode
fn clone(&self) -> RKLLMInferMode
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 RKLLMInferMode
impl Debug for RKLLMInferMode
Source§impl Default for RKLLMInferMode
impl Default for RKLLMInferMode
Source§fn default() -> RKLLMInferMode
fn default() -> RKLLMInferMode
Returns the “default value” for a type. Read more
Source§impl Into<u32> for RKLLMInferMode
impl Into<u32> for RKLLMInferMode
impl Copy for RKLLMInferMode
Auto Trait Implementations§
impl Freeze for RKLLMInferMode
impl RefUnwindSafe for RKLLMInferMode
impl Send for RKLLMInferMode
impl Sync for RKLLMInferMode
impl Unpin for RKLLMInferMode
impl UnwindSafe for RKLLMInferMode
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