pub struct GPTNeoXDecoder;Expand description
GPT-NeoX decoder (Black et al., 2022).
See: GPT-NeoX-20B: An Open-Source Autoregressive Language Model
Trait Implementations§
Source§impl FromHF for GPTNeoXDecoder
impl FromHF for GPTNeoXDecoder
Source§type Config = TransformerDecoderConfig
type Config = TransformerDecoderConfig
Model configuration.
Source§type Model = TransformerDecoder
type Model = TransformerDecoder
The type of model that is constructed. Read more
Source§fn rename_parameters() -> impl Fn(&str) -> String
fn rename_parameters() -> impl Fn(&str) -> String
Create a parameter renaming function. Read more
Source§fn from_hf(
hf_config: HFConfigWithDType<Self::HFConfig>,
backend: Box<dyn SimpleBackend>,
device: &Device,
) -> Result<Self::Model, FromHFError>
fn from_hf( hf_config: HFConfigWithDType<Self::HFConfig>, backend: Box<dyn SimpleBackend>, device: &Device, ) -> Result<Self::Model, FromHFError>
Construct a model from an HF model configuration and parameter backend. Read more
Auto Trait Implementations§
impl Freeze for GPTNeoXDecoder
impl RefUnwindSafe for GPTNeoXDecoder
impl Send for GPTNeoXDecoder
impl Sync for GPTNeoXDecoder
impl Unpin for GPTNeoXDecoder
impl UnwindSafe for GPTNeoXDecoder
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
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