import{S as jN,i as AN,s as ON,e as r,k as p,w as k,t as o,M as IN,c as a,d as t,m,a as s,x as T,h as n,b as u,G as e,g,y as w,q as $,o as P,B as F,v as DN,L as Oe}from"../../chunks/vendor-hf-doc-builder.js";import{T as je}from"../../chunks/Tip-hf-doc-builder.js";import{D as W}from"../../chunks/Docstring-hf-doc-builder.js";import{C as Ie}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as Ue}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as Ae}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";function SN(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import RobertaPreLayerNormConfig, RobertaPreLayerNormModel

# Initializing a RoBERTa-PreLayerNorm configuration
configuration = RobertaPreLayerNormConfig()

# Initializing a model (with random weights) from the configuration
model = RobertaPreLayerNormModel(configuration)

# Accessing the model configuration
configuration = model.config`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> RobertaPreLayerNormConfig, RobertaPreLayerNormModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a RoBERTa-PreLayerNorm configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = RobertaPreLayerNormConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = RobertaPreLayerNormModel(configuration)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Accessing the model configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = model.config`}}),{c(){d=r("p"),y=o("Examples:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Examples:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function WN(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function UN(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import AutoTokenizer, RobertaPreLayerNormModel
import torch

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = RobertaPreLayerNormModel.from_pretrained("andreasmadsen/efficient_mlm_m0.40")

inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
outputs = model(**inputs)

last_hidden_states = outputs.last_hidden_state`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, RobertaPreLayerNormModel
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = RobertaPreLayerNormModel.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;Hello, my dog is cute&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)

<span class="hljs-meta">&gt;&gt;&gt; </span>last_hidden_states = outputs.last_hidden_state`}}),{c(){d=r("p"),y=o("Example:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function BN(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function QN(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import AutoTokenizer, RobertaPreLayerNormForCausalLM, AutoConfig
import torch

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
config = AutoConfig.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
config.is_decoder = True
model = RobertaPreLayerNormForCausalLM.from_pretrained("andreasmadsen/efficient_mlm_m0.40", config=config)

inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
outputs = model(**inputs)

prediction_logits = outputs.logits`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, RobertaPreLayerNormForCausalLM, AutoConfig
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>config = AutoConfig.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>config.is_decoder = <span class="hljs-literal">True</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = RobertaPreLayerNormForCausalLM.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>, config=config)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;Hello, my dog is cute&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)

<span class="hljs-meta">&gt;&gt;&gt; </span>prediction_logits = outputs.logits`}}),{c(){d=r("p"),y=o("Example:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function HN(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function KN(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import AutoTokenizer, RobertaPreLayerNormForMaskedLM
import torch

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = RobertaPreLayerNormForMaskedLM.from_pretrained("andreasmadsen/efficient_mlm_m0.40")

inputs = tokenizer("The capital of France is <mask>.", return_tensors="pt")

with torch.no_grad():
    logits = model(**inputs).logits

# retrieve index of <mask>
mask_token_index = (inputs.input_ids == tokenizer.mask_token_id)[0].nonzero(as_tuple=True)[0]

predicted_token_id = logits[0, mask_token_index].argmax(axis=-1)
tokenizer.decode(predicted_token_id)

labels = tokenizer("The capital of France is Paris.", return_tensors="pt")["input_ids"]
# mask labels of non-<mask> tokens
labels = torch.where(inputs.input_ids == tokenizer.mask_token_id, labels, -100)

outputs = model(**inputs, labels=labels)
round(outputs.loss.item(), 2)`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, RobertaPreLayerNormForMaskedLM
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = RobertaPreLayerNormForMaskedLM.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;The capital of France is &lt;mask&gt;.&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    logits = model(**inputs).logits

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># retrieve index of &lt;mask&gt;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>mask_token_index = (inputs.input_ids == tokenizer.mask_token_id)[<span class="hljs-number">0</span>].nonzero(as_tuple=<span class="hljs-literal">True</span>)[<span class="hljs-number">0</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_token_id = logits[<span class="hljs-number">0</span>, mask_token_index].argmax(axis=-<span class="hljs-number">1</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer.decode(predicted_token_id)
<span class="hljs-string">&#x27; Paris&#x27;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>labels = tokenizer(<span class="hljs-string">&quot;The capital of France is Paris.&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)[<span class="hljs-string">&quot;input_ids&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># mask labels of non-&lt;mask&gt; tokens</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>labels = torch.where(inputs.input_ids == tokenizer.mask_token_id, labels, -<span class="hljs-number">100</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs, labels=labels)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">round</span>(outputs.loss.item(), <span class="hljs-number">2</span>)
<span class="hljs-number">0.69</span>`}}),{c(){d=r("p"),y=o("Example:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function VN(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function JN(N){let d,y,h,f,_;return f=new Ie({props:{code:`import torch
from transformers import AutoTokenizer, RobertaPreLayerNormForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = RobertaPreLayerNormForSequenceClassification.from_pretrained("andreasmadsen/efficient_mlm_m0.40")

inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")

with torch.no_grad():
    logits = model(**inputs).logits

predicted_class_id = logits.argmax().item()

# To train a model on \`num_labels\` classes, you can pass \`num_labels=num_labels\` to \`.from_pretrained(...)\`
num_labels = len(model.config.id2label)
model = RobertaPreLayerNormForSequenceClassification.from_pretrained("andreasmadsen/efficient_mlm_m0.40", num_labels=num_labels)

labels = torch.tensor([1])
loss = model(**inputs, labels=labels).loss`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, RobertaPreLayerNormForSequenceClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = RobertaPreLayerNormForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;Hello, my dog is cute&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    logits = model(**inputs).logits

<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_class_id = logits.argmax().item()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># To train a model on \`num_labels\` classes, you can pass \`num_labels=num_labels\` to \`.from_pretrained(...)\`</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>num_labels = <span class="hljs-built_in">len</span>(model.config.id2label)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = RobertaPreLayerNormForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>, num_labels=num_labels)

<span class="hljs-meta">&gt;&gt;&gt; </span>labels = torch.tensor([<span class="hljs-number">1</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = model(**inputs, labels=labels).loss`}}),{c(){d=r("p"),y=o("Example of single-label classification:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example of single-label classification:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function GN(N){let d,y,h,f,_;return f=new Ie({props:{code:`import torch
from transformers import AutoTokenizer, RobertaPreLayerNormForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = RobertaPreLayerNormForSequenceClassification.from_pretrained("andreasmadsen/efficient_mlm_m0.40", problem_type="multi_label_classification")

inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")

with torch.no_grad():
    logits = model(**inputs).logits

predicted_class_ids = torch.arange(0, logits.shape[-1])[torch.sigmoid(logits).squeeze(dim=0) > 0.5]

# To train a model on \`num_labels\` classes, you can pass \`num_labels=num_labels\` to \`.from_pretrained(...)\`
num_labels = len(model.config.id2label)
model = RobertaPreLayerNormForSequenceClassification.from_pretrained(
    "andreasmadsen/efficient_mlm_m0.40", num_labels=num_labels, problem_type="multi_label_classification"
)

labels = torch.sum(
    torch.nn.functional.one_hot(predicted_class_ids[None, :].clone(), num_classes=num_labels), dim=1
).to(torch.float)
loss = model(**inputs, labels=labels).loss`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, RobertaPreLayerNormForSequenceClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = RobertaPreLayerNormForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>, problem_type=<span class="hljs-string">&quot;multi_label_classification&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;Hello, my dog is cute&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    logits = model(**inputs).logits

<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_class_ids = torch.arange(<span class="hljs-number">0</span>, logits.shape[-<span class="hljs-number">1</span>])[torch.sigmoid(logits).squeeze(dim=<span class="hljs-number">0</span>) &gt; <span class="hljs-number">0.5</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># To train a model on \`num_labels\` classes, you can pass \`num_labels=num_labels\` to \`.from_pretrained(...)\`</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>num_labels = <span class="hljs-built_in">len</span>(model.config.id2label)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = RobertaPreLayerNormForSequenceClassification.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>, num_labels=num_labels, problem_type=<span class="hljs-string">&quot;multi_label_classification&quot;</span>
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>labels = torch.<span class="hljs-built_in">sum</span>(
<span class="hljs-meta">... </span>    torch.nn.functional.one_hot(predicted_class_ids[<span class="hljs-literal">None</span>, :].clone(), num_classes=num_labels), dim=<span class="hljs-number">1</span>
<span class="hljs-meta">... </span>).to(torch.<span class="hljs-built_in">float</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = model(**inputs, labels=labels).loss`}}),{c(){d=r("p"),y=o("Example of multi-label classification:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example of multi-label classification:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function XN(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function YN(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import AutoTokenizer, RobertaPreLayerNormForMultipleChoice
import torch

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = RobertaPreLayerNormForMultipleChoice.from_pretrained("andreasmadsen/efficient_mlm_m0.40")

prompt = "In Italy, pizza served in formal settings, such as at a restaurant, is presented unsliced."
choice0 = "It is eaten with a fork and a knife."
choice1 = "It is eaten while held in the hand."
labels = torch.tensor(0).unsqueeze(0)  # choice0 is correct (according to Wikipedia ;)), batch size 1

encoding = tokenizer([prompt, prompt], [choice0, choice1], return_tensors="pt", padding=True)
outputs = model(**{k: v.unsqueeze(0) for k, v in encoding.items()}, labels=labels)  # batch size is 1

# the linear classifier still needs to be trained
loss = outputs.loss
logits = outputs.logits`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, RobertaPreLayerNormForMultipleChoice
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = RobertaPreLayerNormForMultipleChoice.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;In Italy, pizza served in formal settings, such as at a restaurant, is presented unsliced.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>choice0 = <span class="hljs-string">&quot;It is eaten with a fork and a knife.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>choice1 = <span class="hljs-string">&quot;It is eaten while held in the hand.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>labels = torch.tensor(<span class="hljs-number">0</span>).unsqueeze(<span class="hljs-number">0</span>)  <span class="hljs-comment"># choice0 is correct (according to Wikipedia ;)), batch size 1</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>encoding = tokenizer([prompt, prompt], [choice0, choice1], return_tensors=<span class="hljs-string">&quot;pt&quot;</span>, padding=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**{k: v.unsqueeze(<span class="hljs-number">0</span>) <span class="hljs-keyword">for</span> k, v <span class="hljs-keyword">in</span> encoding.items()}, labels=labels)  <span class="hljs-comment"># batch size is 1</span>

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># the linear classifier still needs to be trained</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = outputs.loss
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits`}}),{c(){d=r("p"),y=o("Example:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function ZN(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function eL(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import AutoTokenizer, RobertaPreLayerNormForTokenClassification
import torch

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = RobertaPreLayerNormForTokenClassification.from_pretrained("andreasmadsen/efficient_mlm_m0.40")

inputs = tokenizer(
    "HuggingFace is a company based in Paris and New York", add_special_tokens=False, return_tensors="pt"
)

with torch.no_grad():
    logits = model(**inputs).logits

predicted_token_class_ids = logits.argmax(-1)

# Note that tokens are classified rather then input words which means that
# there might be more predicted token classes than words.
# Multiple token classes might account for the same word
predicted_tokens_classes = [model.config.id2label[t.item()] for t in predicted_token_class_ids[0]]

labels = predicted_token_class_ids
loss = model(**inputs, labels=labels).loss`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, RobertaPreLayerNormForTokenClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = RobertaPreLayerNormForTokenClassification.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;HuggingFace is a company based in Paris and New York&quot;</span>, add_special_tokens=<span class="hljs-literal">False</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    logits = model(**inputs).logits

<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_token_class_ids = logits.argmax(-<span class="hljs-number">1</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Note that tokens are classified rather then input words which means that</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># there might be more predicted token classes than words.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Multiple token classes might account for the same word</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_tokens_classes = [model.config.id2label[t.item()] <span class="hljs-keyword">for</span> t <span class="hljs-keyword">in</span> predicted_token_class_ids[<span class="hljs-number">0</span>]]

<span class="hljs-meta">&gt;&gt;&gt; </span>labels = predicted_token_class_ids
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = model(**inputs, labels=labels).loss`}}),{c(){d=r("p"),y=o("Example:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function tL(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function oL(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import AutoTokenizer, RobertaPreLayerNormForQuestionAnswering
import torch

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = RobertaPreLayerNormForQuestionAnswering.from_pretrained("andreasmadsen/efficient_mlm_m0.40")

question, text = "Who was Jim Henson?", "Jim Henson was a nice puppet"

inputs = tokenizer(question, text, return_tensors="pt")
with torch.no_grad():
    outputs = model(**inputs)

answer_start_index = outputs.start_logits.argmax()
answer_end_index = outputs.end_logits.argmax()

predict_answer_tokens = inputs.input_ids[0, answer_start_index : answer_end_index + 1]

# target is "nice puppet"
target_start_index = torch.tensor([14])
target_end_index = torch.tensor([15])

outputs = model(**inputs, start_positions=target_start_index, end_positions=target_end_index)
loss = outputs.loss`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, RobertaPreLayerNormForQuestionAnswering
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = RobertaPreLayerNormForQuestionAnswering.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>question, text = <span class="hljs-string">&quot;Who was Jim Henson?&quot;</span>, <span class="hljs-string">&quot;Jim Henson was a nice puppet&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(question, text, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    outputs = model(**inputs)

<span class="hljs-meta">&gt;&gt;&gt; </span>answer_start_index = outputs.start_logits.argmax()
<span class="hljs-meta">&gt;&gt;&gt; </span>answer_end_index = outputs.end_logits.argmax()

<span class="hljs-meta">&gt;&gt;&gt; </span>predict_answer_tokens = inputs.input_ids[<span class="hljs-number">0</span>, answer_start_index : answer_end_index + <span class="hljs-number">1</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># target is &quot;nice puppet&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>target_start_index = torch.tensor([<span class="hljs-number">14</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>target_end_index = torch.tensor([<span class="hljs-number">15</span>])

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs, start_positions=target_start_index, end_positions=target_end_index)
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = outputs.loss`}}),{c(){d=r("p"),y=o("Example:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function nL(N){let d,y,h,f,_,l,c,x,ye,he,D,ae,te,L,be,B,ve,ue,A,ke,se,K,Te,ce,V,we,ie,J,$e,fe,ee,R,C,le,Q,Pe,ge,U,Fe,_e,z,H,G,de,Ne,X,pe,Le,S,me,Y,xe,oe,q,Me,j,Ee,Re;return{c(){d=r("p"),y=o("TensorFlow models and layers in "),h=r("code"),f=o("transformers"),_=o(" accept two formats as input:"),l=p(),c=r("ul"),x=r("li"),ye=o("having all inputs as keyword arguments (like PyTorch models), or"),he=p(),D=r("li"),ae=o("having all inputs as a list, tuple or dict in the first positional argument."),te=p(),L=r("p"),be=o(`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),B=r("code"),ve=o("model.fit()"),ue=o(` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),A=r("code"),ke=o("model.fit()"),se=o(` supports! If, however, you want to use the second
format outside of Keras methods like `),K=r("code"),Te=o("fit()"),ce=o(" and "),V=r("code"),we=o("predict()"),ie=o(`, such as when creating your own layers or models with
the Keras `),J=r("code"),$e=o("Functional"),fe=o(` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),ee=p(),R=r("ul"),C=r("li"),le=o("a single Tensor with "),Q=r("code"),Pe=o("input_ids"),ge=o(" only and nothing else: "),U=r("code"),Fe=o("model(input_ids)"),_e=p(),z=r("li"),H=o(`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),G=r("code"),de=o("model([input_ids, attention_mask])"),Ne=o(" or "),X=r("code"),pe=o("model([input_ids, attention_mask, token_type_ids])"),Le=p(),S=r("li"),me=o(`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),Y=r("code"),xe=o('model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),oe=p(),q=r("p"),Me=o(`Note that when creating models and layers with
`),j=r("a"),Ee=o("subclassing"),Re=o(` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),this.h()},l(v){d=a(v,"P",{});var M=s(d);y=n(M,"TensorFlow models and layers in "),h=a(M,"CODE",{});var Be=s(h);f=n(Be,"transformers"),Be.forEach(t),_=n(M," accept two formats as input:"),M.forEach(t),l=m(v),c=a(v,"UL",{});var re=s(c);x=a(re,"LI",{});var ze=s(x);ye=n(ze,"having all inputs as keyword arguments (like PyTorch models), or"),ze.forEach(t),he=m(re),D=a(re,"LI",{});var Qe=s(D);ae=n(Qe,"having all inputs as a list, tuple or dict in the first positional argument."),Qe.forEach(t),re.forEach(t),te=m(v),L=a(v,"P",{});var E=s(L);be=n(E,`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),B=a(E,"CODE",{});var He=s(B);ve=n(He,"model.fit()"),He.forEach(t),ue=n(E,` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),A=a(E,"CODE",{});var Ke=s(A);ke=n(Ke,"model.fit()"),Ke.forEach(t),se=n(E,` supports! If, however, you want to use the second
format outside of Keras methods like `),K=a(E,"CODE",{});var De=s(K);Te=n(De,"fit()"),De.forEach(t),ce=n(E," and "),V=a(E,"CODE",{});var Ve=s(V);we=n(Ve,"predict()"),Ve.forEach(t),ie=n(E,`, such as when creating your own layers or models with
the Keras `),J=a(E,"CODE",{});var Je=s(J);$e=n(Je,"Functional"),Je.forEach(t),fe=n(E,` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),E.forEach(t),ee=m(v),R=a(v,"UL",{});var O=s(R);C=a(O,"LI",{});var I=s(C);le=n(I,"a single Tensor with "),Q=a(I,"CODE",{});var Ge=s(Q);Pe=n(Ge,"input_ids"),Ge.forEach(t),ge=n(I," only and nothing else: "),U=a(I,"CODE",{});var Se=s(U);Fe=n(Se,"model(input_ids)"),Se.forEach(t),I.forEach(t),_e=m(O),z=a(O,"LI",{});var Z=s(z);H=n(Z,`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),G=a(Z,"CODE",{});var Xe=s(G);de=n(Xe,"model([input_ids, attention_mask])"),Xe.forEach(t),Ne=n(Z," or "),X=a(Z,"CODE",{});var We=s(X);pe=n(We,"model([input_ids, attention_mask, token_type_ids])"),We.forEach(t),Z.forEach(t),Le=m(O),S=a(O,"LI",{});var Ce=s(S);me=n(Ce,`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),Y=a(Ce,"CODE",{});var Ye=s(Y);xe=n(Ye,'model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),Ye.forEach(t),Ce.forEach(t),O.forEach(t),oe=m(v),q=a(v,"P",{});var ne=s(q);Me=n(ne,`Note that when creating models and layers with
`),j=a(ne,"A",{href:!0,rel:!0});var qe=s(j);Ee=n(qe,"subclassing"),qe.forEach(t),Re=n(ne,` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),ne.forEach(t),this.h()},h(){u(j,"href","https://keras.io/guides/making_new_layers_and_models_via_subclassing/"),u(j,"rel","nofollow")},m(v,M){g(v,d,M),e(d,y),e(d,h),e(h,f),e(d,_),g(v,l,M),g(v,c,M),e(c,x),e(x,ye),e(c,he),e(c,D),e(D,ae),g(v,te,M),g(v,L,M),e(L,be),e(L,B),e(B,ve),e(L,ue),e(L,A),e(A,ke),e(L,se),e(L,K),e(K,Te),e(L,ce),e(L,V),e(V,we),e(L,ie),e(L,J),e(J,$e),e(L,fe),g(v,ee,M),g(v,R,M),e(R,C),e(C,le),e(C,Q),e(Q,Pe),e(C,ge),e(C,U),e(U,Fe),e(R,_e),e(R,z),e(z,H),e(z,G),e(G,de),e(z,Ne),e(z,X),e(X,pe),e(R,Le),e(R,S),e(S,me),e(S,Y),e(Y,xe),g(v,oe,M),g(v,q,M),e(q,Me),e(q,j),e(j,Ee),e(q,Re)},d(v){v&&t(d),v&&t(l),v&&t(c),v&&t(te),v&&t(L),v&&t(ee),v&&t(R),v&&t(oe),v&&t(q)}}}function rL(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function aL(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import AutoTokenizer, TFRobertaPreLayerNormModel
import tensorflow as tf

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = TFRobertaPreLayerNormModel.from_pretrained("andreasmadsen/efficient_mlm_m0.40")

inputs = tokenizer("Hello, my dog is cute", return_tensors="tf")
outputs = model(inputs)

last_hidden_states = outputs.last_hidden_state`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, TFRobertaPreLayerNormModel
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFRobertaPreLayerNormModel.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;Hello, my dog is cute&quot;</span>, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(inputs)

<span class="hljs-meta">&gt;&gt;&gt; </span>last_hidden_states = outputs.last_hidden_state`}}),{c(){d=r("p"),y=o("Example:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function sL(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function iL(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import AutoTokenizer, TFRobertaPreLayerNormForCausalLM
import tensorflow as tf

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = TFRobertaPreLayerNormForCausalLM.from_pretrained("andreasmadsen/efficient_mlm_m0.40")

inputs = tokenizer("Hello, my dog is cute", return_tensors="tf")
outputs = model(inputs)
logits = outputs.logits`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, TFRobertaPreLayerNormForCausalLM
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFRobertaPreLayerNormForCausalLM.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;Hello, my dog is cute&quot;</span>, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits`}}),{c(){d=r("p"),y=o("Example:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function lL(N){let d,y,h,f,_,l,c,x,ye,he,D,ae,te,L,be,B,ve,ue,A,ke,se,K,Te,ce,V,we,ie,J,$e,fe,ee,R,C,le,Q,Pe,ge,U,Fe,_e,z,H,G,de,Ne,X,pe,Le,S,me,Y,xe,oe,q,Me,j,Ee,Re;return{c(){d=r("p"),y=o("TensorFlow models and layers in "),h=r("code"),f=o("transformers"),_=o(" accept two formats as input:"),l=p(),c=r("ul"),x=r("li"),ye=o("having all inputs as keyword arguments (like PyTorch models), or"),he=p(),D=r("li"),ae=o("having all inputs as a list, tuple or dict in the first positional argument."),te=p(),L=r("p"),be=o(`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),B=r("code"),ve=o("model.fit()"),ue=o(` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),A=r("code"),ke=o("model.fit()"),se=o(` supports! If, however, you want to use the second
format outside of Keras methods like `),K=r("code"),Te=o("fit()"),ce=o(" and "),V=r("code"),we=o("predict()"),ie=o(`, such as when creating your own layers or models with
the Keras `),J=r("code"),$e=o("Functional"),fe=o(` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),ee=p(),R=r("ul"),C=r("li"),le=o("a single Tensor with "),Q=r("code"),Pe=o("input_ids"),ge=o(" only and nothing else: "),U=r("code"),Fe=o("model(input_ids)"),_e=p(),z=r("li"),H=o(`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),G=r("code"),de=o("model([input_ids, attention_mask])"),Ne=o(" or "),X=r("code"),pe=o("model([input_ids, attention_mask, token_type_ids])"),Le=p(),S=r("li"),me=o(`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),Y=r("code"),xe=o('model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),oe=p(),q=r("p"),Me=o(`Note that when creating models and layers with
`),j=r("a"),Ee=o("subclassing"),Re=o(` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),this.h()},l(v){d=a(v,"P",{});var M=s(d);y=n(M,"TensorFlow models and layers in "),h=a(M,"CODE",{});var Be=s(h);f=n(Be,"transformers"),Be.forEach(t),_=n(M," accept two formats as input:"),M.forEach(t),l=m(v),c=a(v,"UL",{});var re=s(c);x=a(re,"LI",{});var ze=s(x);ye=n(ze,"having all inputs as keyword arguments (like PyTorch models), or"),ze.forEach(t),he=m(re),D=a(re,"LI",{});var Qe=s(D);ae=n(Qe,"having all inputs as a list, tuple or dict in the first positional argument."),Qe.forEach(t),re.forEach(t),te=m(v),L=a(v,"P",{});var E=s(L);be=n(E,`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),B=a(E,"CODE",{});var He=s(B);ve=n(He,"model.fit()"),He.forEach(t),ue=n(E,` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),A=a(E,"CODE",{});var Ke=s(A);ke=n(Ke,"model.fit()"),Ke.forEach(t),se=n(E,` supports! If, however, you want to use the second
format outside of Keras methods like `),K=a(E,"CODE",{});var De=s(K);Te=n(De,"fit()"),De.forEach(t),ce=n(E," and "),V=a(E,"CODE",{});var Ve=s(V);we=n(Ve,"predict()"),Ve.forEach(t),ie=n(E,`, such as when creating your own layers or models with
the Keras `),J=a(E,"CODE",{});var Je=s(J);$e=n(Je,"Functional"),Je.forEach(t),fe=n(E,` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),E.forEach(t),ee=m(v),R=a(v,"UL",{});var O=s(R);C=a(O,"LI",{});var I=s(C);le=n(I,"a single Tensor with "),Q=a(I,"CODE",{});var Ge=s(Q);Pe=n(Ge,"input_ids"),Ge.forEach(t),ge=n(I," only and nothing else: "),U=a(I,"CODE",{});var Se=s(U);Fe=n(Se,"model(input_ids)"),Se.forEach(t),I.forEach(t),_e=m(O),z=a(O,"LI",{});var Z=s(z);H=n(Z,`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),G=a(Z,"CODE",{});var Xe=s(G);de=n(Xe,"model([input_ids, attention_mask])"),Xe.forEach(t),Ne=n(Z," or "),X=a(Z,"CODE",{});var We=s(X);pe=n(We,"model([input_ids, attention_mask, token_type_ids])"),We.forEach(t),Z.forEach(t),Le=m(O),S=a(O,"LI",{});var Ce=s(S);me=n(Ce,`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),Y=a(Ce,"CODE",{});var Ye=s(Y);xe=n(Ye,'model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),Ye.forEach(t),Ce.forEach(t),O.forEach(t),oe=m(v),q=a(v,"P",{});var ne=s(q);Me=n(ne,`Note that when creating models and layers with
`),j=a(ne,"A",{href:!0,rel:!0});var qe=s(j);Ee=n(qe,"subclassing"),qe.forEach(t),Re=n(ne,` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),ne.forEach(t),this.h()},h(){u(j,"href","https://keras.io/guides/making_new_layers_and_models_via_subclassing/"),u(j,"rel","nofollow")},m(v,M){g(v,d,M),e(d,y),e(d,h),e(h,f),e(d,_),g(v,l,M),g(v,c,M),e(c,x),e(x,ye),e(c,he),e(c,D),e(D,ae),g(v,te,M),g(v,L,M),e(L,be),e(L,B),e(B,ve),e(L,ue),e(L,A),e(A,ke),e(L,se),e(L,K),e(K,Te),e(L,ce),e(L,V),e(V,we),e(L,ie),e(L,J),e(J,$e),e(L,fe),g(v,ee,M),g(v,R,M),e(R,C),e(C,le),e(C,Q),e(Q,Pe),e(C,ge),e(C,U),e(U,Fe),e(R,_e),e(R,z),e(z,H),e(z,G),e(G,de),e(z,Ne),e(z,X),e(X,pe),e(R,Le),e(R,S),e(S,me),e(S,Y),e(Y,xe),g(v,oe,M),g(v,q,M),e(q,Me),e(q,j),e(j,Ee),e(q,Re)},d(v){v&&t(d),v&&t(l),v&&t(c),v&&t(te),v&&t(L),v&&t(ee),v&&t(R),v&&t(oe),v&&t(q)}}}function dL(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function cL(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import AutoTokenizer, TFRobertaPreLayerNormForMaskedLM
import tensorflow as tf

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = TFRobertaPreLayerNormForMaskedLM.from_pretrained("andreasmadsen/efficient_mlm_m0.40")

inputs = tokenizer("The capital of France is <mask>.", return_tensors="tf")
logits = model(**inputs).logits

# retrieve index of <mask>
mask_token_index = tf.where((inputs.input_ids == tokenizer.mask_token_id)[0])
selected_logits = tf.gather_nd(logits[0], indices=mask_token_index)

predicted_token_id = tf.math.argmax(selected_logits, axis=-1)
tokenizer.decode(predicted_token_id)`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, TFRobertaPreLayerNormForMaskedLM
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFRobertaPreLayerNormForMaskedLM.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;The capital of France is &lt;mask&gt;.&quot;</span>, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = model(**inputs).logits

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># retrieve index of &lt;mask&gt;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>mask_token_index = tf.where((inputs.input_ids == tokenizer.mask_token_id)[<span class="hljs-number">0</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>selected_logits = tf.gather_nd(logits[<span class="hljs-number">0</span>], indices=mask_token_index)

<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_token_id = tf.math.argmax(selected_logits, axis=-<span class="hljs-number">1</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer.decode(predicted_token_id)
<span class="hljs-string">&#x27; Paris&#x27;</span>`}}),{c(){d=r("p"),y=o("Example:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function pL(N){let d,y;return d=new Ie({props:{code:`labels = tokenizer("The capital of France is Paris.", return_tensors="tf")["input_ids"]
# mask labels of non-<mask> tokens
labels = tf.where(inputs.input_ids == tokenizer.mask_token_id, labels, -100)

outputs = model(**inputs, labels=labels)
round(float(outputs.loss), 2)`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>labels = tokenizer(<span class="hljs-string">&quot;The capital of France is Paris.&quot;</span>, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)[<span class="hljs-string">&quot;input_ids&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># mask labels of non-&lt;mask&gt; tokens</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>labels = tf.where(inputs.input_ids == tokenizer.mask_token_id, labels, -<span class="hljs-number">100</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs, labels=labels)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">round</span>(<span class="hljs-built_in">float</span>(outputs.loss), <span class="hljs-number">2</span>)
<span class="hljs-number">0.69</span>`}}),{c(){k(d.$$.fragment)},l(h){T(d.$$.fragment,h)},m(h,f){w(d,h,f),y=!0},p:Oe,i(h){y||($(d.$$.fragment,h),y=!0)},o(h){P(d.$$.fragment,h),y=!1},d(h){F(d,h)}}}function mL(N){let d,y,h,f,_,l,c,x,ye,he,D,ae,te,L,be,B,ve,ue,A,ke,se,K,Te,ce,V,we,ie,J,$e,fe,ee,R,C,le,Q,Pe,ge,U,Fe,_e,z,H,G,de,Ne,X,pe,Le,S,me,Y,xe,oe,q,Me,j,Ee,Re;return{c(){d=r("p"),y=o("TensorFlow models and layers in "),h=r("code"),f=o("transformers"),_=o(" accept two formats as input:"),l=p(),c=r("ul"),x=r("li"),ye=o("having all inputs as keyword arguments (like PyTorch models), or"),he=p(),D=r("li"),ae=o("having all inputs as a list, tuple or dict in the first positional argument."),te=p(),L=r("p"),be=o(`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),B=r("code"),ve=o("model.fit()"),ue=o(` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),A=r("code"),ke=o("model.fit()"),se=o(` supports! If, however, you want to use the second
format outside of Keras methods like `),K=r("code"),Te=o("fit()"),ce=o(" and "),V=r("code"),we=o("predict()"),ie=o(`, such as when creating your own layers or models with
the Keras `),J=r("code"),$e=o("Functional"),fe=o(` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),ee=p(),R=r("ul"),C=r("li"),le=o("a single Tensor with "),Q=r("code"),Pe=o("input_ids"),ge=o(" only and nothing else: "),U=r("code"),Fe=o("model(input_ids)"),_e=p(),z=r("li"),H=o(`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),G=r("code"),de=o("model([input_ids, attention_mask])"),Ne=o(" or "),X=r("code"),pe=o("model([input_ids, attention_mask, token_type_ids])"),Le=p(),S=r("li"),me=o(`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),Y=r("code"),xe=o('model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),oe=p(),q=r("p"),Me=o(`Note that when creating models and layers with
`),j=r("a"),Ee=o("subclassing"),Re=o(` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),this.h()},l(v){d=a(v,"P",{});var M=s(d);y=n(M,"TensorFlow models and layers in "),h=a(M,"CODE",{});var Be=s(h);f=n(Be,"transformers"),Be.forEach(t),_=n(M," accept two formats as input:"),M.forEach(t),l=m(v),c=a(v,"UL",{});var re=s(c);x=a(re,"LI",{});var ze=s(x);ye=n(ze,"having all inputs as keyword arguments (like PyTorch models), or"),ze.forEach(t),he=m(re),D=a(re,"LI",{});var Qe=s(D);ae=n(Qe,"having all inputs as a list, tuple or dict in the first positional argument."),Qe.forEach(t),re.forEach(t),te=m(v),L=a(v,"P",{});var E=s(L);be=n(E,`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),B=a(E,"CODE",{});var He=s(B);ve=n(He,"model.fit()"),He.forEach(t),ue=n(E,` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),A=a(E,"CODE",{});var Ke=s(A);ke=n(Ke,"model.fit()"),Ke.forEach(t),se=n(E,` supports! If, however, you want to use the second
format outside of Keras methods like `),K=a(E,"CODE",{});var De=s(K);Te=n(De,"fit()"),De.forEach(t),ce=n(E," and "),V=a(E,"CODE",{});var Ve=s(V);we=n(Ve,"predict()"),Ve.forEach(t),ie=n(E,`, such as when creating your own layers or models with
the Keras `),J=a(E,"CODE",{});var Je=s(J);$e=n(Je,"Functional"),Je.forEach(t),fe=n(E,` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),E.forEach(t),ee=m(v),R=a(v,"UL",{});var O=s(R);C=a(O,"LI",{});var I=s(C);le=n(I,"a single Tensor with "),Q=a(I,"CODE",{});var Ge=s(Q);Pe=n(Ge,"input_ids"),Ge.forEach(t),ge=n(I," only and nothing else: "),U=a(I,"CODE",{});var Se=s(U);Fe=n(Se,"model(input_ids)"),Se.forEach(t),I.forEach(t),_e=m(O),z=a(O,"LI",{});var Z=s(z);H=n(Z,`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),G=a(Z,"CODE",{});var Xe=s(G);de=n(Xe,"model([input_ids, attention_mask])"),Xe.forEach(t),Ne=n(Z," or "),X=a(Z,"CODE",{});var We=s(X);pe=n(We,"model([input_ids, attention_mask, token_type_ids])"),We.forEach(t),Z.forEach(t),Le=m(O),S=a(O,"LI",{});var Ce=s(S);me=n(Ce,`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),Y=a(Ce,"CODE",{});var Ye=s(Y);xe=n(Ye,'model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),Ye.forEach(t),Ce.forEach(t),O.forEach(t),oe=m(v),q=a(v,"P",{});var ne=s(q);Me=n(ne,`Note that when creating models and layers with
`),j=a(ne,"A",{href:!0,rel:!0});var qe=s(j);Ee=n(qe,"subclassing"),qe.forEach(t),Re=n(ne,` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),ne.forEach(t),this.h()},h(){u(j,"href","https://keras.io/guides/making_new_layers_and_models_via_subclassing/"),u(j,"rel","nofollow")},m(v,M){g(v,d,M),e(d,y),e(d,h),e(h,f),e(d,_),g(v,l,M),g(v,c,M),e(c,x),e(x,ye),e(c,he),e(c,D),e(D,ae),g(v,te,M),g(v,L,M),e(L,be),e(L,B),e(B,ve),e(L,ue),e(L,A),e(A,ke),e(L,se),e(L,K),e(K,Te),e(L,ce),e(L,V),e(V,we),e(L,ie),e(L,J),e(J,$e),e(L,fe),g(v,ee,M),g(v,R,M),e(R,C),e(C,le),e(C,Q),e(Q,Pe),e(C,ge),e(C,U),e(U,Fe),e(R,_e),e(R,z),e(z,H),e(z,G),e(G,de),e(z,Ne),e(z,X),e(X,pe),e(R,Le),e(R,S),e(S,me),e(S,Y),e(Y,xe),g(v,oe,M),g(v,q,M),e(q,Me),e(q,j),e(j,Ee),e(q,Re)},d(v){v&&t(d),v&&t(l),v&&t(c),v&&t(te),v&&t(L),v&&t(ee),v&&t(R),v&&t(oe),v&&t(q)}}}function hL(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function uL(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import AutoTokenizer, TFRobertaPreLayerNormForSequenceClassification
import tensorflow as tf

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = TFRobertaPreLayerNormForSequenceClassification.from_pretrained("andreasmadsen/efficient_mlm_m0.40")

inputs = tokenizer("Hello, my dog is cute", return_tensors="tf")

logits = model(**inputs).logits

predicted_class_id = int(tf.math.argmax(logits, axis=-1)[0])`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, TFRobertaPreLayerNormForSequenceClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFRobertaPreLayerNormForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;Hello, my dog is cute&quot;</span>, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>logits = model(**inputs).logits

<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_class_id = <span class="hljs-built_in">int</span>(tf.math.argmax(logits, axis=-<span class="hljs-number">1</span>)[<span class="hljs-number">0</span>])`}}),{c(){d=r("p"),y=o("Example:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function fL(N){let d,y;return d=new Ie({props:{code:'# To train a model on `num_labels` classes, you can pass `num_labels=num_labels` to `.from_pretrained(...)`\nnum_labels = len(model.config.id2label)\nmodel = TFRobertaPreLayerNormForSequenceClassification.from_pretrained("andreasmadsen/efficient_mlm_m0.40", num_labels=num_labels)\n\nlabels = tf.constant(1)\nloss = model(**inputs, labels=labels).loss',highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># To train a model on `num_labels` classes, you can pass `num_labels=num_labels` to `.from_pretrained(...)`</span>\n<span class="hljs-meta">&gt;&gt;&gt; </span>num_labels = <span class="hljs-built_in">len</span>(model.config.id2label)\n<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFRobertaPreLayerNormForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>, num_labels=num_labels)\n\n<span class="hljs-meta">&gt;&gt;&gt; </span>labels = tf.constant(<span class="hljs-number">1</span>)\n<span class="hljs-meta">&gt;&gt;&gt; </span>loss = model(**inputs, labels=labels).loss'}}),{c(){k(d.$$.fragment)},l(h){T(d.$$.fragment,h)},m(h,f){w(d,h,f),y=!0},p:Oe,i(h){y||($(d.$$.fragment,h),y=!0)},o(h){P(d.$$.fragment,h),y=!1},d(h){F(d,h)}}}function gL(N){let d,y,h,f,_,l,c,x,ye,he,D,ae,te,L,be,B,ve,ue,A,ke,se,K,Te,ce,V,we,ie,J,$e,fe,ee,R,C,le,Q,Pe,ge,U,Fe,_e,z,H,G,de,Ne,X,pe,Le,S,me,Y,xe,oe,q,Me,j,Ee,Re;return{c(){d=r("p"),y=o("TensorFlow models and layers in "),h=r("code"),f=o("transformers"),_=o(" accept two formats as input:"),l=p(),c=r("ul"),x=r("li"),ye=o("having all inputs as keyword arguments (like PyTorch models), or"),he=p(),D=r("li"),ae=o("having all inputs as a list, tuple or dict in the first positional argument."),te=p(),L=r("p"),be=o(`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),B=r("code"),ve=o("model.fit()"),ue=o(` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),A=r("code"),ke=o("model.fit()"),se=o(` supports! If, however, you want to use the second
format outside of Keras methods like `),K=r("code"),Te=o("fit()"),ce=o(" and "),V=r("code"),we=o("predict()"),ie=o(`, such as when creating your own layers or models with
the Keras `),J=r("code"),$e=o("Functional"),fe=o(` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),ee=p(),R=r("ul"),C=r("li"),le=o("a single Tensor with "),Q=r("code"),Pe=o("input_ids"),ge=o(" only and nothing else: "),U=r("code"),Fe=o("model(input_ids)"),_e=p(),z=r("li"),H=o(`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),G=r("code"),de=o("model([input_ids, attention_mask])"),Ne=o(" or "),X=r("code"),pe=o("model([input_ids, attention_mask, token_type_ids])"),Le=p(),S=r("li"),me=o(`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),Y=r("code"),xe=o('model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),oe=p(),q=r("p"),Me=o(`Note that when creating models and layers with
`),j=r("a"),Ee=o("subclassing"),Re=o(` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),this.h()},l(v){d=a(v,"P",{});var M=s(d);y=n(M,"TensorFlow models and layers in "),h=a(M,"CODE",{});var Be=s(h);f=n(Be,"transformers"),Be.forEach(t),_=n(M," accept two formats as input:"),M.forEach(t),l=m(v),c=a(v,"UL",{});var re=s(c);x=a(re,"LI",{});var ze=s(x);ye=n(ze,"having all inputs as keyword arguments (like PyTorch models), or"),ze.forEach(t),he=m(re),D=a(re,"LI",{});var Qe=s(D);ae=n(Qe,"having all inputs as a list, tuple or dict in the first positional argument."),Qe.forEach(t),re.forEach(t),te=m(v),L=a(v,"P",{});var E=s(L);be=n(E,`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),B=a(E,"CODE",{});var He=s(B);ve=n(He,"model.fit()"),He.forEach(t),ue=n(E,` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),A=a(E,"CODE",{});var Ke=s(A);ke=n(Ke,"model.fit()"),Ke.forEach(t),se=n(E,` supports! If, however, you want to use the second
format outside of Keras methods like `),K=a(E,"CODE",{});var De=s(K);Te=n(De,"fit()"),De.forEach(t),ce=n(E," and "),V=a(E,"CODE",{});var Ve=s(V);we=n(Ve,"predict()"),Ve.forEach(t),ie=n(E,`, such as when creating your own layers or models with
the Keras `),J=a(E,"CODE",{});var Je=s(J);$e=n(Je,"Functional"),Je.forEach(t),fe=n(E,` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),E.forEach(t),ee=m(v),R=a(v,"UL",{});var O=s(R);C=a(O,"LI",{});var I=s(C);le=n(I,"a single Tensor with "),Q=a(I,"CODE",{});var Ge=s(Q);Pe=n(Ge,"input_ids"),Ge.forEach(t),ge=n(I," only and nothing else: "),U=a(I,"CODE",{});var Se=s(U);Fe=n(Se,"model(input_ids)"),Se.forEach(t),I.forEach(t),_e=m(O),z=a(O,"LI",{});var Z=s(z);H=n(Z,`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),G=a(Z,"CODE",{});var Xe=s(G);de=n(Xe,"model([input_ids, attention_mask])"),Xe.forEach(t),Ne=n(Z," or "),X=a(Z,"CODE",{});var We=s(X);pe=n(We,"model([input_ids, attention_mask, token_type_ids])"),We.forEach(t),Z.forEach(t),Le=m(O),S=a(O,"LI",{});var Ce=s(S);me=n(Ce,`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),Y=a(Ce,"CODE",{});var Ye=s(Y);xe=n(Ye,'model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),Ye.forEach(t),Ce.forEach(t),O.forEach(t),oe=m(v),q=a(v,"P",{});var ne=s(q);Me=n(ne,`Note that when creating models and layers with
`),j=a(ne,"A",{href:!0,rel:!0});var qe=s(j);Ee=n(qe,"subclassing"),qe.forEach(t),Re=n(ne,` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),ne.forEach(t),this.h()},h(){u(j,"href","https://keras.io/guides/making_new_layers_and_models_via_subclassing/"),u(j,"rel","nofollow")},m(v,M){g(v,d,M),e(d,y),e(d,h),e(h,f),e(d,_),g(v,l,M),g(v,c,M),e(c,x),e(x,ye),e(c,he),e(c,D),e(D,ae),g(v,te,M),g(v,L,M),e(L,be),e(L,B),e(B,ve),e(L,ue),e(L,A),e(A,ke),e(L,se),e(L,K),e(K,Te),e(L,ce),e(L,V),e(V,we),e(L,ie),e(L,J),e(J,$e),e(L,fe),g(v,ee,M),g(v,R,M),e(R,C),e(C,le),e(C,Q),e(Q,Pe),e(C,ge),e(C,U),e(U,Fe),e(R,_e),e(R,z),e(z,H),e(z,G),e(G,de),e(z,Ne),e(z,X),e(X,pe),e(R,Le),e(R,S),e(S,me),e(S,Y),e(Y,xe),g(v,oe,M),g(v,q,M),e(q,Me),e(q,j),e(j,Ee),e(q,Re)},d(v){v&&t(d),v&&t(l),v&&t(c),v&&t(te),v&&t(L),v&&t(ee),v&&t(R),v&&t(oe),v&&t(q)}}}function _L(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function yL(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import AutoTokenizer, TFRobertaPreLayerNormForMultipleChoice
import tensorflow as tf

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = TFRobertaPreLayerNormForMultipleChoice.from_pretrained("andreasmadsen/efficient_mlm_m0.40")

prompt = "In Italy, pizza served in formal settings, such as at a restaurant, is presented unsliced."
choice0 = "It is eaten with a fork and a knife."
choice1 = "It is eaten while held in the hand."

encoding = tokenizer([prompt, prompt], [choice0, choice1], return_tensors="tf", padding=True)
inputs = {k: tf.expand_dims(v, 0) for k, v in encoding.items()}
outputs = model(inputs)  # batch size is 1

# the linear classifier still needs to be trained
logits = outputs.logits`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, TFRobertaPreLayerNormForMultipleChoice
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFRobertaPreLayerNormForMultipleChoice.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;In Italy, pizza served in formal settings, such as at a restaurant, is presented unsliced.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>choice0 = <span class="hljs-string">&quot;It is eaten with a fork and a knife.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>choice1 = <span class="hljs-string">&quot;It is eaten while held in the hand.&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>encoding = tokenizer([prompt, prompt], [choice0, choice1], return_tensors=<span class="hljs-string">&quot;tf&quot;</span>, padding=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = {k: tf.expand_dims(v, <span class="hljs-number">0</span>) <span class="hljs-keyword">for</span> k, v <span class="hljs-keyword">in</span> encoding.items()}
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(inputs)  <span class="hljs-comment"># batch size is 1</span>

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># the linear classifier still needs to be trained</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits`}}),{c(){d=r("p"),y=o("Example:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function bL(N){let d,y,h,f,_,l,c,x,ye,he,D,ae,te,L,be,B,ve,ue,A,ke,se,K,Te,ce,V,we,ie,J,$e,fe,ee,R,C,le,Q,Pe,ge,U,Fe,_e,z,H,G,de,Ne,X,pe,Le,S,me,Y,xe,oe,q,Me,j,Ee,Re;return{c(){d=r("p"),y=o("TensorFlow models and layers in "),h=r("code"),f=o("transformers"),_=o(" accept two formats as input:"),l=p(),c=r("ul"),x=r("li"),ye=o("having all inputs as keyword arguments (like PyTorch models), or"),he=p(),D=r("li"),ae=o("having all inputs as a list, tuple or dict in the first positional argument."),te=p(),L=r("p"),be=o(`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),B=r("code"),ve=o("model.fit()"),ue=o(` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),A=r("code"),ke=o("model.fit()"),se=o(` supports! If, however, you want to use the second
format outside of Keras methods like `),K=r("code"),Te=o("fit()"),ce=o(" and "),V=r("code"),we=o("predict()"),ie=o(`, such as when creating your own layers or models with
the Keras `),J=r("code"),$e=o("Functional"),fe=o(` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),ee=p(),R=r("ul"),C=r("li"),le=o("a single Tensor with "),Q=r("code"),Pe=o("input_ids"),ge=o(" only and nothing else: "),U=r("code"),Fe=o("model(input_ids)"),_e=p(),z=r("li"),H=o(`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),G=r("code"),de=o("model([input_ids, attention_mask])"),Ne=o(" or "),X=r("code"),pe=o("model([input_ids, attention_mask, token_type_ids])"),Le=p(),S=r("li"),me=o(`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),Y=r("code"),xe=o('model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),oe=p(),q=r("p"),Me=o(`Note that when creating models and layers with
`),j=r("a"),Ee=o("subclassing"),Re=o(` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),this.h()},l(v){d=a(v,"P",{});var M=s(d);y=n(M,"TensorFlow models and layers in "),h=a(M,"CODE",{});var Be=s(h);f=n(Be,"transformers"),Be.forEach(t),_=n(M," accept two formats as input:"),M.forEach(t),l=m(v),c=a(v,"UL",{});var re=s(c);x=a(re,"LI",{});var ze=s(x);ye=n(ze,"having all inputs as keyword arguments (like PyTorch models), or"),ze.forEach(t),he=m(re),D=a(re,"LI",{});var Qe=s(D);ae=n(Qe,"having all inputs as a list, tuple or dict in the first positional argument."),Qe.forEach(t),re.forEach(t),te=m(v),L=a(v,"P",{});var E=s(L);be=n(E,`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),B=a(E,"CODE",{});var He=s(B);ve=n(He,"model.fit()"),He.forEach(t),ue=n(E,` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),A=a(E,"CODE",{});var Ke=s(A);ke=n(Ke,"model.fit()"),Ke.forEach(t),se=n(E,` supports! If, however, you want to use the second
format outside of Keras methods like `),K=a(E,"CODE",{});var De=s(K);Te=n(De,"fit()"),De.forEach(t),ce=n(E," and "),V=a(E,"CODE",{});var Ve=s(V);we=n(Ve,"predict()"),Ve.forEach(t),ie=n(E,`, such as when creating your own layers or models with
the Keras `),J=a(E,"CODE",{});var Je=s(J);$e=n(Je,"Functional"),Je.forEach(t),fe=n(E,` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),E.forEach(t),ee=m(v),R=a(v,"UL",{});var O=s(R);C=a(O,"LI",{});var I=s(C);le=n(I,"a single Tensor with "),Q=a(I,"CODE",{});var Ge=s(Q);Pe=n(Ge,"input_ids"),Ge.forEach(t),ge=n(I," only and nothing else: "),U=a(I,"CODE",{});var Se=s(U);Fe=n(Se,"model(input_ids)"),Se.forEach(t),I.forEach(t),_e=m(O),z=a(O,"LI",{});var Z=s(z);H=n(Z,`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),G=a(Z,"CODE",{});var Xe=s(G);de=n(Xe,"model([input_ids, attention_mask])"),Xe.forEach(t),Ne=n(Z," or "),X=a(Z,"CODE",{});var We=s(X);pe=n(We,"model([input_ids, attention_mask, token_type_ids])"),We.forEach(t),Z.forEach(t),Le=m(O),S=a(O,"LI",{});var Ce=s(S);me=n(Ce,`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),Y=a(Ce,"CODE",{});var Ye=s(Y);xe=n(Ye,'model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),Ye.forEach(t),Ce.forEach(t),O.forEach(t),oe=m(v),q=a(v,"P",{});var ne=s(q);Me=n(ne,`Note that when creating models and layers with
`),j=a(ne,"A",{href:!0,rel:!0});var qe=s(j);Ee=n(qe,"subclassing"),qe.forEach(t),Re=n(ne,` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),ne.forEach(t),this.h()},h(){u(j,"href","https://keras.io/guides/making_new_layers_and_models_via_subclassing/"),u(j,"rel","nofollow")},m(v,M){g(v,d,M),e(d,y),e(d,h),e(h,f),e(d,_),g(v,l,M),g(v,c,M),e(c,x),e(x,ye),e(c,he),e(c,D),e(D,ae),g(v,te,M),g(v,L,M),e(L,be),e(L,B),e(B,ve),e(L,ue),e(L,A),e(A,ke),e(L,se),e(L,K),e(K,Te),e(L,ce),e(L,V),e(V,we),e(L,ie),e(L,J),e(J,$e),e(L,fe),g(v,ee,M),g(v,R,M),e(R,C),e(C,le),e(C,Q),e(Q,Pe),e(C,ge),e(C,U),e(U,Fe),e(R,_e),e(R,z),e(z,H),e(z,G),e(G,de),e(z,Ne),e(z,X),e(X,pe),e(R,Le),e(R,S),e(S,me),e(S,Y),e(Y,xe),g(v,oe,M),g(v,q,M),e(q,Me),e(q,j),e(j,Ee),e(q,Re)},d(v){v&&t(d),v&&t(l),v&&t(c),v&&t(te),v&&t(L),v&&t(ee),v&&t(R),v&&t(oe),v&&t(q)}}}function vL(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function kL(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import AutoTokenizer, TFRobertaPreLayerNormForTokenClassification
import tensorflow as tf

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = TFRobertaPreLayerNormForTokenClassification.from_pretrained("andreasmadsen/efficient_mlm_m0.40")

inputs = tokenizer(
    "HuggingFace is a company based in Paris and New York", add_special_tokens=False, return_tensors="tf"
)

logits = model(**inputs).logits
predicted_token_class_ids = tf.math.argmax(logits, axis=-1)

# Note that tokens are classified rather then input words which means that
# there might be more predicted token classes than words.
# Multiple token classes might account for the same word
predicted_tokens_classes = [model.config.id2label[t] for t in predicted_token_class_ids[0].numpy().tolist()]`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, TFRobertaPreLayerNormForTokenClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFRobertaPreLayerNormForTokenClassification.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;HuggingFace is a company based in Paris and New York&quot;</span>, add_special_tokens=<span class="hljs-literal">False</span>, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>logits = model(**inputs).logits
<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_token_class_ids = tf.math.argmax(logits, axis=-<span class="hljs-number">1</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Note that tokens are classified rather then input words which means that</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># there might be more predicted token classes than words.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Multiple token classes might account for the same word</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_tokens_classes = [model.config.id2label[t] <span class="hljs-keyword">for</span> t <span class="hljs-keyword">in</span> predicted_token_class_ids[<span class="hljs-number">0</span>].numpy().tolist()]`}}),{c(){d=r("p"),y=o("Example:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function TL(N){let d,y;return d=new Ie({props:{code:`labels = predicted_token_class_ids
loss = tf.math.reduce_mean(model(**inputs, labels=labels).loss)`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>labels = predicted_token_class_ids
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = tf.math.reduce_mean(model(**inputs, labels=labels).loss)`}}),{c(){k(d.$$.fragment)},l(h){T(d.$$.fragment,h)},m(h,f){w(d,h,f),y=!0},p:Oe,i(h){y||($(d.$$.fragment,h),y=!0)},o(h){P(d.$$.fragment,h),y=!1},d(h){F(d,h)}}}function wL(N){let d,y,h,f,_,l,c,x,ye,he,D,ae,te,L,be,B,ve,ue,A,ke,se,K,Te,ce,V,we,ie,J,$e,fe,ee,R,C,le,Q,Pe,ge,U,Fe,_e,z,H,G,de,Ne,X,pe,Le,S,me,Y,xe,oe,q,Me,j,Ee,Re;return{c(){d=r("p"),y=o("TensorFlow models and layers in "),h=r("code"),f=o("transformers"),_=o(" accept two formats as input:"),l=p(),c=r("ul"),x=r("li"),ye=o("having all inputs as keyword arguments (like PyTorch models), or"),he=p(),D=r("li"),ae=o("having all inputs as a list, tuple or dict in the first positional argument."),te=p(),L=r("p"),be=o(`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),B=r("code"),ve=o("model.fit()"),ue=o(` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),A=r("code"),ke=o("model.fit()"),se=o(` supports! If, however, you want to use the second
format outside of Keras methods like `),K=r("code"),Te=o("fit()"),ce=o(" and "),V=r("code"),we=o("predict()"),ie=o(`, such as when creating your own layers or models with
the Keras `),J=r("code"),$e=o("Functional"),fe=o(` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),ee=p(),R=r("ul"),C=r("li"),le=o("a single Tensor with "),Q=r("code"),Pe=o("input_ids"),ge=o(" only and nothing else: "),U=r("code"),Fe=o("model(input_ids)"),_e=p(),z=r("li"),H=o(`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),G=r("code"),de=o("model([input_ids, attention_mask])"),Ne=o(" or "),X=r("code"),pe=o("model([input_ids, attention_mask, token_type_ids])"),Le=p(),S=r("li"),me=o(`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),Y=r("code"),xe=o('model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),oe=p(),q=r("p"),Me=o(`Note that when creating models and layers with
`),j=r("a"),Ee=o("subclassing"),Re=o(` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),this.h()},l(v){d=a(v,"P",{});var M=s(d);y=n(M,"TensorFlow models and layers in "),h=a(M,"CODE",{});var Be=s(h);f=n(Be,"transformers"),Be.forEach(t),_=n(M," accept two formats as input:"),M.forEach(t),l=m(v),c=a(v,"UL",{});var re=s(c);x=a(re,"LI",{});var ze=s(x);ye=n(ze,"having all inputs as keyword arguments (like PyTorch models), or"),ze.forEach(t),he=m(re),D=a(re,"LI",{});var Qe=s(D);ae=n(Qe,"having all inputs as a list, tuple or dict in the first positional argument."),Qe.forEach(t),re.forEach(t),te=m(v),L=a(v,"P",{});var E=s(L);be=n(E,`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),B=a(E,"CODE",{});var He=s(B);ve=n(He,"model.fit()"),He.forEach(t),ue=n(E,` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),A=a(E,"CODE",{});var Ke=s(A);ke=n(Ke,"model.fit()"),Ke.forEach(t),se=n(E,` supports! If, however, you want to use the second
format outside of Keras methods like `),K=a(E,"CODE",{});var De=s(K);Te=n(De,"fit()"),De.forEach(t),ce=n(E," and "),V=a(E,"CODE",{});var Ve=s(V);we=n(Ve,"predict()"),Ve.forEach(t),ie=n(E,`, such as when creating your own layers or models with
the Keras `),J=a(E,"CODE",{});var Je=s(J);$e=n(Je,"Functional"),Je.forEach(t),fe=n(E,` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),E.forEach(t),ee=m(v),R=a(v,"UL",{});var O=s(R);C=a(O,"LI",{});var I=s(C);le=n(I,"a single Tensor with "),Q=a(I,"CODE",{});var Ge=s(Q);Pe=n(Ge,"input_ids"),Ge.forEach(t),ge=n(I," only and nothing else: "),U=a(I,"CODE",{});var Se=s(U);Fe=n(Se,"model(input_ids)"),Se.forEach(t),I.forEach(t),_e=m(O),z=a(O,"LI",{});var Z=s(z);H=n(Z,`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),G=a(Z,"CODE",{});var Xe=s(G);de=n(Xe,"model([input_ids, attention_mask])"),Xe.forEach(t),Ne=n(Z," or "),X=a(Z,"CODE",{});var We=s(X);pe=n(We,"model([input_ids, attention_mask, token_type_ids])"),We.forEach(t),Z.forEach(t),Le=m(O),S=a(O,"LI",{});var Ce=s(S);me=n(Ce,`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),Y=a(Ce,"CODE",{});var Ye=s(Y);xe=n(Ye,'model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),Ye.forEach(t),Ce.forEach(t),O.forEach(t),oe=m(v),q=a(v,"P",{});var ne=s(q);Me=n(ne,`Note that when creating models and layers with
`),j=a(ne,"A",{href:!0,rel:!0});var qe=s(j);Ee=n(qe,"subclassing"),qe.forEach(t),Re=n(ne,` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),ne.forEach(t),this.h()},h(){u(j,"href","https://keras.io/guides/making_new_layers_and_models_via_subclassing/"),u(j,"rel","nofollow")},m(v,M){g(v,d,M),e(d,y),e(d,h),e(h,f),e(d,_),g(v,l,M),g(v,c,M),e(c,x),e(x,ye),e(c,he),e(c,D),e(D,ae),g(v,te,M),g(v,L,M),e(L,be),e(L,B),e(B,ve),e(L,ue),e(L,A),e(A,ke),e(L,se),e(L,K),e(K,Te),e(L,ce),e(L,V),e(V,we),e(L,ie),e(L,J),e(J,$e),e(L,fe),g(v,ee,M),g(v,R,M),e(R,C),e(C,le),e(C,Q),e(Q,Pe),e(C,ge),e(C,U),e(U,Fe),e(R,_e),e(R,z),e(z,H),e(z,G),e(G,de),e(z,Ne),e(z,X),e(X,pe),e(R,Le),e(R,S),e(S,me),e(S,Y),e(Y,xe),g(v,oe,M),g(v,q,M),e(q,Me),e(q,j),e(j,Ee),e(q,Re)},d(v){v&&t(d),v&&t(l),v&&t(c),v&&t(te),v&&t(L),v&&t(ee),v&&t(R),v&&t(oe),v&&t(q)}}}function $L(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function PL(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import AutoTokenizer, TFRobertaPreLayerNormForQuestionAnswering
import tensorflow as tf

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = TFRobertaPreLayerNormForQuestionAnswering.from_pretrained("andreasmadsen/efficient_mlm_m0.40")

question, text = "Who was Jim Henson?", "Jim Henson was a nice puppet"

inputs = tokenizer(question, text, return_tensors="tf")
outputs = model(**inputs)

answer_start_index = int(tf.math.argmax(outputs.start_logits, axis=-1)[0])
answer_end_index = int(tf.math.argmax(outputs.end_logits, axis=-1)[0])

predict_answer_tokens = inputs.input_ids[0, answer_start_index : answer_end_index + 1]`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, TFRobertaPreLayerNormForQuestionAnswering
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFRobertaPreLayerNormForQuestionAnswering.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>question, text = <span class="hljs-string">&quot;Who was Jim Henson?&quot;</span>, <span class="hljs-string">&quot;Jim Henson was a nice puppet&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(question, text, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)

<span class="hljs-meta">&gt;&gt;&gt; </span>answer_start_index = <span class="hljs-built_in">int</span>(tf.math.argmax(outputs.start_logits, axis=-<span class="hljs-number">1</span>)[<span class="hljs-number">0</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>answer_end_index = <span class="hljs-built_in">int</span>(tf.math.argmax(outputs.end_logits, axis=-<span class="hljs-number">1</span>)[<span class="hljs-number">0</span>])

<span class="hljs-meta">&gt;&gt;&gt; </span>predict_answer_tokens = inputs.input_ids[<span class="hljs-number">0</span>, answer_start_index : answer_end_index + <span class="hljs-number">1</span>]`}}),{c(){d=r("p"),y=o("Example:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function FL(N){let d,y;return d=new Ie({props:{code:`# target is "nice puppet"
target_start_index = tf.constant([14])
target_end_index = tf.constant([15])

outputs = model(**inputs, start_positions=target_start_index, end_positions=target_end_index)
loss = tf.math.reduce_mean(outputs.loss)`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># target is &quot;nice puppet&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>target_start_index = tf.constant([<span class="hljs-number">14</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>target_end_index = tf.constant([<span class="hljs-number">15</span>])

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs, start_positions=target_start_index, end_positions=target_end_index)
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = tf.math.reduce_mean(outputs.loss)`}}),{c(){k(d.$$.fragment)},l(h){T(d.$$.fragment,h)},m(h,f){w(d,h,f),y=!0},p:Oe,i(h){y||($(d.$$.fragment,h),y=!0)},o(h){P(d.$$.fragment,h),y=!1},d(h){F(d,h)}}}function NL(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function LL(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import AutoTokenizer, FlaxRobertaPreLayerNormModel

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = FlaxRobertaPreLayerNormModel.from_pretrained("andreasmadsen/efficient_mlm_m0.40")

inputs = tokenizer("Hello, my dog is cute", return_tensors="jax")
outputs = model(**inputs)

last_hidden_states = outputs.last_hidden_state`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, FlaxRobertaPreLayerNormModel

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxRobertaPreLayerNormModel.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;Hello, my dog is cute&quot;</span>, return_tensors=<span class="hljs-string">&quot;jax&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)

<span class="hljs-meta">&gt;&gt;&gt; </span>last_hidden_states = outputs.last_hidden_state`}}),{c(){d=r("p"),y=o("Example:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function xL(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function ML(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import AutoTokenizer, FlaxRobertaPreLayerNormForCausalLM

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = FlaxRobertaPreLayerNormForCausalLM.from_pretrained("andreasmadsen/efficient_mlm_m0.40")

inputs = tokenizer("Hello, my dog is cute", return_tensors="np")
outputs = model(**inputs)

# retrieve logts for next token
next_token_logits = outputs.logits[:, -1]`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, FlaxRobertaPreLayerNormForCausalLM

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxRobertaPreLayerNormForCausalLM.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;Hello, my dog is cute&quot;</span>, return_tensors=<span class="hljs-string">&quot;np&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># retrieve logts for next token</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>next_token_logits = outputs.logits[:, -<span class="hljs-number">1</span>]`}}),{c(){d=r("p"),y=o("Example:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function EL(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function RL(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import AutoTokenizer, FlaxRobertaPreLayerNormForMaskedLM

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = FlaxRobertaPreLayerNormForMaskedLM.from_pretrained("andreasmadsen/efficient_mlm_m0.40")

inputs = tokenizer("The capital of France is [MASK].", return_tensors="jax")

outputs = model(**inputs)
logits = outputs.logits`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, FlaxRobertaPreLayerNormForMaskedLM

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxRobertaPreLayerNormForMaskedLM.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;The capital of France is [MASK].&quot;</span>, return_tensors=<span class="hljs-string">&quot;jax&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits`}}),{c(){d=r("p"),y=o("Example:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function zL(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function CL(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import AutoTokenizer, FlaxRobertaPreLayerNormForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = FlaxRobertaPreLayerNormForSequenceClassification.from_pretrained("andreasmadsen/efficient_mlm_m0.40")

inputs = tokenizer("Hello, my dog is cute", return_tensors="jax")

outputs = model(**inputs)
logits = outputs.logits`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, FlaxRobertaPreLayerNormForSequenceClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxRobertaPreLayerNormForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;Hello, my dog is cute&quot;</span>, return_tensors=<span class="hljs-string">&quot;jax&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits`}}),{c(){d=r("p"),y=o("Example:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function qL(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function jL(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import AutoTokenizer, FlaxRobertaPreLayerNormForMultipleChoice

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = FlaxRobertaPreLayerNormForMultipleChoice.from_pretrained("andreasmadsen/efficient_mlm_m0.40")

prompt = "In Italy, pizza served in formal settings, such as at a restaurant, is presented unsliced."
choice0 = "It is eaten with a fork and a knife."
choice1 = "It is eaten while held in the hand."

encoding = tokenizer([prompt, prompt], [choice0, choice1], return_tensors="jax", padding=True)
outputs = model(**{k: v[None, :] for k, v in encoding.items()})

logits = outputs.logits`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, FlaxRobertaPreLayerNormForMultipleChoice

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxRobertaPreLayerNormForMultipleChoice.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;In Italy, pizza served in formal settings, such as at a restaurant, is presented unsliced.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>choice0 = <span class="hljs-string">&quot;It is eaten with a fork and a knife.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>choice1 = <span class="hljs-string">&quot;It is eaten while held in the hand.&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>encoding = tokenizer([prompt, prompt], [choice0, choice1], return_tensors=<span class="hljs-string">&quot;jax&quot;</span>, padding=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**{k: v[<span class="hljs-literal">None</span>, :] <span class="hljs-keyword">for</span> k, v <span class="hljs-keyword">in</span> encoding.items()})

<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits`}}),{c(){d=r("p"),y=o("Example:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function AL(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function OL(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import AutoTokenizer, FlaxRobertaPreLayerNormForTokenClassification

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = FlaxRobertaPreLayerNormForTokenClassification.from_pretrained("andreasmadsen/efficient_mlm_m0.40")

inputs = tokenizer("Hello, my dog is cute", return_tensors="jax")

outputs = model(**inputs)
logits = outputs.logits`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, FlaxRobertaPreLayerNormForTokenClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxRobertaPreLayerNormForTokenClassification.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;Hello, my dog is cute&quot;</span>, return_tensors=<span class="hljs-string">&quot;jax&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits`}}),{c(){d=r("p"),y=o("Example:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function IL(N){let d,y,h,f,_;return{c(){d=r("p"),y=o("Although the recipe for forward pass needs to be defined within this function, one should call the "),h=r("code"),f=o("Module"),_=o(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),h=a(c,"CODE",{});var x=s(h);f=n(x,"Module"),x.forEach(t),_=n(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,h),e(h,f),e(d,_)},d(l){l&&t(d)}}}function DL(N){let d,y,h,f,_;return f=new Ie({props:{code:`from transformers import AutoTokenizer, FlaxRobertaPreLayerNormForQuestionAnswering

tokenizer = AutoTokenizer.from_pretrained("andreasmadsen/efficient_mlm_m0.40")
model = FlaxRobertaPreLayerNormForQuestionAnswering.from_pretrained("andreasmadsen/efficient_mlm_m0.40")

question, text = "Who was Jim Henson?", "Jim Henson was a nice puppet"
inputs = tokenizer(question, text, return_tensors="jax")

outputs = model(**inputs)
start_scores = outputs.start_logits
end_scores = outputs.end_logits`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, FlaxRobertaPreLayerNormForQuestionAnswering

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxRobertaPreLayerNormForQuestionAnswering.from_pretrained(<span class="hljs-string">&quot;andreasmadsen/efficient_mlm_m0.40&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>question, text = <span class="hljs-string">&quot;Who was Jim Henson?&quot;</span>, <span class="hljs-string">&quot;Jim Henson was a nice puppet&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(question, text, return_tensors=<span class="hljs-string">&quot;jax&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>start_scores = outputs.start_logits
<span class="hljs-meta">&gt;&gt;&gt; </span>end_scores = outputs.end_logits`}}),{c(){d=r("p"),y=o("Example:"),h=p(),k(f.$$.fragment)},l(l){d=a(l,"P",{});var c=s(d);y=n(c,"Example:"),c.forEach(t),h=m(l),T(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,h,c),w(f,l,c),_=!0},p:Oe,i(l){_||($(f.$$.fragment,l),_=!0)},o(l){P(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(h),F(f,l)}}}function SL(N){let d,y,h,f,_,l,c,x,ye,he,D,ae,te,L,be,B,ve,ue,A,ke,se,K,Te,ce,V,we,ie,J,$e,fe,ee,R,C,le,Q,Pe,ge,U,Fe,_e,z,H,G,de,Ne,X,pe,Le,S,me,Y,xe,oe,q,Me,j,Ee,Re,v,M,Be,re,ze,Qe,E,He,Ke,De,Ve,Je,O,I,Ge,Se,Z,Xe,We,Ce,Ye,ne,qe,Fn,Od,ba,_f,Id,yf,ph,ft,Dd,wl,bf,vf,Sd,$l,kf,Tf,Wd,Pl,wf,$f,Ud,Fl,Pf,Ff,Bd,Nl,Nf,Lf,Qd,Ll,xf,mh,xo,Nn,Hd,va,Mf,Kd,Ef,hh,At,ka,Rf,so,zf,xl,Cf,qf,Ml,jf,Af,Ta,Of,If,Df,Mo,Sf,El,Wf,Uf,Rl,Bf,Qf,Hf,Ln,uh,Eo,xn,Vd,wa,Kf,Jd,Vf,fh,Ze,$a,Jf,Gd,Gf,Xf,Pa,Yf,zl,Zf,eg,tg,Fa,og,Na,ng,rg,ag,La,sg,Xd,ig,lg,dg,it,cg,Yd,pg,mg,Zd,hg,ug,ec,fg,gg,tc,_g,yg,oc,bg,vg,nc,kg,Tg,wg,Mn,$g,rc,Pg,Fg,xa,Ng,Lg,Ot,Ma,xg,Ro,Mg,Cl,Eg,Rg,ac,zg,Cg,qg,En,jg,Rn,gh,zo,zn,sc,Ea,Ag,ic,Og,_h,_t,Ra,Ig,za,Dg,lc,Sg,Wg,Ug,Ca,Bg,ql,Qg,Hg,Kg,qa,Vg,ja,Jg,Gg,Xg,It,Aa,Yg,Co,Zg,jl,e_,t_,dc,o_,n_,r_,Cn,a_,qn,yh,qo,jn,cc,Oa,s_,pc,i_,bh,yt,Ia,l_,Da,d_,mc,c_,p_,m_,Sa,h_,Al,u_,f_,g_,Wa,__,Ua,y_,b_,v_,Dt,Ba,k_,jo,T_,Ol,w_,$_,hc,P_,F_,N_,An,L_,On,vh,Ao,In,uc,Qa,x_,fc,M_,kh,bt,Ha,E_,gc,R_,z_,Ka,C_,Il,q_,j_,A_,Va,O_,Ja,I_,D_,S_,$t,Ga,W_,Oo,U_,Dl,B_,Q_,_c,H_,K_,V_,Dn,J_,Sn,G_,Wn,Th,Io,Un,yc,Xa,X_,bc,Y_,wh,vt,Ya,Z_,vc,ey,ty,Za,oy,Sl,ny,ry,ay,es,sy,ts,iy,ly,dy,St,os,cy,Do,py,Wl,my,hy,kc,uy,fy,gy,Bn,_y,Qn,$h,So,Hn,Tc,ns,yy,wc,by,Ph,kt,rs,vy,$c,ky,Ty,as,wy,Ul,$y,Py,Fy,ss,Ny,is,Ly,xy,My,Wt,ls,Ey,Wo,Ry,Bl,zy,Cy,Pc,qy,jy,Ay,Kn,Oy,Vn,Fh,Uo,Jn,Fc,ds,Iy,Nc,Dy,Nh,Tt,cs,Sy,Bo,Wy,Lc,Uy,By,xc,Qy,Hy,Ky,ps,Vy,Ql,Jy,Gy,Xy,ms,Yy,hs,Zy,eb,tb,Ut,us,ob,Qo,nb,Hl,rb,ab,Mc,sb,ib,lb,Gn,db,Xn,Lh,Ho,Yn,Ec,fs,cb,Rc,pb,xh,lt,gs,mb,zc,hb,ub,_s,fb,Kl,gb,_b,yb,ys,bb,bs,vb,kb,Tb,Zn,wb,Bt,vs,$b,Ko,Pb,Vl,Fb,Nb,Cc,Lb,xb,Mb,er,Eb,tr,Mh,Vo,or,qc,ks,Rb,jc,zb,Eh,Jo,Ts,Cb,Qt,ws,qb,Go,jb,Jl,Ab,Ob,Ac,Ib,Db,Sb,nr,Wb,rr,Rh,Xo,ar,Oc,$s,Ub,Ic,Bb,zh,dt,Ps,Qb,Fs,Hb,Dc,Kb,Vb,Jb,Ns,Gb,Gl,Xb,Yb,Zb,Ls,ev,xs,tv,ov,nv,sr,rv,Pt,Ms,av,Yo,sv,Xl,iv,lv,Sc,dv,cv,pv,ir,mv,lr,hv,dr,Ch,Zo,cr,Wc,Es,uv,Uc,fv,qh,ct,Rs,gv,Bc,_v,yv,zs,bv,Yl,vv,kv,Tv,Cs,wv,qs,$v,Pv,Fv,pr,Nv,Ft,js,Lv,en,xv,Zl,Mv,Ev,Qc,Rv,zv,Cv,mr,qv,hr,jv,ur,jh,tn,fr,Hc,As,Av,Kc,Ov,Ah,pt,Os,Iv,Vc,Dv,Sv,Is,Wv,ed,Uv,Bv,Qv,Ds,Hv,Ss,Kv,Vv,Jv,gr,Gv,Ht,Ws,Xv,on,Yv,td,Zv,ek,Jc,tk,ok,nk,_r,rk,yr,Oh,nn,br,Gc,Us,ak,Xc,sk,Ih,mt,Bs,ik,Yc,lk,dk,Qs,ck,od,pk,mk,hk,Hs,uk,Ks,fk,gk,_k,vr,yk,Nt,Vs,bk,rn,vk,nd,kk,Tk,Zc,wk,$k,Pk,kr,Fk,Tr,Nk,wr,Dh,an,$r,ep,Js,Lk,tp,xk,Sh,ht,Gs,Mk,sn,Ek,op,Rk,zk,np,Ck,qk,jk,Xs,Ak,rd,Ok,Ik,Dk,Ys,Sk,Zs,Wk,Uk,Bk,Pr,Qk,Lt,ei,Hk,ln,Kk,ad,Vk,Jk,rp,Gk,Xk,Yk,Fr,Zk,Nr,eT,Lr,Wh,dn,xr,ap,ti,tT,sp,oT,Uh,et,oi,nT,ip,rT,aT,ni,sT,sd,iT,lT,dT,ri,cT,ai,pT,mT,hT,lp,uT,fT,io,dp,si,gT,_T,cp,ii,yT,bT,pp,li,vT,kT,mp,di,TT,wT,Kt,ci,$T,cn,PT,hp,FT,NT,up,LT,xT,MT,Mr,ET,Er,Bh,pn,Rr,fp,pi,RT,gp,zT,Qh,tt,mi,CT,_p,qT,jT,hi,AT,id,OT,IT,DT,ui,ST,fi,WT,UT,BT,yp,QT,HT,lo,bp,gi,KT,VT,vp,_i,JT,GT,kp,yi,XT,YT,Tp,bi,ZT,ew,Vt,vi,tw,mn,ow,wp,nw,rw,$p,aw,sw,iw,zr,lw,Cr,Hh,hn,qr,Pp,ki,dw,Fp,cw,Kh,ot,Ti,pw,wi,mw,Np,hw,uw,fw,$i,gw,ld,_w,yw,bw,Pi,vw,Fi,kw,Tw,ww,Lp,$w,Pw,co,xp,Ni,Fw,Nw,Mp,Li,Lw,xw,Ep,xi,Mw,Ew,Rp,Mi,Rw,zw,Jt,Ei,Cw,un,qw,zp,jw,Aw,Cp,Ow,Iw,Dw,jr,Sw,Ar,Vh,fn,Or,qp,Ri,Ww,jp,Uw,Jh,nt,zi,Bw,Ap,Qw,Hw,Ci,Kw,dd,Vw,Jw,Gw,qi,Xw,ji,Yw,Zw,e1,Op,t1,o1,po,Ip,Ai,n1,r1,Dp,Oi,a1,s1,Sp,Ii,i1,l1,Wp,Di,d1,c1,Gt,Si,p1,gn,m1,Up,h1,u1,Bp,f1,g1,_1,Ir,y1,Dr,Gh,_n,Sr,Qp,Wi,b1,Hp,v1,Xh,rt,Ui,k1,Kp,T1,w1,Bi,$1,cd,P1,F1,N1,Qi,L1,Hi,x1,M1,E1,Vp,R1,z1,mo,Jp,Ki,C1,q1,Gp,Vi,j1,A1,Xp,Ji,O1,I1,Yp,Gi,D1,S1,Xt,Xi,W1,yn,U1,Zp,B1,Q1,em,H1,K1,V1,Wr,J1,Ur,Yh,bn,Br,tm,Yi,G1,om,X1,Zh,at,Zi,Y1,nm,Z1,e$,el,t$,pd,o$,n$,r$,tl,a$,ol,s$,i$,l$,rm,d$,c$,ho,am,nl,p$,m$,sm,rl,h$,u$,im,al,f$,g$,lm,sl,_$,y$,Yt,il,b$,vn,v$,dm,k$,T$,cm,w$,$$,P$,Qr,F$,Hr,eu,kn,Kr,pm,ll,N$,mm,L$,tu,st,dl,x$,Tn,M$,hm,E$,R$,um,z$,C$,q$,cl,j$,md,A$,O$,I$,pl,D$,ml,S$,W$,U$,fm,B$,Q$,uo,gm,hl,H$,K$,_m,ul,V$,J$,ym,fl,G$,X$,bm,gl,Y$,Z$,Zt,_l,e2,wn,t2,vm,o2,n2,km,r2,a2,s2,Vr,i2,Jr,ou;return l=new Ue({}),L=new Ue({}),ba=new Ue({}),va=new Ue({}),ka=new W({props:{name:"class transformers.RobertaPreLayerNormConfig",anchor:"transformers.RobertaPreLayerNormConfig",parameters:[{name:"vocab_size",val:" = 30522"},{name:"hidden_size",val:" = 768"},{name:"num_hidden_layers",val:" = 12"},{name:"num_attention_heads",val:" = 12"},{name:"intermediate_size",val:" = 3072"},{name:"hidden_act",val:" = 'gelu'"},{name:"hidden_dropout_prob",val:" = 0.1"},{name:"attention_probs_dropout_prob",val:" = 0.1"},{name:"max_position_embeddings",val:" = 512"},{name:"type_vocab_size",val:" = 2"},{name:"initializer_range",val:" = 0.02"},{name:"layer_norm_eps",val:" = 1e-12"},{name:"pad_token_id",val:" = 1"},{name:"bos_token_id",val:" = 0"},{name:"eos_token_id",val:" = 2"},{name:"position_embedding_type",val:" = 'absolute'"},{name:"use_cache",val:" = True"},{name:"classifier_dropout",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.RobertaPreLayerNormConfig.vocab_size",description:`<strong>vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 30522) &#x2014;
Vocabulary size of the RoBERTa-PreLayerNorm model. Defines the number of different tokens that can be
represented by the <code>inputs_ids</code> passed when calling <a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormModel">RobertaPreLayerNormModel</a> or
<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.TFRobertaPreLayerNormModel">TFRobertaPreLayerNormModel</a>.`,name:"vocab_size"},{anchor:"transformers.RobertaPreLayerNormConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014;
Dimensionality of the encoder layers and the pooler layer.`,name:"hidden_size"},{anchor:"transformers.RobertaPreLayerNormConfig.num_hidden_layers",description:`<strong>num_hidden_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 12) &#x2014;
Number of hidden layers in the Transformer encoder.`,name:"num_hidden_layers"},{anchor:"transformers.RobertaPreLayerNormConfig.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 12) &#x2014;
Number of attention heads for each attention layer in the Transformer encoder.`,name:"num_attention_heads"},{anchor:"transformers.RobertaPreLayerNormConfig.intermediate_size",description:`<strong>intermediate_size</strong> (<code>int</code>, <em>optional</em>, defaults to 3072) &#x2014;
Dimensionality of the &#x201C;intermediate&#x201D; (often named feed-forward) layer in the Transformer encoder.`,name:"intermediate_size"},{anchor:"transformers.RobertaPreLayerNormConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code> or <code>Callable</code>, <em>optional</em>, defaults to <code>&quot;gelu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the encoder and pooler. If string, <code>&quot;gelu&quot;</code>,
<code>&quot;relu&quot;</code>, <code>&quot;silu&quot;</code> and <code>&quot;gelu_new&quot;</code> are supported.`,name:"hidden_act"},{anchor:"transformers.RobertaPreLayerNormConfig.hidden_dropout_prob",description:`<strong>hidden_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout probability for all fully connected layers in the embeddings, encoder, and pooler.`,name:"hidden_dropout_prob"},{anchor:"transformers.RobertaPreLayerNormConfig.attention_probs_dropout_prob",description:`<strong>attention_probs_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout ratio for the attention probabilities.`,name:"attention_probs_dropout_prob"},{anchor:"transformers.RobertaPreLayerNormConfig.max_position_embeddings",description:`<strong>max_position_embeddings</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
The maximum sequence length that this model might ever be used with. Typically set this to something large
just in case (e.g., 512 or 1024 or 2048).`,name:"max_position_embeddings"},{anchor:"transformers.RobertaPreLayerNormConfig.type_vocab_size",description:`<strong>type_vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014;
The vocabulary size of the <code>token_type_ids</code> passed when calling <a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormModel">RobertaPreLayerNormModel</a> or
<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.TFRobertaPreLayerNormModel">TFRobertaPreLayerNormModel</a>.`,name:"type_vocab_size"},{anchor:"transformers.RobertaPreLayerNormConfig.initializer_range",description:`<strong>initializer_range</strong> (<code>float</code>, <em>optional</em>, defaults to 0.02) &#x2014;
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.`,name:"initializer_range"},{anchor:"transformers.RobertaPreLayerNormConfig.layer_norm_eps",description:`<strong>layer_norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-12) &#x2014;
The epsilon used by the layer normalization layers.`,name:"layer_norm_eps"},{anchor:"transformers.RobertaPreLayerNormConfig.position_embedding_type",description:`<strong>position_embedding_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;absolute&quot;</code>) &#x2014;
Type of position embedding. Choose one of <code>&quot;absolute&quot;</code>, <code>&quot;relative_key&quot;</code>, <code>&quot;relative_key_query&quot;</code>. For
positional embeddings use <code>&quot;absolute&quot;</code>. For more information on <code>&quot;relative_key&quot;</code>, please refer to
<a href="https://arxiv.org/abs/1803.02155" rel="nofollow">Self-Attention with Relative Position Representations (Shaw et al.)</a>.
For more information on <code>&quot;relative_key_query&quot;</code>, please refer to <em>Method 4</em> in <a href="https://arxiv.org/abs/2009.13658" rel="nofollow">Improve Transformer Models
with Better Relative Position Embeddings (Huang et al.)</a>.`,name:"position_embedding_type"},{anchor:"transformers.RobertaPreLayerNormConfig.is_decoder",description:`<strong>is_decoder</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether the model is used as a decoder or not. If <code>False</code>, the model is used as an encoder.`,name:"is_decoder"},{anchor:"transformers.RobertaPreLayerNormConfig.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not the model should return the last key/values attentions (not used by all models). Only
relevant if <code>config.is_decoder=True</code>.`,name:"use_cache"},{anchor:"transformers.RobertaPreLayerNormConfig.classifier_dropout",description:`<strong>classifier_dropout</strong> (<code>float</code>, <em>optional</em>) &#x2014;
The dropout ratio for the classification head.`,name:"classifier_dropout"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/configuration_roberta_prelayernorm.py#L35"}}),Ln=new Ae({props:{anchor:"transformers.RobertaPreLayerNormConfig.example",$$slots:{default:[SN]},$$scope:{ctx:N}}}),wa=new Ue({}),$a=new W({props:{name:"class transformers.RobertaPreLayerNormModel",anchor:"transformers.RobertaPreLayerNormModel",parameters:[{name:"config",val:""},{name:"add_pooling_layer",val:" = True"}],parametersDescription:[{anchor:"transformers.RobertaPreLayerNormModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig">RobertaPreLayerNormConfig</a>) &#x2014; Model configuration class with all the parameters of the
model. Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.27.1/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_roberta_prelayernorm.py#L701"}}),Ma=new W({props:{name:"forward",anchor:"transformers.RobertaPreLayerNormModel.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"token_type_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"head_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"encoder_hidden_states",val:": typing.Optional[torch.Tensor] = None"},{name:"encoder_attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"past_key_values",val:": typing.Optional[typing.List[torch.FloatTensor]] = None"},{name:"use_cache",val:": typing.Optional[bool] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.RobertaPreLayerNormModel.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.RobertaPreLayerNormModel.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.RobertaPreLayerNormModel.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0,1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.
This parameter can only be used when the model is initialized with <code>type_vocab_size</code> parameter with value<blockquote>
<p>= 2. All the value in this tensor should be always &lt; type_vocab_size.</p>
</blockquote></li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.RobertaPreLayerNormModel.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.RobertaPreLayerNormModel.forward.head_mask",description:`<strong>head_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.RobertaPreLayerNormModel.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <code>input_ids</code> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.RobertaPreLayerNormModel.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.RobertaPreLayerNormModel.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.RobertaPreLayerNormModel.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.RobertaPreLayerNormModel.forward.encoder_hidden_states",description:`<strong>encoder_hidden_states</strong>  (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Sequence of hidden-states at the output of the last layer of the encoder. Used in the cross-attention if
the model is configured as a decoder.`,name:"encoder_hidden_states"},{anchor:"transformers.RobertaPreLayerNormModel.forward.encoder_attention_mask",description:`<strong>encoder_attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on the padding token indices of the encoder input. This mask is used in
the cross-attention if the model is configured as a decoder. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>`,name:"encoder_attention_mask"},{anchor:"transformers.RobertaPreLayerNormModel.forward.past_key_values",description:`<strong>past_key_values</strong> (<code>tuple(tuple(torch.FloatTensor))</code> of length <code>config.n_layers</code> with each tuple having 4 tensors of shape <code>(batch_size, num_heads, sequence_length - 1, embed_size_per_head)</code>) &#x2014;
Contains precomputed key and value hidden states of the attention blocks. Can be used to speed up decoding.</p>
<p>If <code>past_key_values</code> are used, the user can optionally input only the last <code>decoder_input_ids</code> (those that
don&#x2019;t have their past key value states given to this model) of shape <code>(batch_size, 1)</code> instead of all
<code>decoder_input_ids</code> of shape <code>(batch_size, sequence_length)</code>.`,name:"past_key_values"},{anchor:"transformers.RobertaPreLayerNormModel.forward.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If set to <code>True</code>, <code>past_key_values</code> key value states are returned and can be used to speed up decoding (see
<code>past_key_values</code>).`,name:"use_cache"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_roberta_prelayernorm.py#L746",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_outputs.BaseModelOutputWithPoolingAndCrossAttentions"
>transformers.modeling_outputs.BaseModelOutputWithPoolingAndCrossAttentions</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) \u2014 Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>pooler_output</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, hidden_size)</code>) \u2014 Last layer hidden-state of the first token of the sequence (classification token) after further processing
through the layers used for the auxiliary pretraining task. E.g. for BERT-family of models, this returns
the classification token after processing through a linear layer and a tanh activation function. The linear
layer weights are trained from the next sentence prediction (classification) objective during pretraining.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
<li>
<p><strong>cross_attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> and <code>config.add_cross_attention=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights of the decoder\u2019s cross-attention layer, after the attention softmax, used to compute the
weighted average in the cross-attention heads.</p>
</li>
<li>
<p><strong>past_key_values</strong> (<code>tuple(tuple(torch.FloatTensor))</code>, <em>optional</em>, returned when <code>use_cache=True</code> is passed or when <code>config.use_cache=True</code>) \u2014 Tuple of <code>tuple(torch.FloatTensor)</code> of length <code>config.n_layers</code>, with each tuple having 2 tensors of shape
<code>(batch_size, num_heads, sequence_length, embed_size_per_head)</code>) and optionally if
<code>config.is_encoder_decoder=True</code> 2 additional tensors of shape <code>(batch_size, num_heads, encoder_sequence_length, embed_size_per_head)</code>.</p>
<p>Contains pre-computed hidden-states (key and values in the self-attention blocks and optionally if
<code>config.is_encoder_decoder=True</code> in the cross-attention blocks) that can be used (see <code>past_key_values</code>
input) to speed up sequential decoding.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_outputs.BaseModelOutputWithPoolingAndCrossAttentions"
>transformers.modeling_outputs.BaseModelOutputWithPoolingAndCrossAttentions</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),En=new je({props:{$$slots:{default:[WN]},$$scope:{ctx:N}}}),Rn=new Ae({props:{anchor:"transformers.RobertaPreLayerNormModel.forward.example",$$slots:{default:[UN]},$$scope:{ctx:N}}}),Ea=new Ue({}),Ra=new W({props:{name:"class transformers.RobertaPreLayerNormForCausalLM",anchor:"transformers.RobertaPreLayerNormForCausalLM",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.RobertaPreLayerNormForCausalLM.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig">RobertaPreLayerNormConfig</a>) &#x2014; Model configuration class with all the parameters of the
model. Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.27.1/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_roberta_prelayernorm.py#L888"}}),Aa=new W({props:{name:"forward",anchor:"transformers.RobertaPreLayerNormForCausalLM.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"token_type_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"position_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"head_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"encoder_hidden_states",val:": typing.Optional[torch.FloatTensor] = None"},{name:"encoder_attention_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"past_key_values",val:": typing.Tuple[typing.Tuple[torch.FloatTensor]] = None"},{name:"use_cache",val:": typing.Optional[bool] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.RobertaPreLayerNormForCausalLM.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.RobertaPreLayerNormForCausalLM.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.RobertaPreLayerNormForCausalLM.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0,1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.
This parameter can only be used when the model is initialized with <code>type_vocab_size</code> parameter with value<blockquote>
<p>= 2. All the value in this tensor should be always &lt; type_vocab_size.</p>
</blockquote></li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.RobertaPreLayerNormForCausalLM.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.RobertaPreLayerNormForCausalLM.forward.head_mask",description:`<strong>head_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.RobertaPreLayerNormForCausalLM.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <code>input_ids</code> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.RobertaPreLayerNormForCausalLM.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.RobertaPreLayerNormForCausalLM.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.RobertaPreLayerNormForCausalLM.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.RobertaPreLayerNormForCausalLM.forward.encoder_hidden_states",description:`<strong>encoder_hidden_states</strong>  (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Sequence of hidden-states at the output of the last layer of the encoder. Used in the cross-attention if
the model is configured as a decoder.`,name:"encoder_hidden_states"},{anchor:"transformers.RobertaPreLayerNormForCausalLM.forward.encoder_attention_mask",description:`<strong>encoder_attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on the padding token indices of the encoder input. This mask is used in
the cross-attention if the model is configured as a decoder. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>`,name:"encoder_attention_mask"},{anchor:"transformers.RobertaPreLayerNormForCausalLM.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Labels for computing the left-to-right language modeling loss (next word prediction). Indices should be in
<code>[-100, 0, ..., config.vocab_size]</code> (see <code>input_ids</code> docstring) Tokens with indices set to <code>-100</code> are
ignored (masked), the loss is only computed for the tokens with labels in <code>[0, ..., config.vocab_size]</code>`,name:"labels"},{anchor:"transformers.RobertaPreLayerNormForCausalLM.forward.past_key_values",description:`<strong>past_key_values</strong> (<code>tuple(tuple(torch.FloatTensor))</code> of length <code>config.n_layers</code> with each tuple having 4 tensors of shape <code>(batch_size, num_heads, sequence_length - 1, embed_size_per_head)</code>) &#x2014;
Contains precomputed key and value hidden states of the attention blocks. Can be used to speed up decoding.</p>
<p>If <code>past_key_values</code> are used, the user can optionally input only the last <code>decoder_input_ids</code> (those that
don&#x2019;t have their past key value states given to this model) of shape <code>(batch_size, 1)</code> instead of all
<code>decoder_input_ids</code> of shape <code>(batch_size, sequence_length)</code>.`,name:"past_key_values"},{anchor:"transformers.RobertaPreLayerNormForCausalLM.forward.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If set to <code>True</code>, <code>past_key_values</code> key value states are returned and can be used to speed up decoding (see
<code>past_key_values</code>).`,name:"use_cache"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_roberta_prelayernorm.py#L916",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_outputs.CausalLMOutputWithCrossAttentions"
>transformers.modeling_outputs.CausalLMOutputWithCrossAttentions</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) \u2014 Language modeling loss (for next-token prediction).</p>
</li>
<li>
<p><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, config.vocab_size)</code>) \u2014 Prediction scores of the language modeling head (scores for each vocabulary token before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
<li>
<p><strong>cross_attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Cross attentions weights after the attention softmax, used to compute the weighted average in the
cross-attention heads.</p>
</li>
<li>
<p><strong>past_key_values</strong> (<code>tuple(tuple(torch.FloatTensor))</code>, <em>optional</em>, returned when <code>use_cache=True</code> is passed or when <code>config.use_cache=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> tuples of length <code>config.n_layers</code>, with each tuple containing the cached key,
value states of the self-attention and the cross-attention layers if model is used in encoder-decoder
setting. Only relevant if <code>config.is_decoder = True</code>.</p>
<p>Contains pre-computed hidden-states (key and values in the attention blocks) that can be used (see
<code>past_key_values</code> input) to speed up sequential decoding.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_outputs.CausalLMOutputWithCrossAttentions"
>transformers.modeling_outputs.CausalLMOutputWithCrossAttentions</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Cn=new je({props:{$$slots:{default:[BN]},$$scope:{ctx:N}}}),qn=new Ae({props:{anchor:"transformers.RobertaPreLayerNormForCausalLM.forward.example",$$slots:{default:[QN]},$$scope:{ctx:N}}}),Oa=new Ue({}),Ia=new W({props:{name:"class transformers.RobertaPreLayerNormForMaskedLM",anchor:"transformers.RobertaPreLayerNormForMaskedLM",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.RobertaPreLayerNormForMaskedLM.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig">RobertaPreLayerNormConfig</a>) &#x2014; Model configuration class with all the parameters of the
model. Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.27.1/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_roberta_prelayernorm.py#L1044"}}),Ba=new W({props:{name:"forward",anchor:"transformers.RobertaPreLayerNormForMaskedLM.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"token_type_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"position_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"head_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"encoder_hidden_states",val:": typing.Optional[torch.FloatTensor] = None"},{name:"encoder_attention_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.RobertaPreLayerNormForMaskedLM.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.RobertaPreLayerNormForMaskedLM.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.RobertaPreLayerNormForMaskedLM.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0,1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.
This parameter can only be used when the model is initialized with <code>type_vocab_size</code> parameter with value<blockquote>
<p>= 2. All the value in this tensor should be always &lt; type_vocab_size.</p>
</blockquote></li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.RobertaPreLayerNormForMaskedLM.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.RobertaPreLayerNormForMaskedLM.forward.head_mask",description:`<strong>head_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.RobertaPreLayerNormForMaskedLM.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <code>input_ids</code> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.RobertaPreLayerNormForMaskedLM.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.RobertaPreLayerNormForMaskedLM.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.RobertaPreLayerNormForMaskedLM.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.RobertaPreLayerNormForMaskedLM.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Labels for computing the masked language modeling loss. Indices should be in <code>[-100, 0, ..., config.vocab_size]</code> (see <code>input_ids</code> docstring) Tokens with indices set to <code>-100</code> are ignored (masked), the
loss is only computed for the tokens with labels in <code>[0, ..., config.vocab_size]</code>`,name:"labels"},{anchor:"transformers.RobertaPreLayerNormForMaskedLM.forward.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, any]</code>, optional, defaults to <em>{}</em>) &#x2014;
Used to hide legacy arguments that have been deprecated.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_roberta_prelayernorm.py#L1074",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_outputs.MaskedLMOutput"
>transformers.modeling_outputs.MaskedLMOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) \u2014 Masked language modeling (MLM) loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, config.vocab_size)</code>) \u2014 Prediction scores of the language modeling head (scores for each vocabulary token before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_outputs.MaskedLMOutput"
>transformers.modeling_outputs.MaskedLMOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),An=new je({props:{$$slots:{default:[HN]},$$scope:{ctx:N}}}),On=new Ae({props:{anchor:"transformers.RobertaPreLayerNormForMaskedLM.forward.example",$$slots:{default:[KN]},$$scope:{ctx:N}}}),Qa=new Ue({}),Ha=new W({props:{name:"class transformers.RobertaPreLayerNormForSequenceClassification",anchor:"transformers.RobertaPreLayerNormForSequenceClassification",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.RobertaPreLayerNormForSequenceClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig">RobertaPreLayerNormConfig</a>) &#x2014; Model configuration class with all the parameters of the
model. Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.27.1/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_roberta_prelayernorm.py#L1181"}}),Ga=new W({props:{name:"forward",anchor:"transformers.RobertaPreLayerNormForSequenceClassification.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"token_type_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"position_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"head_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.RobertaPreLayerNormForSequenceClassification.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.RobertaPreLayerNormForSequenceClassification.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.RobertaPreLayerNormForSequenceClassification.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0,1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.
This parameter can only be used when the model is initialized with <code>type_vocab_size</code> parameter with value<blockquote>
<p>= 2. All the value in this tensor should be always &lt; type_vocab_size.</p>
</blockquote></li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.RobertaPreLayerNormForSequenceClassification.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.RobertaPreLayerNormForSequenceClassification.forward.head_mask",description:`<strong>head_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.RobertaPreLayerNormForSequenceClassification.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <code>input_ids</code> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.RobertaPreLayerNormForSequenceClassification.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.RobertaPreLayerNormForSequenceClassification.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.RobertaPreLayerNormForSequenceClassification.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.RobertaPreLayerNormForSequenceClassification.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the sequence classification/regression loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>. If <code>config.num_labels == 1</code> a regression loss is computed (Mean-Square loss), If
<code>config.num_labels &gt; 1</code> a classification loss is computed (Cross-Entropy).`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_roberta_prelayernorm.py#L1195",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_outputs.SequenceClassifierOutput"
>transformers.modeling_outputs.SequenceClassifierOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) \u2014 Classification (or regression if config.num_labels==1) loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, config.num_labels)</code>) \u2014 Classification (or regression if config.num_labels==1) scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_outputs.SequenceClassifierOutput"
>transformers.modeling_outputs.SequenceClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Dn=new je({props:{$$slots:{default:[VN]},$$scope:{ctx:N}}}),Sn=new Ae({props:{anchor:"transformers.RobertaPreLayerNormForSequenceClassification.forward.example",$$slots:{default:[JN]},$$scope:{ctx:N}}}),Wn=new Ae({props:{anchor:"transformers.RobertaPreLayerNormForSequenceClassification.forward.example-2",$$slots:{default:[GN]},$$scope:{ctx:N}}}),Xa=new Ue({}),Ya=new W({props:{name:"class transformers.RobertaPreLayerNormForMultipleChoice",anchor:"transformers.RobertaPreLayerNormForMultipleChoice",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.RobertaPreLayerNormForMultipleChoice.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig">RobertaPreLayerNormConfig</a>) &#x2014; Model configuration class with all the parameters of the
model. Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.27.1/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_roberta_prelayernorm.py#L1280"}}),os=new W({props:{name:"forward",anchor:"transformers.RobertaPreLayerNormForMultipleChoice.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"token_type_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"position_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"head_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.RobertaPreLayerNormForMultipleChoice.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, num_choices, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.RobertaPreLayerNormForMultipleChoice.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_choices, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.RobertaPreLayerNormForMultipleChoice.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, num_choices, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0,1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.
This parameter can only be used when the model is initialized with <code>type_vocab_size</code> parameter with value<blockquote>
<p>= 2. All the value in this tensor should be always &lt; type_vocab_size.</p>
</blockquote></li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.RobertaPreLayerNormForMultipleChoice.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, num_choices, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.RobertaPreLayerNormForMultipleChoice.forward.head_mask",description:`<strong>head_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.RobertaPreLayerNormForMultipleChoice.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_choices, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <code>input_ids</code> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.RobertaPreLayerNormForMultipleChoice.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.RobertaPreLayerNormForMultipleChoice.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.RobertaPreLayerNormForMultipleChoice.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.RobertaPreLayerNormForMultipleChoice.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the multiple choice classification loss. Indices should be in <code>[0, ..., num_choices-1]</code> where <code>num_choices</code> is the size of the second dimension of the input tensors. (See
<code>input_ids</code> above)`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_roberta_prelayernorm.py#L1293",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_outputs.MultipleChoiceModelOutput"
>transformers.modeling_outputs.MultipleChoiceModelOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <em>(1,)</em>, <em>optional</em>, returned when <code>labels</code> is provided) \u2014 Classification loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_choices)</code>) \u2014 <em>num_choices</em> is the second dimension of the input tensors. (see <em>input_ids</em> above).</p>
<p>Classification scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_outputs.MultipleChoiceModelOutput"
>transformers.modeling_outputs.MultipleChoiceModelOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Bn=new je({props:{$$slots:{default:[XN]},$$scope:{ctx:N}}}),Qn=new Ae({props:{anchor:"transformers.RobertaPreLayerNormForMultipleChoice.forward.example",$$slots:{default:[YN]},$$scope:{ctx:N}}}),ns=new Ue({}),rs=new W({props:{name:"class transformers.RobertaPreLayerNormForTokenClassification",anchor:"transformers.RobertaPreLayerNormForTokenClassification",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.RobertaPreLayerNormForTokenClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig">RobertaPreLayerNormConfig</a>) &#x2014; Model configuration class with all the parameters of the
model. Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.27.1/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_roberta_prelayernorm.py#L1374"}}),ls=new W({props:{name:"forward",anchor:"transformers.RobertaPreLayerNormForTokenClassification.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"token_type_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"position_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"head_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.RobertaPreLayerNormForTokenClassification.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.RobertaPreLayerNormForTokenClassification.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.RobertaPreLayerNormForTokenClassification.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0,1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.
This parameter can only be used when the model is initialized with <code>type_vocab_size</code> parameter with value<blockquote>
<p>= 2. All the value in this tensor should be always &lt; type_vocab_size.</p>
</blockquote></li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.RobertaPreLayerNormForTokenClassification.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.RobertaPreLayerNormForTokenClassification.forward.head_mask",description:`<strong>head_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.RobertaPreLayerNormForTokenClassification.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <code>input_ids</code> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.RobertaPreLayerNormForTokenClassification.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.RobertaPreLayerNormForTokenClassification.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.RobertaPreLayerNormForTokenClassification.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.RobertaPreLayerNormForTokenClassification.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Labels for computing the token classification loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>.`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_roberta_prelayernorm.py#L1392",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_outputs.TokenClassifierOutput"
>transformers.modeling_outputs.TokenClassifierOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided)  \u2014 Classification loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, config.num_labels)</code>) \u2014 Classification scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_outputs.TokenClassifierOutput"
>transformers.modeling_outputs.TokenClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Kn=new je({props:{$$slots:{default:[ZN]},$$scope:{ctx:N}}}),Vn=new Ae({props:{anchor:"transformers.RobertaPreLayerNormForTokenClassification.forward.example",$$slots:{default:[eL]},$$scope:{ctx:N}}}),ds=new Ue({}),cs=new W({props:{name:"class transformers.RobertaPreLayerNormForQuestionAnswering",anchor:"transformers.RobertaPreLayerNormForQuestionAnswering",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.RobertaPreLayerNormForQuestionAnswering.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig">RobertaPreLayerNormConfig</a>) &#x2014; Model configuration class with all the parameters of the
model. Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.27.1/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_roberta_prelayernorm.py#L1482"}}),us=new W({props:{name:"forward",anchor:"transformers.RobertaPreLayerNormForQuestionAnswering.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"token_type_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"position_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"head_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"start_positions",val:": typing.Optional[torch.LongTensor] = None"},{name:"end_positions",val:": typing.Optional[torch.LongTensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.RobertaPreLayerNormForQuestionAnswering.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.RobertaPreLayerNormForQuestionAnswering.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.RobertaPreLayerNormForQuestionAnswering.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0,1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.
This parameter can only be used when the model is initialized with <code>type_vocab_size</code> parameter with value<blockquote>
<p>= 2. All the value in this tensor should be always &lt; type_vocab_size.</p>
</blockquote></li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.RobertaPreLayerNormForQuestionAnswering.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.RobertaPreLayerNormForQuestionAnswering.forward.head_mask",description:`<strong>head_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.RobertaPreLayerNormForQuestionAnswering.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <code>input_ids</code> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.RobertaPreLayerNormForQuestionAnswering.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.RobertaPreLayerNormForQuestionAnswering.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.RobertaPreLayerNormForQuestionAnswering.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.RobertaPreLayerNormForQuestionAnswering.forward.start_positions",description:`<strong>start_positions</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for position (index) of the start of the labelled span for computing the token classification loss.
Positions are clamped to the length of the sequence (<code>sequence_length</code>). Position outside of the sequence
are not taken into account for computing the loss.`,name:"start_positions"},{anchor:"transformers.RobertaPreLayerNormForQuestionAnswering.forward.end_positions",description:`<strong>end_positions</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for position (index) of the end of the labelled span for computing the token classification loss.
Positions are clamped to the length of the sequence (<code>sequence_length</code>). Position outside of the sequence
are not taken into account for computing the loss.`,name:"end_positions"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_roberta_prelayernorm.py#L1496",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_outputs.QuestionAnsweringModelOutput"
>transformers.modeling_outputs.QuestionAnsweringModelOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) \u2014 Total span extraction loss is the sum of a Cross-Entropy for the start and end positions.</p>
</li>
<li>
<p><strong>start_logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>) \u2014 Span-start scores (before SoftMax).</p>
</li>
<li>
<p><strong>end_logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>) \u2014 Span-end scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_outputs.QuestionAnsweringModelOutput"
>transformers.modeling_outputs.QuestionAnsweringModelOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Gn=new je({props:{$$slots:{default:[tL]},$$scope:{ctx:N}}}),Xn=new Ae({props:{anchor:"transformers.RobertaPreLayerNormForQuestionAnswering.forward.example",$$slots:{default:[oL]},$$scope:{ctx:N}}}),fs=new Ue({}),gs=new W({props:{name:"class transformers.TFRobertaPreLayerNormModel",anchor:"transformers.TFRobertaPreLayerNormModel",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFRobertaPreLayerNormModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig">RobertaPreLayerNormConfig</a>) &#x2014; Model configuration class with all the parameters of the
model. Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.27.1/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_tf_roberta_prelayernorm.py#L923"}}),Zn=new je({props:{$$slots:{default:[nL]},$$scope:{ctx:N}}}),vs=new W({props:{name:"call",anchor:"transformers.TFRobertaPreLayerNormModel.call",parameters:[{name:"input_ids",val:": typing.Union[typing.List[tensorflow.python.framework.ops.Tensor], typing.List[numpy.ndarray], typing.List[keras.engine.keras_tensor.KerasTensor], typing.Dict[str, tensorflow.python.framework.ops.Tensor], typing.Dict[str, numpy.ndarray], typing.Dict[str, keras.engine.keras_tensor.KerasTensor], tensorflow.python.framework.ops.Tensor, numpy.ndarray, keras.engine.keras_tensor.KerasTensor, NoneType] = None"},{name:"attention_mask",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"token_type_ids",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"position_ids",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"head_mask",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"inputs_embeds",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"encoder_hidden_states",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"encoder_attention_mask",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"past_key_values",val:": typing.Union[typing.Tuple[typing.Tuple[typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor]]], NoneType] = None"},{name:"use_cache",val:": typing.Optional[bool] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"training",val:": typing.Optional[bool] = False"}],parametersDescription:[{anchor:"transformers.TFRobertaPreLayerNormModel.call.input_ids",description:`<strong>input_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.TFRobertaPreLayerNormModel.call.attention_mask",description:`<strong>attention_mask</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.TFRobertaPreLayerNormModel.call.token_type_ids",description:`<strong>token_type_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.TFRobertaPreLayerNormModel.call.position_ids",description:`<strong>position_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.TFRobertaPreLayerNormModel.call.head_mask",description:`<strong>head_mask</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.TFRobertaPreLayerNormModel.call.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <code>input_ids</code> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.TFRobertaPreLayerNormModel.call.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail. This argument can be used only in eager mode, in graph mode the value in the
config will be used instead.`,name:"output_attentions"},{anchor:"transformers.TFRobertaPreLayerNormModel.call.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail. This argument can be used only in eager mode, in graph mode the value in the config will be
used instead.`,name:"output_hidden_states"},{anchor:"transformers.TFRobertaPreLayerNormModel.call.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used in
eager mode, in graph mode the value will always be set to True.`,name:"return_dict"},{anchor:"transformers.TFRobertaPreLayerNormModel.call.training",description:`<strong>training</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to use the model in training mode (some modules like dropout modules have different
behaviors between training and evaluation).`,name:"training"},{anchor:"transformers.TFRobertaPreLayerNormModel.call.encoder_hidden_states",description:`<strong>encoder_hidden_states</strong>  (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Sequence of hidden-states at the output of the last layer of the encoder. Used in the cross-attention if
the model is configured as a decoder.`,name:"encoder_hidden_states"},{anchor:"transformers.TFRobertaPreLayerNormModel.call.encoder_attention_mask",description:`<strong>encoder_attention_mask</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on the padding token indices of the encoder input. This mask is used in
the cross-attention if the model is configured as a decoder. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>`,name:"encoder_attention_mask"},{anchor:"transformers.TFRobertaPreLayerNormModel.call.past_key_values",description:`<strong>past_key_values</strong> (<code>Tuple[Tuple[tf.Tensor]]</code> of length <code>config.n_layers</code>) &#x2014;
contains precomputed key and value hidden states of the attention blocks. Can be used to speed up decoding.
If <code>past_key_values</code> are used, the user can optionally input only the last <code>decoder_input_ids</code> (those that
don&#x2019;t have their past key value states given to this model) of shape <code>(batch_size, 1)</code> instead of all
<code>decoder_input_ids</code> of shape <code>(batch_size, sequence_length)</code>.`,name:"past_key_values"},{anchor:"transformers.TFRobertaPreLayerNormModel.call.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
If set to <code>True</code>, <code>past_key_values</code> key value states are returned and can be used to speed up decoding (see
<code>past_key_values</code>). Set to <code>False</code> during training, <code>True</code> during generation`,name:"use_cache"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_tf_roberta_prelayernorm.py#L928",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_tf_outputs.TFBaseModelOutputWithPoolingAndCrossAttentions"
>transformers.modeling_tf_outputs.TFBaseModelOutputWithPoolingAndCrossAttentions</a> or a tuple of <code>tf.Tensor</code> (if
<code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various elements depending on the
configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) \u2014 Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>pooler_output</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, hidden_size)</code>) \u2014 Last layer hidden-state of the first token of the sequence (classification token) further processed by a
Linear layer and a Tanh activation function. The Linear layer weights are trained from the next sentence
prediction (classification) objective during pretraining.</p>
<p>This output is usually <em>not</em> a good summary of the semantic content of the input, you\u2019re often better with
averaging or pooling the sequence of hidden-states for the whole input sequence.</p>
</li>
<li>
<p><strong>past_key_values</strong> (<code>List[tf.Tensor]</code>, <em>optional</em>, returned when <code>use_cache=True</code> is passed or when <code>config.use_cache=True</code>) \u2014 List of <code>tf.Tensor</code> of length <code>config.n_layers</code>, with each tensor of shape <code>(2, batch_size, num_heads, sequence_length, embed_size_per_head)</code>).</p>
<p>Contains pre-computed hidden-states (key and values in the attention blocks) that can be used (see
<code>past_key_values</code> input) to speed up sequential decoding.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
<li>
<p><strong>cross_attentions</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights of the decoder\u2019s cross-attention layer, after the attention softmax, used to compute the
weighted average in the cross-attention heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_tf_outputs.TFBaseModelOutputWithPoolingAndCrossAttentions"
>transformers.modeling_tf_outputs.TFBaseModelOutputWithPoolingAndCrossAttentions</a> or <code>tuple(tf.Tensor)</code></p>
`}}),er=new je({props:{$$slots:{default:[rL]},$$scope:{ctx:N}}}),tr=new Ae({props:{anchor:"transformers.TFRobertaPreLayerNormModel.call.example",$$slots:{default:[aL]},$$scope:{ctx:N}}}),ks=new Ue({}),Ts=new W({props:{name:"class transformers.TFRobertaPreLayerNormForCausalLM",anchor:"transformers.TFRobertaPreLayerNormForCausalLM",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_tf_roberta_prelayernorm.py#L1158"}}),ws=new W({props:{name:"call",anchor:"transformers.TFRobertaPreLayerNormForCausalLM.call",parameters:[{name:"input_ids",val:": typing.Union[typing.List[tensorflow.python.framework.ops.Tensor], typing.List[numpy.ndarray], typing.List[keras.engine.keras_tensor.KerasTensor], typing.Dict[str, tensorflow.python.framework.ops.Tensor], typing.Dict[str, numpy.ndarray], typing.Dict[str, keras.engine.keras_tensor.KerasTensor], tensorflow.python.framework.ops.Tensor, numpy.ndarray, keras.engine.keras_tensor.KerasTensor, NoneType] = None"},{name:"attention_mask",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"token_type_ids",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"position_ids",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"head_mask",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"inputs_embeds",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"encoder_hidden_states",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"encoder_attention_mask",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"past_key_values",val:": typing.Union[typing.Tuple[typing.Tuple[typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor]]], NoneType] = None"},{name:"use_cache",val:": typing.Optional[bool] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"labels",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"training",val:": typing.Optional[bool] = False"}],parametersDescription:[{anchor:"transformers.TFRobertaPreLayerNormForCausalLM.call.input_ids",description:`<strong>input_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.TFRobertaPreLayerNormForCausalLM.call.attention_mask",description:`<strong>attention_mask</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.TFRobertaPreLayerNormForCausalLM.call.token_type_ids",description:`<strong>token_type_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.TFRobertaPreLayerNormForCausalLM.call.position_ids",description:`<strong>position_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.TFRobertaPreLayerNormForCausalLM.call.head_mask",description:`<strong>head_mask</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.TFRobertaPreLayerNormForCausalLM.call.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <code>input_ids</code> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.TFRobertaPreLayerNormForCausalLM.call.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail. This argument can be used only in eager mode, in graph mode the value in the
config will be used instead.`,name:"output_attentions"},{anchor:"transformers.TFRobertaPreLayerNormForCausalLM.call.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail. This argument can be used only in eager mode, in graph mode the value in the config will be
used instead.`,name:"output_hidden_states"},{anchor:"transformers.TFRobertaPreLayerNormForCausalLM.call.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used in
eager mode, in graph mode the value will always be set to True.`,name:"return_dict"},{anchor:"transformers.TFRobertaPreLayerNormForCausalLM.call.training",description:`<strong>training</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to use the model in training mode (some modules like dropout modules have different
behaviors between training and evaluation).`,name:"training"},{anchor:"transformers.TFRobertaPreLayerNormForCausalLM.call.encoder_hidden_states",description:`<strong>encoder_hidden_states</strong>  (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Sequence of hidden-states at the output of the last layer of the encoder. Used in the cross-attention if
the model is configured as a decoder.`,name:"encoder_hidden_states"},{anchor:"transformers.TFRobertaPreLayerNormForCausalLM.call.encoder_attention_mask",description:`<strong>encoder_attention_mask</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on the padding token indices of the encoder input. This mask is used in
the cross-attention if the model is configured as a decoder. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>`,name:"encoder_attention_mask"},{anchor:"transformers.TFRobertaPreLayerNormForCausalLM.call.past_key_values",description:`<strong>past_key_values</strong> (<code>Tuple[Tuple[tf.Tensor]]</code> of length <code>config.n_layers</code>) &#x2014;
contains precomputed key and value hidden states of the attention blocks. Can be used to speed up decoding.
If <code>past_key_values</code> are used, the user can optionally input only the last <code>decoder_input_ids</code> (those that
don&#x2019;t have their past key value states given to this model) of shape <code>(batch_size, 1)</code> instead of all
<code>decoder_input_ids</code> of shape <code>(batch_size, sequence_length)</code>.`,name:"past_key_values"},{anchor:"transformers.TFRobertaPreLayerNormForCausalLM.call.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
If set to <code>True</code>, <code>past_key_values</code> key value states are returned and can be used to speed up decoding (see
<code>past_key_values</code>). Set to <code>False</code> during training, <code>True</code> during generation`,name:"use_cache"},{anchor:"transformers.TFRobertaPreLayerNormForCausalLM.call.labels",description:`<strong>labels</strong> (<code>tf.Tensor</code> or <code>np.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Labels for computing the cross entropy classification loss. Indices should be in <code>[0, ..., config.vocab_size - 1]</code>.`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_tf_roberta_prelayernorm.py#L1197",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_tf_outputs.TFCausalLMOutputWithCrossAttentions"
>transformers.modeling_tf_outputs.TFCausalLMOutputWithCrossAttentions</a> or a tuple of <code>tf.Tensor</code> (if
<code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various elements depending on the
configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>tf.Tensor</code> of shape <code>(n,)</code>, <em>optional</em>, where n is the number of non-masked labels, returned when <code>labels</code> is provided) \u2014 Language modeling loss (for next-token prediction).</p>
</li>
<li>
<p><strong>logits</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, config.vocab_size)</code>) \u2014 Prediction scores of the language modeling head (scores for each vocabulary token before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
<li>
<p><strong>cross_attentions</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights of the decoder\u2019s cross-attention layer, after the attention softmax, used to compute the
weighted average in the cross-attention heads.</p>
</li>
<li>
<p><strong>past_key_values</strong> (<code>List[tf.Tensor]</code>, <em>optional</em>, returned when <code>use_cache=True</code> is passed or when <code>config.use_cache=True</code>) \u2014 List of <code>tf.Tensor</code> of length <code>config.n_layers</code>, with each tensor of shape <code>(2, batch_size, num_heads, sequence_length, embed_size_per_head)</code>).</p>
<p>Contains pre-computed hidden-states (key and values in the attention blocks) that can be used (see
<code>past_key_values</code> input) to speed up sequential decoding.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_tf_outputs.TFCausalLMOutputWithCrossAttentions"
>transformers.modeling_tf_outputs.TFCausalLMOutputWithCrossAttentions</a> or <code>tuple(tf.Tensor)</code></p>
`}}),nr=new je({props:{$$slots:{default:[sL]},$$scope:{ctx:N}}}),rr=new Ae({props:{anchor:"transformers.TFRobertaPreLayerNormForCausalLM.call.example",$$slots:{default:[iL]},$$scope:{ctx:N}}}),$s=new Ue({}),Ps=new W({props:{name:"class transformers.TFRobertaPreLayerNormForMaskedLM",anchor:"transformers.TFRobertaPreLayerNormForMaskedLM",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFRobertaPreLayerNormForMaskedLM.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig">RobertaPreLayerNormConfig</a>) &#x2014; Model configuration class with all the parameters of the
model. Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.27.1/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_tf_roberta_prelayernorm.py#L1069"}}),sr=new je({props:{$$slots:{default:[lL]},$$scope:{ctx:N}}}),Ms=new W({props:{name:"call",anchor:"transformers.TFRobertaPreLayerNormForMaskedLM.call",parameters:[{name:"input_ids",val:": typing.Union[typing.List[tensorflow.python.framework.ops.Tensor], typing.List[numpy.ndarray], typing.List[keras.engine.keras_tensor.KerasTensor], typing.Dict[str, tensorflow.python.framework.ops.Tensor], typing.Dict[str, numpy.ndarray], typing.Dict[str, keras.engine.keras_tensor.KerasTensor], tensorflow.python.framework.ops.Tensor, numpy.ndarray, keras.engine.keras_tensor.KerasTensor, NoneType] = None"},{name:"attention_mask",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"token_type_ids",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"position_ids",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"head_mask",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"inputs_embeds",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"labels",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"training",val:": typing.Optional[bool] = False"}],parametersDescription:[{anchor:"transformers.TFRobertaPreLayerNormForMaskedLM.call.input_ids",description:`<strong>input_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.TFRobertaPreLayerNormForMaskedLM.call.attention_mask",description:`<strong>attention_mask</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.TFRobertaPreLayerNormForMaskedLM.call.token_type_ids",description:`<strong>token_type_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.TFRobertaPreLayerNormForMaskedLM.call.position_ids",description:`<strong>position_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.TFRobertaPreLayerNormForMaskedLM.call.head_mask",description:`<strong>head_mask</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.TFRobertaPreLayerNormForMaskedLM.call.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <code>input_ids</code> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.TFRobertaPreLayerNormForMaskedLM.call.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail. This argument can be used only in eager mode, in graph mode the value in the
config will be used instead.`,name:"output_attentions"},{anchor:"transformers.TFRobertaPreLayerNormForMaskedLM.call.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail. This argument can be used only in eager mode, in graph mode the value in the config will be
used instead.`,name:"output_hidden_states"},{anchor:"transformers.TFRobertaPreLayerNormForMaskedLM.call.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used in
eager mode, in graph mode the value will always be set to True.`,name:"return_dict"},{anchor:"transformers.TFRobertaPreLayerNormForMaskedLM.call.training",description:`<strong>training</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to use the model in training mode (some modules like dropout modules have different
behaviors between training and evaluation).`,name:"training"},{anchor:"transformers.TFRobertaPreLayerNormForMaskedLM.call.labels",description:`<strong>labels</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Labels for computing the masked language modeling loss. Indices should be in <code>[-100, 0, ..., config.vocab_size]</code> (see <code>input_ids</code> docstring) Tokens with indices set to <code>-100</code> are ignored (masked), the
loss is only computed for the tokens with labels in <code>[0, ..., config.vocab_size]</code>`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_tf_roberta_prelayernorm.py#L1089",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_tf_outputs.TFMaskedLMOutput"
>transformers.modeling_tf_outputs.TFMaskedLMOutput</a> or a tuple of <code>tf.Tensor</code> (if
<code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various elements depending on the
configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>tf.Tensor</code> of shape <code>(n,)</code>, <em>optional</em>, where n is the number of non-masked labels, returned when <code>labels</code> is provided) \u2014 Masked language modeling (MLM) loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, config.vocab_size)</code>) \u2014 Prediction scores of the language modeling head (scores for each vocabulary token before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_tf_outputs.TFMaskedLMOutput"
>transformers.modeling_tf_outputs.TFMaskedLMOutput</a> or <code>tuple(tf.Tensor)</code></p>
`}}),ir=new je({props:{$$slots:{default:[dL]},$$scope:{ctx:N}}}),lr=new Ae({props:{anchor:"transformers.TFRobertaPreLayerNormForMaskedLM.call.example",$$slots:{default:[cL]},$$scope:{ctx:N}}}),dr=new Ae({props:{anchor:"transformers.TFRobertaPreLayerNormForMaskedLM.call.example-2",$$slots:{default:[pL]},$$scope:{ctx:N}}}),Es=new Ue({}),Rs=new W({props:{name:"class transformers.TFRobertaPreLayerNormForSequenceClassification",anchor:"transformers.TFRobertaPreLayerNormForSequenceClassification",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFRobertaPreLayerNormForSequenceClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig">RobertaPreLayerNormConfig</a>) &#x2014; Model configuration class with all the parameters of the
model. Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.27.1/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_tf_roberta_prelayernorm.py#L1336"}}),pr=new je({props:{$$slots:{default:[mL]},$$scope:{ctx:N}}}),js=new W({props:{name:"call",anchor:"transformers.TFRobertaPreLayerNormForSequenceClassification.call",parameters:[{name:"input_ids",val:": typing.Union[typing.List[tensorflow.python.framework.ops.Tensor], typing.List[numpy.ndarray], typing.List[keras.engine.keras_tensor.KerasTensor], typing.Dict[str, tensorflow.python.framework.ops.Tensor], typing.Dict[str, numpy.ndarray], typing.Dict[str, keras.engine.keras_tensor.KerasTensor], tensorflow.python.framework.ops.Tensor, numpy.ndarray, keras.engine.keras_tensor.KerasTensor, NoneType] = None"},{name:"attention_mask",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"token_type_ids",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"position_ids",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"head_mask",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"inputs_embeds",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"labels",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"training",val:": typing.Optional[bool] = False"}],parametersDescription:[{anchor:"transformers.TFRobertaPreLayerNormForSequenceClassification.call.input_ids",description:`<strong>input_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.TFRobertaPreLayerNormForSequenceClassification.call.attention_mask",description:`<strong>attention_mask</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.TFRobertaPreLayerNormForSequenceClassification.call.token_type_ids",description:`<strong>token_type_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.TFRobertaPreLayerNormForSequenceClassification.call.position_ids",description:`<strong>position_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.TFRobertaPreLayerNormForSequenceClassification.call.head_mask",description:`<strong>head_mask</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.TFRobertaPreLayerNormForSequenceClassification.call.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <code>input_ids</code> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.TFRobertaPreLayerNormForSequenceClassification.call.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail. This argument can be used only in eager mode, in graph mode the value in the
config will be used instead.`,name:"output_attentions"},{anchor:"transformers.TFRobertaPreLayerNormForSequenceClassification.call.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail. This argument can be used only in eager mode, in graph mode the value in the config will be
used instead.`,name:"output_hidden_states"},{anchor:"transformers.TFRobertaPreLayerNormForSequenceClassification.call.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used in
eager mode, in graph mode the value will always be set to True.`,name:"return_dict"},{anchor:"transformers.TFRobertaPreLayerNormForSequenceClassification.call.training",description:`<strong>training</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to use the model in training mode (some modules like dropout modules have different
behaviors between training and evaluation).`,name:"training"},{anchor:"transformers.TFRobertaPreLayerNormForSequenceClassification.call.labels",description:`<strong>labels</strong> (<code>tf.Tensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the sequence classification/regression loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>. If <code>config.num_labels == 1</code> a regression loss is computed (Mean-Square loss), If
<code>config.num_labels &gt; 1</code> a classification loss is computed (Cross-Entropy).`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_tf_roberta_prelayernorm.py#L1351",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_tf_outputs.TFSequenceClassifierOutput"
>transformers.modeling_tf_outputs.TFSequenceClassifierOutput</a> or a tuple of <code>tf.Tensor</code> (if
<code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various elements depending on the
configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, )</code>, <em>optional</em>, returned when <code>labels</code> is provided) \u2014 Classification (or regression if config.num_labels==1) loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, config.num_labels)</code>) \u2014 Classification (or regression if config.num_labels==1) scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_tf_outputs.TFSequenceClassifierOutput"
>transformers.modeling_tf_outputs.TFSequenceClassifierOutput</a> or <code>tuple(tf.Tensor)</code></p>
`}}),mr=new je({props:{$$slots:{default:[hL]},$$scope:{ctx:N}}}),hr=new Ae({props:{anchor:"transformers.TFRobertaPreLayerNormForSequenceClassification.call.example",$$slots:{default:[uL]},$$scope:{ctx:N}}}),ur=new Ae({props:{anchor:"transformers.TFRobertaPreLayerNormForSequenceClassification.call.example-2",$$slots:{default:[fL]},$$scope:{ctx:N}}}),As=new Ue({}),Os=new W({props:{name:"class transformers.TFRobertaPreLayerNormForMultipleChoice",anchor:"transformers.TFRobertaPreLayerNormForMultipleChoice",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFRobertaPreLayerNormForMultipleChoice.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig">RobertaPreLayerNormConfig</a>) &#x2014; Model configuration class with all the parameters of the
model. Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.27.1/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_tf_roberta_prelayernorm.py#L1423"}}),gr=new je({props:{$$slots:{default:[gL]},$$scope:{ctx:N}}}),Ws=new W({props:{name:"call",anchor:"transformers.TFRobertaPreLayerNormForMultipleChoice.call",parameters:[{name:"input_ids",val:": typing.Union[typing.List[tensorflow.python.framework.ops.Tensor], typing.List[numpy.ndarray], typing.List[keras.engine.keras_tensor.KerasTensor], typing.Dict[str, tensorflow.python.framework.ops.Tensor], typing.Dict[str, numpy.ndarray], typing.Dict[str, keras.engine.keras_tensor.KerasTensor], tensorflow.python.framework.ops.Tensor, numpy.ndarray, keras.engine.keras_tensor.KerasTensor, NoneType] = None"},{name:"attention_mask",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"token_type_ids",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"position_ids",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"head_mask",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"inputs_embeds",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"labels",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"training",val:": typing.Optional[bool] = False"}],parametersDescription:[{anchor:"transformers.TFRobertaPreLayerNormForMultipleChoice.call.input_ids",description:`<strong>input_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, num_choices, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.TFRobertaPreLayerNormForMultipleChoice.call.attention_mask",description:`<strong>attention_mask</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, num_choices, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.TFRobertaPreLayerNormForMultipleChoice.call.token_type_ids",description:`<strong>token_type_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, num_choices, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.TFRobertaPreLayerNormForMultipleChoice.call.position_ids",description:`<strong>position_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, num_choices, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.TFRobertaPreLayerNormForMultipleChoice.call.head_mask",description:`<strong>head_mask</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.TFRobertaPreLayerNormForMultipleChoice.call.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, num_choices, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <code>input_ids</code> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.TFRobertaPreLayerNormForMultipleChoice.call.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail. This argument can be used only in eager mode, in graph mode the value in the
config will be used instead.`,name:"output_attentions"},{anchor:"transformers.TFRobertaPreLayerNormForMultipleChoice.call.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail. This argument can be used only in eager mode, in graph mode the value in the config will be
used instead.`,name:"output_hidden_states"},{anchor:"transformers.TFRobertaPreLayerNormForMultipleChoice.call.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used in
eager mode, in graph mode the value will always be set to True.`,name:"return_dict"},{anchor:"transformers.TFRobertaPreLayerNormForMultipleChoice.call.training",description:`<strong>training</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to use the model in training mode (some modules like dropout modules have different
behaviors between training and evaluation).`,name:"training"},{anchor:"transformers.TFRobertaPreLayerNormForMultipleChoice.call.labels",description:`<strong>labels</strong> (<code>tf.Tensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the multiple choice classification loss. Indices should be in <code>[0, ..., num_choices]</code>
where <code>num_choices</code> is the size of the second dimension of the input tensors. (See <code>input_ids</code> above)`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_tf_roberta_prelayernorm.py#L1447",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_tf_outputs.TFMultipleChoiceModelOutput"
>transformers.modeling_tf_outputs.TFMultipleChoiceModelOutput</a> or a tuple of <code>tf.Tensor</code> (if
<code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various elements depending on the
configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>tf.Tensor</code> of shape <em>(batch_size, )</em>, <em>optional</em>, returned when <code>labels</code> is provided) \u2014 Classification loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, num_choices)</code>) \u2014 <em>num_choices</em> is the second dimension of the input tensors. (see <em>input_ids</em> above).</p>
<p>Classification scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_tf_outputs.TFMultipleChoiceModelOutput"
>transformers.modeling_tf_outputs.TFMultipleChoiceModelOutput</a> or <code>tuple(tf.Tensor)</code></p>
`}}),_r=new je({props:{$$slots:{default:[_L]},$$scope:{ctx:N}}}),yr=new Ae({props:{anchor:"transformers.TFRobertaPreLayerNormForMultipleChoice.call.example",$$slots:{default:[yL]},$$scope:{ctx:N}}}),Us=new Ue({}),Bs=new W({props:{name:"class transformers.TFRobertaPreLayerNormForTokenClassification",anchor:"transformers.TFRobertaPreLayerNormForTokenClassification",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFRobertaPreLayerNormForTokenClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig">RobertaPreLayerNormConfig</a>) &#x2014; Model configuration class with all the parameters of the
model. Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.27.1/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_tf_roberta_prelayernorm.py#L1545"}}),vr=new je({props:{$$slots:{default:[bL]},$$scope:{ctx:N}}}),Vs=new W({props:{name:"call",anchor:"transformers.TFRobertaPreLayerNormForTokenClassification.call",parameters:[{name:"input_ids",val:": typing.Union[typing.List[tensorflow.python.framework.ops.Tensor], typing.List[numpy.ndarray], typing.List[keras.engine.keras_tensor.KerasTensor], typing.Dict[str, tensorflow.python.framework.ops.Tensor], typing.Dict[str, numpy.ndarray], typing.Dict[str, keras.engine.keras_tensor.KerasTensor], tensorflow.python.framework.ops.Tensor, numpy.ndarray, keras.engine.keras_tensor.KerasTensor, NoneType] = None"},{name:"attention_mask",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"token_type_ids",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"position_ids",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"head_mask",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"inputs_embeds",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"labels",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"training",val:": typing.Optional[bool] = False"}],parametersDescription:[{anchor:"transformers.TFRobertaPreLayerNormForTokenClassification.call.input_ids",description:`<strong>input_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.TFRobertaPreLayerNormForTokenClassification.call.attention_mask",description:`<strong>attention_mask</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.TFRobertaPreLayerNormForTokenClassification.call.token_type_ids",description:`<strong>token_type_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.TFRobertaPreLayerNormForTokenClassification.call.position_ids",description:`<strong>position_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.TFRobertaPreLayerNormForTokenClassification.call.head_mask",description:`<strong>head_mask</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.TFRobertaPreLayerNormForTokenClassification.call.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <code>input_ids</code> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.TFRobertaPreLayerNormForTokenClassification.call.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail. This argument can be used only in eager mode, in graph mode the value in the
config will be used instead.`,name:"output_attentions"},{anchor:"transformers.TFRobertaPreLayerNormForTokenClassification.call.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail. This argument can be used only in eager mode, in graph mode the value in the config will be
used instead.`,name:"output_hidden_states"},{anchor:"transformers.TFRobertaPreLayerNormForTokenClassification.call.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used in
eager mode, in graph mode the value will always be set to True.`,name:"return_dict"},{anchor:"transformers.TFRobertaPreLayerNormForTokenClassification.call.training",description:`<strong>training</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to use the model in training mode (some modules like dropout modules have different
behaviors between training and evaluation).`,name:"training"},{anchor:"transformers.TFRobertaPreLayerNormForTokenClassification.call.labels",description:`<strong>labels</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Labels for computing the token classification loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>.`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_tf_roberta_prelayernorm.py#L1565",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_tf_outputs.TFTokenClassifierOutput"
>transformers.modeling_tf_outputs.TFTokenClassifierOutput</a> or a tuple of <code>tf.Tensor</code> (if
<code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various elements depending on the
configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>tf.Tensor</code> of shape <code>(n,)</code>, <em>optional</em>, where n is the number of unmasked labels, returned when <code>labels</code> is provided)  \u2014 Classification loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, config.num_labels)</code>) \u2014 Classification scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_tf_outputs.TFTokenClassifierOutput"
>transformers.modeling_tf_outputs.TFTokenClassifierOutput</a> or <code>tuple(tf.Tensor)</code></p>
`}}),kr=new je({props:{$$slots:{default:[vL]},$$scope:{ctx:N}}}),Tr=new Ae({props:{anchor:"transformers.TFRobertaPreLayerNormForTokenClassification.call.example",$$slots:{default:[kL]},$$scope:{ctx:N}}}),wr=new Ae({props:{anchor:"transformers.TFRobertaPreLayerNormForTokenClassification.call.example-2",$$slots:{default:[TL]},$$scope:{ctx:N}}}),Js=new Ue({}),Gs=new W({props:{name:"class transformers.TFRobertaPreLayerNormForQuestionAnswering",anchor:"transformers.TFRobertaPreLayerNormForQuestionAnswering",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFRobertaPreLayerNormForQuestionAnswering.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig">RobertaPreLayerNormConfig</a>) &#x2014; Model configuration class with all the parameters of the
model. Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.27.1/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_tf_roberta_prelayernorm.py#L1636"}}),Pr=new je({props:{$$slots:{default:[wL]},$$scope:{ctx:N}}}),ei=new W({props:{name:"call",anchor:"transformers.TFRobertaPreLayerNormForQuestionAnswering.call",parameters:[{name:"input_ids",val:": typing.Union[typing.List[tensorflow.python.framework.ops.Tensor], typing.List[numpy.ndarray], typing.List[keras.engine.keras_tensor.KerasTensor], typing.Dict[str, tensorflow.python.framework.ops.Tensor], typing.Dict[str, numpy.ndarray], typing.Dict[str, keras.engine.keras_tensor.KerasTensor], tensorflow.python.framework.ops.Tensor, numpy.ndarray, keras.engine.keras_tensor.KerasTensor, NoneType] = None"},{name:"attention_mask",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"token_type_ids",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"position_ids",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"head_mask",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"inputs_embeds",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"start_positions",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"end_positions",val:": typing.Union[numpy.ndarray, tensorflow.python.framework.ops.Tensor, NoneType] = None"},{name:"training",val:": typing.Optional[bool] = False"}],parametersDescription:[{anchor:"transformers.TFRobertaPreLayerNormForQuestionAnswering.call.input_ids",description:`<strong>input_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.TFRobertaPreLayerNormForQuestionAnswering.call.attention_mask",description:`<strong>attention_mask</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.TFRobertaPreLayerNormForQuestionAnswering.call.token_type_ids",description:`<strong>token_type_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.TFRobertaPreLayerNormForQuestionAnswering.call.position_ids",description:`<strong>position_ids</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.TFRobertaPreLayerNormForQuestionAnswering.call.head_mask",description:`<strong>head_mask</strong> (<code>Numpy array</code> or <code>tf.Tensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.TFRobertaPreLayerNormForQuestionAnswering.call.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <code>input_ids</code> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.TFRobertaPreLayerNormForQuestionAnswering.call.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail. This argument can be used only in eager mode, in graph mode the value in the
config will be used instead.`,name:"output_attentions"},{anchor:"transformers.TFRobertaPreLayerNormForQuestionAnswering.call.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail. This argument can be used only in eager mode, in graph mode the value in the config will be
used instead.`,name:"output_hidden_states"},{anchor:"transformers.TFRobertaPreLayerNormForQuestionAnswering.call.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple. This argument can be used in
eager mode, in graph mode the value will always be set to True.`,name:"return_dict"},{anchor:"transformers.TFRobertaPreLayerNormForQuestionAnswering.call.training",description:`<strong>training</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to use the model in training mode (some modules like dropout modules have different
behaviors between training and evaluation).`,name:"training"},{anchor:"transformers.TFRobertaPreLayerNormForQuestionAnswering.call.start_positions",description:`<strong>start_positions</strong> (<code>tf.Tensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for position (index) of the start of the labelled span for computing the token classification loss.
Positions are clamped to the length of the sequence (<code>sequence_length</code>). Position outside of the sequence
are not taken into account for computing the loss.`,name:"start_positions"},{anchor:"transformers.TFRobertaPreLayerNormForQuestionAnswering.call.end_positions",description:`<strong>end_positions</strong> (<code>tf.Tensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for position (index) of the end of the labelled span for computing the token classification loss.
Positions are clamped to the length of the sequence (<code>sequence_length</code>). Position outside of the sequence
are not taken into account for computing the loss.`,name:"end_positions"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_tf_roberta_prelayernorm.py#L1651",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_tf_outputs.TFQuestionAnsweringModelOutput"
>transformers.modeling_tf_outputs.TFQuestionAnsweringModelOutput</a> or a tuple of <code>tf.Tensor</code> (if
<code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various elements depending on the
configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, )</code>, <em>optional</em>, returned when <code>start_positions</code> and <code>end_positions</code> are provided) \u2014 Total span extraction loss is the sum of a Cross-Entropy for the start and end positions.</p>
</li>
<li>
<p><strong>start_logits</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>) \u2014 Span-start scores (before SoftMax).</p>
</li>
<li>
<p><strong>end_logits</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>) \u2014 Span-end scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_tf_outputs.TFQuestionAnsweringModelOutput"
>transformers.modeling_tf_outputs.TFQuestionAnsweringModelOutput</a> or <code>tuple(tf.Tensor)</code></p>
`}}),Fr=new je({props:{$$slots:{default:[$L]},$$scope:{ctx:N}}}),Nr=new Ae({props:{anchor:"transformers.TFRobertaPreLayerNormForQuestionAnswering.call.example",$$slots:{default:[PL]},$$scope:{ctx:N}}}),Lr=new Ae({props:{anchor:"transformers.TFRobertaPreLayerNormForQuestionAnswering.call.example-2",$$slots:{default:[FL]},$$scope:{ctx:N}}}),ti=new Ue({}),oi=new W({props:{name:"class transformers.FlaxRobertaPreLayerNormModel",anchor:"transformers.FlaxRobertaPreLayerNormModel",parameters:[{name:"config",val:": RobertaPreLayerNormConfig"},{name:"input_shape",val:": typing.Tuple = (1, 1)"},{name:"seed",val:": int = 0"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"_do_init",val:": bool = True"},{name:"gradient_checkpointing",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxRobertaPreLayerNormModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig">RobertaPreLayerNormConfig</a>) &#x2014; Model configuration class with all the parameters of the
model. Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.27.1/en/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_flax_roberta_prelayernorm.py#L995"}}),ci=new W({props:{name:"__call__",anchor:"transformers.FlaxRobertaPreLayerNormModel.__call__",parameters:[{name:"input_ids",val:""},{name:"attention_mask",val:" = None"},{name:"token_type_ids",val:" = None"},{name:"position_ids",val:" = None"},{name:"head_mask",val:" = None"},{name:"encoder_hidden_states",val:" = None"},{name:"encoder_attention_mask",val:" = None"},{name:"params",val:": dict = None"},{name:"dropout_rng",val:": PRNGKey = None"},{name:"train",val:": bool = False"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"past_key_values",val:": dict = None"}],parametersDescription:[{anchor:"transformers.FlaxRobertaPreLayerNormModel.__call__.input_ids",description:`<strong>input_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormModel.__call__.attention_mask",description:`<strong>attention_mask</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.FlaxRobertaPreLayerNormModel.__call__.token_type_ids",description:`<strong>token_type_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormModel.__call__.position_ids",description:`<strong>position_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.`,name:"position_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormModel.__call__.head_mask",description:`<strong>head_mask</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <code>optional) -- Mask to nullify selected heads of the attention modules. Mask values selected in </code>[0, 1]\`:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.FlaxRobertaPreLayerNormModel.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_flax_roberta_prelayernorm.py#L819",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling"
>transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>jnp.ndarray</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) \u2014 Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>pooler_output</strong> (<code>jnp.ndarray</code> of shape <code>(batch_size, hidden_size)</code>) \u2014 Last layer hidden-state of the first token of the sequence (classification token) further processed by a
Linear layer and a Tanh activation function. The Linear layer weights are trained from the next sentence
prediction (classification) objective during pretraining.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(jnp.ndarray)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>jnp.ndarray</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(jnp.ndarray)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>jnp.ndarray</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling"
>transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Mr=new je({props:{$$slots:{default:[NL]},$$scope:{ctx:N}}}),Er=new Ae({props:{anchor:"transformers.FlaxRobertaPreLayerNormModel.__call__.example",$$slots:{default:[LL]},$$scope:{ctx:N}}}),pi=new Ue({}),mi=new W({props:{name:"class transformers.FlaxRobertaPreLayerNormForCausalLM",anchor:"transformers.FlaxRobertaPreLayerNormForCausalLM",parameters:[{name:"config",val:": RobertaPreLayerNormConfig"},{name:"input_shape",val:": typing.Tuple = (1, 1)"},{name:"seed",val:": int = 0"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"_do_init",val:": bool = True"},{name:"gradient_checkpointing",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxRobertaPreLayerNormForCausalLM.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig">RobertaPreLayerNormConfig</a>) &#x2014; Model configuration class with all the parameters of the
model. Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.27.1/en/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_flax_roberta_prelayernorm.py#L1478"}}),vi=new W({props:{name:"__call__",anchor:"transformers.FlaxRobertaPreLayerNormForCausalLM.__call__",parameters:[{name:"input_ids",val:""},{name:"attention_mask",val:" = None"},{name:"token_type_ids",val:" = None"},{name:"position_ids",val:" = None"},{name:"head_mask",val:" = None"},{name:"encoder_hidden_states",val:" = None"},{name:"encoder_attention_mask",val:" = None"},{name:"params",val:": dict = None"},{name:"dropout_rng",val:": PRNGKey = None"},{name:"train",val:": bool = False"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"past_key_values",val:": dict = None"}],parametersDescription:[{anchor:"transformers.FlaxRobertaPreLayerNormForCausalLM.__call__.input_ids",description:`<strong>input_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormForCausalLM.__call__.attention_mask",description:`<strong>attention_mask</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.FlaxRobertaPreLayerNormForCausalLM.__call__.token_type_ids",description:`<strong>token_type_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormForCausalLM.__call__.position_ids",description:`<strong>position_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.`,name:"position_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormForCausalLM.__call__.head_mask",description:`<strong>head_mask</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <code>optional) -- Mask to nullify selected heads of the attention modules. Mask values selected in </code>[0, 1]\`:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.FlaxRobertaPreLayerNormForCausalLM.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_flax_roberta_prelayernorm.py#L819",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_flax_outputs.FlaxCausalLMOutputWithCrossAttentions"
>transformers.modeling_flax_outputs.FlaxCausalLMOutputWithCrossAttentions</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>logits</strong> (<code>jnp.ndarray</code> of shape <code>(batch_size, sequence_length, config.vocab_size)</code>) \u2014 Prediction scores of the language modeling head (scores for each vocabulary token before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(jnp.ndarray)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>jnp.ndarray</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(jnp.ndarray)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>jnp.ndarray</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
<li>
<p><strong>cross_attentions</strong> (<code>tuple(jnp.ndarray)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>jnp.ndarray</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Cross attentions weights after the attention softmax, used to compute the weighted average in the
cross-attention heads.</p>
</li>
<li>
<p><strong>past_key_values</strong> (<code>tuple(tuple(jnp.ndarray))</code>, <em>optional</em>, returned when <code>use_cache=True</code> is passed or when <code>config.use_cache=True</code>) \u2014 Tuple of <code>jnp.ndarray</code> tuples of length <code>config.n_layers</code>, with each tuple containing the cached key, value
states of the self-attention and the cross-attention layers if model is used in encoder-decoder setting.
Only relevant if <code>config.is_decoder = True</code>.</p>
<p>Contains pre-computed hidden-states (key and values in the attention blocks) that can be used (see
<code>past_key_values</code> input) to speed up sequential decoding.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_flax_outputs.FlaxCausalLMOutputWithCrossAttentions"
>transformers.modeling_flax_outputs.FlaxCausalLMOutputWithCrossAttentions</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),zr=new je({props:{$$slots:{default:[xL]},$$scope:{ctx:N}}}),Cr=new Ae({props:{anchor:"transformers.FlaxRobertaPreLayerNormForCausalLM.__call__.example",$$slots:{default:[ML]},$$scope:{ctx:N}}}),ki=new Ue({}),Ti=new W({props:{name:"class transformers.FlaxRobertaPreLayerNormForMaskedLM",anchor:"transformers.FlaxRobertaPreLayerNormForMaskedLM",parameters:[{name:"config",val:": RobertaPreLayerNormConfig"},{name:"input_shape",val:": typing.Tuple = (1, 1)"},{name:"seed",val:": int = 0"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"_do_init",val:": bool = True"},{name:"gradient_checkpointing",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxRobertaPreLayerNormForMaskedLM.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig">RobertaPreLayerNormConfig</a>) &#x2014; Model configuration class with all the parameters of the
model. Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.27.1/en/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_flax_roberta_prelayernorm.py#L1072"}}),Ei=new W({props:{name:"__call__",anchor:"transformers.FlaxRobertaPreLayerNormForMaskedLM.__call__",parameters:[{name:"input_ids",val:""},{name:"attention_mask",val:" = None"},{name:"token_type_ids",val:" = None"},{name:"position_ids",val:" = None"},{name:"head_mask",val:" = None"},{name:"encoder_hidden_states",val:" = None"},{name:"encoder_attention_mask",val:" = None"},{name:"params",val:": dict = None"},{name:"dropout_rng",val:": PRNGKey = None"},{name:"train",val:": bool = False"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"past_key_values",val:": dict = None"}],parametersDescription:[{anchor:"transformers.FlaxRobertaPreLayerNormForMaskedLM.__call__.input_ids",description:`<strong>input_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormForMaskedLM.__call__.attention_mask",description:`<strong>attention_mask</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.FlaxRobertaPreLayerNormForMaskedLM.__call__.token_type_ids",description:`<strong>token_type_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormForMaskedLM.__call__.position_ids",description:`<strong>position_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.`,name:"position_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormForMaskedLM.__call__.head_mask",description:`<strong>head_mask</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <code>optional) -- Mask to nullify selected heads of the attention modules. Mask values selected in </code>[0, 1]\`:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.FlaxRobertaPreLayerNormForMaskedLM.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_flax_roberta_prelayernorm.py#L819",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling"
>transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>jnp.ndarray</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) \u2014 Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>pooler_output</strong> (<code>jnp.ndarray</code> of shape <code>(batch_size, hidden_size)</code>) \u2014 Last layer hidden-state of the first token of the sequence (classification token) further processed by a
Linear layer and a Tanh activation function. The Linear layer weights are trained from the next sentence
prediction (classification) objective during pretraining.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(jnp.ndarray)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>jnp.ndarray</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(jnp.ndarray)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>jnp.ndarray</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling"
>transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),jr=new je({props:{$$slots:{default:[EL]},$$scope:{ctx:N}}}),Ar=new Ae({props:{anchor:"transformers.FlaxRobertaPreLayerNormForMaskedLM.__call__.example",$$slots:{default:[RL]},$$scope:{ctx:N}}}),Ri=new Ue({}),zi=new W({props:{name:"class transformers.FlaxRobertaPreLayerNormForSequenceClassification",anchor:"transformers.FlaxRobertaPreLayerNormForSequenceClassification",parameters:[{name:"config",val:": RobertaPreLayerNormConfig"},{name:"input_shape",val:": typing.Tuple = (1, 1)"},{name:"seed",val:": int = 0"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"_do_init",val:": bool = True"},{name:"gradient_checkpointing",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxRobertaPreLayerNormForSequenceClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig">RobertaPreLayerNormConfig</a>) &#x2014; Model configuration class with all the parameters of the
model. Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.27.1/en/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_flax_roberta_prelayernorm.py#L1146"}}),Si=new W({props:{name:"__call__",anchor:"transformers.FlaxRobertaPreLayerNormForSequenceClassification.__call__",parameters:[{name:"input_ids",val:""},{name:"attention_mask",val:" = None"},{name:"token_type_ids",val:" = None"},{name:"position_ids",val:" = None"},{name:"head_mask",val:" = None"},{name:"encoder_hidden_states",val:" = None"},{name:"encoder_attention_mask",val:" = None"},{name:"params",val:": dict = None"},{name:"dropout_rng",val:": PRNGKey = None"},{name:"train",val:": bool = False"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"past_key_values",val:": dict = None"}],parametersDescription:[{anchor:"transformers.FlaxRobertaPreLayerNormForSequenceClassification.__call__.input_ids",description:`<strong>input_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormForSequenceClassification.__call__.attention_mask",description:`<strong>attention_mask</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.FlaxRobertaPreLayerNormForSequenceClassification.__call__.token_type_ids",description:`<strong>token_type_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormForSequenceClassification.__call__.position_ids",description:`<strong>position_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.`,name:"position_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormForSequenceClassification.__call__.head_mask",description:`<strong>head_mask</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <code>optional) -- Mask to nullify selected heads of the attention modules. Mask values selected in </code>[0, 1]\`:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.FlaxRobertaPreLayerNormForSequenceClassification.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_flax_roberta_prelayernorm.py#L819",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_flax_outputs.FlaxSequenceClassifierOutput"
>transformers.modeling_flax_outputs.FlaxSequenceClassifierOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>logits</strong> (<code>jnp.ndarray</code> of shape <code>(batch_size, config.num_labels)</code>) \u2014 Classification (or regression if config.num_labels==1) scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(jnp.ndarray)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>jnp.ndarray</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(jnp.ndarray)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>jnp.ndarray</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_flax_outputs.FlaxSequenceClassifierOutput"
>transformers.modeling_flax_outputs.FlaxSequenceClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Ir=new je({props:{$$slots:{default:[zL]},$$scope:{ctx:N}}}),Dr=new Ae({props:{anchor:"transformers.FlaxRobertaPreLayerNormForSequenceClassification.__call__.example",$$slots:{default:[CL]},$$scope:{ctx:N}}}),Wi=new Ue({}),Ui=new W({props:{name:"class transformers.FlaxRobertaPreLayerNormForMultipleChoice",anchor:"transformers.FlaxRobertaPreLayerNormForMultipleChoice",parameters:[{name:"config",val:": RobertaPreLayerNormConfig"},{name:"input_shape",val:": typing.Tuple = (1, 1)"},{name:"seed",val:": int = 0"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"_do_init",val:": bool = True"},{name:"gradient_checkpointing",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxRobertaPreLayerNormForMultipleChoice.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig">RobertaPreLayerNormConfig</a>) &#x2014; Model configuration class with all the parameters of the
model. Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.27.1/en/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_flax_roberta_prelayernorm.py#L1228"}}),Xi=new W({props:{name:"__call__",anchor:"transformers.FlaxRobertaPreLayerNormForMultipleChoice.__call__",parameters:[{name:"input_ids",val:""},{name:"attention_mask",val:" = None"},{name:"token_type_ids",val:" = None"},{name:"position_ids",val:" = None"},{name:"head_mask",val:" = None"},{name:"encoder_hidden_states",val:" = None"},{name:"encoder_attention_mask",val:" = None"},{name:"params",val:": dict = None"},{name:"dropout_rng",val:": PRNGKey = None"},{name:"train",val:": bool = False"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"past_key_values",val:": dict = None"}],parametersDescription:[{anchor:"transformers.FlaxRobertaPreLayerNormForMultipleChoice.__call__.input_ids",description:`<strong>input_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, num_choices, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormForMultipleChoice.__call__.attention_mask",description:`<strong>attention_mask</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, num_choices, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.FlaxRobertaPreLayerNormForMultipleChoice.__call__.token_type_ids",description:`<strong>token_type_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, num_choices, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormForMultipleChoice.__call__.position_ids",description:`<strong>position_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, num_choices, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.`,name:"position_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormForMultipleChoice.__call__.head_mask",description:`<strong>head_mask</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, num_choices, sequence_length)</code>, <code>optional) -- Mask to nullify selected heads of the attention modules. Mask values selected in </code>[0, 1]\`:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.FlaxRobertaPreLayerNormForMultipleChoice.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_flax_roberta_prelayernorm.py#L819",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_flax_outputs.FlaxMultipleChoiceModelOutput"
>transformers.modeling_flax_outputs.FlaxMultipleChoiceModelOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>logits</strong> (<code>jnp.ndarray</code> of shape <code>(batch_size, num_choices)</code>) \u2014 <em>num_choices</em> is the second dimension of the input tensors. (see <em>input_ids</em> above).</p>
<p>Classification scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(jnp.ndarray)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>jnp.ndarray</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(jnp.ndarray)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>jnp.ndarray</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_flax_outputs.FlaxMultipleChoiceModelOutput"
>transformers.modeling_flax_outputs.FlaxMultipleChoiceModelOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Wr=new je({props:{$$slots:{default:[qL]},$$scope:{ctx:N}}}),Ur=new Ae({props:{anchor:"transformers.FlaxRobertaPreLayerNormForMultipleChoice.__call__.example",$$slots:{default:[jL]},$$scope:{ctx:N}}}),Yi=new Ue({}),Zi=new W({props:{name:"class transformers.FlaxRobertaPreLayerNormForTokenClassification",anchor:"transformers.FlaxRobertaPreLayerNormForTokenClassification",parameters:[{name:"config",val:": RobertaPreLayerNormConfig"},{name:"input_shape",val:": typing.Tuple = (1, 1)"},{name:"seed",val:": int = 0"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"_do_init",val:": bool = True"},{name:"gradient_checkpointing",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxRobertaPreLayerNormForTokenClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig">RobertaPreLayerNormConfig</a>) &#x2014; Model configuration class with all the parameters of the
model. Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.27.1/en/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_flax_roberta_prelayernorm.py#L1312"}}),il=new W({props:{name:"__call__",anchor:"transformers.FlaxRobertaPreLayerNormForTokenClassification.__call__",parameters:[{name:"input_ids",val:""},{name:"attention_mask",val:" = None"},{name:"token_type_ids",val:" = None"},{name:"position_ids",val:" = None"},{name:"head_mask",val:" = None"},{name:"encoder_hidden_states",val:" = None"},{name:"encoder_attention_mask",val:" = None"},{name:"params",val:": dict = None"},{name:"dropout_rng",val:": PRNGKey = None"},{name:"train",val:": bool = False"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"past_key_values",val:": dict = None"}],parametersDescription:[{anchor:"transformers.FlaxRobertaPreLayerNormForTokenClassification.__call__.input_ids",description:`<strong>input_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormForTokenClassification.__call__.attention_mask",description:`<strong>attention_mask</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.FlaxRobertaPreLayerNormForTokenClassification.__call__.token_type_ids",description:`<strong>token_type_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormForTokenClassification.__call__.position_ids",description:`<strong>position_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.`,name:"position_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormForTokenClassification.__call__.head_mask",description:`<strong>head_mask</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <code>optional) -- Mask to nullify selected heads of the attention modules. Mask values selected in </code>[0, 1]\`:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.FlaxRobertaPreLayerNormForTokenClassification.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_flax_roberta_prelayernorm.py#L819",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_flax_outputs.FlaxTokenClassifierOutput"
>transformers.modeling_flax_outputs.FlaxTokenClassifierOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>logits</strong> (<code>jnp.ndarray</code> of shape <code>(batch_size, sequence_length, config.num_labels)</code>) \u2014 Classification scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(jnp.ndarray)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>jnp.ndarray</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(jnp.ndarray)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>jnp.ndarray</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_flax_outputs.FlaxTokenClassifierOutput"
>transformers.modeling_flax_outputs.FlaxTokenClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Qr=new je({props:{$$slots:{default:[AL]},$$scope:{ctx:N}}}),Hr=new Ae({props:{anchor:"transformers.FlaxRobertaPreLayerNormForTokenClassification.__call__.example",$$slots:{default:[OL]},$$scope:{ctx:N}}}),ll=new Ue({}),dl=new W({props:{name:"class transformers.FlaxRobertaPreLayerNormForQuestionAnswering",anchor:"transformers.FlaxRobertaPreLayerNormForQuestionAnswering",parameters:[{name:"config",val:": RobertaPreLayerNormConfig"},{name:"input_shape",val:": typing.Tuple = (1, 1)"},{name:"seed",val:": int = 0"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"_do_init",val:": bool = True"},{name:"gradient_checkpointing",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxRobertaPreLayerNormForQuestionAnswering.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig">RobertaPreLayerNormConfig</a>) &#x2014; Model configuration class with all the parameters of the
model. Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.27.1/en/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_flax_roberta_prelayernorm.py#L1390"}}),_l=new W({props:{name:"__call__",anchor:"transformers.FlaxRobertaPreLayerNormForQuestionAnswering.__call__",parameters:[{name:"input_ids",val:""},{name:"attention_mask",val:" = None"},{name:"token_type_ids",val:" = None"},{name:"position_ids",val:" = None"},{name:"head_mask",val:" = None"},{name:"encoder_hidden_states",val:" = None"},{name:"encoder_attention_mask",val:" = None"},{name:"params",val:": dict = None"},{name:"dropout_rng",val:": PRNGKey = None"},{name:"train",val:": bool = False"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"past_key_values",val:": dict = None"}],parametersDescription:[{anchor:"transformers.FlaxRobertaPreLayerNormForQuestionAnswering.__call__.input_ids",description:`<strong>input_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.27.1/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.27.1/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormForQuestionAnswering.__call__.attention_mask",description:`<strong>attention_mask</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.FlaxRobertaPreLayerNormForQuestionAnswering.__call__.token_type_ids",description:`<strong>token_type_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormForQuestionAnswering.__call__.position_ids",description:`<strong>position_ids</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.`,name:"position_ids"},{anchor:"transformers.FlaxRobertaPreLayerNormForQuestionAnswering.__call__.head_mask",description:`<strong>head_mask</strong> (<code>numpy.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <code>optional) -- Mask to nullify selected heads of the attention modules. Mask values selected in </code>[0, 1]\`:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.FlaxRobertaPreLayerNormForQuestionAnswering.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.27.1/src/transformers/models/roberta_prelayernorm/modeling_flax_roberta_prelayernorm.py#L819",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_flax_outputs.FlaxQuestionAnsweringModelOutput"
>transformers.modeling_flax_outputs.FlaxQuestionAnsweringModelOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormConfig"
>RobertaPreLayerNormConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>start_logits</strong> (<code>jnp.ndarray</code> of shape <code>(batch_size, sequence_length)</code>) \u2014 Span-start scores (before SoftMax).</p>
</li>
<li>
<p><strong>end_logits</strong> (<code>jnp.ndarray</code> of shape <code>(batch_size, sequence_length)</code>) \u2014 Span-end scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(jnp.ndarray)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>jnp.ndarray</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(jnp.ndarray)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>jnp.ndarray</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.27.1/en/main_classes/output#transformers.modeling_flax_outputs.FlaxQuestionAnsweringModelOutput"
>transformers.modeling_flax_outputs.FlaxQuestionAnsweringModelOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Vr=new je({props:{$$slots:{default:[IL]},$$scope:{ctx:N}}}),Jr=new Ae({props:{anchor:"transformers.FlaxRobertaPreLayerNormForQuestionAnswering.__call__.example",$$slots:{default:[DL]},$$scope:{ctx:N}}}),{c(){d=r("meta"),y=p(),h=r("h1"),f=r("a"),_=r("span"),k(l.$$.fragment),c=p(),x=r("span"),ye=o("RoBERTa-PreLayerNorm"),he=p(),D=r("h2"),ae=r("a"),te=r("span"),k(L.$$.fragment),be=p(),B=r("span"),ve=o("Overview"),ue=p(),A=r("p"),ke=o("The RoBERTa-PreLayerNorm model was proposed in "),se=r("a"),K=o("fairseq: A Fast, Extensible Toolkit for Sequence Modeling"),Te=o(` by Myle Ott, Sergey Edunov, Alexei Baevski, Angela Fan, Sam Gross, Nathan Ng, David Grangier, Michael Auli.
It is identical to using the `),ce=r("code"),V=o("--encoder-normalize-before"),we=o(" flag in "),ie=r("a"),J=o("fairseq"),$e=o("."),fe=p(),ee=r("p"),R=o("The abstract from the paper is the following:"),C=p(),le=r("p"),Q=r("em"),Pe=o("fairseq is an open-source sequence modeling toolkit that allows researchers and developers to train custom models for translation, summarization, language modeling, and other text generation tasks. The toolkit is based on PyTorch and supports distributed training across multiple GPUs and machines. We also support fast mixed-precision training and inference on modern GPUs."),ge=p(),U=r("p"),Fe=o("Tips:"),_e=p(),z=r("ul"),H=r("li"),G=o("The implementation is the same as "),de=r("a"),Ne=o("Roberta"),X=o(" except instead of using "),pe=r("em"),Le=o("Add and Norm"),S=o(" it does "),me=r("em"),Y=o("Norm and Add"),xe=o(". "),oe=r("em"),q=o("Add"),Me=o(" and "),j=r("em"),Ee=o("Norm"),Re=o(" refers to the Addition and LayerNormalization as described in "),v=r("a"),M=o("Attention Is All You Need"),Be=o("."),re=p(),ze=r("li"),Qe=o("This is identical to using the "),E=r("code"),He=o("--encoder-normalize-before"),Ke=o(" flag in "),De=r("a"),Ve=o("fairseq"),Je=o("."),O=p(),I=r("p"),Ge=o("This model was contributed by "),Se=r("a"),Z=o("andreasmaden"),Xe=o(`.
The original code can be found `),We=r("a"),Ce=o("here"),Ye=o("."),ne=p(),qe=r("h2"),Fn=r("a"),Od=r("span"),k(ba.$$.fragment),_f=p(),Id=r("span"),yf=o("Documentation resources"),ph=p(),ft=r("ul"),Dd=r("li"),wl=r("a"),bf=o("Text classification task guide"),vf=p(),Sd=r("li"),$l=r("a"),kf=o("Token classification task guide"),Tf=p(),Wd=r("li"),Pl=r("a"),wf=o("Question answering task guide"),$f=p(),Ud=r("li"),Fl=r("a"),Pf=o("Causal language modeling task guide"),Ff=p(),Bd=r("li"),Nl=r("a"),Nf=o("Masked language modeling task guide"),Lf=p(),Qd=r("li"),Ll=r("a"),xf=o("Multiple choice task guide"),mh=p(),xo=r("h2"),Nn=r("a"),Hd=r("span"),k(va.$$.fragment),Mf=p(),Kd=r("span"),Ef=o("RobertaPreLayerNormConfig"),hh=p(),At=r("div"),k(ka.$$.fragment),Rf=p(),so=r("p"),zf=o("This is the configuration class to store the configuration of a "),xl=r("a"),Cf=o("RobertaPreLayerNormModel"),qf=o(` or a
`),Ml=r("a"),jf=o("TFRobertaPreLayerNormModel"),Af=o(`. It is used to instantiate a RoBERTa-PreLayerNorm model according to the specified
arguments, defining the model architecture. Instantiating a configuration with the defaults will yield a similar
configuration to that of the RoBERTa-PreLayerNorm
`),Ta=r("a"),Of=o("andreasmadsen/efficient_mlm_m0.40"),If=o(" architecture."),Df=p(),Mo=r("p"),Sf=o("Configuration objects inherit from "),El=r("a"),Wf=o("PretrainedConfig"),Uf=o(` and can be used to control the model outputs. Read the
documentation from `),Rl=r("a"),Bf=o("PretrainedConfig"),Qf=o(" for more information."),Hf=p(),k(Ln.$$.fragment),uh=p(),Eo=r("h2"),xn=r("a"),Vd=r("span"),k(wa.$$.fragment),Kf=p(),Jd=r("span"),Vf=o("RobertaPreLayerNormModel"),fh=p(),Ze=r("div"),k($a.$$.fragment),Jf=p(),Gd=r("p"),Gf=o("The bare RoBERTa-PreLayerNorm Model transformer outputting raw hidden-states without any specific head on top."),Xf=p(),Pa=r("p"),Yf=o("This model inherits from "),zl=r("a"),Zf=o("PreTrainedModel"),eg=o(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),tg=p(),Fa=r("p"),og=o("This model is also a PyTorch "),Na=r("a"),ng=o("torch.nn.Module"),rg=o(` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),ag=p(),La=r("p"),sg=o(`The model can behave as an encoder (with only self-attention) as well as a decoder, in which case a layer of
cross-attention is added between the self-attention layers, following the architecture described in `),Xd=r("em"),ig=o(`Attention is
all you need`),lg=o(`_ by Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz
Kaiser and Illia Polosukhin.`),dg=p(),it=r("p"),cg=o("To behave as an decoder the model needs to be initialized with the "),Yd=r("code"),pg=o("is_decoder"),mg=o(` argument of the configuration set
to `),Zd=r("code"),hg=o("True"),ug=o(". To be used in a Seq2Seq model, the model needs to initialized with both "),ec=r("code"),fg=o("is_decoder"),gg=o(` argument and
`),tc=r("code"),_g=o("add_cross_attention"),yg=o(" set to "),oc=r("code"),bg=o("True"),vg=o("; an "),nc=r("code"),kg=o("encoder_hidden_states"),Tg=o(" is then expected as an input to the forward pass."),wg=p(),Mn=r("p"),$g=o(".. _"),rc=r("em"),Pg=o("Attention is all you need"),Fg=o(": "),xa=r("a"),Ng=o("https://arxiv.org/abs/1706.03762"),Lg=p(),Ot=r("div"),k(Ma.$$.fragment),xg=p(),Ro=r("p"),Mg=o("The "),Cl=r("a"),Eg=o("RobertaPreLayerNormModel"),Rg=o(" forward method, overrides the "),ac=r("code"),zg=o("__call__"),Cg=o(" special method."),qg=p(),k(En.$$.fragment),jg=p(),k(Rn.$$.fragment),gh=p(),zo=r("h2"),zn=r("a"),sc=r("span"),k(Ea.$$.fragment),Ag=p(),ic=r("span"),Og=o("RobertaPreLayerNormForCausalLM"),_h=p(),_t=r("div"),k(Ra.$$.fragment),Ig=p(),za=r("p"),Dg=o("RoBERTa-PreLayerNorm Model with a "),lc=r("code"),Sg=o("language modeling"),Wg=o(" head on top for CLM fine-tuning."),Ug=p(),Ca=r("p"),Bg=o("This model inherits from "),ql=r("a"),Qg=o("PreTrainedModel"),Hg=o(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),Kg=p(),qa=r("p"),Vg=o("This model is also a PyTorch "),ja=r("a"),Jg=o("torch.nn.Module"),Gg=o(` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),Xg=p(),It=r("div"),k(Aa.$$.fragment),Yg=p(),Co=r("p"),Zg=o("The "),jl=r("a"),e_=o("RobertaPreLayerNormForCausalLM"),t_=o(" forward method, overrides the "),dc=r("code"),o_=o("__call__"),n_=o(" special method."),r_=p(),k(Cn.$$.fragment),a_=p(),k(qn.$$.fragment),yh=p(),qo=r("h2"),jn=r("a"),cc=r("span"),k(Oa.$$.fragment),s_=p(),pc=r("span"),i_=o("RobertaPreLayerNormForMaskedLM"),bh=p(),yt=r("div"),k(Ia.$$.fragment),l_=p(),Da=r("p"),d_=o("RoBERTa-PreLayerNorm Model with a "),mc=r("code"),c_=o("language modeling"),p_=o(" head on top."),m_=p(),Sa=r("p"),h_=o("This model inherits from "),Al=r("a"),u_=o("PreTrainedModel"),f_=o(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),g_=p(),Wa=r("p"),__=o("This model is also a PyTorch "),Ua=r("a"),y_=o("torch.nn.Module"),b_=o(` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),v_=p(),Dt=r("div"),k(Ba.$$.fragment),k_=p(),jo=r("p"),T_=o("The "),Ol=r("a"),w_=o("RobertaPreLayerNormForMaskedLM"),$_=o(" forward method, overrides the "),hc=r("code"),P_=o("__call__"),F_=o(" special method."),N_=p(),k(An.$$.fragment),L_=p(),k(On.$$.fragment),vh=p(),Ao=r("h2"),In=r("a"),uc=r("span"),k(Qa.$$.fragment),x_=p(),fc=r("span"),M_=o("RobertaPreLayerNormForSequenceClassification"),kh=p(),bt=r("div"),k(Ha.$$.fragment),E_=p(),gc=r("p"),R_=o(`RoBERTa-PreLayerNorm Model transformer with a sequence classification/regression head on top (a linear layer on top
of the pooled output) e.g. for GLUE tasks.`),z_=p(),Ka=r("p"),C_=o("This model inherits from "),Il=r("a"),q_=o("PreTrainedModel"),j_=o(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),A_=p(),Va=r("p"),O_=o("This model is also a PyTorch "),Ja=r("a"),I_=o("torch.nn.Module"),D_=o(` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),S_=p(),$t=r("div"),k(Ga.$$.fragment),W_=p(),Oo=r("p"),U_=o("The "),Dl=r("a"),B_=o("RobertaPreLayerNormForSequenceClassification"),Q_=o(" forward method, overrides the "),_c=r("code"),H_=o("__call__"),K_=o(" special method."),V_=p(),k(Dn.$$.fragment),J_=p(),k(Sn.$$.fragment),G_=p(),k(Wn.$$.fragment),Th=p(),Io=r("h2"),Un=r("a"),yc=r("span"),k(Xa.$$.fragment),X_=p(),bc=r("span"),Y_=o("RobertaPreLayerNormForMultipleChoice"),wh=p(),vt=r("div"),k(Ya.$$.fragment),Z_=p(),vc=r("p"),ey=o(`RobertaPreLayerNorm Model with a multiple choice classification head on top (a linear layer on top of the pooled
output and a softmax) e.g. for RocStories/SWAG tasks.`),ty=p(),Za=r("p"),oy=o("This model inherits from "),Sl=r("a"),ny=o("PreTrainedModel"),ry=o(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),ay=p(),es=r("p"),sy=o("This model is also a PyTorch "),ts=r("a"),iy=o("torch.nn.Module"),ly=o(` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),dy=p(),St=r("div"),k(os.$$.fragment),cy=p(),Do=r("p"),py=o("The "),Wl=r("a"),my=o("RobertaPreLayerNormForMultipleChoice"),hy=o(" forward method, overrides the "),kc=r("code"),uy=o("__call__"),fy=o(" special method."),gy=p(),k(Bn.$$.fragment),_y=p(),k(Qn.$$.fragment),$h=p(),So=r("h2"),Hn=r("a"),Tc=r("span"),k(ns.$$.fragment),yy=p(),wc=r("span"),by=o("RobertaPreLayerNormForTokenClassification"),Ph=p(),kt=r("div"),k(rs.$$.fragment),vy=p(),$c=r("p"),ky=o(`RobertaPreLayerNorm Model with a token classification head on top (a linear layer on top of the hidden-states
output) e.g. for Named-Entity-Recognition (NER) tasks.`),Ty=p(),as=r("p"),wy=o("This model inherits from "),Ul=r("a"),$y=o("PreTrainedModel"),Py=o(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),Fy=p(),ss=r("p"),Ny=o("This model is also a PyTorch "),is=r("a"),Ly=o("torch.nn.Module"),xy=o(` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),My=p(),Wt=r("div"),k(ls.$$.fragment),Ey=p(),Wo=r("p"),Ry=o("The "),Bl=r("a"),zy=o("RobertaPreLayerNormForTokenClassification"),Cy=o(" forward method, overrides the "),Pc=r("code"),qy=o("__call__"),jy=o(" special method."),Ay=p(),k(Kn.$$.fragment),Oy=p(),k(Vn.$$.fragment),Fh=p(),Uo=r("h2"),Jn=r("a"),Fc=r("span"),k(ds.$$.fragment),Iy=p(),Nc=r("span"),Dy=o("RobertaPreLayerNormForQuestionAnswering"),Nh=p(),Tt=r("div"),k(cs.$$.fragment),Sy=p(),Bo=r("p"),Wy=o(`RobertaPreLayerNorm Model with a span classification head on top for extractive question-answering tasks like SQuAD
(a linear layers on top of the hidden-states output to compute `),Lc=r("code"),Uy=o("span start logits"),By=o(" and "),xc=r("code"),Qy=o("span end logits"),Hy=o(")."),Ky=p(),ps=r("p"),Vy=o("This model inherits from "),Ql=r("a"),Jy=o("PreTrainedModel"),Gy=o(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),Xy=p(),ms=r("p"),Yy=o("This model is also a PyTorch "),hs=r("a"),Zy=o("torch.nn.Module"),eb=o(` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),tb=p(),Ut=r("div"),k(us.$$.fragment),ob=p(),Qo=r("p"),nb=o("The "),Hl=r("a"),rb=o("RobertaPreLayerNormForQuestionAnswering"),ab=o(" forward method, overrides the "),Mc=r("code"),sb=o("__call__"),ib=o(" special method."),lb=p(),k(Gn.$$.fragment),db=p(),k(Xn.$$.fragment),Lh=p(),Ho=r("h2"),Yn=r("a"),Ec=r("span"),k(fs.$$.fragment),cb=p(),Rc=r("span"),pb=o("TFRobertaPreLayerNormModel"),xh=p(),lt=r("div"),k(gs.$$.fragment),mb=p(),zc=r("p"),hb=o("The bare RoBERTa-PreLayerNorm Model transformer outputting raw hidden-states without any specific head on top."),ub=p(),_s=r("p"),fb=o("This model inherits from "),Kl=r("a"),gb=o("TFPreTrainedModel"),_b=o(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),yb=p(),ys=r("p"),bb=o("This model is also a "),bs=r("a"),vb=o("tf.keras.Model"),kb=o(` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),Tb=p(),k(Zn.$$.fragment),wb=p(),Bt=r("div"),k(vs.$$.fragment),$b=p(),Ko=r("p"),Pb=o("The "),Vl=r("a"),Fb=o("TFRobertaPreLayerNormModel"),Nb=o(" forward method, overrides the "),Cc=r("code"),Lb=o("__call__"),xb=o(" special method."),Mb=p(),k(er.$$.fragment),Eb=p(),k(tr.$$.fragment),Mh=p(),Vo=r("h2"),or=r("a"),qc=r("span"),k(ks.$$.fragment),Rb=p(),jc=r("span"),zb=o("TFRobertaPreLayerNormForCausalLM"),Eh=p(),Jo=r("div"),k(Ts.$$.fragment),Cb=p(),Qt=r("div"),k(ws.$$.fragment),qb=p(),Go=r("p"),jb=o("The "),Jl=r("a"),Ab=o("TFRobertaPreLayerNormForCausalLM"),Ob=o(" forward method, overrides the "),Ac=r("code"),Ib=o("__call__"),Db=o(" special method."),Sb=p(),k(nr.$$.fragment),Wb=p(),k(rr.$$.fragment),Rh=p(),Xo=r("h2"),ar=r("a"),Oc=r("span"),k($s.$$.fragment),Ub=p(),Ic=r("span"),Bb=o("TFRobertaPreLayerNormForMaskedLM"),zh=p(),dt=r("div"),k(Ps.$$.fragment),Qb=p(),Fs=r("p"),Hb=o("RoBERTa-PreLayerNorm Model with a "),Dc=r("code"),Kb=o("language modeling"),Vb=o(" head on top."),Jb=p(),Ns=r("p"),Gb=o("This model inherits from "),Gl=r("a"),Xb=o("TFPreTrainedModel"),Yb=o(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),Zb=p(),Ls=r("p"),ev=o("This model is also a "),xs=r("a"),tv=o("tf.keras.Model"),ov=o(` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),nv=p(),k(sr.$$.fragment),rv=p(),Pt=r("div"),k(Ms.$$.fragment),av=p(),Yo=r("p"),sv=o("The "),Xl=r("a"),iv=o("TFRobertaPreLayerNormForMaskedLM"),lv=o(" forward method, overrides the "),Sc=r("code"),dv=o("__call__"),cv=o(" special method."),pv=p(),k(ir.$$.fragment),mv=p(),k(lr.$$.fragment),hv=p(),k(dr.$$.fragment),Ch=p(),Zo=r("h2"),cr=r("a"),Wc=r("span"),k(Es.$$.fragment),uv=p(),Uc=r("span"),fv=o("TFRobertaPreLayerNormForSequenceClassification"),qh=p(),ct=r("div"),k(Rs.$$.fragment),gv=p(),Bc=r("p"),_v=o(`RoBERTa-PreLayerNorm Model transformer with a sequence classification/regression head on top (a linear layer on top
of the pooled output) e.g. for GLUE tasks.`),yv=p(),zs=r("p"),bv=o("This model inherits from "),Yl=r("a"),vv=o("TFPreTrainedModel"),kv=o(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),Tv=p(),Cs=r("p"),wv=o("This model is also a "),qs=r("a"),$v=o("tf.keras.Model"),Pv=o(` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),Fv=p(),k(pr.$$.fragment),Nv=p(),Ft=r("div"),k(js.$$.fragment),Lv=p(),en=r("p"),xv=o("The "),Zl=r("a"),Mv=o("TFRobertaPreLayerNormForSequenceClassification"),Ev=o(" forward method, overrides the "),Qc=r("code"),Rv=o("__call__"),zv=o(" special method."),Cv=p(),k(mr.$$.fragment),qv=p(),k(hr.$$.fragment),jv=p(),k(ur.$$.fragment),jh=p(),tn=r("h2"),fr=r("a"),Hc=r("span"),k(As.$$.fragment),Av=p(),Kc=r("span"),Ov=o("TFRobertaPreLayerNormForMultipleChoice"),Ah=p(),pt=r("div"),k(Os.$$.fragment),Iv=p(),Vc=r("p"),Dv=o(`RobertaPreLayerNorm Model with a multiple choice classification head on top (a linear layer on top of the pooled
output and a softmax) e.g. for RocStories/SWAG tasks.`),Sv=p(),Is=r("p"),Wv=o("This model inherits from "),ed=r("a"),Uv=o("TFPreTrainedModel"),Bv=o(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),Qv=p(),Ds=r("p"),Hv=o("This model is also a "),Ss=r("a"),Kv=o("tf.keras.Model"),Vv=o(` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),Jv=p(),k(gr.$$.fragment),Gv=p(),Ht=r("div"),k(Ws.$$.fragment),Xv=p(),on=r("p"),Yv=o("The "),td=r("a"),Zv=o("TFRobertaPreLayerNormForMultipleChoice"),ek=o(" forward method, overrides the "),Jc=r("code"),tk=o("__call__"),ok=o(" special method."),nk=p(),k(_r.$$.fragment),rk=p(),k(yr.$$.fragment),Oh=p(),nn=r("h2"),br=r("a"),Gc=r("span"),k(Us.$$.fragment),ak=p(),Xc=r("span"),sk=o("TFRobertaPreLayerNormForTokenClassification"),Ih=p(),mt=r("div"),k(Bs.$$.fragment),ik=p(),Yc=r("p"),lk=o(`RoBERTa-PreLayerNorm Model with a token classification head on top (a linear layer on top of the hidden-states
output) e.g. for Named-Entity-Recognition (NER) tasks.`),dk=p(),Qs=r("p"),ck=o("This model inherits from "),od=r("a"),pk=o("TFPreTrainedModel"),mk=o(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),hk=p(),Hs=r("p"),uk=o("This model is also a "),Ks=r("a"),fk=o("tf.keras.Model"),gk=o(` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),_k=p(),k(vr.$$.fragment),yk=p(),Nt=r("div"),k(Vs.$$.fragment),bk=p(),rn=r("p"),vk=o("The "),nd=r("a"),kk=o("TFRobertaPreLayerNormForTokenClassification"),Tk=o(" forward method, overrides the "),Zc=r("code"),wk=o("__call__"),$k=o(" special method."),Pk=p(),k(kr.$$.fragment),Fk=p(),k(Tr.$$.fragment),Nk=p(),k(wr.$$.fragment),Dh=p(),an=r("h2"),$r=r("a"),ep=r("span"),k(Js.$$.fragment),Lk=p(),tp=r("span"),xk=o("TFRobertaPreLayerNormForQuestionAnswering"),Sh=p(),ht=r("div"),k(Gs.$$.fragment),Mk=p(),sn=r("p"),Ek=o(`RoBERTa-PreLayerNorm Model with a span classification head on top for extractive question-answering tasks like
SQuAD (a linear layers on top of the hidden-states output to compute `),op=r("code"),Rk=o("span start logits"),zk=o(" and "),np=r("code"),Ck=o("span end logits"),qk=o(")."),jk=p(),Xs=r("p"),Ak=o("This model inherits from "),rd=r("a"),Ok=o("TFPreTrainedModel"),Ik=o(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),Dk=p(),Ys=r("p"),Sk=o("This model is also a "),Zs=r("a"),Wk=o("tf.keras.Model"),Uk=o(` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),Bk=p(),k(Pr.$$.fragment),Qk=p(),Lt=r("div"),k(ei.$$.fragment),Hk=p(),ln=r("p"),Kk=o("The "),ad=r("a"),Vk=o("TFRobertaPreLayerNormForQuestionAnswering"),Jk=o(" forward method, overrides the "),rp=r("code"),Gk=o("__call__"),Xk=o(" special method."),Yk=p(),k(Fr.$$.fragment),Zk=p(),k(Nr.$$.fragment),eT=p(),k(Lr.$$.fragment),Wh=p(),dn=r("h2"),xr=r("a"),ap=r("span"),k(ti.$$.fragment),tT=p(),sp=r("span"),oT=o("FlaxRobertaPreLayerNormModel"),Uh=p(),et=r("div"),k(oi.$$.fragment),nT=p(),ip=r("p"),rT=o("The bare RoBERTa-PreLayerNorm Model transformer outputting raw hidden-states without any specific head on top."),aT=p(),ni=r("p"),sT=o("This model inherits from "),sd=r("a"),iT=o("FlaxPreTrainedModel"),lT=o(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading, saving and converting weights from PyTorch models)`),dT=p(),ri=r("p"),cT=o("This model is also a Flax Linen "),ai=r("a"),pT=o("flax.linen.Module"),mT=o(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),hT=p(),lp=r("p"),uT=o("Finally, this model supports inherent JAX features such as:"),fT=p(),io=r("ul"),dp=r("li"),si=r("a"),gT=o("Just-In-Time (JIT) compilation"),_T=p(),cp=r("li"),ii=r("a"),yT=o("Automatic Differentiation"),bT=p(),pp=r("li"),li=r("a"),vT=o("Vectorization"),kT=p(),mp=r("li"),di=r("a"),TT=o("Parallelization"),wT=p(),Kt=r("div"),k(ci.$$.fragment),$T=p(),cn=r("p"),PT=o("The "),hp=r("code"),FT=o("FlaxRobertaPreLayerNormPreTrainedModel"),NT=o(" forward method, overrides the "),up=r("code"),LT=o("__call__"),xT=o(" special method."),MT=p(),k(Mr.$$.fragment),ET=p(),k(Er.$$.fragment),Bh=p(),pn=r("h2"),Rr=r("a"),fp=r("span"),k(pi.$$.fragment),RT=p(),gp=r("span"),zT=o("FlaxRobertaPreLayerNormForCausalLM"),Qh=p(),tt=r("div"),k(mi.$$.fragment),CT=p(),_p=r("p"),qT=o(`RobertaPreLayerNorm Model with a language modeling head on top (a linear layer on top of the hidden-states output)
e.g for autoregressive tasks.`),jT=p(),hi=r("p"),AT=o("This model inherits from "),id=r("a"),OT=o("FlaxPreTrainedModel"),IT=o(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading, saving and converting weights from PyTorch models)`),DT=p(),ui=r("p"),ST=o("This model is also a Flax Linen "),fi=r("a"),WT=o("flax.linen.Module"),UT=o(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),BT=p(),yp=r("p"),QT=o("Finally, this model supports inherent JAX features such as:"),HT=p(),lo=r("ul"),bp=r("li"),gi=r("a"),KT=o("Just-In-Time (JIT) compilation"),VT=p(),vp=r("li"),_i=r("a"),JT=o("Automatic Differentiation"),GT=p(),kp=r("li"),yi=r("a"),XT=o("Vectorization"),YT=p(),Tp=r("li"),bi=r("a"),ZT=o("Parallelization"),ew=p(),Vt=r("div"),k(vi.$$.fragment),tw=p(),mn=r("p"),ow=o("The "),wp=r("code"),nw=o("FlaxRobertaPreLayerNormPreTrainedModel"),rw=o(" forward method, overrides the "),$p=r("code"),aw=o("__call__"),sw=o(" special method."),iw=p(),k(zr.$$.fragment),lw=p(),k(Cr.$$.fragment),Hh=p(),hn=r("h2"),qr=r("a"),Pp=r("span"),k(ki.$$.fragment),dw=p(),Fp=r("span"),cw=o("FlaxRobertaPreLayerNormForMaskedLM"),Kh=p(),ot=r("div"),k(Ti.$$.fragment),pw=p(),wi=r("p"),mw=o("RoBERTa-PreLayerNorm Model with a "),Np=r("code"),hw=o("language modeling"),uw=o(" head on top."),fw=p(),$i=r("p"),gw=o("This model inherits from "),ld=r("a"),_w=o("FlaxPreTrainedModel"),yw=o(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading, saving and converting weights from PyTorch models)`),bw=p(),Pi=r("p"),vw=o("This model is also a Flax Linen "),Fi=r("a"),kw=o("flax.linen.Module"),Tw=o(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),ww=p(),Lp=r("p"),$w=o("Finally, this model supports inherent JAX features such as:"),Pw=p(),co=r("ul"),xp=r("li"),Ni=r("a"),Fw=o("Just-In-Time (JIT) compilation"),Nw=p(),Mp=r("li"),Li=r("a"),Lw=o("Automatic Differentiation"),xw=p(),Ep=r("li"),xi=r("a"),Mw=o("Vectorization"),Ew=p(),Rp=r("li"),Mi=r("a"),Rw=o("Parallelization"),zw=p(),Jt=r("div"),k(Ei.$$.fragment),Cw=p(),un=r("p"),qw=o("The "),zp=r("code"),jw=o("FlaxRobertaPreLayerNormPreTrainedModel"),Aw=o(" forward method, overrides the "),Cp=r("code"),Ow=o("__call__"),Iw=o(" special method."),Dw=p(),k(jr.$$.fragment),Sw=p(),k(Ar.$$.fragment),Vh=p(),fn=r("h2"),Or=r("a"),qp=r("span"),k(Ri.$$.fragment),Ww=p(),jp=r("span"),Uw=o("FlaxRobertaPreLayerNormForSequenceClassification"),Jh=p(),nt=r("div"),k(zi.$$.fragment),Bw=p(),Ap=r("p"),Qw=o(`RobertaPreLayerNorm Model transformer with a sequence classification/regression head on top (a linear layer on top
of the pooled output) e.g. for GLUE tasks.`),Hw=p(),Ci=r("p"),Kw=o("This model inherits from "),dd=r("a"),Vw=o("FlaxPreTrainedModel"),Jw=o(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading, saving and converting weights from PyTorch models)`),Gw=p(),qi=r("p"),Xw=o("This model is also a Flax Linen "),ji=r("a"),Yw=o("flax.linen.Module"),Zw=o(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),e1=p(),Op=r("p"),t1=o("Finally, this model supports inherent JAX features such as:"),o1=p(),po=r("ul"),Ip=r("li"),Ai=r("a"),n1=o("Just-In-Time (JIT) compilation"),r1=p(),Dp=r("li"),Oi=r("a"),a1=o("Automatic Differentiation"),s1=p(),Sp=r("li"),Ii=r("a"),i1=o("Vectorization"),l1=p(),Wp=r("li"),Di=r("a"),d1=o("Parallelization"),c1=p(),Gt=r("div"),k(Si.$$.fragment),p1=p(),gn=r("p"),m1=o("The "),Up=r("code"),h1=o("FlaxRobertaPreLayerNormPreTrainedModel"),u1=o(" forward method, overrides the "),Bp=r("code"),f1=o("__call__"),g1=o(" special method."),_1=p(),k(Ir.$$.fragment),y1=p(),k(Dr.$$.fragment),Gh=p(),_n=r("h2"),Sr=r("a"),Qp=r("span"),k(Wi.$$.fragment),b1=p(),Hp=r("span"),v1=o("FlaxRobertaPreLayerNormForMultipleChoice"),Xh=p(),rt=r("div"),k(Ui.$$.fragment),k1=p(),Kp=r("p"),T1=o(`RobertaPreLayerNorm Model with a multiple choice classification head on top (a linear layer on top of the pooled
output and a softmax) e.g. for RocStories/SWAG tasks.`),w1=p(),Bi=r("p"),$1=o("This model inherits from "),cd=r("a"),P1=o("FlaxPreTrainedModel"),F1=o(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading, saving and converting weights from PyTorch models)`),N1=p(),Qi=r("p"),L1=o("This model is also a Flax Linen "),Hi=r("a"),x1=o("flax.linen.Module"),M1=o(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),E1=p(),Vp=r("p"),R1=o("Finally, this model supports inherent JAX features such as:"),z1=p(),mo=r("ul"),Jp=r("li"),Ki=r("a"),C1=o("Just-In-Time (JIT) compilation"),q1=p(),Gp=r("li"),Vi=r("a"),j1=o("Automatic Differentiation"),A1=p(),Xp=r("li"),Ji=r("a"),O1=o("Vectorization"),I1=p(),Yp=r("li"),Gi=r("a"),D1=o("Parallelization"),S1=p(),Xt=r("div"),k(Xi.$$.fragment),W1=p(),yn=r("p"),U1=o("The "),Zp=r("code"),B1=o("FlaxRobertaPreLayerNormPreTrainedModel"),Q1=o(" forward method, overrides the "),em=r("code"),H1=o("__call__"),K1=o(" special method."),V1=p(),k(Wr.$$.fragment),J1=p(),k(Ur.$$.fragment),Yh=p(),bn=r("h2"),Br=r("a"),tm=r("span"),k(Yi.$$.fragment),G1=p(),om=r("span"),X1=o("FlaxRobertaPreLayerNormForTokenClassification"),Zh=p(),at=r("div"),k(Zi.$$.fragment),Y1=p(),nm=r("p"),Z1=o(`RobertaPreLayerNorm Model with a token classification head on top (a linear layer on top of the hidden-states
output) e.g. for Named-Entity-Recognition (NER) tasks.`),e$=p(),el=r("p"),t$=o("This model inherits from "),pd=r("a"),o$=o("FlaxPreTrainedModel"),n$=o(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading, saving and converting weights from PyTorch models)`),r$=p(),tl=r("p"),a$=o("This model is also a Flax Linen "),ol=r("a"),s$=o("flax.linen.Module"),i$=o(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),l$=p(),rm=r("p"),d$=o("Finally, this model supports inherent JAX features such as:"),c$=p(),ho=r("ul"),am=r("li"),nl=r("a"),p$=o("Just-In-Time (JIT) compilation"),m$=p(),sm=r("li"),rl=r("a"),h$=o("Automatic Differentiation"),u$=p(),im=r("li"),al=r("a"),f$=o("Vectorization"),g$=p(),lm=r("li"),sl=r("a"),_$=o("Parallelization"),y$=p(),Yt=r("div"),k(il.$$.fragment),b$=p(),vn=r("p"),v$=o("The "),dm=r("code"),k$=o("FlaxRobertaPreLayerNormPreTrainedModel"),T$=o(" forward method, overrides the "),cm=r("code"),w$=o("__call__"),$$=o(" special method."),P$=p(),k(Qr.$$.fragment),F$=p(),k(Hr.$$.fragment),eu=p(),kn=r("h2"),Kr=r("a"),pm=r("span"),k(ll.$$.fragment),N$=p(),mm=r("span"),L$=o("FlaxRobertaPreLayerNormForQuestionAnswering"),tu=p(),st=r("div"),k(dl.$$.fragment),x$=p(),Tn=r("p"),M$=o(`RobertaPreLayerNorm Model with a span classification head on top for extractive question-answering tasks like SQuAD
(a linear layers on top of the hidden-states output to compute `),hm=r("code"),E$=o("span start logits"),R$=o(" and "),um=r("code"),z$=o("span end logits"),C$=o(")."),q$=p(),cl=r("p"),j$=o("This model inherits from "),md=r("a"),A$=o("FlaxPreTrainedModel"),O$=o(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading, saving and converting weights from PyTorch models)`),I$=p(),pl=r("p"),D$=o("This model is also a Flax Linen "),ml=r("a"),S$=o("flax.linen.Module"),W$=o(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),U$=p(),fm=r("p"),B$=o("Finally, this model supports inherent JAX features such as:"),Q$=p(),uo=r("ul"),gm=r("li"),hl=r("a"),H$=o("Just-In-Time (JIT) compilation"),K$=p(),_m=r("li"),ul=r("a"),V$=o("Automatic Differentiation"),J$=p(),ym=r("li"),fl=r("a"),G$=o("Vectorization"),X$=p(),bm=r("li"),gl=r("a"),Y$=o("Parallelization"),Z$=p(),Zt=r("div"),k(_l.$$.fragment),e2=p(),wn=r("p"),t2=o("The "),vm=r("code"),o2=o("FlaxRobertaPreLayerNormPreTrainedModel"),n2=o(" forward method, overrides the "),km=r("code"),r2=o("__call__"),a2=o(" special method."),s2=p(),k(Vr.$$.fragment),i2=p(),k(Jr.$$.fragment),this.h()},l(i){const b=IN('[data-svelte="svelte-1phssyn"]',document.head);d=a(b,"META",{name:!0,content:!0}),b.forEach(t),y=m(i),h=a(i,"H1",{class:!0});var yl=s(h);f=a(yl,"A",{id:!0,class:!0,href:!0});var Tm=s(f);_=a(Tm,"SPAN",{});var wm=s(_);T(l.$$.fragment,wm),wm.forEach(t),Tm.forEach(t),c=m(yl),x=a(yl,"SPAN",{});var $m=s(x);ye=n($m,"RoBERTa-PreLayerNorm"),$m.forEach(t),yl.forEach(t),he=m(i),D=a(i,"H2",{class:!0});var bl=s(D);ae=a(bl,"A",{id:!0,class:!0,href:!0});var Pm=s(ae);te=a(Pm,"SPAN",{});var Fm=s(te);T(L.$$.fragment,Fm),Fm.forEach(t),Pm.forEach(t),be=m(bl),B=a(bl,"SPAN",{});var Nm=s(B);ve=n(Nm,"Overview"),Nm.forEach(t),bl.forEach(t),ue=m(i),A=a(i,"P",{});var fo=s(A);ke=n(fo,"The RoBERTa-PreLayerNorm model was proposed in "),se=a(fo,"A",{href:!0,rel:!0});var Lm=s(se);K=n(Lm,"fairseq: A Fast, Extensible Toolkit for Sequence Modeling"),Lm.forEach(t),Te=n(fo,` by Myle Ott, Sergey Edunov, Alexei Baevski, Angela Fan, Sam Gross, Nathan Ng, David Grangier, Michael Auli.
It is identical to using the `),ce=a(fo,"CODE",{});var xm=s(ce);V=n(xm,"--encoder-normalize-before"),xm.forEach(t),we=n(fo," flag in "),ie=a(fo,"A",{href:!0,rel:!0});var Mm=s(ie);J=n(Mm,"fairseq"),Mm.forEach(t),$e=n(fo,"."),fo.forEach(t),fe=m(i),ee=a(i,"P",{});var Em=s(ee);R=n(Em,"The abstract from the paper is the following:"),Em.forEach(t),C=m(i),le=a(i,"P",{});var Rm=s(le);Q=a(Rm,"EM",{});var zm=s(Q);Pe=n(zm,"fairseq is an open-source sequence modeling toolkit that allows researchers and developers to train custom models for translation, summarization, language modeling, and other text generation tasks. The toolkit is based on PyTorch and supports distributed training across multiple GPUs and machines. We also support fast mixed-precision training and inference on modern GPUs."),zm.forEach(t),Rm.forEach(t),ge=m(i),U=a(i,"P",{});var Cm=s(U);Fe=n(Cm,"Tips:"),Cm.forEach(t),_e=m(i),z=a(i,"UL",{});var vl=s(z);H=a(vl,"LI",{});var ut=s(H);G=n(ut,"The implementation is the same as "),de=a(ut,"A",{href:!0});var qm=s(de);Ne=n(qm,"Roberta"),qm.forEach(t),X=n(ut," except instead of using "),pe=a(ut,"EM",{});var jm=s(pe);Le=n(jm,"Add and Norm"),jm.forEach(t),S=n(ut," it does "),me=a(ut,"EM",{});var Am=s(me);Y=n(Am,"Norm and Add"),Am.forEach(t),xe=n(ut,". "),oe=a(ut,"EM",{});var Om=s(oe);q=n(Om,"Add"),Om.forEach(t),Me=n(ut," and "),j=a(ut,"EM",{});var Im=s(j);Ee=n(Im,"Norm"),Im.forEach(t),Re=n(ut," refers to the Addition and LayerNormalization as described in "),v=a(ut,"A",{href:!0,rel:!0});var Dm=s(v);M=n(Dm,"Attention Is All You Need"),Dm.forEach(t),Be=n(ut,"."),ut.forEach(t),re=m(vl),ze=a(vl,"LI",{});var $n=s(ze);Qe=n($n,"This is identical to using the "),E=a($n,"CODE",{});var Sm=s(E);He=n(Sm,"--encoder-normalize-before"),Sm.forEach(t),Ke=n($n," flag in "),De=a($n,"A",{href:!0,rel:!0});var Wm=s(De);Ve=n(Wm,"fairseq"),Wm.forEach(t),Je=n($n,"."),$n.forEach(t),vl.forEach(t),O=m(i),I=a(i,"P",{});var Pn=s(I);Ge=n(Pn,"This model was contributed by "),Se=a(Pn,"A",{href:!0,rel:!0});var Um=s(Se);Z=n(Um,"andreasmaden"),Um.forEach(t),Xe=n(Pn,`.
The original code can be found `),We=a(Pn,"A",{href:!0,rel:!0});var Bm=s(We);Ce=n(Bm,"here"),Bm.forEach(t),Ye=n(Pn,"."),Pn.forEach(t),ne=m(i),qe=a(i,"H2",{class:!0});var kl=s(qe);Fn=a(kl,"A",{id:!0,class:!0,href:!0});var Qm=s(Fn);Od=a(Qm,"SPAN",{});var Hm=s(Od);T(ba.$$.fragment,Hm),Hm.forEach(t),Qm.forEach(t),_f=m(kl),Id=a(kl,"SPAN",{});var Km=s(Id);yf=n(Km,"Documentation resources"),Km.forEach(t),kl.forEach(t),ph=m(i),ft=a(i,"UL",{});var wt=s(ft);Dd=a(wt,"LI",{});var Vm=s(Dd);wl=a(Vm,"A",{href:!0});var Jm=s(wl);bf=n(Jm,"Text classification task guide"),Jm.forEach(t),Vm.forEach(t),vf=m(wt),Sd=a(wt,"LI",{});var Gm=s(Sd);$l=a(Gm,"A",{href:!0});var Xm=s($l);kf=n(Xm,"Token classification task guide"),Xm.forEach(t),Gm.forEach(t),Tf=m(wt),Wd=a(wt,"LI",{});var Ym=s(Wd);Pl=a(Ym,"A",{href:!0});var Zm=s(Pl);wf=n(Zm,"Question answering task guide"),Zm.forEach(t),Ym.forEach(t),$f=m(wt),Ud=a(wt,"LI",{});var eh=s(Ud);Fl=a(eh,"A",{href:!0});var th=s(Fl);Pf=n(th,"Causal language modeling task guide"),th.forEach(t),eh.forEach(t),Ff=m(wt),Bd=a(wt,"LI",{});var oh=s(Bd);Nl=a(oh,"A",{href:!0});var nh=s(Nl);Nf=n(nh,"Masked language modeling task guide"),nh.forEach(t),oh.forEach(t),Lf=m(wt),Qd=a(wt,"LI",{});var rh=s(Qd);Ll=a(rh,"A",{href:!0});var ah=s(Ll);xf=n(ah,"Multiple choice task guide"),ah.forEach(t),rh.forEach(t),wt.forEach(t),mh=m(i),xo=a(i,"H2",{class:!0});var Tl=s(xo);Nn=a(Tl,"A",{id:!0,class:!0,href:!0});var sh=s(Nn);Hd=a(sh,"SPAN",{});var ih=s(Hd);T(va.$$.fragment,ih),ih.forEach(t),sh.forEach(t),Mf=m(Tl),Kd=a(Tl,"SPAN",{});var lh=s(Kd);Ef=n(lh,"RobertaPreLayerNormConfig"),lh.forEach(t),Tl.forEach(t),hh=m(i),At=a(i,"DIV",{class:!0});var go=s(At);T(ka.$$.fragment,go),Rf=m(go),so=a(go,"P",{});var _o=s(so);zf=n(_o,"This is the configuration class to store the configuration of a "),xl=a(_o,"A",{href:!0});var dh=s(xl);Cf=n(dh,"RobertaPreLayerNormModel"),dh.forEach(t),qf=n(_o,` or a
`),Ml=a(_o,"A",{href:!0});var l2=s(Ml);jf=n(l2,"TFRobertaPreLayerNormModel"),l2.forEach(t),Af=n(_o,`. It is used to instantiate a RoBERTa-PreLayerNorm model according to the specified
arguments, defining the model architecture. Instantiating a configuration with the defaults will yield a similar
configuration to that of the RoBERTa-PreLayerNorm
`),Ta=a(_o,"A",{href:!0,rel:!0});var d2=s(Ta);Of=n(d2,"andreasmadsen/efficient_mlm_m0.40"),d2.forEach(t),If=n(_o," architecture."),_o.forEach(t),Df=m(go),Mo=a(go,"P",{});var hd=s(Mo);Sf=n(hd,"Configuration objects inherit from "),El=a(hd,"A",{href:!0});var c2=s(El);Wf=n(c2,"PretrainedConfig"),c2.forEach(t),Uf=n(hd,` and can be used to control the model outputs. Read the
documentation from `),Rl=a(hd,"A",{href:!0});var p2=s(Rl);Bf=n(p2,"PretrainedConfig"),p2.forEach(t),Qf=n(hd," for more information."),hd.forEach(t),Hf=m(go),T(Ln.$$.fragment,go),go.forEach(t),uh=m(i),Eo=a(i,"H2",{class:!0});var nu=s(Eo);xn=a(nu,"A",{id:!0,class:!0,href:!0});var m2=s(xn);Vd=a(m2,"SPAN",{});var h2=s(Vd);T(wa.$$.fragment,h2),h2.forEach(t),m2.forEach(t),Kf=m(nu),Jd=a(nu,"SPAN",{});var u2=s(Jd);Vf=n(u2,"RobertaPreLayerNormModel"),u2.forEach(t),nu.forEach(t),fh=m(i),Ze=a(i,"DIV",{class:!0});var gt=s(Ze);T($a.$$.fragment,gt),Jf=m(gt),Gd=a(gt,"P",{});var f2=s(Gd);Gf=n(f2,"The bare RoBERTa-PreLayerNorm Model transformer outputting raw hidden-states without any specific head on top."),f2.forEach(t),Xf=m(gt),Pa=a(gt,"P",{});var ru=s(Pa);Yf=n(ru,"This model inherits from "),zl=a(ru,"A",{href:!0});var g2=s(zl);Zf=n(g2,"PreTrainedModel"),g2.forEach(t),eg=n(ru,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),ru.forEach(t),tg=m(gt),Fa=a(gt,"P",{});var au=s(Fa);og=n(au,"This model is also a PyTorch "),Na=a(au,"A",{href:!0,rel:!0});var _2=s(Na);ng=n(_2,"torch.nn.Module"),_2.forEach(t),rg=n(au,` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),au.forEach(t),ag=m(gt),La=a(gt,"P",{});var su=s(La);sg=n(su,`The model can behave as an encoder (with only self-attention) as well as a decoder, in which case a layer of
cross-attention is added between the self-attention layers, following the architecture described in `),Xd=a(su,"EM",{});var y2=s(Xd);ig=n(y2,`Attention is
all you need`),y2.forEach(t),lg=n(su,`_ by Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz
Kaiser and Illia Polosukhin.`),su.forEach(t),dg=m(gt),it=a(gt,"P",{});var xt=s(it);cg=n(xt,"To behave as an decoder the model needs to be initialized with the "),Yd=a(xt,"CODE",{});var b2=s(Yd);pg=n(b2,"is_decoder"),b2.forEach(t),mg=n(xt,` argument of the configuration set
to `),Zd=a(xt,"CODE",{});var v2=s(Zd);hg=n(v2,"True"),v2.forEach(t),ug=n(xt,". To be used in a Seq2Seq model, the model needs to initialized with both "),ec=a(xt,"CODE",{});var k2=s(ec);fg=n(k2,"is_decoder"),k2.forEach(t),gg=n(xt,` argument and
`),tc=a(xt,"CODE",{});var T2=s(tc);_g=n(T2,"add_cross_attention"),T2.forEach(t),yg=n(xt," set to "),oc=a(xt,"CODE",{});var w2=s(oc);bg=n(w2,"True"),w2.forEach(t),vg=n(xt,"; an "),nc=a(xt,"CODE",{});var $2=s(nc);kg=n($2,"encoder_hidden_states"),$2.forEach(t),Tg=n(xt," is then expected as an input to the forward pass."),xt.forEach(t),wg=m(gt),Mn=a(gt,"P",{});var ch=s(Mn);$g=n(ch,".. _"),rc=a(ch,"EM",{});var P2=s(rc);Pg=n(P2,"Attention is all you need"),P2.forEach(t),Fg=n(ch,": "),xa=a(ch,"A",{href:!0,rel:!0});var F2=s(xa);Ng=n(F2,"https://arxiv.org/abs/1706.03762"),F2.forEach(t),ch.forEach(t),Lg=m(gt),Ot=a(gt,"DIV",{class:!0});var Gr=s(Ot);T(Ma.$$.fragment,Gr),xg=m(Gr),Ro=a(Gr,"P",{});var ud=s(Ro);Mg=n(ud,"The "),Cl=a(ud,"A",{href:!0});var N2=s(Cl);Eg=n(N2,"RobertaPreLayerNormModel"),N2.forEach(t),Rg=n(ud," forward method, overrides the "),ac=a(ud,"CODE",{});var L2=s(ac);zg=n(L2,"__call__"),L2.forEach(t),Cg=n(ud," special method."),ud.forEach(t),qg=m(Gr),T(En.$$.fragment,Gr),jg=m(Gr),T(Rn.$$.fragment,Gr),Gr.forEach(t),gt.forEach(t),gh=m(i),zo=a(i,"H2",{class:!0});var iu=s(zo);zn=a(iu,"A",{id:!0,class:!0,href:!0});var x2=s(zn);sc=a(x2,"SPAN",{});var M2=s(sc);T(Ea.$$.fragment,M2),M2.forEach(t),x2.forEach(t),Ag=m(iu),ic=a(iu,"SPAN",{});var E2=s(ic);Og=n(E2,"RobertaPreLayerNormForCausalLM"),E2.forEach(t),iu.forEach(t),_h=m(i),_t=a(i,"DIV",{class:!0});var yo=s(_t);T(Ra.$$.fragment,yo),Ig=m(yo),za=a(yo,"P",{});var lu=s(za);Dg=n(lu,"RoBERTa-PreLayerNorm Model with a "),lc=a(lu,"CODE",{});var R2=s(lc);Sg=n(R2,"language modeling"),R2.forEach(t),Wg=n(lu," head on top for CLM fine-tuning."),lu.forEach(t),Ug=m(yo),Ca=a(yo,"P",{});var du=s(Ca);Bg=n(du,"This model inherits from "),ql=a(du,"A",{href:!0});var z2=s(ql);Qg=n(z2,"PreTrainedModel"),z2.forEach(t),Hg=n(du,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),du.forEach(t),Kg=m(yo),qa=a(yo,"P",{});var cu=s(qa);Vg=n(cu,"This model is also a PyTorch "),ja=a(cu,"A",{href:!0,rel:!0});var C2=s(ja);Jg=n(C2,"torch.nn.Module"),C2.forEach(t),Gg=n(cu,` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),cu.forEach(t),Xg=m(yo),It=a(yo,"DIV",{class:!0});var Xr=s(It);T(Aa.$$.fragment,Xr),Yg=m(Xr),Co=a(Xr,"P",{});var fd=s(Co);Zg=n(fd,"The "),jl=a(fd,"A",{href:!0});var q2=s(jl);e_=n(q2,"RobertaPreLayerNormForCausalLM"),q2.forEach(t),t_=n(fd," forward method, overrides the "),dc=a(fd,"CODE",{});var j2=s(dc);o_=n(j2,"__call__"),j2.forEach(t),n_=n(fd," special method."),fd.forEach(t),r_=m(Xr),T(Cn.$$.fragment,Xr),a_=m(Xr),T(qn.$$.fragment,Xr),Xr.forEach(t),yo.forEach(t),yh=m(i),qo=a(i,"H2",{class:!0});var pu=s(qo);jn=a(pu,"A",{id:!0,class:!0,href:!0});var A2=s(jn);cc=a(A2,"SPAN",{});var O2=s(cc);T(Oa.$$.fragment,O2),O2.forEach(t),A2.forEach(t),s_=m(pu),pc=a(pu,"SPAN",{});var I2=s(pc);i_=n(I2,"RobertaPreLayerNormForMaskedLM"),I2.forEach(t),pu.forEach(t),bh=m(i),yt=a(i,"DIV",{class:!0});var bo=s(yt);T(Ia.$$.fragment,bo),l_=m(bo),Da=a(bo,"P",{});var mu=s(Da);d_=n(mu,"RoBERTa-PreLayerNorm Model with a "),mc=a(mu,"CODE",{});var D2=s(mc);c_=n(D2,"language modeling"),D2.forEach(t),p_=n(mu," head on top."),mu.forEach(t),m_=m(bo),Sa=a(bo,"P",{});var hu=s(Sa);h_=n(hu,"This model inherits from "),Al=a(hu,"A",{href:!0});var S2=s(Al);u_=n(S2,"PreTrainedModel"),S2.forEach(t),f_=n(hu,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),hu.forEach(t),g_=m(bo),Wa=a(bo,"P",{});var uu=s(Wa);__=n(uu,"This model is also a PyTorch "),Ua=a(uu,"A",{href:!0,rel:!0});var W2=s(Ua);y_=n(W2,"torch.nn.Module"),W2.forEach(t),b_=n(uu,` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),uu.forEach(t),v_=m(bo),Dt=a(bo,"DIV",{class:!0});var Yr=s(Dt);T(Ba.$$.fragment,Yr),k_=m(Yr),jo=a(Yr,"P",{});var gd=s(jo);T_=n(gd,"The "),Ol=a(gd,"A",{href:!0});var U2=s(Ol);w_=n(U2,"RobertaPreLayerNormForMaskedLM"),U2.forEach(t),$_=n(gd," forward method, overrides the "),hc=a(gd,"CODE",{});var B2=s(hc);P_=n(B2,"__call__"),B2.forEach(t),F_=n(gd," special method."),gd.forEach(t),N_=m(Yr),T(An.$$.fragment,Yr),L_=m(Yr),T(On.$$.fragment,Yr),Yr.forEach(t),bo.forEach(t),vh=m(i),Ao=a(i,"H2",{class:!0});var fu=s(Ao);In=a(fu,"A",{id:!0,class:!0,href:!0});var Q2=s(In);uc=a(Q2,"SPAN",{});var H2=s(uc);T(Qa.$$.fragment,H2),H2.forEach(t),Q2.forEach(t),x_=m(fu),fc=a(fu,"SPAN",{});var K2=s(fc);M_=n(K2,"RobertaPreLayerNormForSequenceClassification"),K2.forEach(t),fu.forEach(t),kh=m(i),bt=a(i,"DIV",{class:!0});var vo=s(bt);T(Ha.$$.fragment,vo),E_=m(vo),gc=a(vo,"P",{});var V2=s(gc);R_=n(V2,`RoBERTa-PreLayerNorm Model transformer with a sequence classification/regression head on top (a linear layer on top
of the pooled output) e.g. for GLUE tasks.`),V2.forEach(t),z_=m(vo),Ka=a(vo,"P",{});var gu=s(Ka);C_=n(gu,"This model inherits from "),Il=a(gu,"A",{href:!0});var J2=s(Il);q_=n(J2,"PreTrainedModel"),J2.forEach(t),j_=n(gu,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),gu.forEach(t),A_=m(vo),Va=a(vo,"P",{});var _u=s(Va);O_=n(_u,"This model is also a PyTorch "),Ja=a(_u,"A",{href:!0,rel:!0});var G2=s(Ja);I_=n(G2,"torch.nn.Module"),G2.forEach(t),D_=n(_u,` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),_u.forEach(t),S_=m(vo),$t=a(vo,"DIV",{class:!0});var ko=s($t);T(Ga.$$.fragment,ko),W_=m(ko),Oo=a(ko,"P",{});var _d=s(Oo);U_=n(_d,"The "),Dl=a(_d,"A",{href:!0});var X2=s(Dl);B_=n(X2,"RobertaPreLayerNormForSequenceClassification"),X2.forEach(t),Q_=n(_d," forward method, overrides the "),_c=a(_d,"CODE",{});var Y2=s(_c);H_=n(Y2,"__call__"),Y2.forEach(t),K_=n(_d," special method."),_d.forEach(t),V_=m(ko),T(Dn.$$.fragment,ko),J_=m(ko),T(Sn.$$.fragment,ko),G_=m(ko),T(Wn.$$.fragment,ko),ko.forEach(t),vo.forEach(t),Th=m(i),Io=a(i,"H2",{class:!0});var yu=s(Io);Un=a(yu,"A",{id:!0,class:!0,href:!0});var Z2=s(Un);yc=a(Z2,"SPAN",{});var eP=s(yc);T(Xa.$$.fragment,eP),eP.forEach(t),Z2.forEach(t),X_=m(yu),bc=a(yu,"SPAN",{});var tP=s(bc);Y_=n(tP,"RobertaPreLayerNormForMultipleChoice"),tP.forEach(t),yu.forEach(t),wh=m(i),vt=a(i,"DIV",{class:!0});var To=s(vt);T(Ya.$$.fragment,To),Z_=m(To),vc=a(To,"P",{});var oP=s(vc);ey=n(oP,`RobertaPreLayerNorm Model with a multiple choice classification head on top (a linear layer on top of the pooled
output and a softmax) e.g. for RocStories/SWAG tasks.`),oP.forEach(t),ty=m(To),Za=a(To,"P",{});var bu=s(Za);oy=n(bu,"This model inherits from "),Sl=a(bu,"A",{href:!0});var nP=s(Sl);ny=n(nP,"PreTrainedModel"),nP.forEach(t),ry=n(bu,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),bu.forEach(t),ay=m(To),es=a(To,"P",{});var vu=s(es);sy=n(vu,"This model is also a PyTorch "),ts=a(vu,"A",{href:!0,rel:!0});var rP=s(ts);iy=n(rP,"torch.nn.Module"),rP.forEach(t),ly=n(vu,` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),vu.forEach(t),dy=m(To),St=a(To,"DIV",{class:!0});var Zr=s(St);T(os.$$.fragment,Zr),cy=m(Zr),Do=a(Zr,"P",{});var yd=s(Do);py=n(yd,"The "),Wl=a(yd,"A",{href:!0});var aP=s(Wl);my=n(aP,"RobertaPreLayerNormForMultipleChoice"),aP.forEach(t),hy=n(yd," forward method, overrides the "),kc=a(yd,"CODE",{});var sP=s(kc);uy=n(sP,"__call__"),sP.forEach(t),fy=n(yd," special method."),yd.forEach(t),gy=m(Zr),T(Bn.$$.fragment,Zr),_y=m(Zr),T(Qn.$$.fragment,Zr),Zr.forEach(t),To.forEach(t),$h=m(i),So=a(i,"H2",{class:!0});var ku=s(So);Hn=a(ku,"A",{id:!0,class:!0,href:!0});var iP=s(Hn);Tc=a(iP,"SPAN",{});var lP=s(Tc);T(ns.$$.fragment,lP),lP.forEach(t),iP.forEach(t),yy=m(ku),wc=a(ku,"SPAN",{});var dP=s(wc);by=n(dP,"RobertaPreLayerNormForTokenClassification"),dP.forEach(t),ku.forEach(t),Ph=m(i),kt=a(i,"DIV",{class:!0});var wo=s(kt);T(rs.$$.fragment,wo),vy=m(wo),$c=a(wo,"P",{});var cP=s($c);ky=n(cP,`RobertaPreLayerNorm Model with a token classification head on top (a linear layer on top of the hidden-states
output) e.g. for Named-Entity-Recognition (NER) tasks.`),cP.forEach(t),Ty=m(wo),as=a(wo,"P",{});var Tu=s(as);wy=n(Tu,"This model inherits from "),Ul=a(Tu,"A",{href:!0});var pP=s(Ul);$y=n(pP,"PreTrainedModel"),pP.forEach(t),Py=n(Tu,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),Tu.forEach(t),Fy=m(wo),ss=a(wo,"P",{});var wu=s(ss);Ny=n(wu,"This model is also a PyTorch "),is=a(wu,"A",{href:!0,rel:!0});var mP=s(is);Ly=n(mP,"torch.nn.Module"),mP.forEach(t),xy=n(wu,` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),wu.forEach(t),My=m(wo),Wt=a(wo,"DIV",{class:!0});var ea=s(Wt);T(ls.$$.fragment,ea),Ey=m(ea),Wo=a(ea,"P",{});var bd=s(Wo);Ry=n(bd,"The "),Bl=a(bd,"A",{href:!0});var hP=s(Bl);zy=n(hP,"RobertaPreLayerNormForTokenClassification"),hP.forEach(t),Cy=n(bd," forward method, overrides the "),Pc=a(bd,"CODE",{});var uP=s(Pc);qy=n(uP,"__call__"),uP.forEach(t),jy=n(bd," special method."),bd.forEach(t),Ay=m(ea),T(Kn.$$.fragment,ea),Oy=m(ea),T(Vn.$$.fragment,ea),ea.forEach(t),wo.forEach(t),Fh=m(i),Uo=a(i,"H2",{class:!0});var $u=s(Uo);Jn=a($u,"A",{id:!0,class:!0,href:!0});var fP=s(Jn);Fc=a(fP,"SPAN",{});var gP=s(Fc);T(ds.$$.fragment,gP),gP.forEach(t),fP.forEach(t),Iy=m($u),Nc=a($u,"SPAN",{});var _P=s(Nc);Dy=n(_P,"RobertaPreLayerNormForQuestionAnswering"),_P.forEach(t),$u.forEach(t),Nh=m(i),Tt=a(i,"DIV",{class:!0});var $o=s(Tt);T(cs.$$.fragment,$o),Sy=m($o),Bo=a($o,"P",{});var vd=s(Bo);Wy=n(vd,`RobertaPreLayerNorm Model with a span classification head on top for extractive question-answering tasks like SQuAD
(a linear layers on top of the hidden-states output to compute `),Lc=a(vd,"CODE",{});var yP=s(Lc);Uy=n(yP,"span start logits"),yP.forEach(t),By=n(vd," and "),xc=a(vd,"CODE",{});var bP=s(xc);Qy=n(bP,"span end logits"),bP.forEach(t),Hy=n(vd,")."),vd.forEach(t),Ky=m($o),ps=a($o,"P",{});var Pu=s(ps);Vy=n(Pu,"This model inherits from "),Ql=a(Pu,"A",{href:!0});var vP=s(Ql);Jy=n(vP,"PreTrainedModel"),vP.forEach(t),Gy=n(Pu,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),Pu.forEach(t),Xy=m($o),ms=a($o,"P",{});var Fu=s(ms);Yy=n(Fu,"This model is also a PyTorch "),hs=a(Fu,"A",{href:!0,rel:!0});var kP=s(hs);Zy=n(kP,"torch.nn.Module"),kP.forEach(t),eb=n(Fu,` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),Fu.forEach(t),tb=m($o),Ut=a($o,"DIV",{class:!0});var ta=s(Ut);T(us.$$.fragment,ta),ob=m(ta),Qo=a(ta,"P",{});var kd=s(Qo);nb=n(kd,"The "),Hl=a(kd,"A",{href:!0});var TP=s(Hl);rb=n(TP,"RobertaPreLayerNormForQuestionAnswering"),TP.forEach(t),ab=n(kd," forward method, overrides the "),Mc=a(kd,"CODE",{});var wP=s(Mc);sb=n(wP,"__call__"),wP.forEach(t),ib=n(kd," special method."),kd.forEach(t),lb=m(ta),T(Gn.$$.fragment,ta),db=m(ta),T(Xn.$$.fragment,ta),ta.forEach(t),$o.forEach(t),Lh=m(i),Ho=a(i,"H2",{class:!0});var Nu=s(Ho);Yn=a(Nu,"A",{id:!0,class:!0,href:!0});var $P=s(Yn);Ec=a($P,"SPAN",{});var PP=s(Ec);T(fs.$$.fragment,PP),PP.forEach(t),$P.forEach(t),cb=m(Nu),Rc=a(Nu,"SPAN",{});var FP=s(Rc);pb=n(FP,"TFRobertaPreLayerNormModel"),FP.forEach(t),Nu.forEach(t),xh=m(i),lt=a(i,"DIV",{class:!0});var eo=s(lt);T(gs.$$.fragment,eo),mb=m(eo),zc=a(eo,"P",{});var NP=s(zc);hb=n(NP,"The bare RoBERTa-PreLayerNorm Model transformer outputting raw hidden-states without any specific head on top."),NP.forEach(t),ub=m(eo),_s=a(eo,"P",{});var Lu=s(_s);fb=n(Lu,"This model inherits from "),Kl=a(Lu,"A",{href:!0});var LP=s(Kl);gb=n(LP,"TFPreTrainedModel"),LP.forEach(t),_b=n(Lu,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),Lu.forEach(t),yb=m(eo),ys=a(eo,"P",{});var xu=s(ys);bb=n(xu,"This model is also a "),bs=a(xu,"A",{href:!0,rel:!0});var xP=s(bs);vb=n(xP,"tf.keras.Model"),xP.forEach(t),kb=n(xu,` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),xu.forEach(t),Tb=m(eo),T(Zn.$$.fragment,eo),wb=m(eo),Bt=a(eo,"DIV",{class:!0});var oa=s(Bt);T(vs.$$.fragment,oa),$b=m(oa),Ko=a(oa,"P",{});var Td=s(Ko);Pb=n(Td,"The "),Vl=a(Td,"A",{href:!0});var MP=s(Vl);Fb=n(MP,"TFRobertaPreLayerNormModel"),MP.forEach(t),Nb=n(Td," forward method, overrides the "),Cc=a(Td,"CODE",{});var EP=s(Cc);Lb=n(EP,"__call__"),EP.forEach(t),xb=n(Td," special method."),Td.forEach(t),Mb=m(oa),T(er.$$.fragment,oa),Eb=m(oa),T(tr.$$.fragment,oa),oa.forEach(t),eo.forEach(t),Mh=m(i),Vo=a(i,"H2",{class:!0});var Mu=s(Vo);or=a(Mu,"A",{id:!0,class:!0,href:!0});var RP=s(or);qc=a(RP,"SPAN",{});var zP=s(qc);T(ks.$$.fragment,zP),zP.forEach(t),RP.forEach(t),Rb=m(Mu),jc=a(Mu,"SPAN",{});var CP=s(jc);zb=n(CP,"TFRobertaPreLayerNormForCausalLM"),CP.forEach(t),Mu.forEach(t),Eh=m(i),Jo=a(i,"DIV",{class:!0});var Eu=s(Jo);T(Ts.$$.fragment,Eu),Cb=m(Eu),Qt=a(Eu,"DIV",{class:!0});var na=s(Qt);T(ws.$$.fragment,na),qb=m(na),Go=a(na,"P",{});var wd=s(Go);jb=n(wd,"The "),Jl=a(wd,"A",{href:!0});var qP=s(Jl);Ab=n(qP,"TFRobertaPreLayerNormForCausalLM"),qP.forEach(t),Ob=n(wd," forward method, overrides the "),Ac=a(wd,"CODE",{});var jP=s(Ac);Ib=n(jP,"__call__"),jP.forEach(t),Db=n(wd," special method."),wd.forEach(t),Sb=m(na),T(nr.$$.fragment,na),Wb=m(na),T(rr.$$.fragment,na),na.forEach(t),Eu.forEach(t),Rh=m(i),Xo=a(i,"H2",{class:!0});var Ru=s(Xo);ar=a(Ru,"A",{id:!0,class:!0,href:!0});var AP=s(ar);Oc=a(AP,"SPAN",{});var OP=s(Oc);T($s.$$.fragment,OP),OP.forEach(t),AP.forEach(t),Ub=m(Ru),Ic=a(Ru,"SPAN",{});var IP=s(Ic);Bb=n(IP,"TFRobertaPreLayerNormForMaskedLM"),IP.forEach(t),Ru.forEach(t),zh=m(i),dt=a(i,"DIV",{class:!0});var to=s(dt);T(Ps.$$.fragment,to),Qb=m(to),Fs=a(to,"P",{});var zu=s(Fs);Hb=n(zu,"RoBERTa-PreLayerNorm Model with a "),Dc=a(zu,"CODE",{});var DP=s(Dc);Kb=n(DP,"language modeling"),DP.forEach(t),Vb=n(zu," head on top."),zu.forEach(t),Jb=m(to),Ns=a(to,"P",{});var Cu=s(Ns);Gb=n(Cu,"This model inherits from "),Gl=a(Cu,"A",{href:!0});var SP=s(Gl);Xb=n(SP,"TFPreTrainedModel"),SP.forEach(t),Yb=n(Cu,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),Cu.forEach(t),Zb=m(to),Ls=a(to,"P",{});var qu=s(Ls);ev=n(qu,"This model is also a "),xs=a(qu,"A",{href:!0,rel:!0});var WP=s(xs);tv=n(WP,"tf.keras.Model"),WP.forEach(t),ov=n(qu,` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),qu.forEach(t),nv=m(to),T(sr.$$.fragment,to),rv=m(to),Pt=a(to,"DIV",{class:!0});var Po=s(Pt);T(Ms.$$.fragment,Po),av=m(Po),Yo=a(Po,"P",{});var $d=s(Yo);sv=n($d,"The "),Xl=a($d,"A",{href:!0});var UP=s(Xl);iv=n(UP,"TFRobertaPreLayerNormForMaskedLM"),UP.forEach(t),lv=n($d," forward method, overrides the "),Sc=a($d,"CODE",{});var BP=s(Sc);dv=n(BP,"__call__"),BP.forEach(t),cv=n($d," special method."),$d.forEach(t),pv=m(Po),T(ir.$$.fragment,Po),mv=m(Po),T(lr.$$.fragment,Po),hv=m(Po),T(dr.$$.fragment,Po),Po.forEach(t),to.forEach(t),Ch=m(i),Zo=a(i,"H2",{class:!0});var ju=s(Zo);cr=a(ju,"A",{id:!0,class:!0,href:!0});var QP=s(cr);Wc=a(QP,"SPAN",{});var HP=s(Wc);T(Es.$$.fragment,HP),HP.forEach(t),QP.forEach(t),uv=m(ju),Uc=a(ju,"SPAN",{});var KP=s(Uc);fv=n(KP,"TFRobertaPreLayerNormForSequenceClassification"),KP.forEach(t),ju.forEach(t),qh=m(i),ct=a(i,"DIV",{class:!0});var oo=s(ct);T(Rs.$$.fragment,oo),gv=m(oo),Bc=a(oo,"P",{});var VP=s(Bc);_v=n(VP,`RoBERTa-PreLayerNorm Model transformer with a sequence classification/regression head on top (a linear layer on top
of the pooled output) e.g. for GLUE tasks.`),VP.forEach(t),yv=m(oo),zs=a(oo,"P",{});var Au=s(zs);bv=n(Au,"This model inherits from "),Yl=a(Au,"A",{href:!0});var JP=s(Yl);vv=n(JP,"TFPreTrainedModel"),JP.forEach(t),kv=n(Au,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),Au.forEach(t),Tv=m(oo),Cs=a(oo,"P",{});var Ou=s(Cs);wv=n(Ou,"This model is also a "),qs=a(Ou,"A",{href:!0,rel:!0});var GP=s(qs);$v=n(GP,"tf.keras.Model"),GP.forEach(t),Pv=n(Ou,` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),Ou.forEach(t),Fv=m(oo),T(pr.$$.fragment,oo),Nv=m(oo),Ft=a(oo,"DIV",{class:!0});var Fo=s(Ft);T(js.$$.fragment,Fo),Lv=m(Fo),en=a(Fo,"P",{});var Pd=s(en);xv=n(Pd,"The "),Zl=a(Pd,"A",{href:!0});var XP=s(Zl);Mv=n(XP,"TFRobertaPreLayerNormForSequenceClassification"),XP.forEach(t),Ev=n(Pd," forward method, overrides the "),Qc=a(Pd,"CODE",{});var YP=s(Qc);Rv=n(YP,"__call__"),YP.forEach(t),zv=n(Pd," special method."),Pd.forEach(t),Cv=m(Fo),T(mr.$$.fragment,Fo),qv=m(Fo),T(hr.$$.fragment,Fo),jv=m(Fo),T(ur.$$.fragment,Fo),Fo.forEach(t),oo.forEach(t),jh=m(i),tn=a(i,"H2",{class:!0});var Iu=s(tn);fr=a(Iu,"A",{id:!0,class:!0,href:!0});var ZP=s(fr);Hc=a(ZP,"SPAN",{});var e0=s(Hc);T(As.$$.fragment,e0),e0.forEach(t),ZP.forEach(t),Av=m(Iu),Kc=a(Iu,"SPAN",{});var t0=s(Kc);Ov=n(t0,"TFRobertaPreLayerNormForMultipleChoice"),t0.forEach(t),Iu.forEach(t),Ah=m(i),pt=a(i,"DIV",{class:!0});var no=s(pt);T(Os.$$.fragment,no),Iv=m(no),Vc=a(no,"P",{});var o0=s(Vc);Dv=n(o0,`RobertaPreLayerNorm Model with a multiple choice classification head on top (a linear layer on top of the pooled
output and a softmax) e.g. for RocStories/SWAG tasks.`),o0.forEach(t),Sv=m(no),Is=a(no,"P",{});var Du=s(Is);Wv=n(Du,"This model inherits from "),ed=a(Du,"A",{href:!0});var n0=s(ed);Uv=n(n0,"TFPreTrainedModel"),n0.forEach(t),Bv=n(Du,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),Du.forEach(t),Qv=m(no),Ds=a(no,"P",{});var Su=s(Ds);Hv=n(Su,"This model is also a "),Ss=a(Su,"A",{href:!0,rel:!0});var r0=s(Ss);Kv=n(r0,"tf.keras.Model"),r0.forEach(t),Vv=n(Su,` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),Su.forEach(t),Jv=m(no),T(gr.$$.fragment,no),Gv=m(no),Ht=a(no,"DIV",{class:!0});var ra=s(Ht);T(Ws.$$.fragment,ra),Xv=m(ra),on=a(ra,"P",{});var Fd=s(on);Yv=n(Fd,"The "),td=a(Fd,"A",{href:!0});var a0=s(td);Zv=n(a0,"TFRobertaPreLayerNormForMultipleChoice"),a0.forEach(t),ek=n(Fd," forward method, overrides the "),Jc=a(Fd,"CODE",{});var s0=s(Jc);tk=n(s0,"__call__"),s0.forEach(t),ok=n(Fd," special method."),Fd.forEach(t),nk=m(ra),T(_r.$$.fragment,ra),rk=m(ra),T(yr.$$.fragment,ra),ra.forEach(t),no.forEach(t),Oh=m(i),nn=a(i,"H2",{class:!0});var Wu=s(nn);br=a(Wu,"A",{id:!0,class:!0,href:!0});var i0=s(br);Gc=a(i0,"SPAN",{});var l0=s(Gc);T(Us.$$.fragment,l0),l0.forEach(t),i0.forEach(t),ak=m(Wu),Xc=a(Wu,"SPAN",{});var d0=s(Xc);sk=n(d0,"TFRobertaPreLayerNormForTokenClassification"),d0.forEach(t),Wu.forEach(t),Ih=m(i),mt=a(i,"DIV",{class:!0});var ro=s(mt);T(Bs.$$.fragment,ro),ik=m(ro),Yc=a(ro,"P",{});var c0=s(Yc);lk=n(c0,`RoBERTa-PreLayerNorm Model with a token classification head on top (a linear layer on top of the hidden-states
output) e.g. for Named-Entity-Recognition (NER) tasks.`),c0.forEach(t),dk=m(ro),Qs=a(ro,"P",{});var Uu=s(Qs);ck=n(Uu,"This model inherits from "),od=a(Uu,"A",{href:!0});var p0=s(od);pk=n(p0,"TFPreTrainedModel"),p0.forEach(t),mk=n(Uu,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),Uu.forEach(t),hk=m(ro),Hs=a(ro,"P",{});var Bu=s(Hs);uk=n(Bu,"This model is also a "),Ks=a(Bu,"A",{href:!0,rel:!0});var m0=s(Ks);fk=n(m0,"tf.keras.Model"),m0.forEach(t),gk=n(Bu,` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),Bu.forEach(t),_k=m(ro),T(vr.$$.fragment,ro),yk=m(ro),Nt=a(ro,"DIV",{class:!0});var No=s(Nt);T(Vs.$$.fragment,No),bk=m(No),rn=a(No,"P",{});var Nd=s(rn);vk=n(Nd,"The "),nd=a(Nd,"A",{href:!0});var h0=s(nd);kk=n(h0,"TFRobertaPreLayerNormForTokenClassification"),h0.forEach(t),Tk=n(Nd," forward method, overrides the "),Zc=a(Nd,"CODE",{});var u0=s(Zc);wk=n(u0,"__call__"),u0.forEach(t),$k=n(Nd," special method."),Nd.forEach(t),Pk=m(No),T(kr.$$.fragment,No),Fk=m(No),T(Tr.$$.fragment,No),Nk=m(No),T(wr.$$.fragment,No),No.forEach(t),ro.forEach(t),Dh=m(i),an=a(i,"H2",{class:!0});var Qu=s(an);$r=a(Qu,"A",{id:!0,class:!0,href:!0});var f0=s($r);ep=a(f0,"SPAN",{});var g0=s(ep);T(Js.$$.fragment,g0),g0.forEach(t),f0.forEach(t),Lk=m(Qu),tp=a(Qu,"SPAN",{});var _0=s(tp);xk=n(_0,"TFRobertaPreLayerNormForQuestionAnswering"),_0.forEach(t),Qu.forEach(t),Sh=m(i),ht=a(i,"DIV",{class:!0});var ao=s(ht);T(Gs.$$.fragment,ao),Mk=m(ao),sn=a(ao,"P",{});var Ld=s(sn);Ek=n(Ld,`RoBERTa-PreLayerNorm Model with a span classification head on top for extractive question-answering tasks like
SQuAD (a linear layers on top of the hidden-states output to compute `),op=a(Ld,"CODE",{});var y0=s(op);Rk=n(y0,"span start logits"),y0.forEach(t),zk=n(Ld," and "),np=a(Ld,"CODE",{});var b0=s(np);Ck=n(b0,"span end logits"),b0.forEach(t),qk=n(Ld,")."),Ld.forEach(t),jk=m(ao),Xs=a(ao,"P",{});var Hu=s(Xs);Ak=n(Hu,"This model inherits from "),rd=a(Hu,"A",{href:!0});var v0=s(rd);Ok=n(v0,"TFPreTrainedModel"),v0.forEach(t),Ik=n(Hu,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`),Hu.forEach(t),Dk=m(ao),Ys=a(ao,"P",{});var Ku=s(Ys);Sk=n(Ku,"This model is also a "),Zs=a(Ku,"A",{href:!0,rel:!0});var k0=s(Zs);Wk=n(k0,"tf.keras.Model"),k0.forEach(t),Uk=n(Ku,` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),Ku.forEach(t),Bk=m(ao),T(Pr.$$.fragment,ao),Qk=m(ao),Lt=a(ao,"DIV",{class:!0});var Lo=s(Lt);T(ei.$$.fragment,Lo),Hk=m(Lo),ln=a(Lo,"P",{});var xd=s(ln);Kk=n(xd,"The "),ad=a(xd,"A",{href:!0});var T0=s(ad);Vk=n(T0,"TFRobertaPreLayerNormForQuestionAnswering"),T0.forEach(t),Jk=n(xd," forward method, overrides the "),rp=a(xd,"CODE",{});var w0=s(rp);Gk=n(w0,"__call__"),w0.forEach(t),Xk=n(xd," special method."),xd.forEach(t),Yk=m(Lo),T(Fr.$$.fragment,Lo),Zk=m(Lo),T(Nr.$$.fragment,Lo),eT=m(Lo),T(Lr.$$.fragment,Lo),Lo.forEach(t),ao.forEach(t),Wh=m(i),dn=a(i,"H2",{class:!0});var Vu=s(dn);xr=a(Vu,"A",{id:!0,class:!0,href:!0});var $0=s(xr);ap=a($0,"SPAN",{});var P0=s(ap);T(ti.$$.fragment,P0),P0.forEach(t),$0.forEach(t),tT=m(Vu),sp=a(Vu,"SPAN",{});var F0=s(sp);oT=n(F0,"FlaxRobertaPreLayerNormModel"),F0.forEach(t),Vu.forEach(t),Uh=m(i),et=a(i,"DIV",{class:!0});var Mt=s(et);T(oi.$$.fragment,Mt),nT=m(Mt),ip=a(Mt,"P",{});var N0=s(ip);rT=n(N0,"The bare RoBERTa-PreLayerNorm Model transformer outputting raw hidden-states without any specific head on top."),N0.forEach(t),aT=m(Mt),ni=a(Mt,"P",{});var Ju=s(ni);sT=n(Ju,"This model inherits from "),sd=a(Ju,"A",{href:!0});var L0=s(sd);iT=n(L0,"FlaxPreTrainedModel"),L0.forEach(t),lT=n(Ju,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading, saving and converting weights from PyTorch models)`),Ju.forEach(t),dT=m(Mt),ri=a(Mt,"P",{});var Gu=s(ri);cT=n(Gu,"This model is also a Flax Linen "),ai=a(Gu,"A",{href:!0,rel:!0});var x0=s(ai);pT=n(x0,"flax.linen.Module"),x0.forEach(t),mT=n(Gu,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),Gu.forEach(t),hT=m(Mt),lp=a(Mt,"P",{});var M0=s(lp);uT=n(M0,"Finally, this model supports inherent JAX features such as:"),M0.forEach(t),fT=m(Mt),io=a(Mt,"UL",{});var aa=s(io);dp=a(aa,"LI",{});var E0=s(dp);si=a(E0,"A",{href:!0,rel:!0});var R0=s(si);gT=n(R0,"Just-In-Time (JIT) compilation"),R0.forEach(t),E0.forEach(t),_T=m(aa),cp=a(aa,"LI",{});var z0=s(cp);ii=a(z0,"A",{href:!0,rel:!0});var C0=s(ii);yT=n(C0,"Automatic Differentiation"),C0.forEach(t),z0.forEach(t),bT=m(aa),pp=a(aa,"LI",{});var q0=s(pp);li=a(q0,"A",{href:!0,rel:!0});var j0=s(li);vT=n(j0,"Vectorization"),j0.forEach(t),q0.forEach(t),kT=m(aa),mp=a(aa,"LI",{});var A0=s(mp);di=a(A0,"A",{href:!0,rel:!0});var O0=s(di);TT=n(O0,"Parallelization"),O0.forEach(t),A0.forEach(t),aa.forEach(t),wT=m(Mt),Kt=a(Mt,"DIV",{class:!0});var sa=s(Kt);T(ci.$$.fragment,sa),$T=m(sa),cn=a(sa,"P",{});var Md=s(cn);PT=n(Md,"The "),hp=a(Md,"CODE",{});var I0=s(hp);FT=n(I0,"FlaxRobertaPreLayerNormPreTrainedModel"),I0.forEach(t),NT=n(Md," forward method, overrides the "),up=a(Md,"CODE",{});var D0=s(up);LT=n(D0,"__call__"),D0.forEach(t),xT=n(Md," special method."),Md.forEach(t),MT=m(sa),T(Mr.$$.fragment,sa),ET=m(sa),T(Er.$$.fragment,sa),sa.forEach(t),Mt.forEach(t),Bh=m(i),pn=a(i,"H2",{class:!0});var Xu=s(pn);Rr=a(Xu,"A",{id:!0,class:!0,href:!0});var S0=s(Rr);fp=a(S0,"SPAN",{});var W0=s(fp);T(pi.$$.fragment,W0),W0.forEach(t),S0.forEach(t),RT=m(Xu),gp=a(Xu,"SPAN",{});var U0=s(gp);zT=n(U0,"FlaxRobertaPreLayerNormForCausalLM"),U0.forEach(t),Xu.forEach(t),Qh=m(i),tt=a(i,"DIV",{class:!0});var Et=s(tt);T(mi.$$.fragment,Et),CT=m(Et),_p=a(Et,"P",{});var B0=s(_p);qT=n(B0,`RobertaPreLayerNorm Model with a language modeling head on top (a linear layer on top of the hidden-states output)
e.g for autoregressive tasks.`),B0.forEach(t),jT=m(Et),hi=a(Et,"P",{});var Yu=s(hi);AT=n(Yu,"This model inherits from "),id=a(Yu,"A",{href:!0});var Q0=s(id);OT=n(Q0,"FlaxPreTrainedModel"),Q0.forEach(t),IT=n(Yu,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading, saving and converting weights from PyTorch models)`),Yu.forEach(t),DT=m(Et),ui=a(Et,"P",{});var Zu=s(ui);ST=n(Zu,"This model is also a Flax Linen "),fi=a(Zu,"A",{href:!0,rel:!0});var H0=s(fi);WT=n(H0,"flax.linen.Module"),H0.forEach(t),UT=n(Zu,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),Zu.forEach(t),BT=m(Et),yp=a(Et,"P",{});var K0=s(yp);QT=n(K0,"Finally, this model supports inherent JAX features such as:"),K0.forEach(t),HT=m(Et),lo=a(Et,"UL",{});var ia=s(lo);bp=a(ia,"LI",{});var V0=s(bp);gi=a(V0,"A",{href:!0,rel:!0});var J0=s(gi);KT=n(J0,"Just-In-Time (JIT) compilation"),J0.forEach(t),V0.forEach(t),VT=m(ia),vp=a(ia,"LI",{});var G0=s(vp);_i=a(G0,"A",{href:!0,rel:!0});var X0=s(_i);JT=n(X0,"Automatic Differentiation"),X0.forEach(t),G0.forEach(t),GT=m(ia),kp=a(ia,"LI",{});var Y0=s(kp);yi=a(Y0,"A",{href:!0,rel:!0});var Z0=s(yi);XT=n(Z0,"Vectorization"),Z0.forEach(t),Y0.forEach(t),YT=m(ia),Tp=a(ia,"LI",{});var eF=s(Tp);bi=a(eF,"A",{href:!0,rel:!0});var tF=s(bi);ZT=n(tF,"Parallelization"),tF.forEach(t),eF.forEach(t),ia.forEach(t),ew=m(Et),Vt=a(Et,"DIV",{class:!0});var la=s(Vt);T(vi.$$.fragment,la),tw=m(la),mn=a(la,"P",{});var Ed=s(mn);ow=n(Ed,"The "),wp=a(Ed,"CODE",{});var oF=s(wp);nw=n(oF,"FlaxRobertaPreLayerNormPreTrainedModel"),oF.forEach(t),rw=n(Ed," forward method, overrides the "),$p=a(Ed,"CODE",{});var nF=s($p);aw=n(nF,"__call__"),nF.forEach(t),sw=n(Ed," special method."),Ed.forEach(t),iw=m(la),T(zr.$$.fragment,la),lw=m(la),T(Cr.$$.fragment,la),la.forEach(t),Et.forEach(t),Hh=m(i),hn=a(i,"H2",{class:!0});var ef=s(hn);qr=a(ef,"A",{id:!0,class:!0,href:!0});var rF=s(qr);Pp=a(rF,"SPAN",{});var aF=s(Pp);T(ki.$$.fragment,aF),aF.forEach(t),rF.forEach(t),dw=m(ef),Fp=a(ef,"SPAN",{});var sF=s(Fp);cw=n(sF,"FlaxRobertaPreLayerNormForMaskedLM"),sF.forEach(t),ef.forEach(t),Kh=m(i),ot=a(i,"DIV",{class:!0});var Rt=s(ot);T(Ti.$$.fragment,Rt),pw=m(Rt),wi=a(Rt,"P",{});var tf=s(wi);mw=n(tf,"RoBERTa-PreLayerNorm Model with a "),Np=a(tf,"CODE",{});var iF=s(Np);hw=n(iF,"language modeling"),iF.forEach(t),uw=n(tf," head on top."),tf.forEach(t),fw=m(Rt),$i=a(Rt,"P",{});var of=s($i);gw=n(of,"This model inherits from "),ld=a(of,"A",{href:!0});var lF=s(ld);_w=n(lF,"FlaxPreTrainedModel"),lF.forEach(t),yw=n(of,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading, saving and converting weights from PyTorch models)`),of.forEach(t),bw=m(Rt),Pi=a(Rt,"P",{});var nf=s(Pi);vw=n(nf,"This model is also a Flax Linen "),Fi=a(nf,"A",{href:!0,rel:!0});var dF=s(Fi);kw=n(dF,"flax.linen.Module"),dF.forEach(t),Tw=n(nf,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),nf.forEach(t),ww=m(Rt),Lp=a(Rt,"P",{});var cF=s(Lp);$w=n(cF,"Finally, this model supports inherent JAX features such as:"),cF.forEach(t),Pw=m(Rt),co=a(Rt,"UL",{});var da=s(co);xp=a(da,"LI",{});var pF=s(xp);Ni=a(pF,"A",{href:!0,rel:!0});var mF=s(Ni);Fw=n(mF,"Just-In-Time (JIT) compilation"),mF.forEach(t),pF.forEach(t),Nw=m(da),Mp=a(da,"LI",{});var hF=s(Mp);Li=a(hF,"A",{href:!0,rel:!0});var uF=s(Li);Lw=n(uF,"Automatic Differentiation"),uF.forEach(t),hF.forEach(t),xw=m(da),Ep=a(da,"LI",{});var fF=s(Ep);xi=a(fF,"A",{href:!0,rel:!0});var gF=s(xi);Mw=n(gF,"Vectorization"),gF.forEach(t),fF.forEach(t),Ew=m(da),Rp=a(da,"LI",{});var _F=s(Rp);Mi=a(_F,"A",{href:!0,rel:!0});var yF=s(Mi);Rw=n(yF,"Parallelization"),yF.forEach(t),_F.forEach(t),da.forEach(t),zw=m(Rt),Jt=a(Rt,"DIV",{class:!0});var ca=s(Jt);T(Ei.$$.fragment,ca),Cw=m(ca),un=a(ca,"P",{});var Rd=s(un);qw=n(Rd,"The "),zp=a(Rd,"CODE",{});var bF=s(zp);jw=n(bF,"FlaxRobertaPreLayerNormPreTrainedModel"),bF.forEach(t),Aw=n(Rd," forward method, overrides the "),Cp=a(Rd,"CODE",{});var vF=s(Cp);Ow=n(vF,"__call__"),vF.forEach(t),Iw=n(Rd," special method."),Rd.forEach(t),Dw=m(ca),T(jr.$$.fragment,ca),Sw=m(ca),T(Ar.$$.fragment,ca),ca.forEach(t),Rt.forEach(t),Vh=m(i),fn=a(i,"H2",{class:!0});var rf=s(fn);Or=a(rf,"A",{id:!0,class:!0,href:!0});var kF=s(Or);qp=a(kF,"SPAN",{});var TF=s(qp);T(Ri.$$.fragment,TF),TF.forEach(t),kF.forEach(t),Ww=m(rf),jp=a(rf,"SPAN",{});var wF=s(jp);Uw=n(wF,"FlaxRobertaPreLayerNormForSequenceClassification"),wF.forEach(t),rf.forEach(t),Jh=m(i),nt=a(i,"DIV",{class:!0});var zt=s(nt);T(zi.$$.fragment,zt),Bw=m(zt),Ap=a(zt,"P",{});var $F=s(Ap);Qw=n($F,`RobertaPreLayerNorm Model transformer with a sequence classification/regression head on top (a linear layer on top
of the pooled output) e.g. for GLUE tasks.`),$F.forEach(t),Hw=m(zt),Ci=a(zt,"P",{});var af=s(Ci);Kw=n(af,"This model inherits from "),dd=a(af,"A",{href:!0});var PF=s(dd);Vw=n(PF,"FlaxPreTrainedModel"),PF.forEach(t),Jw=n(af,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading, saving and converting weights from PyTorch models)`),af.forEach(t),Gw=m(zt),qi=a(zt,"P",{});var sf=s(qi);Xw=n(sf,"This model is also a Flax Linen "),ji=a(sf,"A",{href:!0,rel:!0});var FF=s(ji);Yw=n(FF,"flax.linen.Module"),FF.forEach(t),Zw=n(sf,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),sf.forEach(t),e1=m(zt),Op=a(zt,"P",{});var NF=s(Op);t1=n(NF,"Finally, this model supports inherent JAX features such as:"),NF.forEach(t),o1=m(zt),po=a(zt,"UL",{});var pa=s(po);Ip=a(pa,"LI",{});var LF=s(Ip);Ai=a(LF,"A",{href:!0,rel:!0});var xF=s(Ai);n1=n(xF,"Just-In-Time (JIT) compilation"),xF.forEach(t),LF.forEach(t),r1=m(pa),Dp=a(pa,"LI",{});var MF=s(Dp);Oi=a(MF,"A",{href:!0,rel:!0});var EF=s(Oi);a1=n(EF,"Automatic Differentiation"),EF.forEach(t),MF.forEach(t),s1=m(pa),Sp=a(pa,"LI",{});var RF=s(Sp);Ii=a(RF,"A",{href:!0,rel:!0});var zF=s(Ii);i1=n(zF,"Vectorization"),zF.forEach(t),RF.forEach(t),l1=m(pa),Wp=a(pa,"LI",{});var CF=s(Wp);Di=a(CF,"A",{href:!0,rel:!0});var qF=s(Di);d1=n(qF,"Parallelization"),qF.forEach(t),CF.forEach(t),pa.forEach(t),c1=m(zt),Gt=a(zt,"DIV",{class:!0});var ma=s(Gt);T(Si.$$.fragment,ma),p1=m(ma),gn=a(ma,"P",{});var zd=s(gn);m1=n(zd,"The "),Up=a(zd,"CODE",{});var jF=s(Up);h1=n(jF,"FlaxRobertaPreLayerNormPreTrainedModel"),jF.forEach(t),u1=n(zd," forward method, overrides the "),Bp=a(zd,"CODE",{});var AF=s(Bp);f1=n(AF,"__call__"),AF.forEach(t),g1=n(zd," special method."),zd.forEach(t),_1=m(ma),T(Ir.$$.fragment,ma),y1=m(ma),T(Dr.$$.fragment,ma),ma.forEach(t),zt.forEach(t),Gh=m(i),_n=a(i,"H2",{class:!0});var lf=s(_n);Sr=a(lf,"A",{id:!0,class:!0,href:!0});var OF=s(Sr);Qp=a(OF,"SPAN",{});var IF=s(Qp);T(Wi.$$.fragment,IF),IF.forEach(t),OF.forEach(t),b1=m(lf),Hp=a(lf,"SPAN",{});var DF=s(Hp);v1=n(DF,"FlaxRobertaPreLayerNormForMultipleChoice"),DF.forEach(t),lf.forEach(t),Xh=m(i),rt=a(i,"DIV",{class:!0});var Ct=s(rt);T(Ui.$$.fragment,Ct),k1=m(Ct),Kp=a(Ct,"P",{});var SF=s(Kp);T1=n(SF,`RobertaPreLayerNorm Model with a multiple choice classification head on top (a linear layer on top of the pooled
output and a softmax) e.g. for RocStories/SWAG tasks.`),SF.forEach(t),w1=m(Ct),Bi=a(Ct,"P",{});var df=s(Bi);$1=n(df,"This model inherits from "),cd=a(df,"A",{href:!0});var WF=s(cd);P1=n(WF,"FlaxPreTrainedModel"),WF.forEach(t),F1=n(df,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading, saving and converting weights from PyTorch models)`),df.forEach(t),N1=m(Ct),Qi=a(Ct,"P",{});var cf=s(Qi);L1=n(cf,"This model is also a Flax Linen "),Hi=a(cf,"A",{href:!0,rel:!0});var UF=s(Hi);x1=n(UF,"flax.linen.Module"),UF.forEach(t),M1=n(cf,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),cf.forEach(t),E1=m(Ct),Vp=a(Ct,"P",{});var BF=s(Vp);R1=n(BF,"Finally, this model supports inherent JAX features such as:"),BF.forEach(t),z1=m(Ct),mo=a(Ct,"UL",{});var ha=s(mo);Jp=a(ha,"LI",{});var QF=s(Jp);Ki=a(QF,"A",{href:!0,rel:!0});var HF=s(Ki);C1=n(HF,"Just-In-Time (JIT) compilation"),HF.forEach(t),QF.forEach(t),q1=m(ha),Gp=a(ha,"LI",{});var KF=s(Gp);Vi=a(KF,"A",{href:!0,rel:!0});var VF=s(Vi);j1=n(VF,"Automatic Differentiation"),VF.forEach(t),KF.forEach(t),A1=m(ha),Xp=a(ha,"LI",{});var JF=s(Xp);Ji=a(JF,"A",{href:!0,rel:!0});var GF=s(Ji);O1=n(GF,"Vectorization"),GF.forEach(t),JF.forEach(t),I1=m(ha),Yp=a(ha,"LI",{});var XF=s(Yp);Gi=a(XF,"A",{href:!0,rel:!0});var YF=s(Gi);D1=n(YF,"Parallelization"),YF.forEach(t),XF.forEach(t),ha.forEach(t),S1=m(Ct),Xt=a(Ct,"DIV",{class:!0});var ua=s(Xt);T(Xi.$$.fragment,ua),W1=m(ua),yn=a(ua,"P",{});var Cd=s(yn);U1=n(Cd,"The "),Zp=a(Cd,"CODE",{});var ZF=s(Zp);B1=n(ZF,"FlaxRobertaPreLayerNormPreTrainedModel"),ZF.forEach(t),Q1=n(Cd," forward method, overrides the "),em=a(Cd,"CODE",{});var eN=s(em);H1=n(eN,"__call__"),eN.forEach(t),K1=n(Cd," special method."),Cd.forEach(t),V1=m(ua),T(Wr.$$.fragment,ua),J1=m(ua),T(Ur.$$.fragment,ua),ua.forEach(t),Ct.forEach(t),Yh=m(i),bn=a(i,"H2",{class:!0});var pf=s(bn);Br=a(pf,"A",{id:!0,class:!0,href:!0});var tN=s(Br);tm=a(tN,"SPAN",{});var oN=s(tm);T(Yi.$$.fragment,oN),oN.forEach(t),tN.forEach(t),G1=m(pf),om=a(pf,"SPAN",{});var nN=s(om);X1=n(nN,"FlaxRobertaPreLayerNormForTokenClassification"),nN.forEach(t),pf.forEach(t),Zh=m(i),at=a(i,"DIV",{class:!0});var qt=s(at);T(Zi.$$.fragment,qt),Y1=m(qt),nm=a(qt,"P",{});var rN=s(nm);Z1=n(rN,`RobertaPreLayerNorm Model with a token classification head on top (a linear layer on top of the hidden-states
output) e.g. for Named-Entity-Recognition (NER) tasks.`),rN.forEach(t),e$=m(qt),el=a(qt,"P",{});var mf=s(el);t$=n(mf,"This model inherits from "),pd=a(mf,"A",{href:!0});var aN=s(pd);o$=n(aN,"FlaxPreTrainedModel"),aN.forEach(t),n$=n(mf,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading, saving and converting weights from PyTorch models)`),mf.forEach(t),r$=m(qt),tl=a(qt,"P",{});var hf=s(tl);a$=n(hf,"This model is also a Flax Linen "),ol=a(hf,"A",{href:!0,rel:!0});var sN=s(ol);s$=n(sN,"flax.linen.Module"),sN.forEach(t),i$=n(hf,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),hf.forEach(t),l$=m(qt),rm=a(qt,"P",{});var iN=s(rm);d$=n(iN,"Finally, this model supports inherent JAX features such as:"),iN.forEach(t),c$=m(qt),ho=a(qt,"UL",{});var fa=s(ho);am=a(fa,"LI",{});var lN=s(am);nl=a(lN,"A",{href:!0,rel:!0});var dN=s(nl);p$=n(dN,"Just-In-Time (JIT) compilation"),dN.forEach(t),lN.forEach(t),m$=m(fa),sm=a(fa,"LI",{});var cN=s(sm);rl=a(cN,"A",{href:!0,rel:!0});var pN=s(rl);h$=n(pN,"Automatic Differentiation"),pN.forEach(t),cN.forEach(t),u$=m(fa),im=a(fa,"LI",{});var mN=s(im);al=a(mN,"A",{href:!0,rel:!0});var hN=s(al);f$=n(hN,"Vectorization"),hN.forEach(t),mN.forEach(t),g$=m(fa),lm=a(fa,"LI",{});var uN=s(lm);sl=a(uN,"A",{href:!0,rel:!0});var fN=s(sl);_$=n(fN,"Parallelization"),fN.forEach(t),uN.forEach(t),fa.forEach(t),y$=m(qt),Yt=a(qt,"DIV",{class:!0});var ga=s(Yt);T(il.$$.fragment,ga),b$=m(ga),vn=a(ga,"P",{});var qd=s(vn);v$=n(qd,"The "),dm=a(qd,"CODE",{});var gN=s(dm);k$=n(gN,"FlaxRobertaPreLayerNormPreTrainedModel"),gN.forEach(t),T$=n(qd," forward method, overrides the "),cm=a(qd,"CODE",{});var _N=s(cm);w$=n(_N,"__call__"),_N.forEach(t),$$=n(qd," special method."),qd.forEach(t),P$=m(ga),T(Qr.$$.fragment,ga),F$=m(ga),T(Hr.$$.fragment,ga),ga.forEach(t),qt.forEach(t),eu=m(i),kn=a(i,"H2",{class:!0});var uf=s(kn);Kr=a(uf,"A",{id:!0,class:!0,href:!0});var yN=s(Kr);pm=a(yN,"SPAN",{});var bN=s(pm);T(ll.$$.fragment,bN),bN.forEach(t),yN.forEach(t),N$=m(uf),mm=a(uf,"SPAN",{});var vN=s(mm);L$=n(vN,"FlaxRobertaPreLayerNormForQuestionAnswering"),vN.forEach(t),uf.forEach(t),tu=m(i),st=a(i,"DIV",{class:!0});var jt=s(st);T(dl.$$.fragment,jt),x$=m(jt),Tn=a(jt,"P",{});var jd=s(Tn);M$=n(jd,`RobertaPreLayerNorm Model with a span classification head on top for extractive question-answering tasks like SQuAD
(a linear layers on top of the hidden-states output to compute `),hm=a(jd,"CODE",{});var kN=s(hm);E$=n(kN,"span start logits"),kN.forEach(t),R$=n(jd," and "),um=a(jd,"CODE",{});var TN=s(um);z$=n(TN,"span end logits"),TN.forEach(t),C$=n(jd,")."),jd.forEach(t),q$=m(jt),cl=a(jt,"P",{});var ff=s(cl);j$=n(ff,"This model inherits from "),md=a(ff,"A",{href:!0});var wN=s(md);A$=n(wN,"FlaxPreTrainedModel"),wN.forEach(t),O$=n(ff,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading, saving and converting weights from PyTorch models)`),ff.forEach(t),I$=m(jt),pl=a(jt,"P",{});var gf=s(pl);D$=n(gf,"This model is also a Flax Linen "),ml=a(gf,"A",{href:!0,rel:!0});var $N=s(ml);S$=n($N,"flax.linen.Module"),$N.forEach(t),W$=n(gf,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),gf.forEach(t),U$=m(jt),fm=a(jt,"P",{});var PN=s(fm);B$=n(PN,"Finally, this model supports inherent JAX features such as:"),PN.forEach(t),Q$=m(jt),uo=a(jt,"UL",{});var _a=s(uo);gm=a(_a,"LI",{});var FN=s(gm);hl=a(FN,"A",{href:!0,rel:!0});var NN=s(hl);H$=n(NN,"Just-In-Time (JIT) compilation"),NN.forEach(t),FN.forEach(t),K$=m(_a),_m=a(_a,"LI",{});var LN=s(_m);ul=a(LN,"A",{href:!0,rel:!0});var xN=s(ul);V$=n(xN,"Automatic Differentiation"),xN.forEach(t),LN.forEach(t),J$=m(_a),ym=a(_a,"LI",{});var MN=s(ym);fl=a(MN,"A",{href:!0,rel:!0});var EN=s(fl);G$=n(EN,"Vectorization"),EN.forEach(t),MN.forEach(t),X$=m(_a),bm=a(_a,"LI",{});var RN=s(bm);gl=a(RN,"A",{href:!0,rel:!0});var zN=s(gl);Y$=n(zN,"Parallelization"),zN.forEach(t),RN.forEach(t),_a.forEach(t),Z$=m(jt),Zt=a(jt,"DIV",{class:!0});var ya=s(Zt);T(_l.$$.fragment,ya),e2=m(ya),wn=a(ya,"P",{});var Ad=s(wn);t2=n(Ad,"The "),vm=a(Ad,"CODE",{});var CN=s(vm);o2=n(CN,"FlaxRobertaPreLayerNormPreTrainedModel"),CN.forEach(t),n2=n(Ad," forward method, overrides the "),km=a(Ad,"CODE",{});var qN=s(km);r2=n(qN,"__call__"),qN.forEach(t),a2=n(Ad," special method."),Ad.forEach(t),s2=m(ya),T(Vr.$$.fragment,ya),i2=m(ya),T(Jr.$$.fragment,ya),ya.forEach(t),jt.forEach(t),this.h()},h(){u(d,"name","hf:doc:metadata"),u(d,"content",JSON.stringify(WL)),u(f,"id","robertaprelayernorm"),u(f,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(f,"href","#robertaprelayernorm"),u(h,"class","relative group"),u(ae,"id","overview"),u(ae,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(ae,"href","#overview"),u(D,"class","relative group"),u(se,"href","https://arxiv.org/abs/1904.01038"),u(se,"rel","nofollow"),u(ie,"href","https://fairseq.readthedocs.io/"),u(ie,"rel","nofollow"),u(de,"href","roberta"),u(v,"href","https://arxiv.org/abs/1706.03762"),u(v,"rel","nofollow"),u(De,"href","https://fairseq.readthedocs.io/"),u(De,"rel","nofollow"),u(Se,"href","https://huggingface.co/andreasmaden"),u(Se,"rel","nofollow"),u(We,"href","https://github.com/princeton-nlp/DinkyTrain"),u(We,"rel","nofollow"),u(Fn,"id","documentation-resources"),u(Fn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(Fn,"href","#documentation-resources"),u(qe,"class","relative group"),u(wl,"href","./tasks/sequence_classification"),u($l,"href","./tasks/token_classification"),u(Pl,"href","./tasks/question_answering"),u(Fl,"href","./tasks/language_modeling"),u(Nl,"href","./tasks/masked_language_modeling"),u(Ll,"href","./tasks/multiple_choice"),u(Nn,"id","transformers.RobertaPreLayerNormConfig"),u(Nn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(Nn,"href","#transformers.RobertaPreLayerNormConfig"),u(xo,"class","relative group"),u(xl,"href","/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormModel"),u(Ml,"href","/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.TFRobertaPreLayerNormModel"),u(Ta,"href","https://huggingface.co/andreasmadsen/efficient_mlm_m0.40"),u(Ta,"rel","nofollow"),u(El,"href","/docs/transformers/v4.27.1/en/main_classes/configuration#transformers.PretrainedConfig"),u(Rl,"href","/docs/transformers/v4.27.1/en/main_classes/configuration#transformers.PretrainedConfig"),u(At,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(xn,"id","transformers.RobertaPreLayerNormModel"),u(xn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(xn,"href","#transformers.RobertaPreLayerNormModel"),u(Eo,"class","relative group"),u(zl,"href","/docs/transformers/v4.27.1/en/main_classes/model#transformers.PreTrainedModel"),u(Na,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),u(Na,"rel","nofollow"),u(xa,"href","https://arxiv.org/abs/1706.03762"),u(xa,"rel","nofollow"),u(Cl,"href","/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormModel"),u(Ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(zn,"id","transformers.RobertaPreLayerNormForCausalLM"),u(zn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(zn,"href","#transformers.RobertaPreLayerNormForCausalLM"),u(zo,"class","relative group"),u(ql,"href","/docs/transformers/v4.27.1/en/main_classes/model#transformers.PreTrainedModel"),u(ja,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),u(ja,"rel","nofollow"),u(jl,"href","/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormForCausalLM"),u(It,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(_t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(jn,"id","transformers.RobertaPreLayerNormForMaskedLM"),u(jn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(jn,"href","#transformers.RobertaPreLayerNormForMaskedLM"),u(qo,"class","relative group"),u(Al,"href","/docs/transformers/v4.27.1/en/main_classes/model#transformers.PreTrainedModel"),u(Ua,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),u(Ua,"rel","nofollow"),u(Ol,"href","/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormForMaskedLM"),u(Dt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(In,"id","transformers.RobertaPreLayerNormForSequenceClassification"),u(In,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(In,"href","#transformers.RobertaPreLayerNormForSequenceClassification"),u(Ao,"class","relative group"),u(Il,"href","/docs/transformers/v4.27.1/en/main_classes/model#transformers.PreTrainedModel"),u(Ja,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),u(Ja,"rel","nofollow"),u(Dl,"href","/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormForSequenceClassification"),u($t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(bt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Un,"id","transformers.RobertaPreLayerNormForMultipleChoice"),u(Un,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(Un,"href","#transformers.RobertaPreLayerNormForMultipleChoice"),u(Io,"class","relative group"),u(Sl,"href","/docs/transformers/v4.27.1/en/main_classes/model#transformers.PreTrainedModel"),u(ts,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),u(ts,"rel","nofollow"),u(Wl,"href","/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormForMultipleChoice"),u(St,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(vt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Hn,"id","transformers.RobertaPreLayerNormForTokenClassification"),u(Hn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(Hn,"href","#transformers.RobertaPreLayerNormForTokenClassification"),u(So,"class","relative group"),u(Ul,"href","/docs/transformers/v4.27.1/en/main_classes/model#transformers.PreTrainedModel"),u(is,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),u(is,"rel","nofollow"),u(Bl,"href","/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormForTokenClassification"),u(Wt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(kt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Jn,"id","transformers.RobertaPreLayerNormForQuestionAnswering"),u(Jn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(Jn,"href","#transformers.RobertaPreLayerNormForQuestionAnswering"),u(Uo,"class","relative group"),u(Ql,"href","/docs/transformers/v4.27.1/en/main_classes/model#transformers.PreTrainedModel"),u(hs,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),u(hs,"rel","nofollow"),u(Hl,"href","/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.RobertaPreLayerNormForQuestionAnswering"),u(Ut,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Tt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Yn,"id","transformers.TFRobertaPreLayerNormModel"),u(Yn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(Yn,"href","#transformers.TFRobertaPreLayerNormModel"),u(Ho,"class","relative group"),u(Kl,"href","/docs/transformers/v4.27.1/en/main_classes/model#transformers.TFPreTrainedModel"),u(bs,"href","https://www.tensorflow.org/api_docs/python/tf/keras/Model"),u(bs,"rel","nofollow"),u(Vl,"href","/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.TFRobertaPreLayerNormModel"),u(Bt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(lt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(or,"id","transformers.TFRobertaPreLayerNormForCausalLM"),u(or,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(or,"href","#transformers.TFRobertaPreLayerNormForCausalLM"),u(Vo,"class","relative group"),u(Jl,"href","/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.TFRobertaPreLayerNormForCausalLM"),u(Qt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Jo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(ar,"id","transformers.TFRobertaPreLayerNormForMaskedLM"),u(ar,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(ar,"href","#transformers.TFRobertaPreLayerNormForMaskedLM"),u(Xo,"class","relative group"),u(Gl,"href","/docs/transformers/v4.27.1/en/main_classes/model#transformers.TFPreTrainedModel"),u(xs,"href","https://www.tensorflow.org/api_docs/python/tf/keras/Model"),u(xs,"rel","nofollow"),u(Xl,"href","/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.TFRobertaPreLayerNormForMaskedLM"),u(Pt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(dt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(cr,"id","transformers.TFRobertaPreLayerNormForSequenceClassification"),u(cr,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(cr,"href","#transformers.TFRobertaPreLayerNormForSequenceClassification"),u(Zo,"class","relative group"),u(Yl,"href","/docs/transformers/v4.27.1/en/main_classes/model#transformers.TFPreTrainedModel"),u(qs,"href","https://www.tensorflow.org/api_docs/python/tf/keras/Model"),u(qs,"rel","nofollow"),u(Zl,"href","/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.TFRobertaPreLayerNormForSequenceClassification"),u(Ft,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(ct,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(fr,"id","transformers.TFRobertaPreLayerNormForMultipleChoice"),u(fr,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(fr,"href","#transformers.TFRobertaPreLayerNormForMultipleChoice"),u(tn,"class","relative group"),u(ed,"href","/docs/transformers/v4.27.1/en/main_classes/model#transformers.TFPreTrainedModel"),u(Ss,"href","https://www.tensorflow.org/api_docs/python/tf/keras/Model"),u(Ss,"rel","nofollow"),u(td,"href","/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.TFRobertaPreLayerNormForMultipleChoice"),u(Ht,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(pt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(br,"id","transformers.TFRobertaPreLayerNormForTokenClassification"),u(br,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(br,"href","#transformers.TFRobertaPreLayerNormForTokenClassification"),u(nn,"class","relative group"),u(od,"href","/docs/transformers/v4.27.1/en/main_classes/model#transformers.TFPreTrainedModel"),u(Ks,"href","https://www.tensorflow.org/api_docs/python/tf/keras/Model"),u(Ks,"rel","nofollow"),u(nd,"href","/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.TFRobertaPreLayerNormForTokenClassification"),u(Nt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(mt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u($r,"id","transformers.TFRobertaPreLayerNormForQuestionAnswering"),u($r,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u($r,"href","#transformers.TFRobertaPreLayerNormForQuestionAnswering"),u(an,"class","relative group"),u(rd,"href","/docs/transformers/v4.27.1/en/main_classes/model#transformers.TFPreTrainedModel"),u(Zs,"href","https://www.tensorflow.org/api_docs/python/tf/keras/Model"),u(Zs,"rel","nofollow"),u(ad,"href","/docs/transformers/v4.27.1/en/model_doc/roberta-prelayernorm#transformers.TFRobertaPreLayerNormForQuestionAnswering"),u(Lt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(ht,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(xr,"id","transformers.FlaxRobertaPreLayerNormModel"),u(xr,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(xr,"href","#transformers.FlaxRobertaPreLayerNormModel"),u(dn,"class","relative group"),u(sd,"href","/docs/transformers/v4.27.1/en/main_classes/model#transformers.FlaxPreTrainedModel"),u(ai,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),u(ai,"rel","nofollow"),u(si,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),u(si,"rel","nofollow"),u(ii,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),u(ii,"rel","nofollow"),u(li,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),u(li,"rel","nofollow"),u(di,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),u(di,"rel","nofollow"),u(Kt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(et,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Rr,"id","transformers.FlaxRobertaPreLayerNormForCausalLM"),u(Rr,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(Rr,"href","#transformers.FlaxRobertaPreLayerNormForCausalLM"),u(pn,"class","relative group"),u(id,"href","/docs/transformers/v4.27.1/en/main_classes/model#transformers.FlaxPreTrainedModel"),u(fi,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),u(fi,"rel","nofollow"),u(gi,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),u(gi,"rel","nofollow"),u(_i,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),u(_i,"rel","nofollow"),u(yi,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),u(yi,"rel","nofollow"),u(bi,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),u(bi,"rel","nofollow"),u(Vt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(tt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(qr,"id","transformers.FlaxRobertaPreLayerNormForMaskedLM"),u(qr,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(qr,"href","#transformers.FlaxRobertaPreLayerNormForMaskedLM"),u(hn,"class","relative group"),u(ld,"href","/docs/transformers/v4.27.1/en/main_classes/model#transformers.FlaxPreTrainedModel"),u(Fi,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),u(Fi,"rel","nofollow"),u(Ni,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),u(Ni,"rel","nofollow"),u(Li,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),u(Li,"rel","nofollow"),u(xi,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),u(xi,"rel","nofollow"),u(Mi,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),u(Mi,"rel","nofollow"),u(Jt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Or,"id","transformers.FlaxRobertaPreLayerNormForSequenceClassification"),u(Or,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(Or,"href","#transformers.FlaxRobertaPreLayerNormForSequenceClassification"),u(fn,"class","relative group"),u(dd,"href","/docs/transformers/v4.27.1/en/main_classes/model#transformers.FlaxPreTrainedModel"),u(ji,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),u(ji,"rel","nofollow"),u(Ai,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),u(Ai,"rel","nofollow"),u(Oi,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),u(Oi,"rel","nofollow"),u(Ii,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),u(Ii,"rel","nofollow"),u(Di,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),u(Di,"rel","nofollow"),u(Gt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(nt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Sr,"id","transformers.FlaxRobertaPreLayerNormForMultipleChoice"),u(Sr,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(Sr,"href","#transformers.FlaxRobertaPreLayerNormForMultipleChoice"),u(_n,"class","relative group"),u(cd,"href","/docs/transformers/v4.27.1/en/main_classes/model#transformers.FlaxPreTrainedModel"),u(Hi,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),u(Hi,"rel","nofollow"),u(Ki,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),u(Ki,"rel","nofollow"),u(Vi,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),u(Vi,"rel","nofollow"),u(Ji,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),u(Ji,"rel","nofollow"),u(Gi,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),u(Gi,"rel","nofollow"),u(Xt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(rt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Br,"id","transformers.FlaxRobertaPreLayerNormForTokenClassification"),u(Br,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(Br,"href","#transformers.FlaxRobertaPreLayerNormForTokenClassification"),u(bn,"class","relative group"),u(pd,"href","/docs/transformers/v4.27.1/en/main_classes/model#transformers.FlaxPreTrainedModel"),u(ol,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),u(ol,"rel","nofollow"),u(nl,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),u(nl,"rel","nofollow"),u(rl,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),u(rl,"rel","nofollow"),u(al,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),u(al,"rel","nofollow"),u(sl,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),u(sl,"rel","nofollow"),u(Yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(at,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Kr,"id","transformers.FlaxRobertaPreLayerNormForQuestionAnswering"),u(Kr,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(Kr,"href","#transformers.FlaxRobertaPreLayerNormForQuestionAnswering"),u(kn,"class","relative group"),u(md,"href","/docs/transformers/v4.27.1/en/main_classes/model#transformers.FlaxPreTrainedModel"),u(ml,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),u(ml,"rel","nofollow"),u(hl,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),u(hl,"rel","nofollow"),u(ul,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),u(ul,"rel","nofollow"),u(fl,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),u(fl,"rel","nofollow"),u(gl,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),u(gl,"rel","nofollow"),u(Zt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(st,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(i,b){e(document.head,d),g(i,y,b),g(i,h,b),e(h,f),e(f,_),w(l,_,null),e(h,c),e(h,x),e(x,ye),g(i,he,b),g(i,D,b),e(D,ae),e(ae,te),w(L,te,null),e(D,be),e(D,B),e(B,ve),g(i,ue,b),g(i,A,b),e(A,ke),e(A,se),e(se,K),e(A,Te),e(A,ce),e(ce,V),e(A,we),e(A,ie),e(ie,J),e(A,$e),g(i,fe,b),g(i,ee,b),e(ee,R),g(i,C,b),g(i,le,b),e(le,Q),e(Q,Pe),g(i,ge,b),g(i,U,b),e(U,Fe),g(i,_e,b),g(i,z,b),e(z,H),e(H,G),e(H,de),e(de,Ne),e(H,X),e(H,pe),e(pe,Le),e(H,S),e(H,me),e(me,Y),e(H,xe),e(H,oe),e(oe,q),e(H,Me),e(H,j),e(j,Ee),e(H,Re),e(H,v),e(v,M),e(H,Be),e(z,re),e(z,ze),e(ze,Qe),e(ze,E),e(E,He),e(ze,Ke),e(ze,De),e(De,Ve),e(ze,Je),g(i,O,b),g(i,I,b),e(I,Ge),e(I,Se),e(Se,Z),e(I,Xe),e(I,We),e(We,Ce),e(I,Ye),g(i,ne,b),g(i,qe,b),e(qe,Fn),e(Fn,Od),w(ba,Od,null),e(qe,_f),e(qe,Id),e(Id,yf),g(i,ph,b),g(i,ft,b),e(ft,Dd),e(Dd,wl),e(wl,bf),e(ft,vf),e(ft,Sd),e(Sd,$l),e($l,kf),e(ft,Tf),e(ft,Wd),e(Wd,Pl),e(Pl,wf),e(ft,$f),e(ft,Ud),e(Ud,Fl),e(Fl,Pf),e(ft,Ff),e(ft,Bd),e(Bd,Nl),e(Nl,Nf),e(ft,Lf),e(ft,Qd),e(Qd,Ll),e(Ll,xf),g(i,mh,b),g(i,xo,b),e(xo,Nn),e(Nn,Hd),w(va,Hd,null),e(xo,Mf),e(xo,Kd),e(Kd,Ef),g(i,hh,b),g(i,At,b),w(ka,At,null),e(At,Rf),e(At,so),e(so,zf),e(so,xl),e(xl,Cf),e(so,qf),e(so,Ml),e(Ml,jf),e(so,Af),e(so,Ta),e(Ta,Of),e(so,If),e(At,Df),e(At,Mo),e(Mo,Sf),e(Mo,El),e(El,Wf),e(Mo,Uf),e(Mo,Rl),e(Rl,Bf),e(Mo,Qf),e(At,Hf),w(Ln,At,null),g(i,uh,b),g(i,Eo,b),e(Eo,xn),e(xn,Vd),w(wa,Vd,null),e(Eo,Kf),e(Eo,Jd),e(Jd,Vf),g(i,fh,b),g(i,Ze,b),w($a,Ze,null),e(Ze,Jf),e(Ze,Gd),e(Gd,Gf),e(Ze,Xf),e(Ze,Pa),e(Pa,Yf),e(Pa,zl),e(zl,Zf),e(Pa,eg),e(Ze,tg),e(Ze,Fa),e(Fa,og),e(Fa,Na),e(Na,ng),e(Fa,rg),e(Ze,ag),e(Ze,La),e(La,sg),e(La,Xd),e(Xd,ig),e(La,lg),e(Ze,dg),e(Ze,it),e(it,cg),e(it,Yd),e(Yd,pg),e(it,mg),e(it,Zd),e(Zd,hg),e(it,ug),e(it,ec),e(ec,fg),e(it,gg),e(it,tc),e(tc,_g),e(it,yg),e(it,oc),e(oc,bg),e(it,vg),e(it,nc),e(nc,kg),e(it,Tg),e(Ze,wg),e(Ze,Mn),e(Mn,$g),e(Mn,rc),e(rc,Pg),e(Mn,Fg),e(Mn,xa),e(xa,Ng),e(Ze,Lg),e(Ze,Ot),w(Ma,Ot,null),e(Ot,xg),e(Ot,Ro),e(Ro,Mg),e(Ro,Cl),e(Cl,Eg),e(Ro,Rg),e(Ro,ac),e(ac,zg),e(Ro,Cg),e(Ot,qg),w(En,Ot,null),e(Ot,jg),w(Rn,Ot,null),g(i,gh,b),g(i,zo,b),e(zo,zn),e(zn,sc),w(Ea,sc,null),e(zo,Ag),e(zo,ic),e(ic,Og),g(i,_h,b),g(i,_t,b),w(Ra,_t,null),e(_t,Ig),e(_t,za),e(za,Dg),e(za,lc),e(lc,Sg),e(za,Wg),e(_t,Ug),e(_t,Ca),e(Ca,Bg),e(Ca,ql),e(ql,Qg),e(Ca,Hg),e(_t,Kg),e(_t,qa),e(qa,Vg),e(qa,ja),e(ja,Jg),e(qa,Gg),e(_t,Xg),e(_t,It),w(Aa,It,null),e(It,Yg),e(It,Co),e(Co,Zg),e(Co,jl),e(jl,e_),e(Co,t_),e(Co,dc),e(dc,o_),e(Co,n_),e(It,r_),w(Cn,It,null),e(It,a_),w(qn,It,null),g(i,yh,b),g(i,qo,b),e(qo,jn),e(jn,cc),w(Oa,cc,null),e(qo,s_),e(qo,pc),e(pc,i_),g(i,bh,b),g(i,yt,b),w(Ia,yt,null),e(yt,l_),e(yt,Da),e(Da,d_),e(Da,mc),e(mc,c_),e(Da,p_),e(yt,m_),e(yt,Sa),e(Sa,h_),e(Sa,Al),e(Al,u_),e(Sa,f_),e(yt,g_),e(yt,Wa),e(Wa,__),e(Wa,Ua),e(Ua,y_),e(Wa,b_),e(yt,v_),e(yt,Dt),w(Ba,Dt,null),e(Dt,k_),e(Dt,jo),e(jo,T_),e(jo,Ol),e(Ol,w_),e(jo,$_),e(jo,hc),e(hc,P_),e(jo,F_),e(Dt,N_),w(An,Dt,null),e(Dt,L_),w(On,Dt,null),g(i,vh,b),g(i,Ao,b),e(Ao,In),e(In,uc),w(Qa,uc,null),e(Ao,x_),e(Ao,fc),e(fc,M_),g(i,kh,b),g(i,bt,b),w(Ha,bt,null),e(bt,E_),e(bt,gc),e(gc,R_),e(bt,z_),e(bt,Ka),e(Ka,C_),e(Ka,Il),e(Il,q_),e(Ka,j_),e(bt,A_),e(bt,Va),e(Va,O_),e(Va,Ja),e(Ja,I_),e(Va,D_),e(bt,S_),e(bt,$t),w(Ga,$t,null),e($t,W_),e($t,Oo),e(Oo,U_),e(Oo,Dl),e(Dl,B_),e(Oo,Q_),e(Oo,_c),e(_c,H_),e(Oo,K_),e($t,V_),w(Dn,$t,null),e($t,J_),w(Sn,$t,null),e($t,G_),w(Wn,$t,null),g(i,Th,b),g(i,Io,b),e(Io,Un),e(Un,yc),w(Xa,yc,null),e(Io,X_),e(Io,bc),e(bc,Y_),g(i,wh,b),g(i,vt,b),w(Ya,vt,null),e(vt,Z_),e(vt,vc),e(vc,ey),e(vt,ty),e(vt,Za),e(Za,oy),e(Za,Sl),e(Sl,ny),e(Za,ry),e(vt,ay),e(vt,es),e(es,sy),e(es,ts),e(ts,iy),e(es,ly),e(vt,dy),e(vt,St),w(os,St,null),e(St,cy),e(St,Do),e(Do,py),e(Do,Wl),e(Wl,my),e(Do,hy),e(Do,kc),e(kc,uy),e(Do,fy),e(St,gy),w(Bn,St,null),e(St,_y),w(Qn,St,null),g(i,$h,b),g(i,So,b),e(So,Hn),e(Hn,Tc),w(ns,Tc,null),e(So,yy),e(So,wc),e(wc,by),g(i,Ph,b),g(i,kt,b),w(rs,kt,null),e(kt,vy),e(kt,$c),e($c,ky),e(kt,Ty),e(kt,as),e(as,wy),e(as,Ul),e(Ul,$y),e(as,Py),e(kt,Fy),e(kt,ss),e(ss,Ny),e(ss,is),e(is,Ly),e(ss,xy),e(kt,My),e(kt,Wt),w(ls,Wt,null),e(Wt,Ey),e(Wt,Wo),e(Wo,Ry),e(Wo,Bl),e(Bl,zy),e(Wo,Cy),e(Wo,Pc),e(Pc,qy),e(Wo,jy),e(Wt,Ay),w(Kn,Wt,null),e(Wt,Oy),w(Vn,Wt,null),g(i,Fh,b),g(i,Uo,b),e(Uo,Jn),e(Jn,Fc),w(ds,Fc,null),e(Uo,Iy),e(Uo,Nc),e(Nc,Dy),g(i,Nh,b),g(i,Tt,b),w(cs,Tt,null),e(Tt,Sy),e(Tt,Bo),e(Bo,Wy),e(Bo,Lc),e(Lc,Uy),e(Bo,By),e(Bo,xc),e(xc,Qy),e(Bo,Hy),e(Tt,Ky),e(Tt,ps),e(ps,Vy),e(ps,Ql),e(Ql,Jy),e(ps,Gy),e(Tt,Xy),e(Tt,ms),e(ms,Yy),e(ms,hs),e(hs,Zy),e(ms,eb),e(Tt,tb),e(Tt,Ut),w(us,Ut,null),e(Ut,ob),e(Ut,Qo),e(Qo,nb),e(Qo,Hl),e(Hl,rb),e(Qo,ab),e(Qo,Mc),e(Mc,sb),e(Qo,ib),e(Ut,lb),w(Gn,Ut,null),e(Ut,db),w(Xn,Ut,null),g(i,Lh,b),g(i,Ho,b),e(Ho,Yn),e(Yn,Ec),w(fs,Ec,null),e(Ho,cb),e(Ho,Rc),e(Rc,pb),g(i,xh,b),g(i,lt,b),w(gs,lt,null),e(lt,mb),e(lt,zc),e(zc,hb),e(lt,ub),e(lt,_s),e(_s,fb),e(_s,Kl),e(Kl,gb),e(_s,_b),e(lt,yb),e(lt,ys),e(ys,bb),e(ys,bs),e(bs,vb),e(ys,kb),e(lt,Tb),w(Zn,lt,null),e(lt,wb),e(lt,Bt),w(vs,Bt,null),e(Bt,$b),e(Bt,Ko),e(Ko,Pb),e(Ko,Vl),e(Vl,Fb),e(Ko,Nb),e(Ko,Cc),e(Cc,Lb),e(Ko,xb),e(Bt,Mb),w(er,Bt,null),e(Bt,Eb),w(tr,Bt,null),g(i,Mh,b),g(i,Vo,b),e(Vo,or),e(or,qc),w(ks,qc,null),e(Vo,Rb),e(Vo,jc),e(jc,zb),g(i,Eh,b),g(i,Jo,b),w(Ts,Jo,null),e(Jo,Cb),e(Jo,Qt),w(ws,Qt,null),e(Qt,qb),e(Qt,Go),e(Go,jb),e(Go,Jl),e(Jl,Ab),e(Go,Ob),e(Go,Ac),e(Ac,Ib),e(Go,Db),e(Qt,Sb),w(nr,Qt,null),e(Qt,Wb),w(rr,Qt,null),g(i,Rh,b),g(i,Xo,b),e(Xo,ar),e(ar,Oc),w($s,Oc,null),e(Xo,Ub),e(Xo,Ic),e(Ic,Bb),g(i,zh,b),g(i,dt,b),w(Ps,dt,null),e(dt,Qb),e(dt,Fs),e(Fs,Hb),e(Fs,Dc),e(Dc,Kb),e(Fs,Vb),e(dt,Jb),e(dt,Ns),e(Ns,Gb),e(Ns,Gl),e(Gl,Xb),e(Ns,Yb),e(dt,Zb),e(dt,Ls),e(Ls,ev),e(Ls,xs),e(xs,tv),e(Ls,ov),e(dt,nv),w(sr,dt,null),e(dt,rv),e(dt,Pt),w(Ms,Pt,null),e(Pt,av),e(Pt,Yo),e(Yo,sv),e(Yo,Xl),e(Xl,iv),e(Yo,lv),e(Yo,Sc),e(Sc,dv),e(Yo,cv),e(Pt,pv),w(ir,Pt,null),e(Pt,mv),w(lr,Pt,null),e(Pt,hv),w(dr,Pt,null),g(i,Ch,b),g(i,Zo,b),e(Zo,cr),e(cr,Wc),w(Es,Wc,null),e(Zo,uv),e(Zo,Uc),e(Uc,fv),g(i,qh,b),g(i,ct,b),w(Rs,ct,null),e(ct,gv),e(ct,Bc),e(Bc,_v),e(ct,yv),e(ct,zs),e(zs,bv),e(zs,Yl),e(Yl,vv),e(zs,kv),e(ct,Tv),e(ct,Cs),e(Cs,wv),e(Cs,qs),e(qs,$v),e(Cs,Pv),e(ct,Fv),w(pr,ct,null),e(ct,Nv),e(ct,Ft),w(js,Ft,null),e(Ft,Lv),e(Ft,en),e(en,xv),e(en,Zl),e(Zl,Mv),e(en,Ev),e(en,Qc),e(Qc,Rv),e(en,zv),e(Ft,Cv),w(mr,Ft,null),e(Ft,qv),w(hr,Ft,null),e(Ft,jv),w(ur,Ft,null),g(i,jh,b),g(i,tn,b),e(tn,fr),e(fr,Hc),w(As,Hc,null),e(tn,Av),e(tn,Kc),e(Kc,Ov),g(i,Ah,b),g(i,pt,b),w(Os,pt,null),e(pt,Iv),e(pt,Vc),e(Vc,Dv),e(pt,Sv),e(pt,Is),e(Is,Wv),e(Is,ed),e(ed,Uv),e(Is,Bv),e(pt,Qv),e(pt,Ds),e(Ds,Hv),e(Ds,Ss),e(Ss,Kv),e(Ds,Vv),e(pt,Jv),w(gr,pt,null),e(pt,Gv),e(pt,Ht),w(Ws,Ht,null),e(Ht,Xv),e(Ht,on),e(on,Yv),e(on,td),e(td,Zv),e(on,ek),e(on,Jc),e(Jc,tk),e(on,ok),e(Ht,nk),w(_r,Ht,null),e(Ht,rk),w(yr,Ht,null),g(i,Oh,b),g(i,nn,b),e(nn,br),e(br,Gc),w(Us,Gc,null),e(nn,ak),e(nn,Xc),e(Xc,sk),g(i,Ih,b),g(i,mt,b),w(Bs,mt,null),e(mt,ik),e(mt,Yc),e(Yc,lk),e(mt,dk),e(mt,Qs),e(Qs,ck),e(Qs,od),e(od,pk),e(Qs,mk),e(mt,hk),e(mt,Hs),e(Hs,uk),e(Hs,Ks),e(Ks,fk),e(Hs,gk),e(mt,_k),w(vr,mt,null),e(mt,yk),e(mt,Nt),w(Vs,Nt,null),e(Nt,bk),e(Nt,rn),e(rn,vk),e(rn,nd),e(nd,kk),e(rn,Tk),e(rn,Zc),e(Zc,wk),e(rn,$k),e(Nt,Pk),w(kr,Nt,null),e(Nt,Fk),w(Tr,Nt,null),e(Nt,Nk),w(wr,Nt,null),g(i,Dh,b),g(i,an,b),e(an,$r),e($r,ep),w(Js,ep,null),e(an,Lk),e(an,tp),e(tp,xk),g(i,Sh,b),g(i,ht,b),w(Gs,ht,null),e(ht,Mk),e(ht,sn),e(sn,Ek),e(sn,op),e(op,Rk),e(sn,zk),e(sn,np),e(np,Ck),e(sn,qk),e(ht,jk),e(ht,Xs),e(Xs,Ak),e(Xs,rd),e(rd,Ok),e(Xs,Ik),e(ht,Dk),e(ht,Ys),e(Ys,Sk),e(Ys,Zs),e(Zs,Wk),e(Ys,Uk),e(ht,Bk),w(Pr,ht,null),e(ht,Qk),e(ht,Lt),w(ei,Lt,null),e(Lt,Hk),e(Lt,ln),e(ln,Kk),e(ln,ad),e(ad,Vk),e(ln,Jk),e(ln,rp),e(rp,Gk),e(ln,Xk),e(Lt,Yk),w(Fr,Lt,null),e(Lt,Zk),w(Nr,Lt,null),e(Lt,eT),w(Lr,Lt,null),g(i,Wh,b),g(i,dn,b),e(dn,xr),e(xr,ap),w(ti,ap,null),e(dn,tT),e(dn,sp),e(sp,oT),g(i,Uh,b),g(i,et,b),w(oi,et,null),e(et,nT),e(et,ip),e(ip,rT),e(et,aT),e(et,ni),e(ni,sT),e(ni,sd),e(sd,iT),e(ni,lT),e(et,dT),e(et,ri),e(ri,cT),e(ri,ai),e(ai,pT),e(ri,mT),e(et,hT),e(et,lp),e(lp,uT),e(et,fT),e(et,io),e(io,dp),e(dp,si),e(si,gT),e(io,_T),e(io,cp),e(cp,ii),e(ii,yT),e(io,bT),e(io,pp),e(pp,li),e(li,vT),e(io,kT),e(io,mp),e(mp,di),e(di,TT),e(et,wT),e(et,Kt),w(ci,Kt,null),e(Kt,$T),e(Kt,cn),e(cn,PT),e(cn,hp),e(hp,FT),e(cn,NT),e(cn,up),e(up,LT),e(cn,xT),e(Kt,MT),w(Mr,Kt,null),e(Kt,ET),w(Er,Kt,null),g(i,Bh,b),g(i,pn,b),e(pn,Rr),e(Rr,fp),w(pi,fp,null),e(pn,RT),e(pn,gp),e(gp,zT),g(i,Qh,b),g(i,tt,b),w(mi,tt,null),e(tt,CT),e(tt,_p),e(_p,qT),e(tt,jT),e(tt,hi),e(hi,AT),e(hi,id),e(id,OT),e(hi,IT),e(tt,DT),e(tt,ui),e(ui,ST),e(ui,fi),e(fi,WT),e(ui,UT),e(tt,BT),e(tt,yp),e(yp,QT),e(tt,HT),e(tt,lo),e(lo,bp),e(bp,gi),e(gi,KT),e(lo,VT),e(lo,vp),e(vp,_i),e(_i,JT),e(lo,GT),e(lo,kp),e(kp,yi),e(yi,XT),e(lo,YT),e(lo,Tp),e(Tp,bi),e(bi,ZT),e(tt,ew),e(tt,Vt),w(vi,Vt,null),e(Vt,tw),e(Vt,mn),e(mn,ow),e(mn,wp),e(wp,nw),e(mn,rw),e(mn,$p),e($p,aw),e(mn,sw),e(Vt,iw),w(zr,Vt,null),e(Vt,lw),w(Cr,Vt,null),g(i,Hh,b),g(i,hn,b),e(hn,qr),e(qr,Pp),w(ki,Pp,null),e(hn,dw),e(hn,Fp),e(Fp,cw),g(i,Kh,b),g(i,ot,b),w(Ti,ot,null),e(ot,pw),e(ot,wi),e(wi,mw),e(wi,Np),e(Np,hw),e(wi,uw),e(ot,fw),e(ot,$i),e($i,gw),e($i,ld),e(ld,_w),e($i,yw),e(ot,bw),e(ot,Pi),e(Pi,vw),e(Pi,Fi),e(Fi,kw),e(Pi,Tw),e(ot,ww),e(ot,Lp),e(Lp,$w),e(ot,Pw),e(ot,co),e(co,xp),e(xp,Ni),e(Ni,Fw),e(co,Nw),e(co,Mp),e(Mp,Li),e(Li,Lw),e(co,xw),e(co,Ep),e(Ep,xi),e(xi,Mw),e(co,Ew),e(co,Rp),e(Rp,Mi),e(Mi,Rw),e(ot,zw),e(ot,Jt),w(Ei,Jt,null),e(Jt,Cw),e(Jt,un),e(un,qw),e(un,zp),e(zp,jw),e(un,Aw),e(un,Cp),e(Cp,Ow),e(un,Iw),e(Jt,Dw),w(jr,Jt,null),e(Jt,Sw),w(Ar,Jt,null),g(i,Vh,b),g(i,fn,b),e(fn,Or),e(Or,qp),w(Ri,qp,null),e(fn,Ww),e(fn,jp),e(jp,Uw),g(i,Jh,b),g(i,nt,b),w(zi,nt,null),e(nt,Bw),e(nt,Ap),e(Ap,Qw),e(nt,Hw),e(nt,Ci),e(Ci,Kw),e(Ci,dd),e(dd,Vw),e(Ci,Jw),e(nt,Gw),e(nt,qi),e(qi,Xw),e(qi,ji),e(ji,Yw),e(qi,Zw),e(nt,e1),e(nt,Op),e(Op,t1),e(nt,o1),e(nt,po),e(po,Ip),e(Ip,Ai),e(Ai,n1),e(po,r1),e(po,Dp),e(Dp,Oi),e(Oi,a1),e(po,s1),e(po,Sp),e(Sp,Ii),e(Ii,i1),e(po,l1),e(po,Wp),e(Wp,Di),e(Di,d1),e(nt,c1),e(nt,Gt),w(Si,Gt,null),e(Gt,p1),e(Gt,gn),e(gn,m1),e(gn,Up),e(Up,h1),e(gn,u1),e(gn,Bp),e(Bp,f1),e(gn,g1),e(Gt,_1),w(Ir,Gt,null),e(Gt,y1),w(Dr,Gt,null),g(i,Gh,b),g(i,_n,b),e(_n,Sr),e(Sr,Qp),w(Wi,Qp,null),e(_n,b1),e(_n,Hp),e(Hp,v1),g(i,Xh,b),g(i,rt,b),w(Ui,rt,null),e(rt,k1),e(rt,Kp),e(Kp,T1),e(rt,w1),e(rt,Bi),e(Bi,$1),e(Bi,cd),e(cd,P1),e(Bi,F1),e(rt,N1),e(rt,Qi),e(Qi,L1),e(Qi,Hi),e(Hi,x1),e(Qi,M1),e(rt,E1),e(rt,Vp),e(Vp,R1),e(rt,z1),e(rt,mo),e(mo,Jp),e(Jp,Ki),e(Ki,C1),e(mo,q1),e(mo,Gp),e(Gp,Vi),e(Vi,j1),e(mo,A1),e(mo,Xp),e(Xp,Ji),e(Ji,O1),e(mo,I1),e(mo,Yp),e(Yp,Gi),e(Gi,D1),e(rt,S1),e(rt,Xt),w(Xi,Xt,null),e(Xt,W1),e(Xt,yn),e(yn,U1),e(yn,Zp),e(Zp,B1),e(yn,Q1),e(yn,em),e(em,H1),e(yn,K1),e(Xt,V1),w(Wr,Xt,null),e(Xt,J1),w(Ur,Xt,null),g(i,Yh,b),g(i,bn,b),e(bn,Br),e(Br,tm),w(Yi,tm,null),e(bn,G1),e(bn,om),e(om,X1),g(i,Zh,b),g(i,at,b),w(Zi,at,null),e(at,Y1),e(at,nm),e(nm,Z1),e(at,e$),e(at,el),e(el,t$),e(el,pd),e(pd,o$),e(el,n$),e(at,r$),e(at,tl),e(tl,a$),e(tl,ol),e(ol,s$),e(tl,i$),e(at,l$),e(at,rm),e(rm,d$),e(at,c$),e(at,ho),e(ho,am),e(am,nl),e(nl,p$),e(ho,m$),e(ho,sm),e(sm,rl),e(rl,h$),e(ho,u$),e(ho,im),e(im,al),e(al,f$),e(ho,g$),e(ho,lm),e(lm,sl),e(sl,_$),e(at,y$),e(at,Yt),w(il,Yt,null),e(Yt,b$),e(Yt,vn),e(vn,v$),e(vn,dm),e(dm,k$),e(vn,T$),e(vn,cm),e(cm,w$),e(vn,$$),e(Yt,P$),w(Qr,Yt,null),e(Yt,F$),w(Hr,Yt,null),g(i,eu,b),g(i,kn,b),e(kn,Kr),e(Kr,pm),w(ll,pm,null),e(kn,N$),e(kn,mm),e(mm,L$),g(i,tu,b),g(i,st,b),w(dl,st,null),e(st,x$),e(st,Tn),e(Tn,M$),e(Tn,hm),e(hm,E$),e(Tn,R$),e(Tn,um),e(um,z$),e(Tn,C$),e(st,q$),e(st,cl),e(cl,j$),e(cl,md),e(md,A$),e(cl,O$),e(st,I$),e(st,pl),e(pl,D$),e(pl,ml),e(ml,S$),e(pl,W$),e(st,U$),e(st,fm),e(fm,B$),e(st,Q$),e(st,uo),e(uo,gm),e(gm,hl),e(hl,H$),e(uo,K$),e(uo,_m),e(_m,ul),e(ul,V$),e(uo,J$),e(uo,ym),e(ym,fl),e(fl,G$),e(uo,X$),e(uo,bm),e(bm,gl),e(gl,Y$),e(st,Z$),e(st,Zt),w(_l,Zt,null),e(Zt,e2),e(Zt,wn),e(wn,t2),e(wn,vm),e(vm,o2),e(wn,n2),e(wn,km),e(km,r2),e(wn,a2),e(Zt,s2),w(Vr,Zt,null),e(Zt,i2),w(Jr,Zt,null),ou=!0},p(i,[b]){const yl={};b&2&&(yl.$$scope={dirty:b,ctx:i}),Ln.$set(yl);const Tm={};b&2&&(Tm.$$scope={dirty:b,ctx:i}),En.$set(Tm);const wm={};b&2&&(wm.$$scope={dirty:b,ctx:i}),Rn.$set(wm);const $m={};b&2&&($m.$$scope={dirty:b,ctx:i}),Cn.$set($m);const bl={};b&2&&(bl.$$scope={dirty:b,ctx:i}),qn.$set(bl);const Pm={};b&2&&(Pm.$$scope={dirty:b,ctx:i}),An.$set(Pm);const Fm={};b&2&&(Fm.$$scope={dirty:b,ctx:i}),On.$set(Fm);const Nm={};b&2&&(Nm.$$scope={dirty:b,ctx:i}),Dn.$set(Nm);const fo={};b&2&&(fo.$$scope={dirty:b,ctx:i}),Sn.$set(fo);const Lm={};b&2&&(Lm.$$scope={dirty:b,ctx:i}),Wn.$set(Lm);const xm={};b&2&&(xm.$$scope={dirty:b,ctx:i}),Bn.$set(xm);const Mm={};b&2&&(Mm.$$scope={dirty:b,ctx:i}),Qn.$set(Mm);const Em={};b&2&&(Em.$$scope={dirty:b,ctx:i}),Kn.$set(Em);const Rm={};b&2&&(Rm.$$scope={dirty:b,ctx:i}),Vn.$set(Rm);const zm={};b&2&&(zm.$$scope={dirty:b,ctx:i}),Gn.$set(zm);const Cm={};b&2&&(Cm.$$scope={dirty:b,ctx:i}),Xn.$set(Cm);const vl={};b&2&&(vl.$$scope={dirty:b,ctx:i}),Zn.$set(vl);const ut={};b&2&&(ut.$$scope={dirty:b,ctx:i}),er.$set(ut);const qm={};b&2&&(qm.$$scope={dirty:b,ctx:i}),tr.$set(qm);const jm={};b&2&&(jm.$$scope={dirty:b,ctx:i}),nr.$set(jm);const Am={};b&2&&(Am.$$scope={dirty:b,ctx:i}),rr.$set(Am);const Om={};b&2&&(Om.$$scope={dirty:b,ctx:i}),sr.$set(Om);const Im={};b&2&&(Im.$$scope={dirty:b,ctx:i}),ir.$set(Im);const Dm={};b&2&&(Dm.$$scope={dirty:b,ctx:i}),lr.$set(Dm);const $n={};b&2&&($n.$$scope={dirty:b,ctx:i}),dr.$set($n);const Sm={};b&2&&(Sm.$$scope={dirty:b,ctx:i}),pr.$set(Sm);const Wm={};b&2&&(Wm.$$scope={dirty:b,ctx:i}),mr.$set(Wm);const Pn={};b&2&&(Pn.$$scope={dirty:b,ctx:i}),hr.$set(Pn);const Um={};b&2&&(Um.$$scope={dirty:b,ctx:i}),ur.$set(Um);const Bm={};b&2&&(Bm.$$scope={dirty:b,ctx:i}),gr.$set(Bm);const kl={};b&2&&(kl.$$scope={dirty:b,ctx:i}),_r.$set(kl);const Qm={};b&2&&(Qm.$$scope={dirty:b,ctx:i}),yr.$set(Qm);const Hm={};b&2&&(Hm.$$scope={dirty:b,ctx:i}),vr.$set(Hm);const Km={};b&2&&(Km.$$scope={dirty:b,ctx:i}),kr.$set(Km);const wt={};b&2&&(wt.$$scope={dirty:b,ctx:i}),Tr.$set(wt);const Vm={};b&2&&(Vm.$$scope={dirty:b,ctx:i}),wr.$set(Vm);const Jm={};b&2&&(Jm.$$scope={dirty:b,ctx:i}),Pr.$set(Jm);const Gm={};b&2&&(Gm.$$scope={dirty:b,ctx:i}),Fr.$set(Gm);const Xm={};b&2&&(Xm.$$scope={dirty:b,ctx:i}),Nr.$set(Xm);const Ym={};b&2&&(Ym.$$scope={dirty:b,ctx:i}),Lr.$set(Ym);const Zm={};b&2&&(Zm.$$scope={dirty:b,ctx:i}),Mr.$set(Zm);const eh={};b&2&&(eh.$$scope={dirty:b,ctx:i}),Er.$set(eh);const th={};b&2&&(th.$$scope={dirty:b,ctx:i}),zr.$set(th);const oh={};b&2&&(oh.$$scope={dirty:b,ctx:i}),Cr.$set(oh);const nh={};b&2&&(nh.$$scope={dirty:b,ctx:i}),jr.$set(nh);const rh={};b&2&&(rh.$$scope={dirty:b,ctx:i}),Ar.$set(rh);const ah={};b&2&&(ah.$$scope={dirty:b,ctx:i}),Ir.$set(ah);const Tl={};b&2&&(Tl.$$scope={dirty:b,ctx:i}),Dr.$set(Tl);const sh={};b&2&&(sh.$$scope={dirty:b,ctx:i}),Wr.$set(sh);const ih={};b&2&&(ih.$$scope={dirty:b,ctx:i}),Ur.$set(ih);const lh={};b&2&&(lh.$$scope={dirty:b,ctx:i}),Qr.$set(lh);const go={};b&2&&(go.$$scope={dirty:b,ctx:i}),Hr.$set(go);const _o={};b&2&&(_o.$$scope={dirty:b,ctx:i}),Vr.$set(_o);const dh={};b&2&&(dh.$$scope={dirty:b,ctx:i}),Jr.$set(dh)},i(i){ou||($(l.$$.fragment,i),$(L.$$.fragment,i),$(ba.$$.fragment,i),$(va.$$.fragment,i),$(ka.$$.fragment,i),$(Ln.$$.fragment,i),$(wa.$$.fragment,i),$($a.$$.fragment,i),$(Ma.$$.fragment,i),$(En.$$.fragment,i),$(Rn.$$.fragment,i),$(Ea.$$.fragment,i),$(Ra.$$.fragment,i),$(Aa.$$.fragment,i),$(Cn.$$.fragment,i),$(qn.$$.fragment,i),$(Oa.$$.fragment,i),$(Ia.$$.fragment,i),$(Ba.$$.fragment,i),$(An.$$.fragment,i),$(On.$$.fragment,i),$(Qa.$$.fragment,i),$(Ha.$$.fragment,i),$(Ga.$$.fragment,i),$(Dn.$$.fragment,i),$(Sn.$$.fragment,i),$(Wn.$$.fragment,i),$(Xa.$$.fragment,i),$(Ya.$$.fragment,i),$(os.$$.fragment,i),$(Bn.$$.fragment,i),$(Qn.$$.fragment,i),$(ns.$$.fragment,i),$(rs.$$.fragment,i),$(ls.$$.fragment,i),$(Kn.$$.fragment,i),$(Vn.$$.fragment,i),$(ds.$$.fragment,i),$(cs.$$.fragment,i),$(us.$$.fragment,i),$(Gn.$$.fragment,i),$(Xn.$$.fragment,i),$(fs.$$.fragment,i),$(gs.$$.fragment,i),$(Zn.$$.fragment,i),$(vs.$$.fragment,i),$(er.$$.fragment,i),$(tr.$$.fragment,i),$(ks.$$.fragment,i),$(Ts.$$.fragment,i),$(ws.$$.fragment,i),$(nr.$$.fragment,i),$(rr.$$.fragment,i),$($s.$$.fragment,i),$(Ps.$$.fragment,i),$(sr.$$.fragment,i),$(Ms.$$.fragment,i),$(ir.$$.fragment,i),$(lr.$$.fragment,i),$(dr.$$.fragment,i),$(Es.$$.fragment,i),$(Rs.$$.fragment,i),$(pr.$$.fragment,i),$(js.$$.fragment,i),$(mr.$$.fragment,i),$(hr.$$.fragment,i),$(ur.$$.fragment,i),$(As.$$.fragment,i),$(Os.$$.fragment,i),$(gr.$$.fragment,i),$(Ws.$$.fragment,i),$(_r.$$.fragment,i),$(yr.$$.fragment,i),$(Us.$$.fragment,i),$(Bs.$$.fragment,i),$(vr.$$.fragment,i),$(Vs.$$.fragment,i),$(kr.$$.fragment,i),$(Tr.$$.fragment,i),$(wr.$$.fragment,i),$(Js.$$.fragment,i),$(Gs.$$.fragment,i),$(Pr.$$.fragment,i),$(ei.$$.fragment,i),$(Fr.$$.fragment,i),$(Nr.$$.fragment,i),$(Lr.$$.fragment,i),$(ti.$$.fragment,i),$(oi.$$.fragment,i),$(ci.$$.fragment,i),$(Mr.$$.fragment,i),$(Er.$$.fragment,i),$(pi.$$.fragment,i),$(mi.$$.fragment,i),$(vi.$$.fragment,i),$(zr.$$.fragment,i),$(Cr.$$.fragment,i),$(ki.$$.fragment,i),$(Ti.$$.fragment,i),$(Ei.$$.fragment,i),$(jr.$$.fragment,i),$(Ar.$$.fragment,i),$(Ri.$$.fragment,i),$(zi.$$.fragment,i),$(Si.$$.fragment,i),$(Ir.$$.fragment,i),$(Dr.$$.fragment,i),$(Wi.$$.fragment,i),$(Ui.$$.fragment,i),$(Xi.$$.fragment,i),$(Wr.$$.fragment,i),$(Ur.$$.fragment,i),$(Yi.$$.fragment,i),$(Zi.$$.fragment,i),$(il.$$.fragment,i),$(Qr.$$.fragment,i),$(Hr.$$.fragment,i),$(ll.$$.fragment,i),$(dl.$$.fragment,i),$(_l.$$.fragment,i),$(Vr.$$.fragment,i),$(Jr.$$.fragment,i),ou=!0)},o(i){P(l.$$.fragment,i),P(L.$$.fragment,i),P(ba.$$.fragment,i),P(va.$$.fragment,i),P(ka.$$.fragment,i),P(Ln.$$.fragment,i),P(wa.$$.fragment,i),P($a.$$.fragment,i),P(Ma.$$.fragment,i),P(En.$$.fragment,i),P(Rn.$$.fragment,i),P(Ea.$$.fragment,i),P(Ra.$$.fragment,i),P(Aa.$$.fragment,i),P(Cn.$$.fragment,i),P(qn.$$.fragment,i),P(Oa.$$.fragment,i),P(Ia.$$.fragment,i),P(Ba.$$.fragment,i),P(An.$$.fragment,i),P(On.$$.fragment,i),P(Qa.$$.fragment,i),P(Ha.$$.fragment,i),P(Ga.$$.fragment,i),P(Dn.$$.fragment,i),P(Sn.$$.fragment,i),P(Wn.$$.fragment,i),P(Xa.$$.fragment,i),P(Ya.$$.fragment,i),P(os.$$.fragment,i),P(Bn.$$.fragment,i),P(Qn.$$.fragment,i),P(ns.$$.fragment,i),P(rs.$$.fragment,i),P(ls.$$.fragment,i),P(Kn.$$.fragment,i),P(Vn.$$.fragment,i),P(ds.$$.fragment,i),P(cs.$$.fragment,i),P(us.$$.fragment,i),P(Gn.$$.fragment,i),P(Xn.$$.fragment,i),P(fs.$$.fragment,i),P(gs.$$.fragment,i),P(Zn.$$.fragment,i),P(vs.$$.fragment,i),P(er.$$.fragment,i),P(tr.$$.fragment,i),P(ks.$$.fragment,i),P(Ts.$$.fragment,i),P(ws.$$.fragment,i),P(nr.$$.fragment,i),P(rr.$$.fragment,i),P($s.$$.fragment,i),P(Ps.$$.fragment,i),P(sr.$$.fragment,i),P(Ms.$$.fragment,i),P(ir.$$.fragment,i),P(lr.$$.fragment,i),P(dr.$$.fragment,i),P(Es.$$.fragment,i),P(Rs.$$.fragment,i),P(pr.$$.fragment,i),P(js.$$.fragment,i),P(mr.$$.fragment,i),P(hr.$$.fragment,i),P(ur.$$.fragment,i),P(As.$$.fragment,i),P(Os.$$.fragment,i),P(gr.$$.fragment,i),P(Ws.$$.fragment,i),P(_r.$$.fragment,i),P(yr.$$.fragment,i),P(Us.$$.fragment,i),P(Bs.$$.fragment,i),P(vr.$$.fragment,i),P(Vs.$$.fragment,i),P(kr.$$.fragment,i),P(Tr.$$.fragment,i),P(wr.$$.fragment,i),P(Js.$$.fragment,i),P(Gs.$$.fragment,i),P(Pr.$$.fragment,i),P(ei.$$.fragment,i),P(Fr.$$.fragment,i),P(Nr.$$.fragment,i),P(Lr.$$.fragment,i),P(ti.$$.fragment,i),P(oi.$$.fragment,i),P(ci.$$.fragment,i),P(Mr.$$.fragment,i),P(Er.$$.fragment,i),P(pi.$$.fragment,i),P(mi.$$.fragment,i),P(vi.$$.fragment,i),P(zr.$$.fragment,i),P(Cr.$$.fragment,i),P(ki.$$.fragment,i),P(Ti.$$.fragment,i),P(Ei.$$.fragment,i),P(jr.$$.fragment,i),P(Ar.$$.fragment,i),P(Ri.$$.fragment,i),P(zi.$$.fragment,i),P(Si.$$.fragment,i),P(Ir.$$.fragment,i),P(Dr.$$.fragment,i),P(Wi.$$.fragment,i),P(Ui.$$.fragment,i),P(Xi.$$.fragment,i),P(Wr.$$.fragment,i),P(Ur.$$.fragment,i),P(Yi.$$.fragment,i),P(Zi.$$.fragment,i),P(il.$$.fragment,i),P(Qr.$$.fragment,i),P(Hr.$$.fragment,i),P(ll.$$.fragment,i),P(dl.$$.fragment,i),P(_l.$$.fragment,i),P(Vr.$$.fragment,i),P(Jr.$$.fragment,i),ou=!1},d(i){t(d),i&&t(y),i&&t(h),F(l),i&&t(he),i&&t(D),F(L),i&&t(ue),i&&t(A),i&&t(fe),i&&t(ee),i&&t(C),i&&t(le),i&&t(ge),i&&t(U),i&&t(_e),i&&t(z),i&&t(O),i&&t(I),i&&t(ne),i&&t(qe),F(ba),i&&t(ph),i&&t(ft),i&&t(mh),i&&t(xo),F(va),i&&t(hh),i&&t(At),F(ka),F(Ln),i&&t(uh),i&&t(Eo),F(wa),i&&t(fh),i&&t(Ze),F($a),F(Ma),F(En),F(Rn),i&&t(gh),i&&t(zo),F(Ea),i&&t(_h),i&&t(_t),F(Ra),F(Aa),F(Cn),F(qn),i&&t(yh),i&&t(qo),F(Oa),i&&t(bh),i&&t(yt),F(Ia),F(Ba),F(An),F(On),i&&t(vh),i&&t(Ao),F(Qa),i&&t(kh),i&&t(bt),F(Ha),F(Ga),F(Dn),F(Sn),F(Wn),i&&t(Th),i&&t(Io),F(Xa),i&&t(wh),i&&t(vt),F(Ya),F(os),F(Bn),F(Qn),i&&t($h),i&&t(So),F(ns),i&&t(Ph),i&&t(kt),F(rs),F(ls),F(Kn),F(Vn),i&&t(Fh),i&&t(Uo),F(ds),i&&t(Nh),i&&t(Tt),F(cs),F(us),F(Gn),F(Xn),i&&t(Lh),i&&t(Ho),F(fs),i&&t(xh),i&&t(lt),F(gs),F(Zn),F(vs),F(er),F(tr),i&&t(Mh),i&&t(Vo),F(ks),i&&t(Eh),i&&t(Jo),F(Ts),F(ws),F(nr),F(rr),i&&t(Rh),i&&t(Xo),F($s),i&&t(zh),i&&t(dt),F(Ps),F(sr),F(Ms),F(ir),F(lr),F(dr),i&&t(Ch),i&&t(Zo),F(Es),i&&t(qh),i&&t(ct),F(Rs),F(pr),F(js),F(mr),F(hr),F(ur),i&&t(jh),i&&t(tn),F(As),i&&t(Ah),i&&t(pt),F(Os),F(gr),F(Ws),F(_r),F(yr),i&&t(Oh),i&&t(nn),F(Us),i&&t(Ih),i&&t(mt),F(Bs),F(vr),F(Vs),F(kr),F(Tr),F(wr),i&&t(Dh),i&&t(an),F(Js),i&&t(Sh),i&&t(ht),F(Gs),F(Pr),F(ei),F(Fr),F(Nr),F(Lr),i&&t(Wh),i&&t(dn),F(ti),i&&t(Uh),i&&t(et),F(oi),F(ci),F(Mr),F(Er),i&&t(Bh),i&&t(pn),F(pi),i&&t(Qh),i&&t(tt),F(mi),F(vi),F(zr),F(Cr),i&&t(Hh),i&&t(hn),F(ki),i&&t(Kh),i&&t(ot),F(Ti),F(Ei),F(jr),F(Ar),i&&t(Vh),i&&t(fn),F(Ri),i&&t(Jh),i&&t(nt),F(zi),F(Si),F(Ir),F(Dr),i&&t(Gh),i&&t(_n),F(Wi),i&&t(Xh),i&&t(rt),F(Ui),F(Xi),F(Wr),F(Ur),i&&t(Yh),i&&t(bn),F(Yi),i&&t(Zh),i&&t(at),F(Zi),F(il),F(Qr),F(Hr),i&&t(eu),i&&t(kn),F(ll),i&&t(tu),i&&t(st),F(dl),F(_l),F(Vr),F(Jr)}}}const WL={local:"robertaprelayernorm",sections:[{local:"overview",title:"Overview"},{local:"documentation-resources",title:"Documentation resources"},{local:"transformers.RobertaPreLayerNormConfig",title:"RobertaPreLayerNormConfig"},{local:"transformers.RobertaPreLayerNormModel",title:"RobertaPreLayerNormModel"},{local:"transformers.RobertaPreLayerNormForCausalLM",title:"RobertaPreLayerNormForCausalLM"},{local:"transformers.RobertaPreLayerNormForMaskedLM",title:"RobertaPreLayerNormForMaskedLM"},{local:"transformers.RobertaPreLayerNormForSequenceClassification",title:"RobertaPreLayerNormForSequenceClassification"},{local:"transformers.RobertaPreLayerNormForMultipleChoice",title:"RobertaPreLayerNormForMultipleChoice"},{local:"transformers.RobertaPreLayerNormForTokenClassification",title:"RobertaPreLayerNormForTokenClassification"},{local:"transformers.RobertaPreLayerNormForQuestionAnswering",title:"RobertaPreLayerNormForQuestionAnswering"},{local:"transformers.TFRobertaPreLayerNormModel",title:"TFRobertaPreLayerNormModel"},{local:"transformers.TFRobertaPreLayerNormForCausalLM",title:"TFRobertaPreLayerNormForCausalLM"},{local:"transformers.TFRobertaPreLayerNormForMaskedLM",title:"TFRobertaPreLayerNormForMaskedLM"},{local:"transformers.TFRobertaPreLayerNormForSequenceClassification",title:"TFRobertaPreLayerNormForSequenceClassification"},{local:"transformers.TFRobertaPreLayerNormForMultipleChoice",title:"TFRobertaPreLayerNormForMultipleChoice"},{local:"transformers.TFRobertaPreLayerNormForTokenClassification",title:"TFRobertaPreLayerNormForTokenClassification"},{local:"transformers.TFRobertaPreLayerNormForQuestionAnswering",title:"TFRobertaPreLayerNormForQuestionAnswering"},{local:"transformers.FlaxRobertaPreLayerNormModel",title:"FlaxRobertaPreLayerNormModel"},{local:"transformers.FlaxRobertaPreLayerNormForCausalLM",title:"FlaxRobertaPreLayerNormForCausalLM"},{local:"transformers.FlaxRobertaPreLayerNormForMaskedLM",title:"FlaxRobertaPreLayerNormForMaskedLM"},{local:"transformers.FlaxRobertaPreLayerNormForSequenceClassification",title:"FlaxRobertaPreLayerNormForSequenceClassification"},{local:"transformers.FlaxRobertaPreLayerNormForMultipleChoice",title:"FlaxRobertaPreLayerNormForMultipleChoice"},{local:"transformers.FlaxRobertaPreLayerNormForTokenClassification",title:"FlaxRobertaPreLayerNormForTokenClassification"},{local:"transformers.FlaxRobertaPreLayerNormForQuestionAnswering",title:"FlaxRobertaPreLayerNormForQuestionAnswering"}],title:"RoBERTa-PreLayerNorm"};function UL(N){return DN(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class GL extends jN{constructor(d){super();AN(this,d,UL,SL,ON,{})}}export{GL as default,WL as metadata};
