#[repr(C)]pub struct RKLLMLoraAdapter {
pub lora_adapter_path: *const c_char,
pub lora_adapter_name: *const c_char,
pub scale: f32,
}
Expand description
@struct RKLLMLoraAdapter @brief Defines parameters for a Lora adapter used in model fine-tuning.
Fields§
§lora_adapter_path: *const c_char
< Path to the Lora adapter file.
lora_adapter_name: *const c_char
< Name of the Lora adapter.
scale: f32
< Scaling factor for applying the Lora adapter.
Trait Implementations§
Source§impl Clone for RKLLMLoraAdapter
impl Clone for RKLLMLoraAdapter
Source§fn clone(&self) -> RKLLMLoraAdapter
fn clone(&self) -> RKLLMLoraAdapter
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 RKLLMLoraAdapter
impl Debug for RKLLMLoraAdapter
impl Copy for RKLLMLoraAdapter
Auto Trait Implementations§
impl Freeze for RKLLMLoraAdapter
impl RefUnwindSafe for RKLLMLoraAdapter
impl !Send for RKLLMLoraAdapter
impl !Sync for RKLLMLoraAdapter
impl Unpin for RKLLMLoraAdapter
impl UnwindSafe for RKLLMLoraAdapter
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