pub enum T5Models {
ProtT5XlHalfUniref50Enc,
AnkhBase,
AnkhLarge,
}Expand description
Available T5-family models.
Variants§
ProtT5XlHalfUniref50Enc
Rostlab/prot_t5_xl_half_uniref50-enc — the encoder-only
half-precision build, which is the one almost everyone uses. The full
encoder-decoder prot_t5_xl_uniref50 doubles the download for a
decoder that embedding work never runs.
AnkhBase
ElnaggarLab/ankh-base — 48 encoder layers at d_model 768.
AnkhLarge
ElnaggarLab/ankh-large — 48 encoder layers at d_model 1536.
Implementations§
Source§impl T5Models
impl T5Models
Sourcepub const fn registry_id(&self) -> &'static str
pub const fn registry_id(&self) -> &'static str
This variant’s registry id.
Sourcepub const fn published_dtype(&self) -> DType
pub const fn published_dtype(&self) -> DType
The precision this checkpoint is published at.
ProtT5’s encoder-only build ships float16, so loading it at F32 would
double 2.4 GB in memory for values that are F16 either way. Ankh ships
float32, and rounding it down would lose real precision rather than
save anything the checkpoint has. Either can be overridden through
T5Runner::from_pretrained_with (ferritin-100.9).
Sourcepub fn model_info(&self) -> (WeightSource, &'static str, T5Config)
pub fn model_info(&self) -> (WeightSource, &'static str, T5Config)
Where this variant’s weights live, plus its built-in fallback config.
Auto Trait Implementations§
impl Freeze for T5Models
impl RefUnwindSafe for T5Models
impl Send for T5Models
impl Sync for T5Models
impl Unpin for T5Models
impl UnsafeUnpin for T5Models
impl UnwindSafe for T5Models
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
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> ⓘ
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> ⓘ
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