Struct rust_bert::gpt2::Gpt2VocabResources
source · [−]pub struct Gpt2VocabResources;
Expand description
Implementations
sourceimpl Gpt2VocabResources
impl Gpt2VocabResources
sourcepub const GPT2: (&'static str, &'static str) = (
"gpt2/vocab",
"https://huggingface.co/gpt2/resolve/main/vocab.json",
)
pub const GPT2: (&'static str, &'static str) = ( "gpt2/vocab", "https://huggingface.co/gpt2/resolve/main/vocab.json", )
Shared under Modified MIT license by the OpenAI team at https://github.com/openai/gpt-2/blob/master/LICENSE. Modified with conversion to C-array format.
sourcepub const GPT2_MEDIUM: (&'static str, &'static str) = (
"gpt2-medium/vocab",
"https://huggingface.co/gpt2-medium/resolve/main/vocab.json",
)
pub const GPT2_MEDIUM: (&'static str, &'static str) = ( "gpt2-medium/vocab", "https://huggingface.co/gpt2-medium/resolve/main/vocab.json", )
Shared under Modified MIT license by the OpenAI team at https://github.com/openai/gpt-2/blob/master/LICENSE. Modified with conversion to C-array format.
sourcepub const GPT2_LARGE: (&'static str, &'static str) = (
"gpt2-large/vocab",
"https://huggingface.co/gpt2-large/resolve/main/vocab.json",
)
pub const GPT2_LARGE: (&'static str, &'static str) = ( "gpt2-large/vocab", "https://huggingface.co/gpt2-large/resolve/main/vocab.json", )
Shared under Modified MIT license by the OpenAI team at https://github.com/openai/gpt-2/blob/master/LICENSE. Modified with conversion to C-array format.
sourcepub const GPT2_XL: (&'static str, &'static str) = (
"gpt2-xl/vocab",
"https://huggingface.co/gpt2-xl/resolve/main/vocab.json",
)
pub const GPT2_XL: (&'static str, &'static str) = ( "gpt2-xl/vocab", "https://huggingface.co/gpt2-xl/resolve/main/vocab.json", )
Shared under Modified MIT license by the OpenAI team at https://github.com/openai/gpt-2/blob/master/LICENSE. Modified with conversion to C-array format.
sourcepub const DISTIL_GPT2: (&'static str, &'static str) = (
"distilgpt2/vocab",
"https://huggingface.co/distilgpt2/resolve/main/vocab.json",
)
pub const DISTIL_GPT2: (&'static str, &'static str) = ( "distilgpt2/vocab", "https://huggingface.co/distilgpt2/resolve/main/vocab.json", )
Shared under Apache 2.0 license by the HuggingFace Inc. team at https://huggingface.co/models. Modified with conversion to C-array format.
sourcepub const DIALOGPT_MEDIUM: (&'static str, &'static str) = (
"dialogpt-medium/vocab",
"https://huggingface.co/microsoft/DialoGPT-medium/resolve/main/vocab.json",
)
pub const DIALOGPT_MEDIUM: (&'static str, &'static str) = ( "dialogpt-medium/vocab", "https://huggingface.co/microsoft/DialoGPT-medium/resolve/main/vocab.json", )
Shared under MIT license by the Microsoft team at https://huggingface.co/microsoft/DialoGPT-medium. Modified with conversion to C-array format.
Auto Trait Implementations
impl RefUnwindSafe for Gpt2VocabResources
impl Send for Gpt2VocabResources
impl Sync for Gpt2VocabResources
impl Unpin for Gpt2VocabResources
impl UnwindSafe for Gpt2VocabResources
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more