pub enum ProteinMPNNModels {
V48_020,
LigandV32_020_25,
}Variants§
V48_020
proteinmpnn_v_48_020: k_neighbors=48, dropout=0.2
LigandV32_020_25
ligandmpnn_v_32_020_25: k_neighbors=32, 25 ligand context atoms.
Same ProteinMPNN struct, a different featurizer and an extra context
path — see ModelTypes::LigandMPNN (ferritin-100.11).
Implementations§
Source§impl ProteinMPNNModels
impl ProteinMPNNModels
Sourcepub const fn registry_id(&self) -> &'static str
pub const fn registry_id(&self) -> &'static str
This variant’s registry id.
Sourcepub fn config(&self) -> ProteinMPNNConfig
pub fn config(&self) -> ProteinMPNNConfig
The architecture config this checkpoint expects.
k_neighbors and atom_context_num differ between the two and are
NOT recoverable from the tensor shapes — they live in the .pt as
plain Python ints, which candle’s pickle reader does not surface — so
picking the wrong one loads cleanly and computes the wrong thing.
Sourcepub fn model_info(&self) -> (WeightSource, &'static str)
pub fn model_info(&self) -> (WeightSource, &'static str)
Weight source and file for this variant.
Delegates to REGISTRY (ferritin-goh.1).
Sourcepub fn hf_info(&self) -> (WeightSource, &'static str)
👎Deprecated since 0.4.0: renamed to model_info
pub fn hf_info(&self) -> (WeightSource, &'static str)
renamed to model_info
Renamed to model_info (ferritin-100.8).
Auto Trait Implementations§
impl Freeze for ProteinMPNNModels
impl RefUnwindSafe for ProteinMPNNModels
impl Send for ProteinMPNNModels
impl Sync for ProteinMPNNModels
impl Unpin for ProteinMPNNModels
impl UnsafeUnpin for ProteinMPNNModels
impl UnwindSafe for ProteinMPNNModels
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more