#[non_exhaustive]pub struct StoredAdapter {
pub id: String,
pub format: AdapterFormat,
pub path: PathBuf,
pub size: u64,
pub base_model: Option<String>,
pub architecture: Option<String>,
pub repo: Option<String>,
pub rank: Option<u32>,
pub alpha: Option<f32>,
pub provenance: Option<Provenance>,
}Expand description
A LoRA adapter in the store, from ModelStore::adapters.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringIts directory’s name under adapters/.
format: AdapterFormat§path: PathBufThe GGUF file (llama.cpp --lora), or the PEFT directory (vLLM --lora-modules).
size: u64All its files together.
base_model: Option<String>The base model as a Hub id, when known.
architecture: Option<String>general.architecture of a GGUF adapter.
repo: Option<String>The Hub repo it was downloaded from, when known.
rank: Option<u32>§alpha: Option<f32>§provenance: Option<Provenance>Where it came from, for adapters placed by ModelStore::import.
Trait Implementations§
Source§impl Clone for StoredAdapter
impl Clone for StoredAdapter
Source§impl Debug for StoredAdapter
impl Debug for StoredAdapter
Source§impl<'de> Deserialize<'de> for StoredAdapter
impl<'de> Deserialize<'de> for StoredAdapter
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
Source§impl PartialEq for StoredAdapter
impl PartialEq for StoredAdapter
Source§impl Serialize for StoredAdapter
impl Serialize for StoredAdapter
impl StructuralPartialEq for StoredAdapter
Auto Trait Implementations§
impl Forget for StoredAdapter
impl Freeze for StoredAdapter
impl Move for StoredAdapter
impl RefUnwindSafe for StoredAdapter
impl Send for StoredAdapter
impl Sync for StoredAdapter
impl Unpin for StoredAdapter
impl UnsafeUnpin for StoredAdapter
impl UnwindSafe for StoredAdapter
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