pub struct StructureEncoderRunner { /* private fields */ }Expand description
Wraps the ESM3 structure token encoder for converting backbone coordinates to tokens.
Uses a separate checkpoint (data/weights/esm3_structure_encoder_v0.pth)
from the main model.
Implementations§
Source§impl StructureEncoderRunner
impl StructureEncoderRunner
Sourcepub fn from_pretrained(device: Device) -> Result<Self>
pub fn from_pretrained(device: Device) -> Result<Self>
Load the VQ-VAE structure encoder (ferritin-100.22).
This used to refuse: the port targeted a network the released
checkpoint does not contain. All of those differences are now modelled
— the stack roots at transformer, its blocks are geometric-only with
no attn and no trailing norm, pre_vq_proj carries its bias, and
the relative position embedding is loaded and used as the encoder’s
initial hidden state.
Sourcepub fn from_pretrained_with(opts: &LoadOptions) -> Result<Self>
pub fn from_pretrained_with(opts: &LoadOptions) -> Result<Self>
Load with an explicit device and dtype.
Auto Trait Implementations§
impl !RefUnwindSafe for StructureEncoderRunner
impl !Send for StructureEncoderRunner
impl !Sync for StructureEncoderRunner
impl !UnwindSafe for StructureEncoderRunner
impl Freeze for StructureEncoderRunner
impl Unpin for StructureEncoderRunner
impl UnsafeUnpin for StructureEncoderRunner
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