pub enum GPT2 {
GPT2,
GPT2LmHead,
}
Expand description
Large transformer-based language model that given a sequence of words within some text, predicts the next word.
Transformer-based language model for text generation.
Source: https://github.com/onnx/models/tree/master/text/machine_comprehension/gpt-2
Variant downloaded: ONNX Version 1.6 with Opset Version 10.
Variants§
GPT2
Pure GPT2
GPT2LmHead
GPT2 + script changes
See https://github.com/onnx/models/blob/master/text/machine_comprehension/gpt-2/dependencies/GPT2-export.py for the script changes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GPT2
impl RefUnwindSafe for GPT2
impl Send for GPT2
impl Sync for GPT2
impl Unpin for GPT2
impl UnwindSafe for GPT2
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