#[non_exhaustive]pub enum AdapterFormat {
GgufLora,
Peft,
}Expand description
How an adapter is stored.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
GgufLora
One GGUF file (general.type = adapter, adapter.type = lora), for llama.cpp.
Peft
A PEFT directory (adapter_config.json and adapter_model.safetensors), for vLLM.
Trait Implementations§
Source§impl Clone for AdapterFormat
impl Clone for AdapterFormat
impl Copy for AdapterFormat
Source§impl Debug for AdapterFormat
impl Debug for AdapterFormat
Source§impl<'de> Deserialize<'de> for AdapterFormat
impl<'de> Deserialize<'de> for AdapterFormat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AdapterFormat
Source§impl Hash for AdapterFormat
impl Hash for AdapterFormat
Source§impl PartialEq for AdapterFormat
impl PartialEq for AdapterFormat
Source§impl Serialize for AdapterFormat
impl Serialize for AdapterFormat
impl StructuralPartialEq for AdapterFormat
Auto Trait Implementations§
impl Forget for AdapterFormat
impl Freeze for AdapterFormat
impl Move for AdapterFormat
impl RefUnwindSafe for AdapterFormat
impl Send for AdapterFormat
impl Sync for AdapterFormat
impl Unpin for AdapterFormat
impl UnsafeUnpin for AdapterFormat
impl UnwindSafe for AdapterFormat
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