Struct rust_bert::models::gpt_j::GptJModelResources
source · pub struct GptJModelResources;
Expand description
Implementations§
source§impl GptJModelResources
impl GptJModelResources
Model weights for Rust are not available out of the box for GPT-J but can be created simply with the following command:
ⓘ
python utils/convert_model.py path/to/gpt_j/pytorch_model.bin
Where pytorch_model.bin
was downloaded from EleutherAI GPT-J 6B or
EleutherAI GPT-J 6B (float16). Note that to convert GPT-J 6B you
will need about 32 Gb of RAM, and converting GPT-J 6B float16 requires about 12 Gb
of RAM.
pub const GPT_J_TINY_RANDOM: (&'static str, &'static str) = _
Auto Trait Implementations§
impl RefUnwindSafe for GptJModelResources
impl Send for GptJModelResources
impl Sync for GptJModelResources
impl Unpin for GptJModelResources
impl UnwindSafe for GptJModelResources
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