pub struct LoraAdapterInput<'a> {
pub name: String,
pub store: &'a WeightStore,
pub peft: PeftAdapterConfig,
}Expand description
One adapter to pack, for the multi-adapter entry point. store is the
adapter’s on-device BF16 WeightStore (host F16/F32→BF16 already done by
spark_runtime::weights::adapter::load_adapter_safetensors).
Fields§
§name: String§store: &'a WeightStore§peft: PeftAdapterConfigAuto Trait Implementations§
impl<'a> Freeze for LoraAdapterInput<'a>
impl<'a> RefUnwindSafe for LoraAdapterInput<'a>
impl<'a> Send for LoraAdapterInput<'a>
impl<'a> Sync for LoraAdapterInput<'a>
impl<'a> Unpin for LoraAdapterInput<'a>
impl<'a> UnwindSafe for LoraAdapterInput<'a>
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