import{S as K$,i as X$,s as Y$,e as n,k as p,w as v,t as r,M as Z$,c as s,d as t,m as h,a,x as B,h as i,b as c,G as e,g as k,y,q as T,o as w,B as $,v as ex,L as E}from"../../chunks/vendor-hf-doc-builder.js";import{T as G}from"../../chunks/Tip-hf-doc-builder.js";import{D as z}from"../../chunks/Docstring-hf-doc-builder.js";import{C as j}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as q}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as M}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";function tx(x){let d,b,u,f,_;return f=new j({props:{code:`from transformers import BigBirdConfig, BigBirdModel

# Initializing a BigBird google/bigbird-roberta-base style configuration
configuration = BigBirdConfig()

# Initializing a model (with random weights) from the google/bigbird-roberta-base style configuration
model = BigBirdModel(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> BigBirdConfig, BigBirdModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a BigBird google/bigbird-roberta-base style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = BigBirdConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the google/bigbird-roberta-base style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BigBirdModel(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=n("p"),b=r("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=a(d);b=i(m,"Example:"),m.forEach(t),u=h(l),B(f.$$.fragment,l)},m(l,m){k(l,d,m),e(d,b),k(l,u,m),y(f,l,m),_=!0},p:E,i(l){_||(T(f.$$.fragment,l),_=!0)},o(l){w(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(u),$(f,l)}}}function ox(x){let d,b,u,f,_;return f=new j({props:{code:`0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1
| first sequence    | second sequence |`,highlighted:`0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1 1
| first sequence    | second sequence |`}}),{c(){d=n("p"),b=r("sequence pair mask has the following format:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=a(d);b=i(m,"sequence pair mask has the following format:"),m.forEach(t),u=h(l),B(f.$$.fragment,l)},m(l,m){k(l,d,m),e(d,b),k(l,u,m),y(f,l,m),_=!0},p:E,i(l){_||(T(f.$$.fragment,l),_=!0)},o(l){w(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(u),$(f,l)}}}function nx(x){let d,b,u,f,_;return{c(){d=n("p"),b=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=r("Module"),_=r(`
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=s(l,"P",{});var m=a(d);b=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(m,"CODE",{});var F=a(u);f=i(F,"Module"),F.forEach(t),_=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(t)},m(l,m){k(l,d,m),e(d,b),e(d,u),e(u,f),e(d,_)},d(l){l&&t(d)}}}function sx(x){let d,b,u,f,_;return f=new j({props:{code:`from transformers import AutoTokenizer, BigBirdModel
import torch

tokenizer = AutoTokenizer.from_pretrained("google/bigbird-roberta-base")
model = BigBirdModel.from_pretrained("google/bigbird-roberta-base")

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, BigBirdModel
<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;google/bigbird-roberta-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BigBirdModel.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&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=n("p"),b=r("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=a(d);b=i(m,"Example:"),m.forEach(t),u=h(l),B(f.$$.fragment,l)},m(l,m){k(l,d,m),e(d,b),k(l,u,m),y(f,l,m),_=!0},p:E,i(l){_||(T(f.$$.fragment,l),_=!0)},o(l){w(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(u),$(f,l)}}}function ax(x){let d,b,u,f,_;return{c(){d=n("p"),b=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=r("Module"),_=r(`
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=s(l,"P",{});var m=a(d);b=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(m,"CODE",{});var F=a(u);f=i(F,"Module"),F.forEach(t),_=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(t)},m(l,m){k(l,d,m),e(d,b),e(d,u),e(u,f),e(d,_)},d(l){l&&t(d)}}}function rx(x){let d,b,u,f,_;return f=new j({props:{code:`from transformers import AutoTokenizer, BigBirdForPreTraining
import torch

tokenizer = AutoTokenizer.from_pretrained("google/bigbird-roberta-base")
model = BigBirdForPreTraining.from_pretrained("google/bigbird-roberta-base")

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

prediction_logits = outputs.prediction_logits
seq_relationship_logits = outputs.seq_relationship_logits`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, BigBirdForPreTraining
<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;google/bigbird-roberta-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BigBirdForPreTraining.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&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>prediction_logits = outputs.prediction_logits
<span class="hljs-meta">&gt;&gt;&gt; </span>seq_relationship_logits = outputs.seq_relationship_logits`}}),{c(){d=n("p"),b=r("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=a(d);b=i(m,"Example:"),m.forEach(t),u=h(l),B(f.$$.fragment,l)},m(l,m){k(l,d,m),e(d,b),k(l,u,m),y(f,l,m),_=!0},p:E,i(l){_||(T(f.$$.fragment,l),_=!0)},o(l){w(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(u),$(f,l)}}}function ix(x){let d,b,u,f,_;return{c(){d=n("p"),b=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=r("Module"),_=r(`
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=s(l,"P",{});var m=a(d);b=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(m,"CODE",{});var F=a(u);f=i(F,"Module"),F.forEach(t),_=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(t)},m(l,m){k(l,d,m),e(d,b),e(d,u),e(u,f),e(d,_)},d(l){l&&t(d)}}}function lx(x){let d,b,u,f,_;return f=new j({props:{code:`import torch
from transformers import AutoTokenizer, BigBirdForCausalLM

tokenizer = AutoTokenizer.from_pretrained("google/bigbird-roberta-base")
model = BigBirdForCausalLM.from_pretrained("google/bigbird-roberta-base")

inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
outputs = model(**inputs, labels=inputs["input_ids"])
loss = outputs.loss
logits = outputs.logits`,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, BigBirdForCausalLM

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BigBirdForCausalLM.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&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, labels=inputs[<span class="hljs-string">&quot;input_ids&quot;</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=n("p"),b=r("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=a(d);b=i(m,"Example:"),m.forEach(t),u=h(l),B(f.$$.fragment,l)},m(l,m){k(l,d,m),e(d,b),k(l,u,m),y(f,l,m),_=!0},p:E,i(l){_||(T(f.$$.fragment,l),_=!0)},o(l){w(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(u),$(f,l)}}}function dx(x){let d,b,u,f,_;return{c(){d=n("p"),b=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=r("Module"),_=r(`
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=s(l,"P",{});var m=a(d);b=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(m,"CODE",{});var F=a(u);f=i(F,"Module"),F.forEach(t),_=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(t)},m(l,m){k(l,d,m),e(d,b),e(d,u),e(u,f),e(d,_)},d(l){l&&t(d)}}}function cx(x){let d,b,u,f,_;return f=new j({props:{code:`import torch
from transformers import AutoTokenizer, BigBirdForMaskedLM
from datasets import load_dataset

tokenizer = AutoTokenizer.from_pretrained("google/bigbird-roberta-base")
model = BigBirdForMaskedLM.from_pretrained("google/bigbird-roberta-base")
squad_ds = load_dataset("squad_v2", split="train")
# select random long article
LONG_ARTICLE_TARGET = squad_ds[81514]["context"]
# select random sentence
LONG_ARTICLE_TARGET[332:398]

# add mask_token
LONG_ARTICLE_TO_MASK = LONG_ARTICLE_TARGET.replace("maximum", "[MASK]")
inputs = tokenizer(LONG_ARTICLE_TO_MASK, return_tensors="pt")
# long article input
list(inputs["input_ids"].shape)

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)`,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, BigBirdForMaskedLM
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BigBirdForMaskedLM.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>squad_ds = load_dataset(<span class="hljs-string">&quot;squad_v2&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># select random long article</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>LONG_ARTICLE_TARGET = squad_ds[<span class="hljs-number">81514</span>][<span class="hljs-string">&quot;context&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># select random sentence</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>LONG_ARTICLE_TARGET[<span class="hljs-number">332</span>:<span class="hljs-number">398</span>]
<span class="hljs-string">&#x27;the highest values are very close to the theoretical maximum value&#x27;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># add mask_token</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>LONG_ARTICLE_TO_MASK = LONG_ARTICLE_TARGET.replace(<span class="hljs-string">&quot;maximum&quot;</span>, <span class="hljs-string">&quot;[MASK]&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(LONG_ARTICLE_TO_MASK, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># long article input</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(inputs[<span class="hljs-string">&quot;input_ids&quot;</span>].shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">919</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 [MASK]</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;maximum&#x27;</span>`}}),{c(){d=n("p"),b=r("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=a(d);b=i(m,"Example:"),m.forEach(t),u=h(l),B(f.$$.fragment,l)},m(l,m){k(l,d,m),e(d,b),k(l,u,m),y(f,l,m),_=!0},p:E,i(l){_||(T(f.$$.fragment,l),_=!0)},o(l){w(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(u),$(f,l)}}}function px(x){let d,b;return d=new j({props:{code:`labels = tokenizer(LONG_ARTICLE_TARGET, return_tensors="pt")["input_ids"]
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>labels = tokenizer(LONG_ARTICLE_TARGET, 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>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">1.08</span>`}}),{c(){v(d.$$.fragment)},l(u){B(d.$$.fragment,u)},m(u,f){y(d,u,f),b=!0},p:E,i(u){b||(T(d.$$.fragment,u),b=!0)},o(u){w(d.$$.fragment,u),b=!1},d(u){$(d,u)}}}function hx(x){let d,b,u,f,_;return{c(){d=n("p"),b=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=r("Module"),_=r(`
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=s(l,"P",{});var m=a(d);b=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(m,"CODE",{});var F=a(u);f=i(F,"Module"),F.forEach(t),_=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(t)},m(l,m){k(l,d,m),e(d,b),e(d,u),e(u,f),e(d,_)},d(l){l&&t(d)}}}function mx(x){let d,b,u,f,_;return f=new j({props:{code:`import torch
from transformers import AutoTokenizer, BigBirdForSequenceClassification
from datasets import load_dataset

tokenizer = AutoTokenizer.from_pretrained("l-yohai/bigbird-roberta-base-mnli")
model = BigBirdForSequenceClassification.from_pretrained("l-yohai/bigbird-roberta-base-mnli")
squad_ds = load_dataset("squad_v2", split="train")
LONG_ARTICLE = squad_ds[81514]["context"]
inputs = tokenizer(LONG_ARTICLE, return_tensors="pt")
# long input article
list(inputs["input_ids"].shape)

with torch.no_grad():
    logits = model(**inputs).logits
predicted_class_id = logits.argmax().item()
model.config.id2label[predicted_class_id]`,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, BigBirdForSequenceClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;l-yohai/bigbird-roberta-base-mnli&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BigBirdForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;l-yohai/bigbird-roberta-base-mnli&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>squad_ds = load_dataset(<span class="hljs-string">&quot;squad_v2&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>LONG_ARTICLE = squad_ds[<span class="hljs-number">81514</span>][<span class="hljs-string">&quot;context&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(LONG_ARTICLE, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># long input article</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(inputs[<span class="hljs-string">&quot;input_ids&quot;</span>].shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">919</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>model.config.id2label[predicted_class_id]
<span class="hljs-string">&#x27;LABEL_0&#x27;</span>`}}),{c(){d=n("p"),b=r("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=a(d);b=i(m,"Example:"),m.forEach(t),u=h(l),B(f.$$.fragment,l)},m(l,m){k(l,d,m),e(d,b),k(l,u,m),y(f,l,m),_=!0},p:E,i(l){_||(T(f.$$.fragment,l),_=!0)},o(l){w(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(u),$(f,l)}}}function ux(x){let d,b;return d=new j({props:{code:`num_labels = len(model.config.id2label)
model = BigBirdForSequenceClassification.from_pretrained(
    "l-yohai/bigbird-roberta-base-mnli", num_labels=num_labels
)
labels = torch.tensor(1)
loss = model(**inputs, labels=labels).loss
round(loss.item(), 2)`,highlighted:`<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 = BigBirdForSequenceClassification.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;l-yohai/bigbird-roberta-base-mnli&quot;</span>, num_labels=num_labels
<span class="hljs-meta">... </span>)
<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
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">round</span>(loss.item(), <span class="hljs-number">2</span>)
<span class="hljs-number">1.13</span>`}}),{c(){v(d.$$.fragment)},l(u){B(d.$$.fragment,u)},m(u,f){y(d,u,f),b=!0},p:E,i(u){b||(T(d.$$.fragment,u),b=!0)},o(u){w(d.$$.fragment,u),b=!1},d(u){$(d,u)}}}function fx(x){let d,b,u,f,_;return{c(){d=n("p"),b=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=r("Module"),_=r(`
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=s(l,"P",{});var m=a(d);b=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(m,"CODE",{});var F=a(u);f=i(F,"Module"),F.forEach(t),_=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(t)},m(l,m){k(l,d,m),e(d,b),e(d,u),e(u,f),e(d,_)},d(l){l&&t(d)}}}function gx(x){let d,b,u,f,_;return f=new j({props:{code:`from transformers import AutoTokenizer, BigBirdForMultipleChoice
import torch

tokenizer = AutoTokenizer.from_pretrained("google/bigbird-roberta-base")
model = BigBirdForMultipleChoice.from_pretrained("google/bigbird-roberta-base")

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, BigBirdForMultipleChoice
<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;google/bigbird-roberta-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BigBirdForMultipleChoice.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&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=n("p"),b=r("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=a(d);b=i(m,"Example:"),m.forEach(t),u=h(l),B(f.$$.fragment,l)},m(l,m){k(l,d,m),e(d,b),k(l,u,m),y(f,l,m),_=!0},p:E,i(l){_||(T(f.$$.fragment,l),_=!0)},o(l){w(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(u),$(f,l)}}}function _x(x){let d,b,u,f,_;return{c(){d=n("p"),b=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=r("Module"),_=r(`
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=s(l,"P",{});var m=a(d);b=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(m,"CODE",{});var F=a(u);f=i(F,"Module"),F.forEach(t),_=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(t)},m(l,m){k(l,d,m),e(d,b),e(d,u),e(u,f),e(d,_)},d(l){l&&t(d)}}}function bx(x){let d,b,u,f,_;return f=new j({props:{code:`from transformers import AutoTokenizer, BigBirdForTokenClassification
import torch

tokenizer = AutoTokenizer.from_pretrained("google/bigbird-roberta-base")
model = BigBirdForTokenClassification.from_pretrained("google/bigbird-roberta-base")

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, BigBirdForTokenClassification
<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;google/bigbird-roberta-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BigBirdForTokenClassification.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&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=n("p"),b=r("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=a(d);b=i(m,"Example:"),m.forEach(t),u=h(l),B(f.$$.fragment,l)},m(l,m){k(l,d,m),e(d,b),k(l,u,m),y(f,l,m),_=!0},p:E,i(l){_||(T(f.$$.fragment,l),_=!0)},o(l){w(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(u),$(f,l)}}}function kx(x){let d,b,u,f,_;return{c(){d=n("p"),b=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=r("Module"),_=r(`
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=s(l,"P",{});var m=a(d);b=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(m,"CODE",{});var F=a(u);f=i(F,"Module"),F.forEach(t),_=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(t)},m(l,m){k(l,d,m),e(d,b),e(d,u),e(u,f),e(d,_)},d(l){l&&t(d)}}}function vx(x){let d,b,u,f,_;return f=new j({props:{code:`import torch
from transformers import AutoTokenizer, BigBirdForQuestionAnswering
from datasets import load_dataset

tokenizer = AutoTokenizer.from_pretrained("abhinavkulkarni/bigbird-roberta-base-finetuned-squad")
model = BigBirdForQuestionAnswering.from_pretrained("abhinavkulkarni/bigbird-roberta-base-finetuned-squad")
squad_ds = load_dataset("squad_v2", split="train")
# select random article and question
LONG_ARTICLE = squad_ds[81514]["context"]
QUESTION = squad_ds[81514]["question"]
QUESTION

inputs = tokenizer(QUESTION, LONG_ARTICLE, return_tensors="pt")
# long article and question input
list(inputs["input_ids"].shape)

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]
tokenizer.decode(predict_answer_tokens)`,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, BigBirdForQuestionAnswering
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;abhinavkulkarni/bigbird-roberta-base-finetuned-squad&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BigBirdForQuestionAnswering.from_pretrained(<span class="hljs-string">&quot;abhinavkulkarni/bigbird-roberta-base-finetuned-squad&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>squad_ds = load_dataset(<span class="hljs-string">&quot;squad_v2&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># select random article and question</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>LONG_ARTICLE = squad_ds[<span class="hljs-number">81514</span>][<span class="hljs-string">&quot;context&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>QUESTION = squad_ds[<span class="hljs-number">81514</span>][<span class="hljs-string">&quot;question&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>QUESTION
<span class="hljs-string">&#x27;During daytime how high can the temperatures reach?&#x27;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(QUESTION, LONG_ARTICLE, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># long article and question input</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(inputs[<span class="hljs-string">&quot;input_ids&quot;</span>].shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">929</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>tokenizer.decode(predict_answer_tokens)
<span class="hljs-string">&#x27;80 \xB0C (176 \xB0F) or more&#x27;</span>`}}),{c(){d=n("p"),b=r("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=a(d);b=i(m,"Example:"),m.forEach(t),u=h(l),B(f.$$.fragment,l)},m(l,m){k(l,d,m),e(d,b),k(l,u,m),y(f,l,m),_=!0},p:E,i(l){_||(T(f.$$.fragment,l),_=!0)},o(l){w(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(u),$(f,l)}}}function Bx(x){let d,b;return d=new j({props:{code:`target_start_index, target_end_index = torch.tensor([130]), torch.tensor([132])
outputs = model(**inputs, start_positions=target_start_index, end_positions=target_end_index)
loss = outputs.loss
round(outputs.loss.item(), 2)`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>target_start_index, target_end_index = torch.tensor([<span class="hljs-number">130</span>]), torch.tensor([<span class="hljs-number">132</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
<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">7.63</span>`}}),{c(){v(d.$$.fragment)},l(u){B(d.$$.fragment,u)},m(u,f){y(d,u,f),b=!0},p:E,i(u){b||(T(d.$$.fragment,u),b=!0)},o(u){w(d.$$.fragment,u),b=!1},d(u){$(d,u)}}}function yx(x){let d,b,u,f,_;return{c(){d=n("p"),b=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=r("Module"),_=r(`
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=s(l,"P",{});var m=a(d);b=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(m,"CODE",{});var F=a(u);f=i(F,"Module"),F.forEach(t),_=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(t)},m(l,m){k(l,d,m),e(d,b),e(d,u),e(u,f),e(d,_)},d(l){l&&t(d)}}}function Tx(x){let d,b,u,f,_;return f=new j({props:{code:`from transformers import AutoTokenizer, FlaxBigBirdModel

tokenizer = AutoTokenizer.from_pretrained("google/bigbird-roberta-base")
model = FlaxBigBirdModel.from_pretrained("google/bigbird-roberta-base")

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, FlaxBigBirdModel

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxBigBirdModel.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&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=n("p"),b=r("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=a(d);b=i(m,"Example:"),m.forEach(t),u=h(l),B(f.$$.fragment,l)},m(l,m){k(l,d,m),e(d,b),k(l,u,m),y(f,l,m),_=!0},p:E,i(l){_||(T(f.$$.fragment,l),_=!0)},o(l){w(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(u),$(f,l)}}}function wx(x){let d,b,u,f,_;return{c(){d=n("p"),b=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=r("Module"),_=r(`
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=s(l,"P",{});var m=a(d);b=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(m,"CODE",{});var F=a(u);f=i(F,"Module"),F.forEach(t),_=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(t)},m(l,m){k(l,d,m),e(d,b),e(d,u),e(u,f),e(d,_)},d(l){l&&t(d)}}}function $x(x){let d,b,u,f,_;return f=new j({props:{code:`from transformers import AutoTokenizer, FlaxBigBirdForPreTraining

tokenizer = AutoTokenizer.from_pretrained("google/bigbird-roberta-base")
model = FlaxBigBirdForPreTraining.from_pretrained("google/bigbird-roberta-base")

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxBigBirdForPreTraining.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&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>prediction_logits = outputs.prediction_logits
<span class="hljs-meta">&gt;&gt;&gt; </span>seq_relationship_logits = outputs.seq_relationship_logits`}}),{c(){d=n("p"),b=r("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=a(d);b=i(m,"Example:"),m.forEach(t),u=h(l),B(f.$$.fragment,l)},m(l,m){k(l,d,m),e(d,b),k(l,u,m),y(f,l,m),_=!0},p:E,i(l){_||(T(f.$$.fragment,l),_=!0)},o(l){w(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(u),$(f,l)}}}function xx(x){let d,b,u,f,_;return{c(){d=n("p"),b=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=r("Module"),_=r(`
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=s(l,"P",{});var m=a(d);b=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(m,"CODE",{});var F=a(u);f=i(F,"Module"),F.forEach(t),_=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(t)},m(l,m){k(l,d,m),e(d,b),e(d,u),e(u,f),e(d,_)},d(l){l&&t(d)}}}function Fx(x){let d,b,u,f,_;return f=new j({props:{code:`from transformers import AutoTokenizer, FlaxBigBirdForCausalLM

tokenizer = AutoTokenizer.from_pretrained("google/bigbird-roberta-base")
model = FlaxBigBirdForCausalLM.from_pretrained("google/bigbird-roberta-base")

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, FlaxBigBirdForCausalLM

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxBigBirdForCausalLM.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&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=n("p"),b=r("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=a(d);b=i(m,"Example:"),m.forEach(t),u=h(l),B(f.$$.fragment,l)},m(l,m){k(l,d,m),e(d,b),k(l,u,m),y(f,l,m),_=!0},p:E,i(l){_||(T(f.$$.fragment,l),_=!0)},o(l){w(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(u),$(f,l)}}}function zx(x){let d,b,u,f,_;return{c(){d=n("p"),b=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=r("Module"),_=r(`
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=s(l,"P",{});var m=a(d);b=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(m,"CODE",{});var F=a(u);f=i(F,"Module"),F.forEach(t),_=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(t)},m(l,m){k(l,d,m),e(d,b),e(d,u),e(u,f),e(d,_)},d(l){l&&t(d)}}}function qx(x){let d,b,u,f,_;return f=new j({props:{code:`from transformers import AutoTokenizer, FlaxBigBirdForMaskedLM

tokenizer = AutoTokenizer.from_pretrained("google/bigbird-roberta-base")
model = FlaxBigBirdForMaskedLM.from_pretrained("google/bigbird-roberta-base")

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, FlaxBigBirdForMaskedLM

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxBigBirdForMaskedLM.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&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=n("p"),b=r("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=a(d);b=i(m,"Example:"),m.forEach(t),u=h(l),B(f.$$.fragment,l)},m(l,m){k(l,d,m),e(d,b),k(l,u,m),y(f,l,m),_=!0},p:E,i(l){_||(T(f.$$.fragment,l),_=!0)},o(l){w(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(u),$(f,l)}}}function Mx(x){let d,b,u,f,_;return{c(){d=n("p"),b=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=r("Module"),_=r(`
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=s(l,"P",{});var m=a(d);b=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(m,"CODE",{});var F=a(u);f=i(F,"Module"),F.forEach(t),_=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(t)},m(l,m){k(l,d,m),e(d,b),e(d,u),e(u,f),e(d,_)},d(l){l&&t(d)}}}function Ex(x){let d,b,u,f,_;return f=new j({props:{code:`from transformers import AutoTokenizer, FlaxBigBirdForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("google/bigbird-roberta-base")
model = FlaxBigBirdForSequenceClassification.from_pretrained("google/bigbird-roberta-base")

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, FlaxBigBirdForSequenceClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxBigBirdForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&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=n("p"),b=r("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=a(d);b=i(m,"Example:"),m.forEach(t),u=h(l),B(f.$$.fragment,l)},m(l,m){k(l,d,m),e(d,b),k(l,u,m),y(f,l,m),_=!0},p:E,i(l){_||(T(f.$$.fragment,l),_=!0)},o(l){w(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(u),$(f,l)}}}function jx(x){let d,b,u,f,_;return{c(){d=n("p"),b=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=r("Module"),_=r(`
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=s(l,"P",{});var m=a(d);b=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(m,"CODE",{});var F=a(u);f=i(F,"Module"),F.forEach(t),_=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(t)},m(l,m){k(l,d,m),e(d,b),e(d,u),e(u,f),e(d,_)},d(l){l&&t(d)}}}function Px(x){let d,b,u,f,_;return f=new j({props:{code:`from transformers import AutoTokenizer, FlaxBigBirdForMultipleChoice

tokenizer = AutoTokenizer.from_pretrained("google/bigbird-roberta-base")
model = FlaxBigBirdForMultipleChoice.from_pretrained("google/bigbird-roberta-base")

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, FlaxBigBirdForMultipleChoice

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxBigBirdForMultipleChoice.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&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=n("p"),b=r("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=a(d);b=i(m,"Example:"),m.forEach(t),u=h(l),B(f.$$.fragment,l)},m(l,m){k(l,d,m),e(d,b),k(l,u,m),y(f,l,m),_=!0},p:E,i(l){_||(T(f.$$.fragment,l),_=!0)},o(l){w(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(u),$(f,l)}}}function Cx(x){let d,b,u,f,_;return{c(){d=n("p"),b=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=r("Module"),_=r(`
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=s(l,"P",{});var m=a(d);b=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(m,"CODE",{});var F=a(u);f=i(F,"Module"),F.forEach(t),_=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(t)},m(l,m){k(l,d,m),e(d,b),e(d,u),e(u,f),e(d,_)},d(l){l&&t(d)}}}function Ax(x){let d,b,u,f,_;return f=new j({props:{code:`from transformers import AutoTokenizer, FlaxBigBirdForTokenClassification

tokenizer = AutoTokenizer.from_pretrained("google/bigbird-roberta-base")
model = FlaxBigBirdForTokenClassification.from_pretrained("google/bigbird-roberta-base")

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, FlaxBigBirdForTokenClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxBigBirdForTokenClassification.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&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=n("p"),b=r("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=a(d);b=i(m,"Example:"),m.forEach(t),u=h(l),B(f.$$.fragment,l)},m(l,m){k(l,d,m),e(d,b),k(l,u,m),y(f,l,m),_=!0},p:E,i(l){_||(T(f.$$.fragment,l),_=!0)},o(l){w(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(u),$(f,l)}}}function Lx(x){let d,b,u,f,_;return{c(){d=n("p"),b=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=r("Module"),_=r(`
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=s(l,"P",{});var m=a(d);b=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=s(m,"CODE",{});var F=a(u);f=i(F,"Module"),F.forEach(t),_=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(t)},m(l,m){k(l,d,m),e(d,b),e(d,u),e(u,f),e(d,_)},d(l){l&&t(d)}}}function Ix(x){let d,b,u,f,_;return f=new j({props:{code:`from transformers import AutoTokenizer, FlaxBigBirdForQuestionAnswering

tokenizer = AutoTokenizer.from_pretrained("google/bigbird-roberta-base")
model = FlaxBigBirdForQuestionAnswering.from_pretrained("google/bigbird-roberta-base")

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, FlaxBigBirdForQuestionAnswering

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxBigBirdForQuestionAnswering.from_pretrained(<span class="hljs-string">&quot;google/bigbird-roberta-base&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=n("p"),b=r("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=a(d);b=i(m,"Example:"),m.forEach(t),u=h(l),B(f.$$.fragment,l)},m(l,m){k(l,d,m),e(d,b),k(l,u,m),y(f,l,m),_=!0},p:E,i(l){_||(T(f.$$.fragment,l),_=!0)},o(l){w(f.$$.fragment,l),_=!1},d(l){l&&t(d),l&&t(u),$(f,l)}}}function Ox(x){let d,b,u,f,_,l,m,F,Lh,Wc,Ve,Wt,Fi,$n,Ih,zi,Oh,Uc,Ut,Nh,xn,Sh,Dh,Rc,vr,Wh,Gc,Br,qi,Uh,Qc,yr,Rh,Hc,W,Fn,Gh,zn,Qh,Hh,Vh,ie,Jh,Mi,Kh,Xh,Ei,Yh,Zh,ji,em,tm,Pi,om,nm,sm,Ci,am,rm,Ai,im,lm,qn,dm,Li,cm,pm,hm,Tr,mm,Ii,um,fm,Oi,gm,Vc,Se,_m,Mn,bm,km,En,vm,Bm,Jc,Je,Rt,Ni,jn,ym,Si,Tm,Kc,le,Pn,wm,Ke,$m,wr,xm,Fm,Cn,zm,qm,Mm,Xe,Em,$r,jm,Pm,xr,Cm,Am,Lm,Gt,Xc,Ye,Qt,Di,An,Im,Wi,Om,Yc,P,Ln,Nm,In,Sm,On,Dm,Wm,Um,Nn,Rm,Fr,Gm,Qm,Hm,De,Sn,Vm,Ui,Jm,Km,Dn,zr,Xm,Ri,Ym,Zm,qr,eu,Gi,tu,ou,Ht,Wn,nu,Un,su,Qi,au,ru,iu,Vt,Rn,lu,Ze,du,Hi,cu,pu,Vi,hu,mu,uu,Mr,Gn,Zc,et,Jt,Ji,Qn,fu,Ki,gu,ep,Q,Hn,_u,ze,bu,Xi,ku,vu,Vn,Bu,yu,Er,Tu,wu,$u,We,Jn,xu,Yi,Fu,zu,Kn,jr,qu,Zi,Mu,Eu,Pr,ju,el,Pu,Cu,ue,Xn,Au,tl,Lu,Iu,Kt,Ou,ol,Nu,Su,Xt,Yn,Du,Zn,Wu,nl,Uu,Ru,tp,tt,Yt,sl,es,Gu,al,Qu,op,ot,ts,Hu,os,Vu,Cr,Ju,Ku,np,nt,Zt,rl,ns,Xu,il,Yu,sp,H,ss,Zu,as,ef,rs,tf,of,nf,is,sf,ls,af,rf,lf,U,df,ll,cf,pf,dl,hf,mf,cl,uf,ff,pl,gf,_f,hl,bf,kf,ml,vf,Bf,yf,fe,ds,Tf,st,wf,Ar,$f,xf,ul,Ff,zf,qf,eo,Mf,to,ap,at,oo,fl,cs,Ef,gl,jf,rp,rt,ps,Pf,ge,hs,Cf,it,Af,Lr,Lf,If,_l,Of,Nf,Sf,no,Df,so,ip,lt,ao,bl,ms,Wf,kl,Uf,lp,qe,us,Rf,dt,Gf,vl,Qf,Hf,fs,Vf,Jf,Kf,_e,gs,Xf,ct,Yf,Ir,Zf,eg,Bl,tg,og,ng,ro,sg,io,dp,pt,lo,yl,_s,ag,Tl,rg,cp,Me,bs,ig,ht,lg,wl,dg,cg,ks,pg,hg,mg,V,vs,ug,mt,fg,Or,gg,_g,$l,bg,kg,vg,co,Bg,po,yg,ho,pp,ut,mo,xl,Bs,Tg,Fl,wg,hp,de,ys,$g,zl,xg,Fg,Ts,zg,ws,qg,Mg,Eg,J,$s,jg,ft,Pg,Nr,Cg,Ag,ql,Lg,Ig,Og,uo,Ng,fo,Sg,go,mp,gt,_o,Ml,xs,Dg,El,Wg,up,ce,Fs,Ug,jl,Rg,Gg,zs,Qg,qs,Hg,Vg,Jg,be,Ms,Kg,_t,Xg,Sr,Yg,Zg,Pl,e_,t_,o_,bo,n_,ko,fp,bt,vo,Cl,Es,s_,Al,a_,gp,pe,js,r_,Ll,i_,l_,Ps,d_,Cs,c_,p_,h_,ke,As,m_,kt,u_,Dr,f_,g_,Il,__,b_,k_,Bo,v_,yo,_p,vt,To,Ol,Ls,B_,Nl,y_,bp,he,Is,T_,Bt,w_,Sl,$_,x_,Dl,F_,z_,q_,Os,M_,Ns,E_,j_,P_,K,Ss,C_,yt,A_,Wr,L_,I_,Wl,O_,N_,S_,wo,D_,$o,W_,xo,kp,Tt,Fo,Ul,Ds,U_,Rl,R_,vp,C,Ws,G_,Gl,Q_,H_,Us,V_,Ur,J_,K_,X_,Rs,Y_,Gs,Z_,eb,tb,Ql,ob,nb,Ee,Hl,Qs,sb,ab,Vl,Hs,rb,ib,Jl,Vs,lb,db,Kl,Js,cb,pb,ve,Ks,hb,wt,mb,Xl,ub,fb,Yl,gb,_b,bb,zo,kb,qo,Bp,$t,Mo,Zl,Xs,vb,ed,Bb,yp,A,Ys,yb,xt,Tb,td,wb,$b,od,xb,Fb,zb,Zs,qb,Rr,Mb,Eb,jb,ea,Pb,ta,Cb,Ab,Lb,nd,Ib,Ob,je,sd,oa,Nb,Sb,ad,na,Db,Wb,rd,sa,Ub,Rb,id,aa,Gb,Qb,Be,ra,Hb,Ft,Vb,ld,Jb,Kb,dd,Xb,Yb,Zb,Eo,ek,jo,Tp,zt,Po,cd,ia,tk,pd,ok,wp,L,la,nk,hd,sk,ak,da,rk,Gr,ik,lk,dk,ca,ck,pa,pk,hk,mk,md,uk,fk,Pe,ud,ha,gk,_k,fd,ma,bk,kk,gd,ua,vk,Bk,_d,fa,yk,Tk,ye,ga,wk,qt,$k,bd,xk,Fk,kd,zk,qk,Mk,Co,Ek,Ao,$p,Mt,Lo,vd,_a,jk,Bd,Pk,xp,I,ba,Ck,ka,Ak,yd,Lk,Ik,Ok,va,Nk,Qr,Sk,Dk,Wk,Ba,Uk,ya,Rk,Gk,Qk,Td,Hk,Vk,Ce,wd,Ta,Jk,Kk,$d,wa,Xk,Yk,xd,$a,Zk,ev,Fd,xa,tv,ov,Te,Fa,nv,Et,sv,zd,av,rv,qd,iv,lv,dv,Io,cv,Oo,Fp,jt,No,Md,za,pv,Ed,hv,zp,O,qa,mv,jd,uv,fv,Ma,gv,Hr,_v,bv,kv,Ea,vv,ja,Bv,yv,Tv,Pd,wv,$v,Ae,Cd,Pa,xv,Fv,Ad,Ca,zv,qv,Ld,Aa,Mv,Ev,Id,La,jv,Pv,we,Ia,Cv,Pt,Av,Od,Lv,Iv,Nd,Ov,Nv,Sv,So,Dv,Do,qp,Ct,Wo,Sd,Oa,Wv,Dd,Uv,Mp,N,Na,Rv,Wd,Gv,Qv,Sa,Hv,Vr,Vv,Jv,Kv,Da,Xv,Wa,Yv,Zv,eB,Ud,tB,oB,Le,Rd,Ua,nB,sB,Gd,Ra,aB,rB,Qd,Ga,iB,lB,Hd,Qa,dB,cB,$e,Ha,pB,At,hB,Vd,mB,uB,Jd,fB,gB,_B,Uo,bB,Ro,Ep,Lt,Go,Kd,Va,kB,Xd,vB,jp,S,Ja,BB,Yd,yB,TB,Ka,wB,Jr,$B,xB,FB,Xa,zB,Ya,qB,MB,EB,Zd,jB,PB,Ie,ec,Za,CB,AB,tc,er,LB,IB,oc,tr,OB,NB,nc,or,SB,DB,xe,nr,WB,It,UB,sc,RB,GB,ac,QB,HB,VB,Qo,JB,Ho,Pp,Ot,Vo,rc,sr,KB,ic,XB,Cp,D,ar,YB,Nt,ZB,lc,ey,ty,dc,oy,ny,sy,rr,ay,Kr,ry,iy,ly,ir,dy,lr,cy,py,hy,cc,my,uy,Oe,pc,dr,fy,gy,hc,cr,_y,by,mc,pr,ky,vy,uc,hr,By,yy,Fe,mr,Ty,St,wy,Xr,$y,xy,fc,Fy,zy,qy,Jo,My,Ko,Ap;return l=new q({}),$n=new q({}),jn=new q({}),Pn=new z({props:{name:"class transformers.BigBirdConfig",anchor:"transformers.BigBirdConfig",parameters:[{name:"vocab_size",val:" = 50358"},{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_new'"},{name:"hidden_dropout_prob",val:" = 0.1"},{name:"attention_probs_dropout_prob",val:" = 0.1"},{name:"max_position_embeddings",val:" = 4096"},{name:"type_vocab_size",val:" = 2"},{name:"initializer_range",val:" = 0.02"},{name:"layer_norm_eps",val:" = 1e-12"},{name:"use_cache",val:" = True"},{name:"pad_token_id",val:" = 0"},{name:"bos_token_id",val:" = 1"},{name:"eos_token_id",val:" = 2"},{name:"sep_token_id",val:" = 66"},{name:"attention_type",val:" = 'block_sparse'"},{name:"use_bias",val:" = True"},{name:"rescale_embeddings",val:" = False"},{name:"block_size",val:" = 64"},{name:"num_random_blocks",val:" = 3"},{name:"classifier_dropout",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BigBirdConfig.vocab_size",description:`<strong>vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 50358) &#x2014;
Vocabulary size of the BigBird model. Defines the number of different tokens that can be represented by the
<code>inputs_ids</code> passed when calling <a href="/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdModel">BigBirdModel</a>.`,name:"vocab_size"},{anchor:"transformers.BigBirdConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014;
Dimension of the encoder layers and the pooler layer.`,name:"hidden_size"},{anchor:"transformers.BigBirdConfig.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.BigBirdConfig.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.BigBirdConfig.intermediate_size",description:`<strong>intermediate_size</strong> (<code>int</code>, <em>optional</em>, defaults to 3072) &#x2014;
Dimension of the &#x201C;intermediate&#x201D; (i.e., feed-forward) layer in the Transformer encoder.`,name:"intermediate_size"},{anchor:"transformers.BigBirdConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code> or <code>function</code>, <em>optional</em>, defaults to <code>&quot;gelu_new&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;selu&quot;</code> and <code>&quot;gelu_new&quot;</code> are supported.`,name:"hidden_act"},{anchor:"transformers.BigBirdConfig.hidden_dropout_prob",description:`<strong>hidden_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout probabilitiy for all fully connected layers in the embeddings, encoder, and pooler.`,name:"hidden_dropout_prob"},{anchor:"transformers.BigBirdConfig.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.BigBirdConfig.max_position_embeddings",description:`<strong>max_position_embeddings</strong> (<code>int</code>, <em>optional</em>, defaults to 4096) &#x2014;
The maximum sequence length that this model might ever be used with. Typically set this to something large
just in case (e.g., 1024 or 2048 or 4096).`,name:"max_position_embeddings"},{anchor:"transformers.BigBirdConfig.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/main/en/model_doc/big_bird#transformers.BigBirdModel">BigBirdModel</a>.`,name:"type_vocab_size"},{anchor:"transformers.BigBirdConfig.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.BigBirdConfig.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.BigBirdConfig.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.BigBirdConfig.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.BigBirdConfig.attention_type",description:`<strong>attention_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;block_sparse&quot;</code>) &#x2014;
Whether to use block sparse attention (with n complexity) as introduced in paper or original attention
layer (with n^2 complexity). Possible values are <code>&quot;original_full&quot;</code> and <code>&quot;block_sparse&quot;</code>.`,name:"attention_type"},{anchor:"transformers.BigBirdConfig.use_bias",description:`<strong>use_bias</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to use bias in query, key, value.`,name:"use_bias"},{anchor:"transformers.BigBirdConfig.rescale_embeddings",description:`<strong>rescale_embeddings</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to rescale embeddings with (hidden_size ** 0.5).`,name:"rescale_embeddings"},{anchor:"transformers.BigBirdConfig.block_size",description:`<strong>block_size</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
Size of each block. Useful only when <code>attention_type == &quot;block_sparse&quot;</code>.`,name:"block_size"},{anchor:"transformers.BigBirdConfig.num_random_blocks",description:`<strong>num_random_blocks</strong> (<code>int</code>, <em>optional</em>, defaults to 3) &#x2014;
Each query is going to attend these many number of random blocks. Useful only when <code>attention_type == &quot;block_sparse&quot;</code>.`,name:"num_random_blocks"},{anchor:"transformers.BigBirdConfig.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/main/src/transformers/models/big_bird/configuration_big_bird.py#L34"}}),Gt=new M({props:{anchor:"transformers.BigBirdConfig.example",$$slots:{default:[tx]},$$scope:{ctx:x}}}),An=new q({}),Ln=new z({props:{name:"class transformers.BigBirdTokenizer",anchor:"transformers.BigBirdTokenizer",parameters:[{name:"vocab_file",val:""},{name:"unk_token",val:" = '<unk>'"},{name:"bos_token",val:" = '<s>'"},{name:"eos_token",val:" = '</s>'"},{name:"pad_token",val:" = '<pad>'"},{name:"sep_token",val:" = '[SEP]'"},{name:"mask_token",val:" = '[MASK]'"},{name:"cls_token",val:" = '[CLS]'"},{name:"sp_model_kwargs",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BigBirdTokenizer.vocab_file",description:`<strong>vocab_file</strong> (<code>str</code>) &#x2014;
<a href="https://github.com/google/sentencepiece" rel="nofollow">SentencePiece</a> file (generally has a <em>.spm</em> extension) that
contains the vocabulary necessary to instantiate a tokenizer.`,name:"vocab_file"},{anchor:"transformers.BigBirdTokenizer.eos_token",description:`<strong>eos_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;/s&gt;&quot;</code>) &#x2014;
The end of sequence token.`,name:"eos_token"},{anchor:"transformers.BigBirdTokenizer.bos_token",description:`<strong>bos_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;s&gt;&quot;</code>) &#x2014;
The begin of sequence token.`,name:"bos_token"},{anchor:"transformers.BigBirdTokenizer.unk_token",description:`<strong>unk_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;unk&gt;&quot;</code>) &#x2014;
The unknown token. A token that is not in the vocabulary cannot be converted to an ID and is set to be this
token instead.`,name:"unk_token"},{anchor:"transformers.BigBirdTokenizer.pad_token",description:`<strong>pad_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;pad&gt;&quot;</code>) &#x2014;
The token used for padding, for example when batching sequences of different lengths.`,name:"pad_token"},{anchor:"transformers.BigBirdTokenizer.sep_token",description:`<strong>sep_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[SEP]&quot;</code>) &#x2014;
The separator token, which is used when building a sequence from multiple sequences, e.g. two sequences for
sequence classification or for a text and a question for question answering. It is also used as the last
token of a sequence built with special tokens.`,name:"sep_token"},{anchor:"transformers.BigBirdTokenizer.cls_token",description:`<strong>cls_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[CLS]&quot;</code>) &#x2014;
The classifier token which is used when doing sequence classification (classification of the whole sequence
instead of per-token classification). It is the first token of the sequence when built with special tokens.`,name:"cls_token"},{anchor:"transformers.BigBirdTokenizer.mask_token",description:`<strong>mask_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[MASK]&quot;</code>) &#x2014;
The token used for masking values. This is the token used when training this model with masked language
modeling. This is the token which the model will try to predict.`,name:"mask_token"},{anchor:"transformers.BigBirdTokenizer.sp_model_kwargs",description:`<strong>sp_model_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Will be passed to the <code>SentencePieceProcessor.__init__()</code> method. The <a href="https://github.com/google/sentencepiece/tree/master/python" rel="nofollow">Python wrapper for
SentencePiece</a> can be used, among other things,
to set:</p>
<ul>
<li>
<p><code>enable_sampling</code>: Enable subword regularization.</p>
</li>
<li>
<p><code>nbest_size</code>: Sampling parameters for unigram. Invalid for BPE-Dropout.</p>
<ul>
<li><code>nbest_size = {0,1}</code>: No sampling is performed.</li>
<li><code>nbest_size &gt; 1</code>: samples from the nbest_size results.</li>
<li><code>nbest_size &lt; 0</code>: assuming that nbest_size is infinite and samples from the all hypothesis (lattice)
using forward-filtering-and-backward-sampling algorithm.</li>
</ul>
</li>
<li>
<p><code>alpha</code>: Smoothing parameter for unigram sampling, and dropout probability of merge operations for
BPE-dropout.</p>
</li>
</ul>`,name:"sp_model_kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/tokenization_big_bird.py#L52"}}),Sn=new z({props:{name:"build_inputs_with_special_tokens",anchor:"transformers.BigBirdTokenizer.build_inputs_with_special_tokens",parameters:[{name:"token_ids_0",val:": typing.List[int]"},{name:"token_ids_1",val:": typing.Optional[typing.List[int]] = None"}],parametersDescription:[{anchor:"transformers.BigBirdTokenizer.build_inputs_with_special_tokens.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of IDs to which the special tokens will be added.`,name:"token_ids_0"},{anchor:"transformers.BigBirdTokenizer.build_inputs_with_special_tokens.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/tokenization_big_bird.py#L263",returnDescription:`
<p>List of <a href="../glossary#input-ids">input IDs</a> with the appropriate special tokens.</p>
`,returnType:`
<p><code>List[int]</code></p>
`}}),Wn=new z({props:{name:"get_special_tokens_mask",anchor:"transformers.BigBirdTokenizer.get_special_tokens_mask",parameters:[{name:"token_ids_0",val:": typing.List[int]"},{name:"token_ids_1",val:": typing.Optional[typing.List[int]] = None"},{name:"already_has_special_tokens",val:": bool = False"}],parametersDescription:[{anchor:"transformers.BigBirdTokenizer.get_special_tokens_mask.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of IDs.`,name:"token_ids_0"},{anchor:"transformers.BigBirdTokenizer.get_special_tokens_mask.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"},{anchor:"transformers.BigBirdTokenizer.get_special_tokens_mask.already_has_special_tokens",description:`<strong>already_has_special_tokens</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the token list is already formatted with special tokens for the model.`,name:"already_has_special_tokens"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/tokenization_big_bird.py#L288",returnDescription:`
<p>A list of integers in the range [0, 1]: 1 for a special token, 0 for a sequence token.</p>
`,returnType:`
<p><code>List[int]</code></p>
`}}),Rn=new z({props:{name:"create_token_type_ids_from_sequences",anchor:"transformers.BigBirdTokenizer.create_token_type_ids_from_sequences",parameters:[{name:"token_ids_0",val:": typing.List[int]"},{name:"token_ids_1",val:": typing.Optional[typing.List[int]] = None"}],parametersDescription:[{anchor:"transformers.BigBirdTokenizer.create_token_type_ids_from_sequences.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of IDs.`,name:"token_ids_0"},{anchor:"transformers.BigBirdTokenizer.create_token_type_ids_from_sequences.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/tokenization_big_bird.py#L315",returnDescription:`
<p>List of <a href="../glossary#token-type-ids">token type IDs</a> according to the given sequence(s).</p>
`,returnType:`
<p><code>List[int]</code></p>
`}}),Gn=new z({props:{name:"save_vocabulary",anchor:"transformers.BigBirdTokenizer.save_vocabulary",parameters:[{name:"save_directory",val:": str"},{name:"filename_prefix",val:": typing.Optional[str] = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/tokenization_big_bird.py#L246"}}),Qn=new q({}),Hn=new z({props:{name:"class transformers.BigBirdTokenizerFast",anchor:"transformers.BigBirdTokenizerFast",parameters:[{name:"vocab_file",val:" = None"},{name:"tokenizer_file",val:" = None"},{name:"unk_token",val:" = '<unk>'"},{name:"bos_token",val:" = '<s>'"},{name:"eos_token",val:" = '</s>'"},{name:"pad_token",val:" = '<pad>'"},{name:"sep_token",val:" = '[SEP]'"},{name:"mask_token",val:" = '[MASK]'"},{name:"cls_token",val:" = '[CLS]'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BigBirdTokenizerFast.vocab_file",description:`<strong>vocab_file</strong> (<code>str</code>) &#x2014;
<a href="https://github.com/google/sentencepiece" rel="nofollow">SentencePiece</a> file (generally has a <em>.spm</em> extension) that
contains the vocabulary necessary to instantiate a tokenizer.`,name:"vocab_file"},{anchor:"transformers.BigBirdTokenizerFast.bos_token",description:`<strong>bos_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;s&gt;&quot;</code>) &#x2014;
The beginning of sequence token that was used during pretraining. Can be used a sequence classifier token.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p>When building a sequence using special tokens, this is not the token that is used for the beginning of
sequence. The token used is the <code>cls_token</code>.</p>

					</div>`,name:"bos_token"},{anchor:"transformers.BigBirdTokenizerFast.eos_token",description:`<strong>eos_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;/s&gt;&quot;</code>) &#x2014;
The end of sequence token. .. note:: When building a sequence using special tokens, this is not the token
that is used for the end of sequence. The token used is the <code>sep_token</code>.`,name:"eos_token"},{anchor:"transformers.BigBirdTokenizerFast.unk_token",description:`<strong>unk_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;unk&gt;&quot;</code>) &#x2014;
The unknown token. A token that is not in the vocabulary cannot be converted to an ID and is set to be this
token instead.`,name:"unk_token"},{anchor:"transformers.BigBirdTokenizerFast.sep_token",description:`<strong>sep_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[SEP]&quot;</code>) &#x2014;
The separator token, which is used when building a sequence from multiple sequences, e.g. two sequences for
sequence classification or for a text and a question for question answering. It is also used as the last
token of a sequence built with special tokens.`,name:"sep_token"},{anchor:"transformers.BigBirdTokenizerFast.pad_token",description:`<strong>pad_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;pad&gt;&quot;</code>) &#x2014;
The token used for padding, for example when batching sequences of different lengths.`,name:"pad_token"},{anchor:"transformers.BigBirdTokenizerFast.cls_token",description:`<strong>cls_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[CLS]&quot;</code>) &#x2014;
The classifier token which is used when doing sequence classification (classification of the whole sequence
instead of per-token classification). It is the first token of the sequence when built with special tokens.`,name:"cls_token"},{anchor:"transformers.BigBirdTokenizerFast.mask_token",description:`<strong>mask_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[MASK]&quot;</code>) &#x2014;
The token used for masking values. This is the token used when training this model with masked language
modeling. This is the token which the model will try to predict.`,name:"mask_token"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/tokenization_big_bird_fast.py#L68"}}),Jn=new z({props:{name:"build_inputs_with_special_tokens",anchor:"transformers.BigBirdTokenizerFast.build_inputs_with_special_tokens",parameters:[{name:"token_ids_0",val:": typing.List[int]"},{name:"token_ids_1",val:": typing.Optional[typing.List[int]] = None"}],parametersDescription:[{anchor:"transformers.BigBirdTokenizerFast.build_inputs_with_special_tokens.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of IDs to which the special tokens will be added`,name:"token_ids_0"},{anchor:"transformers.BigBirdTokenizerFast.build_inputs_with_special_tokens.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/tokenization_big_bird_fast.py#L155",returnDescription:`
<p>list of <a href="../glossary#input-ids">input IDs</a> with the appropriate special tokens.</p>
`,returnType:`
<p><code>List[int]</code></p>
`}}),Xn=new z({props:{name:"create_token_type_ids_from_sequences",anchor:"transformers.BigBirdTokenizerFast.create_token_type_ids_from_sequences",parameters:[{name:"token_ids_0",val:": typing.List[int]"},{name:"token_ids_1",val:": typing.Optional[typing.List[int]] = None"}],parametersDescription:[{anchor:"transformers.BigBirdTokenizerFast.create_token_type_ids_from_sequences.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of ids.`,name:"token_ids_0"},{anchor:"transformers.BigBirdTokenizerFast.create_token_type_ids_from_sequences.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/tokenization_big_bird_fast.py#L211",returnDescription:`
<p>List of <a href="../glossary#token-type-ids">token type IDs</a> according to the given sequence(s).</p>
`,returnType:`
<p><code>List[int]</code></p>
`}}),Kt=new M({props:{anchor:"transformers.BigBirdTokenizerFast.create_token_type_ids_from_sequences.example",$$slots:{default:[ox]},$$scope:{ctx:x}}}),Yn=new z({props:{name:"get_special_tokens_mask",anchor:"transformers.BigBirdTokenizerFast.get_special_tokens_mask",parameters:[{name:"token_ids_0",val:": typing.List[int]"},{name:"token_ids_1",val:": typing.Optional[typing.List[int]] = None"},{name:"already_has_special_tokens",val:": bool = False"}],parametersDescription:[{anchor:"transformers.BigBirdTokenizerFast.get_special_tokens_mask.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of ids.`,name:"token_ids_0"},{anchor:"transformers.BigBirdTokenizerFast.get_special_tokens_mask.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"},{anchor:"transformers.BigBirdTokenizerFast.get_special_tokens_mask.already_has_special_tokens",description:`<strong>already_has_special_tokens</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Set to True if the token list is already formatted with special tokens for the model`,name:"already_has_special_tokens"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/tokenization_big_bird_fast.py#L180",returnDescription:`
<p>A list of integers in the range [0, 1]: 1 for a special token, 0 for a sequence token.</p>
`,returnType:`
<p><code>List[int]</code></p>
`}}),es=new q({}),ts=new z({props:{name:"class transformers.models.big_bird.modeling_big_bird.BigBirdForPreTrainingOutput",anchor:"transformers.models.big_bird.modeling_big_bird.BigBirdForPreTrainingOutput",parameters:[{name:"loss",val:": typing.Optional[torch.FloatTensor] = None"},{name:"prediction_logits",val:": FloatTensor = None"},{name:"seq_relationship_logits",val:": FloatTensor = None"},{name:"hidden_states",val:": typing.Optional[typing.Tuple[torch.FloatTensor]] = None"},{name:"attentions",val:": typing.Optional[typing.Tuple[torch.FloatTensor]] = None"}],parametersDescription:[{anchor:"transformers.models.big_bird.modeling_big_bird.BigBirdForPreTrainingOutput.loss",description:`<strong>loss</strong> (<em>optional</em>, returned when <code>labels</code> is provided, <code>torch.FloatTensor</code> of shape <code>(1,)</code>) &#x2014;
Total loss as the sum of the masked language modeling loss and the next sequence prediction
(classification) loss.`,name:"loss"},{anchor:"transformers.models.big_bird.modeling_big_bird.BigBirdForPreTrainingOutput.prediction_logits",description:`<strong>prediction_logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, config.vocab_size)</code>) &#x2014;
Prediction scores of the language modeling head (scores for each vocabulary token before SoftMax).`,name:"prediction_logits"},{anchor:"transformers.models.big_bird.modeling_big_bird.BigBirdForPreTrainingOutput.seq_relationship_logits",description:`<strong>seq_relationship_logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, 2)</code>) &#x2014;
Prediction scores of the next sequence prediction (classification) head (scores of True/False continuation
before SoftMax).`,name:"seq_relationship_logits"},{anchor:"transformers.models.big_bird.modeling_big_bird.BigBirdForPreTrainingOutput.hidden_states",description:`<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>) &#x2014;
Tuple of <code>torch.FloatTensor</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.`,name:"hidden_states"},{anchor:"transformers.models.big_bird.modeling_big_bird.BigBirdForPreTrainingOutput.attentions",description:`<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>) &#x2014;
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.`,name:"attentions"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/modeling_big_bird.py#L1851"}}),ns=new q({}),ss=new z({props:{name:"class transformers.BigBirdModel",anchor:"transformers.BigBirdModel",parameters:[{name:"config",val:""},{name:"add_pooling_layer",val:" = True"}],parametersDescription:[{anchor:"transformers.BigBirdModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdConfig">BigBirdConfig</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/main/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/main/src/transformers/models/big_bird/modeling_big_bird.py#L1923"}}),ds=new z({props:{name:"forward",anchor:"transformers.BigBirdModel.forward",parameters:[{name:"input_ids",val:": 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:"past_key_values",val:": typing.Optional[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.BigBirdModel.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/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/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.BigBirdModel.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.BigBirdModel.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.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.BigBirdModel.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.BigBirdModel.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.BigBirdModel.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 <em>input_ids</em> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.BigBirdModel.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.BigBirdModel.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.BigBirdModel.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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.BigBirdModel.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.BigBirdModel.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.BigBirdModel.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.
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.BigBirdModel.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/main/src/transformers/models/big_bird/modeling_big_bird.py#L1980",returnDescription:`
<p>A <a
  href="/docs/transformers/main/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/main/en/model_doc/big_bird#transformers.BigBirdConfig"
>BigBirdConfig</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/main/en/main_classes/output#transformers.modeling_outputs.BaseModelOutputWithPoolingAndCrossAttentions"
>transformers.modeling_outputs.BaseModelOutputWithPoolingAndCrossAttentions</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),eo=new G({props:{$$slots:{default:[nx]},$$scope:{ctx:x}}}),to=new M({props:{anchor:"transformers.BigBirdModel.forward.example",$$slots:{default:[sx]},$$scope:{ctx:x}}}),cs=new q({}),ps=new z({props:{name:"class transformers.BigBirdForPreTraining",anchor:"transformers.BigBirdForPreTraining",parameters:[{name:"config",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/modeling_big_bird.py#L2262"}}),hs=new z({props:{name:"forward",anchor:"transformers.BigBirdForPreTraining.forward",parameters:[{name:"input_ids",val:": 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.FloatTensor] = None"},{name:"next_sentence_label",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.BigBirdForPreTraining.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/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/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.BigBirdForPreTraining.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.BigBirdForPreTraining.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.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.BigBirdForPreTraining.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.BigBirdForPreTraining.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.BigBirdForPreTraining.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 <em>input_ids</em> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.BigBirdForPreTraining.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.BigBirdForPreTraining.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.BigBirdForPreTraining.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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.BigBirdForPreTraining.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.BigBirdForPreTraining.forward.next_sentence_label",description:`<strong>next_sentence_label</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the next sequence prediction (classification) loss. If specified, nsp loss will be
added to masked_lm loss. Input should be a sequence pair (see <code>input_ids</code> docstring) Indices should be in
<code>[0, 1]</code>:</p>
<ul>
<li>0 indicates sequence B is a continuation of sequence A,</li>
<li>1 indicates sequence B is a random sequence.</li>
</ul>`,name:"next_sentence_label"},{anchor:"transformers.BigBirdForPreTraining.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/main/src/transformers/models/big_bird/modeling_big_bird.py#L2280",returnDescription:`
<p>A <a
  href="/docs/transformers/main/en/model_doc/big_bird#transformers.models.big_bird.modeling_big_bird.BigBirdForPreTrainingOutput"
>transformers.models.big_bird.modeling_big_bird.BigBirdForPreTrainingOutput</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/main/en/model_doc/big_bird#transformers.BigBirdConfig"
>BigBirdConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<em>optional</em>, returned when <code>labels</code> is provided, <code>torch.FloatTensor</code> of shape <code>(1,)</code>) \u2014 Total loss as the sum of the masked language modeling loss and the next sequence prediction
(classification) loss.</p>
</li>
<li>
<p><strong>prediction_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>seq_relationship_logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, 2)</code>) \u2014 Prediction scores of the next sequence prediction (classification) head (scores of True/False continuation
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 + 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(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/main/en/model_doc/big_bird#transformers.models.big_bird.modeling_big_bird.BigBirdForPreTrainingOutput"
>transformers.models.big_bird.modeling_big_bird.BigBirdForPreTrainingOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),no=new G({props:{$$slots:{default:[ax]},$$scope:{ctx:x}}}),so=new M({props:{anchor:"transformers.BigBirdForPreTraining.forward.example",$$slots:{default:[rx]},$$scope:{ctx:x}}}),ms=new q({}),us=new z({props:{name:"class transformers.BigBirdForCausalLM",anchor:"transformers.BigBirdForCausalLM",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.BigBirdForCausalLM.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdConfig">BigBirdConfig</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/main/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/main/src/transformers/models/big_bird/modeling_big_bird.py#L2512"}}),gs=new z({props:{name:"forward",anchor:"transformers.BigBirdForCausalLM.forward",parameters:[{name:"input_ids",val:": 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:"past_key_values",val:": typing.Optional[typing.Tuple[typing.Tuple[torch.FloatTensor]]] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = 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.BigBirdForCausalLM.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/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/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.BigBirdForCausalLM.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.BigBirdForCausalLM.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.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.BigBirdForCausalLM.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.BigBirdForCausalLM.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.BigBirdForCausalLM.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 <em>input_ids</em> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.BigBirdForCausalLM.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.BigBirdForCausalLM.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.BigBirdForCausalLM.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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.BigBirdForCausalLM.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.BigBirdForCausalLM.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.BigBirdForCausalLM.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.
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.BigBirdForCausalLM.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 n <code>[0, ..., config.vocab_size]</code>.`,name:"labels"},{anchor:"transformers.BigBirdForCausalLM.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/main/src/transformers/models/big_bird/modeling_big_bird.py#L2538",returnDescription:`
<p>A <a
  href="/docs/transformers/main/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/main/en/model_doc/big_bird#transformers.BigBirdConfig"
>BigBirdConfig</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/main/en/main_classes/output#transformers.modeling_outputs.CausalLMOutputWithCrossAttentions"
>transformers.modeling_outputs.CausalLMOutputWithCrossAttentions</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),ro=new G({props:{$$slots:{default:[ix]},$$scope:{ctx:x}}}),io=new M({props:{anchor:"transformers.BigBirdForCausalLM.forward.example",$$slots:{default:[lx]},$$scope:{ctx:x}}}),_s=new q({}),bs=new z({props:{name:"class transformers.BigBirdForMaskedLM",anchor:"transformers.BigBirdForMaskedLM",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.BigBirdForMaskedLM.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdConfig">BigBirdConfig</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/main/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/main/src/transformers/models/big_bird/modeling_big_bird.py#L2368"}}),vs=new z({props:{name:"forward",anchor:"transformers.BigBirdForMaskedLM.forward",parameters:[{name:"input_ids",val:": 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.BigBirdForMaskedLM.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/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/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.BigBirdForMaskedLM.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.BigBirdForMaskedLM.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.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.BigBirdForMaskedLM.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.BigBirdForMaskedLM.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.BigBirdForMaskedLM.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 <em>input_ids</em> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.BigBirdForMaskedLM.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.BigBirdForMaskedLM.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.BigBirdForMaskedLM.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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.BigBirdForMaskedLM.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"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/modeling_big_bird.py#L2392",returnDescription:`
<p>A <a
  href="/docs/transformers/main/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/main/en/model_doc/big_bird#transformers.BigBirdConfig"
>BigBirdConfig</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/main/en/main_classes/output#transformers.modeling_outputs.MaskedLMOutput"
>transformers.modeling_outputs.MaskedLMOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),co=new G({props:{$$slots:{default:[dx]},$$scope:{ctx:x}}}),po=new M({props:{anchor:"transformers.BigBirdForMaskedLM.forward.example",$$slots:{default:[cx]},$$scope:{ctx:x}}}),ho=new M({props:{anchor:"transformers.BigBirdForMaskedLM.forward.example-2",$$slots:{default:[px]},$$scope:{ctx:x}}}),Bs=new q({}),ys=new z({props:{name:"class transformers.BigBirdForSequenceClassification",anchor:"transformers.BigBirdForSequenceClassification",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.BigBirdForSequenceClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdConfig">BigBirdConfig</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/main/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/main/src/transformers/models/big_bird/modeling_big_bird.py#L2679"}}),$s=new z({props:{name:"forward",anchor:"transformers.BigBirdForSequenceClassification.forward",parameters:[{name:"input_ids",val:": 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.BigBirdForSequenceClassification.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/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/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.BigBirdForSequenceClassification.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.BigBirdForSequenceClassification.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.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.BigBirdForSequenceClassification.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.BigBirdForSequenceClassification.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.BigBirdForSequenceClassification.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 <em>input_ids</em> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.BigBirdForSequenceClassification.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.BigBirdForSequenceClassification.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.BigBirdForSequenceClassification.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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.BigBirdForSequenceClassification.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/main/src/transformers/models/big_bird/modeling_big_bird.py#L2690",returnDescription:`
<p>A <a
  href="/docs/transformers/main/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/main/en/model_doc/big_bird#transformers.BigBirdConfig"
>BigBirdConfig</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/main/en/main_classes/output#transformers.modeling_outputs.SequenceClassifierOutput"
>transformers.modeling_outputs.SequenceClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),uo=new G({props:{$$slots:{default:[hx]},$$scope:{ctx:x}}}),fo=new M({props:{anchor:"transformers.BigBirdForSequenceClassification.forward.example",$$slots:{default:[mx]},$$scope:{ctx:x}}}),go=new M({props:{anchor:"transformers.BigBirdForSequenceClassification.forward.example-2",$$slots:{default:[ux]},$$scope:{ctx:x}}}),xs=new q({}),Fs=new z({props:{name:"class transformers.BigBirdForMultipleChoice",anchor:"transformers.BigBirdForMultipleChoice",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.BigBirdForMultipleChoice.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdConfig">BigBirdConfig</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/main/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/main/src/transformers/models/big_bird/modeling_big_bird.py#L2807"}}),Ms=new z({props:{name:"forward",anchor:"transformers.BigBirdForMultipleChoice.forward",parameters:[{name:"input_ids",val:": 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.BigBirdForMultipleChoice.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/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/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.BigBirdForMultipleChoice.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.BigBirdForMultipleChoice.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.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.BigBirdForMultipleChoice.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.BigBirdForMultipleChoice.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.BigBirdForMultipleChoice.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 <em>input_ids</em> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.BigBirdForMultipleChoice.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.BigBirdForMultipleChoice.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.BigBirdForMultipleChoice.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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.BigBirdForMultipleChoice.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/main/src/transformers/models/big_bird/modeling_big_bird.py#L2818",returnDescription:`
<p>A <a
  href="/docs/transformers/main/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/main/en/model_doc/big_bird#transformers.BigBirdConfig"
>BigBirdConfig</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/main/en/main_classes/output#transformers.modeling_outputs.MultipleChoiceModelOutput"
>transformers.modeling_outputs.MultipleChoiceModelOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),bo=new G({props:{$$slots:{default:[fx]},$$scope:{ctx:x}}}),ko=new M({props:{anchor:"transformers.BigBirdForMultipleChoice.forward.example",$$slots:{default:[gx]},$$scope:{ctx:x}}}),Es=new q({}),js=new z({props:{name:"class transformers.BigBirdForTokenClassification",anchor:"transformers.BigBirdForTokenClassification",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.BigBirdForTokenClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdConfig">BigBirdConfig</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/main/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/main/src/transformers/models/big_bird/modeling_big_bird.py#L2900"}}),As=new z({props:{name:"forward",anchor:"transformers.BigBirdForTokenClassification.forward",parameters:[{name:"input_ids",val:": 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.BigBirdForTokenClassification.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/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/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.BigBirdForTokenClassification.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.BigBirdForTokenClassification.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.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.BigBirdForTokenClassification.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.BigBirdForTokenClassification.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.BigBirdForTokenClassification.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 <em>input_ids</em> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.BigBirdForTokenClassification.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.BigBirdForTokenClassification.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.BigBirdForTokenClassification.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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.BigBirdForTokenClassification.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/main/src/transformers/models/big_bird/modeling_big_bird.py#L2915",returnDescription:`
<p>A <a
  href="/docs/transformers/main/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/main/en/model_doc/big_bird#transformers.BigBirdConfig"
>BigBirdConfig</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/main/en/main_classes/output#transformers.modeling_outputs.TokenClassifierOutput"
>transformers.modeling_outputs.TokenClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Bo=new G({props:{$$slots:{default:[_x]},$$scope:{ctx:x}}}),yo=new M({props:{anchor:"transformers.BigBirdForTokenClassification.forward.example",$$slots:{default:[bx]},$$scope:{ctx:x}}}),Ls=new q({}),Is=new z({props:{name:"class transformers.BigBirdForQuestionAnswering",anchor:"transformers.BigBirdForQuestionAnswering",parameters:[{name:"config",val:""},{name:"add_pooling_layer",val:" = False"}],parametersDescription:[{anchor:"transformers.BigBirdForQuestionAnswering.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdConfig">BigBirdConfig</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/main/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/main/src/transformers/models/big_bird/modeling_big_bird.py#L2999"}}),Ss=new z({props:{name:"forward",anchor:"transformers.BigBirdForQuestionAnswering.forward",parameters:[{name:"input_ids",val:": LongTensor = None"},{name:"attention_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"question_lengths",val:" = 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.BigBirdForQuestionAnswering.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/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/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.BigBirdForQuestionAnswering.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.BigBirdForQuestionAnswering.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.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.BigBirdForQuestionAnswering.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.BigBirdForQuestionAnswering.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.BigBirdForQuestionAnswering.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 <em>input_ids</em> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.BigBirdForQuestionAnswering.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.BigBirdForQuestionAnswering.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.BigBirdForQuestionAnswering.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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.BigBirdForQuestionAnswering.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.BigBirdForQuestionAnswering.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/main/src/transformers/models/big_bird/modeling_big_bird.py#L3013",returnDescription:`
<p>A <code>transformers.models.big_bird.modeling_big_bird.BigBirdForQuestionAnsweringModelOutput</code> 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/main/en/model_doc/big_bird#transformers.BigBirdConfig"
>BigBirdConfig</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>pooler_output</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, 1)</code>) \u2014 pooler output from BigBigModel</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 + 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(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><code>transformers.models.big_bird.modeling_big_bird.BigBirdForQuestionAnsweringModelOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),wo=new G({props:{$$slots:{default:[kx]},$$scope:{ctx:x}}}),$o=new M({props:{anchor:"transformers.BigBirdForQuestionAnswering.forward.example",$$slots:{default:[vx]},$$scope:{ctx:x}}}),xo=new M({props:{anchor:"transformers.BigBirdForQuestionAnswering.forward.example-2",$$slots:{default:[Bx]},$$scope:{ctx:x}}}),Ds=new q({}),Ws=new z({props:{name:"class transformers.FlaxBigBirdModel",anchor:"transformers.FlaxBigBirdModel",parameters:[{name:"config",val:": BigBirdConfig"},{name:"input_shape",val:": typing.Optional[tuple] = None"},{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.FlaxBigBirdModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdConfig">BigBirdConfig</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/main/en/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"},{anchor:"transformers.FlaxBigBirdModel.dtype",description:`<strong>dtype</strong> (<code>jax.numpy.dtype</code>, <em>optional</em>, defaults to <code>jax.numpy.float32</code>) &#x2014;
The data type of the computation. Can be one of <code>jax.numpy.float32</code>, <code>jax.numpy.float16</code> (on GPUs) and
<code>jax.numpy.bfloat16</code> (on TPUs).</p>
<p>This can be used to enable mixed-precision training or half-precision inference on GPUs or TPUs. If
specified all the computation will be performed with the given <code>dtype</code>.</p>
<p><strong>Note that this only specifies the dtype of the computation and does not influence the dtype of model
parameters.</strong></p>
<p>If you wish to change the dtype of the model parameters, see <a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/modeling_flax_big_bird.py#L1832"}}),Ks=new z({props:{name:"__call__",anchor:"transformers.FlaxBigBirdModel.__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.FlaxBigBirdModel.__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/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/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.FlaxBigBirdModel.__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.FlaxBigBirdModel.__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.FlaxBigBirdModel.__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.FlaxBigBirdModel.__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.FlaxBigBirdModel.__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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/modeling_flax_big_bird.py#L1662",returnDescription:`
<p>A <a
  href="/docs/transformers/main/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/main/en/model_doc/big_bird#transformers.BigBirdConfig"
>BigBirdConfig</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/main/en/main_classes/output#transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling"
>transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),zo=new G({props:{$$slots:{default:[yx]},$$scope:{ctx:x}}}),qo=new M({props:{anchor:"transformers.FlaxBigBirdModel.__call__.example",$$slots:{default:[Tx]},$$scope:{ctx:x}}}),Xs=new q({}),Ys=new z({props:{name:"class transformers.FlaxBigBirdForPreTraining",anchor:"transformers.FlaxBigBirdForPreTraining",parameters:[{name:"config",val:": BigBirdConfig"},{name:"input_shape",val:": typing.Optional[tuple] = None"},{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.FlaxBigBirdForPreTraining.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdConfig">BigBirdConfig</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/main/en/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"},{anchor:"transformers.FlaxBigBirdForPreTraining.dtype",description:`<strong>dtype</strong> (<code>jax.numpy.dtype</code>, <em>optional</em>, defaults to <code>jax.numpy.float32</code>) &#x2014;
The data type of the computation. Can be one of <code>jax.numpy.float32</code>, <code>jax.numpy.float16</code> (on GPUs) and
<code>jax.numpy.bfloat16</code> (on TPUs).</p>
<p>This can be used to enable mixed-precision training or half-precision inference on GPUs or TPUs. If
specified all the computation will be performed with the given <code>dtype</code>.</p>
<p><strong>Note that this only specifies the dtype of the computation and does not influence the dtype of model
parameters.</strong></p>
<p>If you wish to change the dtype of the model parameters, see <a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/modeling_flax_big_bird.py#L1910"}}),ra=new z({props:{name:"__call__",anchor:"transformers.FlaxBigBirdForPreTraining.__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.FlaxBigBirdForPreTraining.__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/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/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.FlaxBigBirdForPreTraining.__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.FlaxBigBirdForPreTraining.__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.FlaxBigBirdForPreTraining.__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.FlaxBigBirdForPreTraining.__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.FlaxBigBirdForPreTraining.__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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/modeling_flax_big_bird.py#L1662",returnDescription:`
<p>A <code>transformers.models.big_bird.modeling_flax_big_bird.FlaxBigBirdForPreTrainingOutput</code> 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/main/en/model_doc/big_bird#transformers.BigBirdConfig"
>BigBirdConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>prediction_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>seq_relationship_logits</strong> (<code>jnp.ndarray</code> of shape <code>(batch_size, 2)</code>) \u2014 Prediction scores of the next sequence prediction (classification) head (scores of True/False continuation
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><code>transformers.models.big_bird.modeling_flax_big_bird.FlaxBigBirdForPreTrainingOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Eo=new G({props:{$$slots:{default:[wx]},$$scope:{ctx:x}}}),jo=new M({props:{anchor:"transformers.FlaxBigBirdForPreTraining.__call__.example",$$slots:{default:[$x]},$$scope:{ctx:x}}}),ia=new q({}),la=new z({props:{name:"class transformers.FlaxBigBirdForCausalLM",anchor:"transformers.FlaxBigBirdForCausalLM",parameters:[{name:"config",val:": BigBirdConfig"},{name:"input_shape",val:": typing.Optional[tuple] = None"},{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.FlaxBigBirdForCausalLM.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdConfig">BigBirdConfig</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/main/en/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"},{anchor:"transformers.FlaxBigBirdForCausalLM.dtype",description:`<strong>dtype</strong> (<code>jax.numpy.dtype</code>, <em>optional</em>, defaults to <code>jax.numpy.float32</code>) &#x2014;
The data type of the computation. Can be one of <code>jax.numpy.float32</code>, <code>jax.numpy.float16</code> (on GPUs) and
<code>jax.numpy.bfloat16</code> (on TPUs).</p>
<p>This can be used to enable mixed-precision training or half-precision inference on GPUs or TPUs. If
specified all the computation will be performed with the given <code>dtype</code>.</p>
<p><strong>Note that this only specifies the dtype of the computation and does not influence the dtype of model
parameters.</strong></p>
<p>If you wish to change the dtype of the model parameters, see <a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/modeling_flax_big_bird.py#L2540"}}),ga=new z({props:{name:"__call__",anchor:"transformers.FlaxBigBirdForCausalLM.__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.FlaxBigBirdForCausalLM.__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/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/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.FlaxBigBirdForCausalLM.__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.FlaxBigBirdForCausalLM.__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.FlaxBigBirdForCausalLM.__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.FlaxBigBirdForCausalLM.__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.FlaxBigBirdForCausalLM.__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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/modeling_flax_big_bird.py#L1662",returnDescription:`
<p>A <a
  href="/docs/transformers/main/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/main/en/model_doc/big_bird#transformers.BigBirdConfig"
>BigBirdConfig</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/main/en/main_classes/output#transformers.modeling_flax_outputs.FlaxCausalLMOutputWithCrossAttentions"
>transformers.modeling_flax_outputs.FlaxCausalLMOutputWithCrossAttentions</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Co=new G({props:{$$slots:{default:[xx]},$$scope:{ctx:x}}}),Ao=new M({props:{anchor:"transformers.FlaxBigBirdForCausalLM.__call__.example",$$slots:{default:[Fx]},$$scope:{ctx:x}}}),_a=new q({}),ba=new z({props:{name:"class transformers.FlaxBigBirdForMaskedLM",anchor:"transformers.FlaxBigBirdForMaskedLM",parameters:[{name:"config",val:": BigBirdConfig"},{name:"input_shape",val:": typing.Optional[tuple] = None"},{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.FlaxBigBirdForMaskedLM.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdConfig">BigBirdConfig</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/main/en/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"},{anchor:"transformers.FlaxBigBirdForMaskedLM.dtype",description:`<strong>dtype</strong> (<code>jax.numpy.dtype</code>, <em>optional</em>, defaults to <code>jax.numpy.float32</code>) &#x2014;
The data type of the computation. Can be one of <code>jax.numpy.float32</code>, <code>jax.numpy.float16</code> (on GPUs) and
<code>jax.numpy.bfloat16</code> (on TPUs).</p>
<p>This can be used to enable mixed-precision training or half-precision inference on GPUs or TPUs. If
specified all the computation will be performed with the given <code>dtype</code>.</p>
<p><strong>Note that this only specifies the dtype of the computation and does not influence the dtype of model
parameters.</strong></p>
<p>If you wish to change the dtype of the model parameters, see <a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/modeling_flax_big_bird.py#L2003"}}),Fa=new z({props:{name:"__call__",anchor:"transformers.FlaxBigBirdForMaskedLM.__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.FlaxBigBirdForMaskedLM.__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/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/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.FlaxBigBirdForMaskedLM.__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.FlaxBigBirdForMaskedLM.__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.FlaxBigBirdForMaskedLM.__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.FlaxBigBirdForMaskedLM.__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.FlaxBigBirdForMaskedLM.__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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/modeling_flax_big_bird.py#L1662",returnDescription:`
<p>A <a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_flax_outputs.FlaxMaskedLMOutput"
>transformers.modeling_flax_outputs.FlaxMaskedLMOutput</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/main/en/model_doc/big_bird#transformers.BigBirdConfig"
>BigBirdConfig</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>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_flax_outputs.FlaxMaskedLMOutput"
>transformers.modeling_flax_outputs.FlaxMaskedLMOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Io=new G({props:{$$slots:{default:[zx]},$$scope:{ctx:x}}}),Oo=new M({props:{anchor:"transformers.FlaxBigBirdForMaskedLM.__call__.example",$$slots:{default:[qx]},$$scope:{ctx:x}}}),za=new q({}),qa=new z({props:{name:"class transformers.FlaxBigBirdForSequenceClassification",anchor:"transformers.FlaxBigBirdForSequenceClassification",parameters:[{name:"config",val:": BigBirdConfig"},{name:"input_shape",val:": typing.Optional[tuple] = None"},{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.FlaxBigBirdForSequenceClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdConfig">BigBirdConfig</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/main/en/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"},{anchor:"transformers.FlaxBigBirdForSequenceClassification.dtype",description:`<strong>dtype</strong> (<code>jax.numpy.dtype</code>, <em>optional</em>, defaults to <code>jax.numpy.float32</code>) &#x2014;
The data type of the computation. Can be one of <code>jax.numpy.float32</code>, <code>jax.numpy.float16</code> (on GPUs) and
<code>jax.numpy.bfloat16</code> (on TPUs).</p>
<p>This can be used to enable mixed-precision training or half-precision inference on GPUs or TPUs. If
specified all the computation will be performed with the given <code>dtype</code>.</p>
<p><strong>Note that this only specifies the dtype of the computation and does not influence the dtype of model
parameters.</strong></p>
<p>If you wish to change the dtype of the model parameters, see <a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/modeling_flax_big_bird.py#L2093"}}),Ia=new z({props:{name:"__call__",anchor:"transformers.FlaxBigBirdForSequenceClassification.__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.FlaxBigBirdForSequenceClassification.__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/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/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.FlaxBigBirdForSequenceClassification.__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.FlaxBigBirdForSequenceClassification.__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.FlaxBigBirdForSequenceClassification.__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.FlaxBigBirdForSequenceClassification.__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.FlaxBigBirdForSequenceClassification.__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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/modeling_flax_big_bird.py#L1662",returnDescription:`
<p>A <a
  href="/docs/transformers/main/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/main/en/model_doc/big_bird#transformers.BigBirdConfig"
>BigBirdConfig</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/main/en/main_classes/output#transformers.modeling_flax_outputs.FlaxSequenceClassifierOutput"
>transformers.modeling_flax_outputs.FlaxSequenceClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),So=new G({props:{$$slots:{default:[Mx]},$$scope:{ctx:x}}}),Do=new M({props:{anchor:"transformers.FlaxBigBirdForSequenceClassification.__call__.example",$$slots:{default:[Ex]},$$scope:{ctx:x}}}),Oa=new q({}),Na=new z({props:{name:"class transformers.FlaxBigBirdForMultipleChoice",anchor:"transformers.FlaxBigBirdForMultipleChoice",parameters:[{name:"config",val:": BigBirdConfig"},{name:"input_shape",val:": typing.Optional[tuple] = None"},{name:"seed",val:": int = 0"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"_do_init",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxBigBirdForMultipleChoice.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdConfig">BigBirdConfig</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/main/en/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"},{anchor:"transformers.FlaxBigBirdForMultipleChoice.dtype",description:`<strong>dtype</strong> (<code>jax.numpy.dtype</code>, <em>optional</em>, defaults to <code>jax.numpy.float32</code>) &#x2014;
The data type of the computation. Can be one of <code>jax.numpy.float32</code>, <code>jax.numpy.float16</code> (on GPUs) and
<code>jax.numpy.bfloat16</code> (on TPUs).</p>
<p>This can be used to enable mixed-precision training or half-precision inference on GPUs or TPUs. If
specified all the computation will be performed with the given <code>dtype</code>.</p>
<p><strong>Note that this only specifies the dtype of the computation and does not influence the dtype of model
parameters.</strong></p>
<p>If you wish to change the dtype of the model parameters, see <a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/modeling_flax_big_bird.py#L2174"}}),Ha=new z({props:{name:"__call__",anchor:"transformers.FlaxBigBirdForMultipleChoice.__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.FlaxBigBirdForMultipleChoice.__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/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/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.FlaxBigBirdForMultipleChoice.__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.FlaxBigBirdForMultipleChoice.__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.FlaxBigBirdForMultipleChoice.__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.FlaxBigBirdForMultipleChoice.__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.FlaxBigBirdForMultipleChoice.__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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/modeling_flax_big_bird.py#L1662",returnDescription:`
<p>A <a
  href="/docs/transformers/main/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/main/en/model_doc/big_bird#transformers.BigBirdConfig"
>BigBirdConfig</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/main/en/main_classes/output#transformers.modeling_flax_outputs.FlaxMultipleChoiceModelOutput"
>transformers.modeling_flax_outputs.FlaxMultipleChoiceModelOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Uo=new G({props:{$$slots:{default:[jx]},$$scope:{ctx:x}}}),Ro=new M({props:{anchor:"transformers.FlaxBigBirdForMultipleChoice.__call__.example",$$slots:{default:[Px]},$$scope:{ctx:x}}}),Va=new q({}),Ja=new z({props:{name:"class transformers.FlaxBigBirdForTokenClassification",anchor:"transformers.FlaxBigBirdForTokenClassification",parameters:[{name:"config",val:": BigBirdConfig"},{name:"input_shape",val:": typing.Optional[tuple] = None"},{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.FlaxBigBirdForTokenClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdConfig">BigBirdConfig</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/main/en/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"},{anchor:"transformers.FlaxBigBirdForTokenClassification.dtype",description:`<strong>dtype</strong> (<code>jax.numpy.dtype</code>, <em>optional</em>, defaults to <code>jax.numpy.float32</code>) &#x2014;
The data type of the computation. Can be one of <code>jax.numpy.float32</code>, <code>jax.numpy.float16</code> (on GPUs) and
<code>jax.numpy.bfloat16</code> (on TPUs).</p>
<p>This can be used to enable mixed-precision training or half-precision inference on GPUs or TPUs. If
specified all the computation will be performed with the given <code>dtype</code>.</p>
<p><strong>Note that this only specifies the dtype of the computation and does not influence the dtype of model
parameters.</strong></p>
<p>If you wish to change the dtype of the model parameters, see <a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/modeling_flax_big_bird.py#L2272"}}),nr=new z({props:{name:"__call__",anchor:"transformers.FlaxBigBirdForTokenClassification.__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.FlaxBigBirdForTokenClassification.__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/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/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.FlaxBigBirdForTokenClassification.__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.FlaxBigBirdForTokenClassification.__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.FlaxBigBirdForTokenClassification.__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.FlaxBigBirdForTokenClassification.__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.FlaxBigBirdForTokenClassification.__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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/modeling_flax_big_bird.py#L1662",returnDescription:`
<p>A <a
  href="/docs/transformers/main/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/main/en/model_doc/big_bird#transformers.BigBirdConfig"
>BigBirdConfig</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/main/en/main_classes/output#transformers.modeling_flax_outputs.FlaxTokenClassifierOutput"
>transformers.modeling_flax_outputs.FlaxTokenClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Qo=new G({props:{$$slots:{default:[Cx]},$$scope:{ctx:x}}}),Ho=new M({props:{anchor:"transformers.FlaxBigBirdForTokenClassification.__call__.example",$$slots:{default:[Ax]},$$scope:{ctx:x}}}),sr=new q({}),ar=new z({props:{name:"class transformers.FlaxBigBirdForQuestionAnswering",anchor:"transformers.FlaxBigBirdForQuestionAnswering",parameters:[{name:"config",val:": BigBirdConfig"},{name:"input_shape",val:": typing.Optional[tuple] = None"},{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.FlaxBigBirdForQuestionAnswering.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdConfig">BigBirdConfig</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/main/en/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"},{anchor:"transformers.FlaxBigBirdForQuestionAnswering.dtype",description:`<strong>dtype</strong> (<code>jax.numpy.dtype</code>, <em>optional</em>, defaults to <code>jax.numpy.float32</code>) &#x2014;
The data type of the computation. Can be one of <code>jax.numpy.float32</code>, <code>jax.numpy.float16</code> (on GPUs) and
<code>jax.numpy.bfloat16</code> (on TPUs).</p>
<p>This can be used to enable mixed-precision training or half-precision inference on GPUs or TPUs. If
specified all the computation will be performed with the given <code>dtype</code>.</p>
<p><strong>Note that this only specifies the dtype of the computation and does not influence the dtype of model
parameters.</strong></p>
<p>If you wish to change the dtype of the model parameters, see <a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/modeling_flax_big_bird.py#L2376"}}),mr=new z({props:{name:"__call__",anchor:"transformers.FlaxBigBirdForQuestionAnswering.__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:"question_lengths",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"}],parametersDescription:[{anchor:"transformers.FlaxBigBirdForQuestionAnswering.__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/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/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.FlaxBigBirdForQuestionAnswering.__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.FlaxBigBirdForQuestionAnswering.__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.FlaxBigBirdForQuestionAnswering.__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.FlaxBigBirdForQuestionAnswering.__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.FlaxBigBirdForQuestionAnswering.__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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/big_bird/modeling_flax_big_bird.py#L2379",returnDescription:`
<p>A <code>transformers.models.big_bird.modeling_flax_big_bird.FlaxBigBirdForQuestionAnsweringModelOutput</code> 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/main/en/model_doc/big_bird#transformers.BigBirdConfig"
>BigBirdConfig</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>pooled_output</strong> (<code>jnp.ndarray</code> of shape <code>(batch_size, hidden_size)</code>) \u2014 pooled_output returned by FlaxBigBirdModel.</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><code>transformers.models.big_bird.modeling_flax_big_bird.FlaxBigBirdForQuestionAnsweringModelOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Jo=new G({props:{$$slots:{default:[Lx]},$$scope:{ctx:x}}}),Ko=new M({props:{anchor:"transformers.FlaxBigBirdForQuestionAnswering.__call__.example",$$slots:{default:[Ix]},$$scope:{ctx:x}}}),{c(){d=n("meta"),b=p(),u=n("h1"),f=n("a"),_=n("span"),v(l.$$.fragment),m=p(),F=n("span"),Lh=r("BigBird"),Wc=p(),Ve=n("h2"),Wt=n("a"),Fi=n("span"),v($n.$$.fragment),Ih=p(),zi=n("span"),Oh=r("Overview"),Uc=p(),Ut=n("p"),Nh=r("The BigBird model was proposed in "),xn=n("a"),Sh=r("Big Bird: Transformers for Longer Sequences"),Dh=r(` by
Zaheer, Manzil and Guruganesh, Guru and Dubey, Kumar Avinava and Ainslie, Joshua and Alberti, Chris and Ontanon,
Santiago and Pham, Philip and Ravula, Anirudh and Wang, Qifan and Yang, Li and others. BigBird, is a sparse-attention
based transformer which extends Transformer based models, such as BERT to much longer sequences. In addition to sparse
attention, BigBird also applies global attention as well as random attention to the input sequence. Theoretically, it
has been shown that applying sparse, global, and random attention approximates full attention, while being
computationally much more efficient for longer sequences. As a consequence of the capability to handle longer context,
BigBird has shown improved performance on various long document NLP tasks, such as question answering and
summarization, compared to BERT or RoBERTa.`),Rc=p(),vr=n("p"),Wh=r("The abstract from the paper is the following:"),Gc=p(),Br=n("p"),qi=n("em"),Uh=r(`Transformers-based models, such as BERT, have been one of the most successful deep learning models for NLP.
Unfortunately, one of their core limitations is the quadratic dependency (mainly in terms of memory) on the sequence
length due to their full attention mechanism. To remedy this, we propose, BigBird, a sparse attention mechanism that
reduces this quadratic dependency to linear. We show that BigBird is a universal approximator of sequence functions and
is Turing complete, thereby preserving these properties of the quadratic, full attention model. Along the way, our
theoretical analysis reveals some of the benefits of having O(1) global tokens (such as CLS), that attend to the entire
sequence as part of the sparse attention mechanism. The proposed sparse attention can handle sequences of length up to
8x of what was previously possible using similar hardware. As a consequence of the capability to handle longer context,
BigBird drastically improves performance on various NLP tasks such as question answering and summarization. We also
propose novel applications to genomics data.`),Qc=p(),yr=n("p"),Rh=r("Tips:"),Hc=p(),W=n("ul"),Fn=n("li"),Gh=r("For an in-detail explanation on how BigBird\u2019s attention works, see "),zn=n("a"),Qh=r("this blog post"),Hh=r("."),Vh=p(),ie=n("li"),Jh=r("BigBird comes with 2 implementations: "),Mi=n("strong"),Kh=r("original_full"),Xh=r(" & "),Ei=n("strong"),Yh=r("block_sparse"),Zh=r(`. For the sequence length < 1024, using
`),ji=n("strong"),em=r("original_full"),tm=r(" is advised as there is no benefit in using "),Pi=n("strong"),om=r("block_sparse"),nm=r(" attention."),sm=p(),Ci=n("li"),am=r("The code currently uses window size of 3 blocks and 2 global blocks."),rm=p(),Ai=n("li"),im=r("Sequence length must be divisible by block size."),lm=p(),qn=n("li"),dm=r("Current implementation supports only "),Li=n("strong"),cm=r("ITC"),pm=r("."),hm=p(),Tr=n("li"),mm=r("Current implementation doesn\u2019t support "),Ii=n("strong"),um=r("num_random_blocks = 0"),fm=p(),Oi=n("li"),gm=r(`BigBird is a model with absolute position embeddings so it\u2019s usually advised to pad the inputs on the right rather than
the left.`),Vc=p(),Se=n("p"),_m=r("This model was contributed by "),Mn=n("a"),bm=r("vasudevgupta"),km=r(`. The original code can be found
`),En=n("a"),vm=r("here"),Bm=r("."),Jc=p(),Je=n("h2"),Rt=n("a"),Ni=n("span"),v(jn.$$.fragment),ym=p(),Si=n("span"),Tm=r("BigBirdConfig"),Kc=p(),le=n("div"),v(Pn.$$.fragment),wm=p(),Ke=n("p"),$m=r("This is the configuration class to store the configuration of a "),wr=n("a"),xm=r("BigBirdModel"),Fm=r(`. It is used to instantiate an
BigBird 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 BigBird
`),Cn=n("a"),zm=r("google/bigbird-roberta-base"),qm=r(" architecture."),Mm=p(),Xe=n("p"),Em=r("Configuration objects inherit from "),$r=n("a"),jm=r("PretrainedConfig"),Pm=r(` and can be used to control the model outputs. Read the
documentation from `),xr=n("a"),Cm=r("PretrainedConfig"),Am=r(" for more information."),Lm=p(),v(Gt.$$.fragment),Xc=p(),Ye=n("h2"),Qt=n("a"),Di=n("span"),v(An.$$.fragment),Im=p(),Wi=n("span"),Om=r("BigBirdTokenizer"),Yc=p(),P=n("div"),v(Ln.$$.fragment),Nm=p(),In=n("p"),Sm=r("Construct a BigBird tokenizer. Based on "),On=n("a"),Dm=r("SentencePiece"),Wm=r("."),Um=p(),Nn=n("p"),Rm=r("This tokenizer inherits from "),Fr=n("a"),Gm=r("PreTrainedTokenizer"),Qm=r(` which contains most of the main methods. Users should refer to
this superclass for more information regarding those methods.`),Hm=p(),De=n("div"),v(Sn.$$.fragment),Vm=p(),Ui=n("p"),Jm=r(`Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
adding special tokens. A Big Bird sequence has the following format:`),Km=p(),Dn=n("ul"),zr=n("li"),Xm=r("single sequence: "),Ri=n("code"),Ym=r("[CLS] X [SEP]"),Zm=p(),qr=n("li"),eu=r("pair of sequences: "),Gi=n("code"),tu=r("[CLS] A [SEP] B [SEP]"),ou=p(),Ht=n("div"),v(Wn.$$.fragment),nu=p(),Un=n("p"),su=r(`Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding
special tokens using the tokenizer `),Qi=n("code"),au=r("prepare_for_model"),ru=r(" method."),iu=p(),Vt=n("div"),v(Rn.$$.fragment),lu=p(),Ze=n("p"),du=r(`Create a mask from the two sequences passed to be used in a sequence-pair classification task. A BERT sequence
pair mask has the following format: :: 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 | first sequence | second
sequence | If `),Hi=n("code"),cu=r("token_ids_1"),pu=r(" is "),Vi=n("code"),hu=r("None"),mu=r(", this method only returns the first portion of the mask (0s)."),uu=p(),Mr=n("div"),v(Gn.$$.fragment),Zc=p(),et=n("h2"),Jt=n("a"),Ji=n("span"),v(Qn.$$.fragment),fu=p(),Ki=n("span"),gu=r("BigBirdTokenizerFast"),ep=p(),Q=n("div"),v(Hn.$$.fragment),_u=p(),ze=n("p"),bu=r("Construct a \u201Cfast\u201D BigBird tokenizer (backed by HuggingFace\u2019s "),Xi=n("em"),ku=r("tokenizers"),vu=r(` library). Based on
`),Vn=n("a"),Bu=r("Unigram"),yu=r(`. This
tokenizer inherits from `),Er=n("a"),Tu=r("PreTrainedTokenizerFast"),wu=r(` which contains most of the main methods. Users should refer to
this superclass for more information regarding those methods`),$u=p(),We=n("div"),v(Jn.$$.fragment),xu=p(),Yi=n("p"),Fu=r(`Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
adding special tokens. An BigBird sequence has the following format:`),zu=p(),Kn=n("ul"),jr=n("li"),qu=r("single sequence: "),Zi=n("code"),Mu=r("[CLS] X [SEP]"),Eu=p(),Pr=n("li"),ju=r("pair of sequences: "),el=n("code"),Pu=r("[CLS] A [SEP] B [SEP]"),Cu=p(),ue=n("div"),v(Xn.$$.fragment),Au=p(),tl=n("p"),Lu=r("Creates a mask from the two sequences passed to be used in a sequence-pair classification task. An ALBERT"),Iu=p(),v(Kt.$$.fragment),Ou=p(),ol=n("p"),Nu=r("if token_ids_1 is None, only returns the first portion of the mask (0s)."),Su=p(),Xt=n("div"),v(Yn.$$.fragment),Du=p(),Zn=n("p"),Wu=r(`Retrieves sequence ids from a token list that has no special tokens added. This method is called when adding
special tokens using the tokenizer `),nl=n("code"),Uu=r("prepare_for_model"),Ru=r(" method."),tp=p(),tt=n("h2"),Yt=n("a"),sl=n("span"),v(es.$$.fragment),Gu=p(),al=n("span"),Qu=r("BigBird specific outputs"),op=p(),ot=n("div"),v(ts.$$.fragment),Hu=p(),os=n("p"),Vu=r("Output type of "),Cr=n("a"),Ju=r("BigBirdForPreTraining"),Ku=r("."),np=p(),nt=n("h2"),Zt=n("a"),rl=n("span"),v(ns.$$.fragment),Xu=p(),il=n("span"),Yu=r("BigBirdModel"),sp=p(),H=n("div"),v(ss.$$.fragment),Zu=p(),as=n("p"),ef=r(`The bare BigBird Model transformer outputting raw hidden-states without any specific head on top.
This model is a PyTorch `),rs=n("a"),tf=r("torch.nn.Module"),of=r(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),nf=p(),is=n("p"),sf=r(`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 `),ls=n("a"),af=r(`Attention is
all you need`),rf=r(` by Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit,
Llion Jones, Aidan N. Gomez, Lukasz Kaiser and Illia Polosukhin.`),lf=p(),U=n("p"),df=r("To behave as an decoder the model needs to be initialized with the "),ll=n("code"),cf=r("is_decoder"),pf=r(` argument of the configuration set
to `),dl=n("code"),hf=r("True"),mf=r(". To be used in a Seq2Seq model, the model needs to initialized with both "),cl=n("code"),uf=r("is_decoder"),ff=r(` argument and
`),pl=n("code"),gf=r("add_cross_attention"),_f=r(" set to "),hl=n("code"),bf=r("True"),kf=r("; an "),ml=n("code"),vf=r("encoder_hidden_states"),Bf=r(" is then expected as an input to the forward pass."),yf=p(),fe=n("div"),v(ds.$$.fragment),Tf=p(),st=n("p"),wf=r("The "),Ar=n("a"),$f=r("BigBirdModel"),xf=r(" forward method, overrides the "),ul=n("code"),Ff=r("__call__"),zf=r(" special method."),qf=p(),v(eo.$$.fragment),Mf=p(),v(to.$$.fragment),ap=p(),at=n("h2"),oo=n("a"),fl=n("span"),v(cs.$$.fragment),Ef=p(),gl=n("span"),jf=r("BigBirdForPreTraining"),rp=p(),rt=n("div"),v(ps.$$.fragment),Pf=p(),ge=n("div"),v(hs.$$.fragment),Cf=p(),it=n("p"),Af=r("The "),Lr=n("a"),Lf=r("BigBirdForPreTraining"),If=r(" forward method, overrides the "),_l=n("code"),Of=r("__call__"),Nf=r(" special method."),Sf=p(),v(no.$$.fragment),Df=p(),v(so.$$.fragment),ip=p(),lt=n("h2"),ao=n("a"),bl=n("span"),v(ms.$$.fragment),Wf=p(),kl=n("span"),Uf=r("BigBirdForCausalLM"),lp=p(),qe=n("div"),v(us.$$.fragment),Rf=p(),dt=n("p"),Gf=r("BigBird Model with a "),vl=n("code"),Qf=r("language modeling"),Hf=r(` head on top for CLM fine-tuning.
This model is a PyTorch `),fs=n("a"),Vf=r("torch.nn.Module"),Jf=r(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Kf=p(),_e=n("div"),v(gs.$$.fragment),Xf=p(),ct=n("p"),Yf=r("The "),Ir=n("a"),Zf=r("BigBirdForCausalLM"),eg=r(" forward method, overrides the "),Bl=n("code"),tg=r("__call__"),og=r(" special method."),ng=p(),v(ro.$$.fragment),sg=p(),v(io.$$.fragment),dp=p(),pt=n("h2"),lo=n("a"),yl=n("span"),v(_s.$$.fragment),ag=p(),Tl=n("span"),rg=r("BigBirdForMaskedLM"),cp=p(),Me=n("div"),v(bs.$$.fragment),ig=p(),ht=n("p"),lg=r("BigBird Model with a "),wl=n("code"),dg=r("language modeling"),cg=r(` head on top.
This model is a PyTorch `),ks=n("a"),pg=r("torch.nn.Module"),hg=r(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),mg=p(),V=n("div"),v(vs.$$.fragment),ug=p(),mt=n("p"),fg=r("The "),Or=n("a"),gg=r("BigBirdForMaskedLM"),_g=r(" forward method, overrides the "),$l=n("code"),bg=r("__call__"),kg=r(" special method."),vg=p(),v(co.$$.fragment),Bg=p(),v(po.$$.fragment),yg=p(),v(ho.$$.fragment),pp=p(),ut=n("h2"),mo=n("a"),xl=n("span"),v(Bs.$$.fragment),Tg=p(),Fl=n("span"),wg=r("BigBirdForSequenceClassification"),hp=p(),de=n("div"),v(ys.$$.fragment),$g=p(),zl=n("p"),xg=r(`BigBird Model transformer with a sequence classification/regression head on top (a linear layer on top of the
pooled output) e.g. for GLUE tasks.`),Fg=p(),Ts=n("p"),zg=r("This model is a PyTorch "),ws=n("a"),qg=r("torch.nn.Module"),Mg=r(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Eg=p(),J=n("div"),v($s.$$.fragment),jg=p(),ft=n("p"),Pg=r("The "),Nr=n("a"),Cg=r("BigBirdForSequenceClassification"),Ag=r(" forward method, overrides the "),ql=n("code"),Lg=r("__call__"),Ig=r(" special method."),Og=p(),v(uo.$$.fragment),Ng=p(),v(fo.$$.fragment),Sg=p(),v(go.$$.fragment),mp=p(),gt=n("h2"),_o=n("a"),Ml=n("span"),v(xs.$$.fragment),Dg=p(),El=n("span"),Wg=r("BigBirdForMultipleChoice"),up=p(),ce=n("div"),v(Fs.$$.fragment),Ug=p(),jl=n("p"),Rg=r(`BigBird 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.`),Gg=p(),zs=n("p"),Qg=r("This model is a PyTorch "),qs=n("a"),Hg=r("torch.nn.Module"),Vg=r(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Jg=p(),be=n("div"),v(Ms.$$.fragment),Kg=p(),_t=n("p"),Xg=r("The "),Sr=n("a"),Yg=r("BigBirdForMultipleChoice"),Zg=r(" forward method, overrides the "),Pl=n("code"),e_=r("__call__"),t_=r(" special method."),o_=p(),v(bo.$$.fragment),n_=p(),v(ko.$$.fragment),fp=p(),bt=n("h2"),vo=n("a"),Cl=n("span"),v(Es.$$.fragment),s_=p(),Al=n("span"),a_=r("BigBirdForTokenClassification"),gp=p(),pe=n("div"),v(js.$$.fragment),r_=p(),Ll=n("p"),i_=r(`BigBird 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.`),l_=p(),Ps=n("p"),d_=r("This model is a PyTorch "),Cs=n("a"),c_=r("torch.nn.Module"),p_=r(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),h_=p(),ke=n("div"),v(As.$$.fragment),m_=p(),kt=n("p"),u_=r("The "),Dr=n("a"),f_=r("BigBirdForTokenClassification"),g_=r(" forward method, overrides the "),Il=n("code"),__=r("__call__"),b_=r(" special method."),k_=p(),v(Bo.$$.fragment),v_=p(),v(yo.$$.fragment),_p=p(),vt=n("h2"),To=n("a"),Ol=n("span"),v(Ls.$$.fragment),B_=p(),Nl=n("span"),y_=r("BigBirdForQuestionAnswering"),bp=p(),he=n("div"),v(Is.$$.fragment),T_=p(),Bt=n("p"),w_=r(`BigBird 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 `),Sl=n("code"),$_=r("span start logits"),x_=r(" and "),Dl=n("code"),F_=r("span end logits"),z_=r(")."),q_=p(),Os=n("p"),M_=r("This model is a PyTorch "),Ns=n("a"),E_=r("torch.nn.Module"),j_=r(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),P_=p(),K=n("div"),v(Ss.$$.fragment),C_=p(),yt=n("p"),A_=r("The "),Wr=n("a"),L_=r("BigBirdForQuestionAnswering"),I_=r(" forward method, overrides the "),Wl=n("code"),O_=r("__call__"),N_=r(" special method."),S_=p(),v(wo.$$.fragment),D_=p(),v($o.$$.fragment),W_=p(),v(xo.$$.fragment),kp=p(),Tt=n("h2"),Fo=n("a"),Ul=n("span"),v(Ds.$$.fragment),U_=p(),Rl=n("span"),R_=r("FlaxBigBirdModel"),vp=p(),C=n("div"),v(Ws.$$.fragment),G_=p(),Gl=n("p"),Q_=r("The bare BigBird Model transformer outputting raw hidden-states without any specific head on top."),H_=p(),Us=n("p"),V_=r("This model inherits from "),Ur=n("a"),J_=r("FlaxPreTrainedModel"),K_=r(`. 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)`),X_=p(),Rs=n("p"),Y_=r("This model is also a Flax Linen "),Gs=n("a"),Z_=r("flax.linen.Module"),eb=r(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),tb=p(),Ql=n("p"),ob=r("Finally, this model supports inherent JAX features such as:"),nb=p(),Ee=n("ul"),Hl=n("li"),Qs=n("a"),sb=r("Just-In-Time (JIT) compilation"),ab=p(),Vl=n("li"),Hs=n("a"),rb=r("Automatic Differentiation"),ib=p(),Jl=n("li"),Vs=n("a"),lb=r("Vectorization"),db=p(),Kl=n("li"),Js=n("a"),cb=r("Parallelization"),pb=p(),ve=n("div"),v(Ks.$$.fragment),hb=p(),wt=n("p"),mb=r("The "),Xl=n("code"),ub=r("FlaxBigBirdPreTrainedModel"),fb=r(" forward method, overrides the "),Yl=n("code"),gb=r("__call__"),_b=r(" special method."),bb=p(),v(zo.$$.fragment),kb=p(),v(qo.$$.fragment),Bp=p(),$t=n("h2"),Mo=n("a"),Zl=n("span"),v(Xs.$$.fragment),vb=p(),ed=n("span"),Bb=r("FlaxBigBirdForPreTraining"),yp=p(),A=n("div"),v(Ys.$$.fragment),yb=p(),xt=n("p"),Tb=r("BigBird Model with two heads on top as done during the pretraining: a "),td=n("code"),wb=r("masked language modeling"),$b=r(" head and a "),od=n("code"),xb=r("next sentence prediction (classification)"),Fb=r(" head."),zb=p(),Zs=n("p"),qb=r("This model inherits from "),Rr=n("a"),Mb=r("FlaxPreTrainedModel"),Eb=r(`. 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)`),jb=p(),ea=n("p"),Pb=r("This model is also a Flax Linen "),ta=n("a"),Cb=r("flax.linen.Module"),Ab=r(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),Lb=p(),nd=n("p"),Ib=r("Finally, this model supports inherent JAX features such as:"),Ob=p(),je=n("ul"),sd=n("li"),oa=n("a"),Nb=r("Just-In-Time (JIT) compilation"),Sb=p(),ad=n("li"),na=n("a"),Db=r("Automatic Differentiation"),Wb=p(),rd=n("li"),sa=n("a"),Ub=r("Vectorization"),Rb=p(),id=n("li"),aa=n("a"),Gb=r("Parallelization"),Qb=p(),Be=n("div"),v(ra.$$.fragment),Hb=p(),Ft=n("p"),Vb=r("The "),ld=n("code"),Jb=r("FlaxBigBirdPreTrainedModel"),Kb=r(" forward method, overrides the "),dd=n("code"),Xb=r("__call__"),Yb=r(" special method."),Zb=p(),v(Eo.$$.fragment),ek=p(),v(jo.$$.fragment),Tp=p(),zt=n("h2"),Po=n("a"),cd=n("span"),v(ia.$$.fragment),tk=p(),pd=n("span"),ok=r("FlaxBigBirdForCausalLM"),wp=p(),L=n("div"),v(la.$$.fragment),nk=p(),hd=n("p"),sk=r(`BigBird Model with a language modeling head on top (a linear layer on top of the hidden-states output) e.g for
autoregressive tasks.`),ak=p(),da=n("p"),rk=r("This model inherits from "),Gr=n("a"),ik=r("FlaxPreTrainedModel"),lk=r(`. 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)`),dk=p(),ca=n("p"),ck=r("This model is also a Flax Linen "),pa=n("a"),pk=r("flax.linen.Module"),hk=r(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),mk=p(),md=n("p"),uk=r("Finally, this model supports inherent JAX features such as:"),fk=p(),Pe=n("ul"),ud=n("li"),ha=n("a"),gk=r("Just-In-Time (JIT) compilation"),_k=p(),fd=n("li"),ma=n("a"),bk=r("Automatic Differentiation"),kk=p(),gd=n("li"),ua=n("a"),vk=r("Vectorization"),Bk=p(),_d=n("li"),fa=n("a"),yk=r("Parallelization"),Tk=p(),ye=n("div"),v(ga.$$.fragment),wk=p(),qt=n("p"),$k=r("The "),bd=n("code"),xk=r("FlaxBigBirdPreTrainedModel"),Fk=r(" forward method, overrides the "),kd=n("code"),zk=r("__call__"),qk=r(" special method."),Mk=p(),v(Co.$$.fragment),Ek=p(),v(Ao.$$.fragment),$p=p(),Mt=n("h2"),Lo=n("a"),vd=n("span"),v(_a.$$.fragment),jk=p(),Bd=n("span"),Pk=r("FlaxBigBirdForMaskedLM"),xp=p(),I=n("div"),v(ba.$$.fragment),Ck=p(),ka=n("p"),Ak=r("BigBird Model with a "),yd=n("code"),Lk=r("language modeling"),Ik=r(" head on top."),Ok=p(),va=n("p"),Nk=r("This model inherits from "),Qr=n("a"),Sk=r("FlaxPreTrainedModel"),Dk=r(`. 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)`),Wk=p(),Ba=n("p"),Uk=r("This model is also a Flax Linen "),ya=n("a"),Rk=r("flax.linen.Module"),Gk=r(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),Qk=p(),Td=n("p"),Hk=r("Finally, this model supports inherent JAX features such as:"),Vk=p(),Ce=n("ul"),wd=n("li"),Ta=n("a"),Jk=r("Just-In-Time (JIT) compilation"),Kk=p(),$d=n("li"),wa=n("a"),Xk=r("Automatic Differentiation"),Yk=p(),xd=n("li"),$a=n("a"),Zk=r("Vectorization"),ev=p(),Fd=n("li"),xa=n("a"),tv=r("Parallelization"),ov=p(),Te=n("div"),v(Fa.$$.fragment),nv=p(),Et=n("p"),sv=r("The "),zd=n("code"),av=r("FlaxBigBirdPreTrainedModel"),rv=r(" forward method, overrides the "),qd=n("code"),iv=r("__call__"),lv=r(" special method."),dv=p(),v(Io.$$.fragment),cv=p(),v(Oo.$$.fragment),Fp=p(),jt=n("h2"),No=n("a"),Md=n("span"),v(za.$$.fragment),pv=p(),Ed=n("span"),hv=r("FlaxBigBirdForSequenceClassification"),zp=p(),O=n("div"),v(qa.$$.fragment),mv=p(),jd=n("p"),uv=r(`BigBird Model transformer with a sequence classification/regression head on top (a linear layer on top of the
pooled output) e.g. for GLUE tasks.`),fv=p(),Ma=n("p"),gv=r("This model inherits from "),Hr=n("a"),_v=r("FlaxPreTrainedModel"),bv=r(`. 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)`),kv=p(),Ea=n("p"),vv=r("This model is also a Flax Linen "),ja=n("a"),Bv=r("flax.linen.Module"),yv=r(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),Tv=p(),Pd=n("p"),wv=r("Finally, this model supports inherent JAX features such as:"),$v=p(),Ae=n("ul"),Cd=n("li"),Pa=n("a"),xv=r("Just-In-Time (JIT) compilation"),Fv=p(),Ad=n("li"),Ca=n("a"),zv=r("Automatic Differentiation"),qv=p(),Ld=n("li"),Aa=n("a"),Mv=r("Vectorization"),Ev=p(),Id=n("li"),La=n("a"),jv=r("Parallelization"),Pv=p(),we=n("div"),v(Ia.$$.fragment),Cv=p(),Pt=n("p"),Av=r("The "),Od=n("code"),Lv=r("FlaxBigBirdPreTrainedModel"),Iv=r(" forward method, overrides the "),Nd=n("code"),Ov=r("__call__"),Nv=r(" special method."),Sv=p(),v(So.$$.fragment),Dv=p(),v(Do.$$.fragment),qp=p(),Ct=n("h2"),Wo=n("a"),Sd=n("span"),v(Oa.$$.fragment),Wv=p(),Dd=n("span"),Uv=r("FlaxBigBirdForMultipleChoice"),Mp=p(),N=n("div"),v(Na.$$.fragment),Rv=p(),Wd=n("p"),Gv=r(`BigBird 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.`),Qv=p(),Sa=n("p"),Hv=r("This model inherits from "),Vr=n("a"),Vv=r("FlaxPreTrainedModel"),Jv=r(`. 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)`),Kv=p(),Da=n("p"),Xv=r("This model is also a Flax Linen "),Wa=n("a"),Yv=r("flax.linen.Module"),Zv=r(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),eB=p(),Ud=n("p"),tB=r("Finally, this model supports inherent JAX features such as:"),oB=p(),Le=n("ul"),Rd=n("li"),Ua=n("a"),nB=r("Just-In-Time (JIT) compilation"),sB=p(),Gd=n("li"),Ra=n("a"),aB=r("Automatic Differentiation"),rB=p(),Qd=n("li"),Ga=n("a"),iB=r("Vectorization"),lB=p(),Hd=n("li"),Qa=n("a"),dB=r("Parallelization"),cB=p(),$e=n("div"),v(Ha.$$.fragment),pB=p(),At=n("p"),hB=r("The "),Vd=n("code"),mB=r("FlaxBigBirdPreTrainedModel"),uB=r(" forward method, overrides the "),Jd=n("code"),fB=r("__call__"),gB=r(" special method."),_B=p(),v(Uo.$$.fragment),bB=p(),v(Ro.$$.fragment),Ep=p(),Lt=n("h2"),Go=n("a"),Kd=n("span"),v(Va.$$.fragment),kB=p(),Xd=n("span"),vB=r("FlaxBigBirdForTokenClassification"),jp=p(),S=n("div"),v(Ja.$$.fragment),BB=p(),Yd=n("p"),yB=r(`BigBird 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.`),TB=p(),Ka=n("p"),wB=r("This model inherits from "),Jr=n("a"),$B=r("FlaxPreTrainedModel"),xB=r(`. 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)`),FB=p(),Xa=n("p"),zB=r("This model is also a Flax Linen "),Ya=n("a"),qB=r("flax.linen.Module"),MB=r(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),EB=p(),Zd=n("p"),jB=r("Finally, this model supports inherent JAX features such as:"),PB=p(),Ie=n("ul"),ec=n("li"),Za=n("a"),CB=r("Just-In-Time (JIT) compilation"),AB=p(),tc=n("li"),er=n("a"),LB=r("Automatic Differentiation"),IB=p(),oc=n("li"),tr=n("a"),OB=r("Vectorization"),NB=p(),nc=n("li"),or=n("a"),SB=r("Parallelization"),DB=p(),xe=n("div"),v(nr.$$.fragment),WB=p(),It=n("p"),UB=r("The "),sc=n("code"),RB=r("FlaxBigBirdPreTrainedModel"),GB=r(" forward method, overrides the "),ac=n("code"),QB=r("__call__"),HB=r(" special method."),VB=p(),v(Qo.$$.fragment),JB=p(),v(Ho.$$.fragment),Pp=p(),Ot=n("h2"),Vo=n("a"),rc=n("span"),v(sr.$$.fragment),KB=p(),ic=n("span"),XB=r("FlaxBigBirdForQuestionAnswering"),Cp=p(),D=n("div"),v(ar.$$.fragment),YB=p(),Nt=n("p"),ZB=r(`BigBird 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=n("code"),ey=r("span start logits"),ty=r(" and "),dc=n("code"),oy=r("span end logits"),ny=r(")."),sy=p(),rr=n("p"),ay=r("This model inherits from "),Kr=n("a"),ry=r("FlaxPreTrainedModel"),iy=r(`. 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)`),ly=p(),ir=n("p"),dy=r("This model is also a Flax Linen "),lr=n("a"),cy=r("flax.linen.Module"),py=r(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),hy=p(),cc=n("p"),my=r("Finally, this model supports inherent JAX features such as:"),uy=p(),Oe=n("ul"),pc=n("li"),dr=n("a"),fy=r("Just-In-Time (JIT) compilation"),gy=p(),hc=n("li"),cr=n("a"),_y=r("Automatic Differentiation"),by=p(),mc=n("li"),pr=n("a"),ky=r("Vectorization"),vy=p(),uc=n("li"),hr=n("a"),By=r("Parallelization"),yy=p(),Fe=n("div"),v(mr.$$.fragment),Ty=p(),St=n("p"),wy=r("The "),Xr=n("a"),$y=r("FlaxBigBirdForQuestionAnswering"),xy=r(" forward method, overrides the "),fc=n("code"),Fy=r("__call__"),zy=r(" special method."),qy=p(),v(Jo.$$.fragment),My=p(),v(Ko.$$.fragment),this.h()},l(o){const g=Z$('[data-svelte="svelte-1phssyn"]',document.head);d=s(g,"META",{name:!0,content:!0}),g.forEach(t),b=h(o),u=s(o,"H1",{class:!0});var ur=a(u);f=s(ur,"A",{id:!0,class:!0,href:!0});var gc=a(f);_=s(gc,"SPAN",{});var _c=a(_);B(l.$$.fragment,_c),_c.forEach(t),gc.forEach(t),m=h(ur),F=s(ur,"SPAN",{});var bc=a(F);Lh=i(bc,"BigBird"),bc.forEach(t),ur.forEach(t),Wc=h(o),Ve=s(o,"H2",{class:!0});var fr=a(Ve);Wt=s(fr,"A",{id:!0,class:!0,href:!0});var kc=a(Wt);Fi=s(kc,"SPAN",{});var vc=a(Fi);B($n.$$.fragment,vc),vc.forEach(t),kc.forEach(t),Ih=h(fr),zi=s(fr,"SPAN",{});var Bc=a(zi);Oh=i(Bc,"Overview"),Bc.forEach(t),fr.forEach(t),Uc=h(o),Ut=s(o,"P",{});var gr=a(Ut);Nh=i(gr,"The BigBird model was proposed in "),xn=s(gr,"A",{href:!0,rel:!0});var yc=a(xn);Sh=i(yc,"Big Bird: Transformers for Longer Sequences"),yc.forEach(t),Dh=i(gr,` by
Zaheer, Manzil and Guruganesh, Guru and Dubey, Kumar Avinava and Ainslie, Joshua and Alberti, Chris and Ontanon,
Santiago and Pham, Philip and Ravula, Anirudh and Wang, Qifan and Yang, Li and others. BigBird, is a sparse-attention
based transformer which extends Transformer based models, such as BERT to much longer sequences. In addition to sparse
attention, BigBird also applies global attention as well as random attention to the input sequence. Theoretically, it
has been shown that applying sparse, global, and random attention approximates full attention, while being
computationally much more efficient for longer sequences. As a consequence of the capability to handle longer context,
BigBird has shown improved performance on various long document NLP tasks, such as question answering and
summarization, compared to BERT or RoBERTa.`),gr.forEach(t),Rc=h(o),vr=s(o,"P",{});var Tc=a(vr);Wh=i(Tc,"The abstract from the paper is the following:"),Tc.forEach(t),Gc=h(o),Br=s(o,"P",{});var wc=a(Br);qi=s(wc,"EM",{});var $c=a(qi);Uh=i($c,`Transformers-based models, such as BERT, have been one of the most successful deep learning models for NLP.
Unfortunately, one of their core limitations is the quadratic dependency (mainly in terms of memory) on the sequence
length due to their full attention mechanism. To remedy this, we propose, BigBird, a sparse attention mechanism that
reduces this quadratic dependency to linear. We show that BigBird is a universal approximator of sequence functions and
is Turing complete, thereby preserving these properties of the quadratic, full attention model. Along the way, our
theoretical analysis reveals some of the benefits of having O(1) global tokens (such as CLS), that attend to the entire
sequence as part of the sparse attention mechanism. The proposed sparse attention can handle sequences of length up to
8x of what was previously possible using similar hardware. As a consequence of the capability to handle longer context,
BigBird drastically improves performance on various NLP tasks such as question answering and summarization. We also
propose novel applications to genomics data.`),$c.forEach(t),wc.forEach(t),Qc=h(o),yr=s(o,"P",{});var xc=a(yr);Rh=i(xc,"Tips:"),xc.forEach(t),Hc=h(o),W=s(o,"UL",{});var R=a(W);Fn=s(R,"LI",{});var _r=a(Fn);Gh=i(_r,"For an in-detail explanation on how BigBird\u2019s attention works, see "),zn=s(_r,"A",{href:!0,rel:!0});var Fc=a(zn);Qh=i(Fc,"this blog post"),Fc.forEach(t),Hh=i(_r,"."),_r.forEach(t),Vh=h(R),ie=s(R,"LI",{});var me=a(ie);Jh=i(me,"BigBird comes with 2 implementations: "),Mi=s(me,"STRONG",{});var zc=a(Mi);Kh=i(zc,"original_full"),zc.forEach(t),Xh=i(me," & "),Ei=s(me,"STRONG",{});var qc=a(Ei);Yh=i(qc,"block_sparse"),qc.forEach(t),Zh=i(me,`. For the sequence length < 1024, using
`),ji=s(me,"STRONG",{});var Mc=a(ji);em=i(Mc,"original_full"),Mc.forEach(t),tm=i(me," is advised as there is no benefit in using "),Pi=s(me,"STRONG",{});var Ec=a(Pi);om=i(Ec,"block_sparse"),Ec.forEach(t),nm=i(me," attention."),me.forEach(t),sm=h(R),Ci=s(R,"LI",{});var jc=a(Ci);am=i(jc,"The code currently uses window size of 3 blocks and 2 global blocks."),jc.forEach(t),rm=h(R),Ai=s(R,"LI",{});var Pc=a(Ai);im=i(Pc,"Sequence length must be divisible by block size."),Pc.forEach(t),lm=h(R),qn=s(R,"LI",{});var br=a(qn);dm=i(br,"Current implementation supports only "),Li=s(br,"STRONG",{});var Cc=a(Li);cm=i(Cc,"ITC"),Cc.forEach(t),pm=i(br,"."),br.forEach(t),hm=h(R),Tr=s(R,"LI",{});var Yr=a(Tr);mm=i(Yr,"Current implementation doesn\u2019t support "),Ii=s(Yr,"STRONG",{});var Ac=a(Ii);um=i(Ac,"num_random_blocks = 0"),Ac.forEach(t),Yr.forEach(t),fm=h(R),Oi=s(R,"LI",{});var Lc=a(Oi);gm=i(Lc,`BigBird is a model with absolute position embeddings so it\u2019s usually advised to pad the inputs on the right rather than
the left.`),Lc.forEach(t),R.forEach(t),Vc=h(o),Se=s(o,"P",{});var Dt=a(Se);_m=i(Dt,"This model was contributed by "),Mn=s(Dt,"A",{href:!0,rel:!0});var Ic=a(Mn);bm=i(Ic,"vasudevgupta"),Ic.forEach(t),km=i(Dt,`. The original code can be found
`),En=s(Dt,"A",{href:!0,rel:!0});var Oc=a(En);vm=i(Oc,"here"),Oc.forEach(t),Bm=i(Dt,"."),Dt.forEach(t),Jc=h(o),Je=s(o,"H2",{class:!0});var kr=a(Je);Rt=s(kr,"A",{id:!0,class:!0,href:!0});var Nc=a(Rt);Ni=s(Nc,"SPAN",{});var Sc=a(Ni);B(jn.$$.fragment,Sc),Sc.forEach(t),Nc.forEach(t),ym=h(kr),Si=s(kr,"SPAN",{});var Dc=a(Si);Tm=i(Dc,"BigBirdConfig"),Dc.forEach(t),kr.forEach(t),Kc=h(o),le=s(o,"DIV",{class:!0});var Ne=a(le);B(Pn.$$.fragment,Ne),wm=h(Ne),Ke=s(Ne,"P",{});var Zr=a(Ke);$m=i(Zr,"This is the configuration class to store the configuration of a "),wr=s(Zr,"A",{href:!0});var Ay=a(wr);xm=i(Ay,"BigBirdModel"),Ay.forEach(t),Fm=i(Zr,`. It is used to instantiate an
BigBird 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 BigBird
`),Cn=s(Zr,"A",{href:!0,rel:!0});var Ly=a(Cn);zm=i(Ly,"google/bigbird-roberta-base"),Ly.forEach(t),qm=i(Zr," architecture."),Zr.forEach(t),Mm=h(Ne),Xe=s(Ne,"P",{});var ei=a(Xe);Em=i(ei,"Configuration objects inherit from "),$r=s(ei,"A",{href:!0});var Iy=a($r);jm=i(Iy,"PretrainedConfig"),Iy.forEach(t),Pm=i(ei,` and can be used to control the model outputs. Read the
documentation from `),xr=s(ei,"A",{href:!0});var Oy=a(xr);Cm=i(Oy,"PretrainedConfig"),Oy.forEach(t),Am=i(ei," for more information."),ei.forEach(t),Lm=h(Ne),B(Gt.$$.fragment,Ne),Ne.forEach(t),Xc=h(o),Ye=s(o,"H2",{class:!0});var Lp=a(Ye);Qt=s(Lp,"A",{id:!0,class:!0,href:!0});var Ny=a(Qt);Di=s(Ny,"SPAN",{});var Sy=a(Di);B(An.$$.fragment,Sy),Sy.forEach(t),Ny.forEach(t),Im=h(Lp),Wi=s(Lp,"SPAN",{});var Dy=a(Wi);Om=i(Dy,"BigBirdTokenizer"),Dy.forEach(t),Lp.forEach(t),Yc=h(o),P=s(o,"DIV",{class:!0});var X=a(P);B(Ln.$$.fragment,X),Nm=h(X),In=s(X,"P",{});var Ip=a(In);Sm=i(Ip,"Construct a BigBird tokenizer. Based on "),On=s(Ip,"A",{href:!0,rel:!0});var Wy=a(On);Dm=i(Wy,"SentencePiece"),Wy.forEach(t),Wm=i(Ip,"."),Ip.forEach(t),Um=h(X),Nn=s(X,"P",{});var Op=a(Nn);Rm=i(Op,"This tokenizer inherits from "),Fr=s(Op,"A",{href:!0});var Uy=a(Fr);Gm=i(Uy,"PreTrainedTokenizer"),Uy.forEach(t),Qm=i(Op,` which contains most of the main methods. Users should refer to
this superclass for more information regarding those methods.`),Op.forEach(t),Hm=h(X),De=s(X,"DIV",{class:!0});var ti=a(De);B(Sn.$$.fragment,ti),Vm=h(ti),Ui=s(ti,"P",{});var Ry=a(Ui);Jm=i(Ry,`Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
adding special tokens. A Big Bird sequence has the following format:`),Ry.forEach(t),Km=h(ti),Dn=s(ti,"UL",{});var Np=a(Dn);zr=s(Np,"LI",{});var Ey=a(zr);Xm=i(Ey,"single sequence: "),Ri=s(Ey,"CODE",{});var Gy=a(Ri);Ym=i(Gy,"[CLS] X [SEP]"),Gy.forEach(t),Ey.forEach(t),Zm=h(Np),qr=s(Np,"LI",{});var jy=a(qr);eu=i(jy,"pair of sequences: "),Gi=s(jy,"CODE",{});var Qy=a(Gi);tu=i(Qy,"[CLS] A [SEP] B [SEP]"),Qy.forEach(t),jy.forEach(t),Np.forEach(t),ti.forEach(t),ou=h(X),Ht=s(X,"DIV",{class:!0});var Sp=a(Ht);B(Wn.$$.fragment,Sp),nu=h(Sp),Un=s(Sp,"P",{});var Dp=a(Un);su=i(Dp,`Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding
special tokens using the tokenizer `),Qi=s(Dp,"CODE",{});var Hy=a(Qi);au=i(Hy,"prepare_for_model"),Hy.forEach(t),ru=i(Dp," method."),Dp.forEach(t),Sp.forEach(t),iu=h(X),Vt=s(X,"DIV",{class:!0});var Wp=a(Vt);B(Rn.$$.fragment,Wp),lu=h(Wp),Ze=s(Wp,"P",{});var oi=a(Ze);du=i(oi,`Create a mask from the two sequences passed to be used in a sequence-pair classification task. A BERT sequence
pair mask has the following format: :: 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 | first sequence | second
sequence | If `),Hi=s(oi,"CODE",{});var Vy=a(Hi);cu=i(Vy,"token_ids_1"),Vy.forEach(t),pu=i(oi," is "),Vi=s(oi,"CODE",{});var Jy=a(Vi);hu=i(Jy,"None"),Jy.forEach(t),mu=i(oi,", this method only returns the first portion of the mask (0s)."),oi.forEach(t),Wp.forEach(t),uu=h(X),Mr=s(X,"DIV",{class:!0});var Ky=a(Mr);B(Gn.$$.fragment,Ky),Ky.forEach(t),X.forEach(t),Zc=h(o),et=s(o,"H2",{class:!0});var Up=a(et);Jt=s(Up,"A",{id:!0,class:!0,href:!0});var Xy=a(Jt);Ji=s(Xy,"SPAN",{});var Yy=a(Ji);B(Qn.$$.fragment,Yy),Yy.forEach(t),Xy.forEach(t),fu=h(Up),Ki=s(Up,"SPAN",{});var Zy=a(Ki);gu=i(Zy,"BigBirdTokenizerFast"),Zy.forEach(t),Up.forEach(t),ep=h(o),Q=s(o,"DIV",{class:!0});var Ue=a(Q);B(Hn.$$.fragment,Ue),_u=h(Ue),ze=s(Ue,"P",{});var Xo=a(ze);bu=i(Xo,"Construct a \u201Cfast\u201D BigBird tokenizer (backed by HuggingFace\u2019s "),Xi=s(Xo,"EM",{});var eT=a(Xi);ku=i(eT,"tokenizers"),eT.forEach(t),vu=i(Xo,` library). Based on
`),Vn=s(Xo,"A",{href:!0,rel:!0});var tT=a(Vn);Bu=i(tT,"Unigram"),tT.forEach(t),yu=i(Xo,`. This
tokenizer inherits from `),Er=s(Xo,"A",{href:!0});var oT=a(Er);Tu=i(oT,"PreTrainedTokenizerFast"),oT.forEach(t),wu=i(Xo,` which contains most of the main methods. Users should refer to
this superclass for more information regarding those methods`),Xo.forEach(t),$u=h(Ue),We=s(Ue,"DIV",{class:!0});var ni=a(We);B(Jn.$$.fragment,ni),xu=h(ni),Yi=s(ni,"P",{});var nT=a(Yi);Fu=i(nT,`Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
adding special tokens. An BigBird sequence has the following format:`),nT.forEach(t),zu=h(ni),Kn=s(ni,"UL",{});var Rp=a(Kn);jr=s(Rp,"LI",{});var Py=a(jr);qu=i(Py,"single sequence: "),Zi=s(Py,"CODE",{});var sT=a(Zi);Mu=i(sT,"[CLS] X [SEP]"),sT.forEach(t),Py.forEach(t),Eu=h(Rp),Pr=s(Rp,"LI",{});var Cy=a(Pr);ju=i(Cy,"pair of sequences: "),el=s(Cy,"CODE",{});var aT=a(el);Pu=i(aT,"[CLS] A [SEP] B [SEP]"),aT.forEach(t),Cy.forEach(t),Rp.forEach(t),ni.forEach(t),Cu=h(Ue),ue=s(Ue,"DIV",{class:!0});var Yo=a(ue);B(Xn.$$.fragment,Yo),Au=h(Yo),tl=s(Yo,"P",{});var rT=a(tl);Lu=i(rT,"Creates a mask from the two sequences passed to be used in a sequence-pair classification task. An ALBERT"),rT.forEach(t),Iu=h(Yo),B(Kt.$$.fragment,Yo),Ou=h(Yo),ol=s(Yo,"P",{});var iT=a(ol);Nu=i(iT,"if token_ids_1 is None, only returns the first portion of the mask (0s)."),iT.forEach(t),Yo.forEach(t),Su=h(Ue),Xt=s(Ue,"DIV",{class:!0});var Gp=a(Xt);B(Yn.$$.fragment,Gp),Du=h(Gp),Zn=s(Gp,"P",{});var Qp=a(Zn);Wu=i(Qp,`Retrieves sequence ids from a token list that has no special tokens added. This method is called when adding
special tokens using the tokenizer `),nl=s(Qp,"CODE",{});var lT=a(nl);Uu=i(lT,"prepare_for_model"),lT.forEach(t),Ru=i(Qp," method."),Qp.forEach(t),Gp.forEach(t),Ue.forEach(t),tp=h(o),tt=s(o,"H2",{class:!0});var Hp=a(tt);Yt=s(Hp,"A",{id:!0,class:!0,href:!0});var dT=a(Yt);sl=s(dT,"SPAN",{});var cT=a(sl);B(es.$$.fragment,cT),cT.forEach(t),dT.forEach(t),Gu=h(Hp),al=s(Hp,"SPAN",{});var pT=a(al);Qu=i(pT,"BigBird specific outputs"),pT.forEach(t),Hp.forEach(t),op=h(o),ot=s(o,"DIV",{class:!0});var Vp=a(ot);B(ts.$$.fragment,Vp),Hu=h(Vp),os=s(Vp,"P",{});var Jp=a(os);Vu=i(Jp,"Output type of "),Cr=s(Jp,"A",{href:!0});var hT=a(Cr);Ju=i(hT,"BigBirdForPreTraining"),hT.forEach(t),Ku=i(Jp,"."),Jp.forEach(t),Vp.forEach(t),np=h(o),nt=s(o,"H2",{class:!0});var Kp=a(nt);Zt=s(Kp,"A",{id:!0,class:!0,href:!0});var mT=a(Zt);rl=s(mT,"SPAN",{});var uT=a(rl);B(ns.$$.fragment,uT),uT.forEach(t),mT.forEach(t),Xu=h(Kp),il=s(Kp,"SPAN",{});var fT=a(il);Yu=i(fT,"BigBirdModel"),fT.forEach(t),Kp.forEach(t),sp=h(o),H=s(o,"DIV",{class:!0});var Re=a(H);B(ss.$$.fragment,Re),Zu=h(Re),as=s(Re,"P",{});var Xp=a(as);ef=i(Xp,`The bare BigBird Model transformer outputting raw hidden-states without any specific head on top.
This model is a PyTorch `),rs=s(Xp,"A",{href:!0,rel:!0});var gT=a(rs);tf=i(gT,"torch.nn.Module"),gT.forEach(t),of=i(Xp,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Xp.forEach(t),nf=h(Re),is=s(Re,"P",{});var Yp=a(is);sf=i(Yp,`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 `),ls=s(Yp,"A",{href:!0,rel:!0});var _T=a(ls);af=i(_T,`Attention is
all you need`),_T.forEach(t),rf=i(Yp,` by Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit,
Llion Jones, Aidan N. Gomez, Lukasz Kaiser and Illia Polosukhin.`),Yp.forEach(t),lf=h(Re),U=s(Re,"P",{});var Y=a(U);df=i(Y,"To behave as an decoder the model needs to be initialized with the "),ll=s(Y,"CODE",{});var bT=a(ll);cf=i(bT,"is_decoder"),bT.forEach(t),pf=i(Y,` argument of the configuration set
to `),dl=s(Y,"CODE",{});var kT=a(dl);hf=i(kT,"True"),kT.forEach(t),mf=i(Y,". To be used in a Seq2Seq model, the model needs to initialized with both "),cl=s(Y,"CODE",{});var vT=a(cl);uf=i(vT,"is_decoder"),vT.forEach(t),ff=i(Y,` argument and
`),pl=s(Y,"CODE",{});var BT=a(pl);gf=i(BT,"add_cross_attention"),BT.forEach(t),_f=i(Y," set to "),hl=s(Y,"CODE",{});var yT=a(hl);bf=i(yT,"True"),yT.forEach(t),kf=i(Y,"; an "),ml=s(Y,"CODE",{});var TT=a(ml);vf=i(TT,"encoder_hidden_states"),TT.forEach(t),Bf=i(Y," is then expected as an input to the forward pass."),Y.forEach(t),yf=h(Re),fe=s(Re,"DIV",{class:!0});var Zo=a(fe);B(ds.$$.fragment,Zo),Tf=h(Zo),st=s(Zo,"P",{});var si=a(st);wf=i(si,"The "),Ar=s(si,"A",{href:!0});var wT=a(Ar);$f=i(wT,"BigBirdModel"),wT.forEach(t),xf=i(si," forward method, overrides the "),ul=s(si,"CODE",{});var $T=a(ul);Ff=i($T,"__call__"),$T.forEach(t),zf=i(si," special method."),si.forEach(t),qf=h(Zo),B(eo.$$.fragment,Zo),Mf=h(Zo),B(to.$$.fragment,Zo),Zo.forEach(t),Re.forEach(t),ap=h(o),at=s(o,"H2",{class:!0});var Zp=a(at);oo=s(Zp,"A",{id:!0,class:!0,href:!0});var xT=a(oo);fl=s(xT,"SPAN",{});var FT=a(fl);B(cs.$$.fragment,FT),FT.forEach(t),xT.forEach(t),Ef=h(Zp),gl=s(Zp,"SPAN",{});var zT=a(gl);jf=i(zT,"BigBirdForPreTraining"),zT.forEach(t),Zp.forEach(t),rp=h(o),rt=s(o,"DIV",{class:!0});var eh=a(rt);B(ps.$$.fragment,eh),Pf=h(eh),ge=s(eh,"DIV",{class:!0});var en=a(ge);B(hs.$$.fragment,en),Cf=h(en),it=s(en,"P",{});var ai=a(it);Af=i(ai,"The "),Lr=s(ai,"A",{href:!0});var qT=a(Lr);Lf=i(qT,"BigBirdForPreTraining"),qT.forEach(t),If=i(ai," forward method, overrides the "),_l=s(ai,"CODE",{});var MT=a(_l);Of=i(MT,"__call__"),MT.forEach(t),Nf=i(ai," special method."),ai.forEach(t),Sf=h(en),B(no.$$.fragment,en),Df=h(en),B(so.$$.fragment,en),en.forEach(t),eh.forEach(t),ip=h(o),lt=s(o,"H2",{class:!0});var th=a(lt);ao=s(th,"A",{id:!0,class:!0,href:!0});var ET=a(ao);bl=s(ET,"SPAN",{});var jT=a(bl);B(ms.$$.fragment,jT),jT.forEach(t),ET.forEach(t),Wf=h(th),kl=s(th,"SPAN",{});var PT=a(kl);Uf=i(PT,"BigBirdForCausalLM"),PT.forEach(t),th.forEach(t),lp=h(o),qe=s(o,"DIV",{class:!0});var ri=a(qe);B(us.$$.fragment,ri),Rf=h(ri),dt=s(ri,"P",{});var ii=a(dt);Gf=i(ii,"BigBird Model with a "),vl=s(ii,"CODE",{});var CT=a(vl);Qf=i(CT,"language modeling"),CT.forEach(t),Hf=i(ii,` head on top for CLM fine-tuning.
This model is a PyTorch `),fs=s(ii,"A",{href:!0,rel:!0});var AT=a(fs);Vf=i(AT,"torch.nn.Module"),AT.forEach(t),Jf=i(ii,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),ii.forEach(t),Kf=h(ri),_e=s(ri,"DIV",{class:!0});var tn=a(_e);B(gs.$$.fragment,tn),Xf=h(tn),ct=s(tn,"P",{});var li=a(ct);Yf=i(li,"The "),Ir=s(li,"A",{href:!0});var LT=a(Ir);Zf=i(LT,"BigBirdForCausalLM"),LT.forEach(t),eg=i(li," forward method, overrides the "),Bl=s(li,"CODE",{});var IT=a(Bl);tg=i(IT,"__call__"),IT.forEach(t),og=i(li," special method."),li.forEach(t),ng=h(tn),B(ro.$$.fragment,tn),sg=h(tn),B(io.$$.fragment,tn),tn.forEach(t),ri.forEach(t),dp=h(o),pt=s(o,"H2",{class:!0});var oh=a(pt);lo=s(oh,"A",{id:!0,class:!0,href:!0});var OT=a(lo);yl=s(OT,"SPAN",{});var NT=a(yl);B(_s.$$.fragment,NT),NT.forEach(t),OT.forEach(t),ag=h(oh),Tl=s(oh,"SPAN",{});var ST=a(Tl);rg=i(ST,"BigBirdForMaskedLM"),ST.forEach(t),oh.forEach(t),cp=h(o),Me=s(o,"DIV",{class:!0});var di=a(Me);B(bs.$$.fragment,di),ig=h(di),ht=s(di,"P",{});var ci=a(ht);lg=i(ci,"BigBird Model with a "),wl=s(ci,"CODE",{});var DT=a(wl);dg=i(DT,"language modeling"),DT.forEach(t),cg=i(ci,` head on top.
This model is a PyTorch `),ks=s(ci,"A",{href:!0,rel:!0});var WT=a(ks);pg=i(WT,"torch.nn.Module"),WT.forEach(t),hg=i(ci,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),ci.forEach(t),mg=h(di),V=s(di,"DIV",{class:!0});var Ge=a(V);B(vs.$$.fragment,Ge),ug=h(Ge),mt=s(Ge,"P",{});var pi=a(mt);fg=i(pi,"The "),Or=s(pi,"A",{href:!0});var UT=a(Or);gg=i(UT,"BigBirdForMaskedLM"),UT.forEach(t),_g=i(pi," forward method, overrides the "),$l=s(pi,"CODE",{});var RT=a($l);bg=i(RT,"__call__"),RT.forEach(t),kg=i(pi," special method."),pi.forEach(t),vg=h(Ge),B(co.$$.fragment,Ge),Bg=h(Ge),B(po.$$.fragment,Ge),yg=h(Ge),B(ho.$$.fragment,Ge),Ge.forEach(t),di.forEach(t),pp=h(o),ut=s(o,"H2",{class:!0});var nh=a(ut);mo=s(nh,"A",{id:!0,class:!0,href:!0});var GT=a(mo);xl=s(GT,"SPAN",{});var QT=a(xl);B(Bs.$$.fragment,QT),QT.forEach(t),GT.forEach(t),Tg=h(nh),Fl=s(nh,"SPAN",{});var HT=a(Fl);wg=i(HT,"BigBirdForSequenceClassification"),HT.forEach(t),nh.forEach(t),hp=h(o),de=s(o,"DIV",{class:!0});var on=a(de);B(ys.$$.fragment,on),$g=h(on),zl=s(on,"P",{});var VT=a(zl);xg=i(VT,`BigBird Model transformer with a sequence classification/regression head on top (a linear layer on top of the
pooled output) e.g. for GLUE tasks.`),VT.forEach(t),Fg=h(on),Ts=s(on,"P",{});var sh=a(Ts);zg=i(sh,"This model is a PyTorch "),ws=s(sh,"A",{href:!0,rel:!0});var JT=a(ws);qg=i(JT,"torch.nn.Module"),JT.forEach(t),Mg=i(sh,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),sh.forEach(t),Eg=h(on),J=s(on,"DIV",{class:!0});var Qe=a(J);B($s.$$.fragment,Qe),jg=h(Qe),ft=s(Qe,"P",{});var hi=a(ft);Pg=i(hi,"The "),Nr=s(hi,"A",{href:!0});var KT=a(Nr);Cg=i(KT,"BigBirdForSequenceClassification"),KT.forEach(t),Ag=i(hi," forward method, overrides the "),ql=s(hi,"CODE",{});var XT=a(ql);Lg=i(XT,"__call__"),XT.forEach(t),Ig=i(hi," special method."),hi.forEach(t),Og=h(Qe),B(uo.$$.fragment,Qe),Ng=h(Qe),B(fo.$$.fragment,Qe),Sg=h(Qe),B(go.$$.fragment,Qe),Qe.forEach(t),on.forEach(t),mp=h(o),gt=s(o,"H2",{class:!0});var ah=a(gt);_o=s(ah,"A",{id:!0,class:!0,href:!0});var YT=a(_o);Ml=s(YT,"SPAN",{});var ZT=a(Ml);B(xs.$$.fragment,ZT),ZT.forEach(t),YT.forEach(t),Dg=h(ah),El=s(ah,"SPAN",{});var ew=a(El);Wg=i(ew,"BigBirdForMultipleChoice"),ew.forEach(t),ah.forEach(t),up=h(o),ce=s(o,"DIV",{class:!0});var nn=a(ce);B(Fs.$$.fragment,nn),Ug=h(nn),jl=s(nn,"P",{});var tw=a(jl);Rg=i(tw,`BigBird 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.`),tw.forEach(t),Gg=h(nn),zs=s(nn,"P",{});var rh=a(zs);Qg=i(rh,"This model is a PyTorch "),qs=s(rh,"A",{href:!0,rel:!0});var ow=a(qs);Hg=i(ow,"torch.nn.Module"),ow.forEach(t),Vg=i(rh,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),rh.forEach(t),Jg=h(nn),be=s(nn,"DIV",{class:!0});var sn=a(be);B(Ms.$$.fragment,sn),Kg=h(sn),_t=s(sn,"P",{});var mi=a(_t);Xg=i(mi,"The "),Sr=s(mi,"A",{href:!0});var nw=a(Sr);Yg=i(nw,"BigBirdForMultipleChoice"),nw.forEach(t),Zg=i(mi," forward method, overrides the "),Pl=s(mi,"CODE",{});var sw=a(Pl);e_=i(sw,"__call__"),sw.forEach(t),t_=i(mi," special method."),mi.forEach(t),o_=h(sn),B(bo.$$.fragment,sn),n_=h(sn),B(ko.$$.fragment,sn),sn.forEach(t),nn.forEach(t),fp=h(o),bt=s(o,"H2",{class:!0});var ih=a(bt);vo=s(ih,"A",{id:!0,class:!0,href:!0});var aw=a(vo);Cl=s(aw,"SPAN",{});var rw=a(Cl);B(Es.$$.fragment,rw),rw.forEach(t),aw.forEach(t),s_=h(ih),Al=s(ih,"SPAN",{});var iw=a(Al);a_=i(iw,"BigBirdForTokenClassification"),iw.forEach(t),ih.forEach(t),gp=h(o),pe=s(o,"DIV",{class:!0});var an=a(pe);B(js.$$.fragment,an),r_=h(an),Ll=s(an,"P",{});var lw=a(Ll);i_=i(lw,`BigBird 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.`),lw.forEach(t),l_=h(an),Ps=s(an,"P",{});var lh=a(Ps);d_=i(lh,"This model is a PyTorch "),Cs=s(lh,"A",{href:!0,rel:!0});var dw=a(Cs);c_=i(dw,"torch.nn.Module"),dw.forEach(t),p_=i(lh,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),lh.forEach(t),h_=h(an),ke=s(an,"DIV",{class:!0});var rn=a(ke);B(As.$$.fragment,rn),m_=h(rn),kt=s(rn,"P",{});var ui=a(kt);u_=i(ui,"The "),Dr=s(ui,"A",{href:!0});var cw=a(Dr);f_=i(cw,"BigBirdForTokenClassification"),cw.forEach(t),g_=i(ui," forward method, overrides the "),Il=s(ui,"CODE",{});var pw=a(Il);__=i(pw,"__call__"),pw.forEach(t),b_=i(ui," special method."),ui.forEach(t),k_=h(rn),B(Bo.$$.fragment,rn),v_=h(rn),B(yo.$$.fragment,rn),rn.forEach(t),an.forEach(t),_p=h(o),vt=s(o,"H2",{class:!0});var dh=a(vt);To=s(dh,"A",{id:!0,class:!0,href:!0});var hw=a(To);Ol=s(hw,"SPAN",{});var mw=a(Ol);B(Ls.$$.fragment,mw),mw.forEach(t),hw.forEach(t),B_=h(dh),Nl=s(dh,"SPAN",{});var uw=a(Nl);y_=i(uw,"BigBirdForQuestionAnswering"),uw.forEach(t),dh.forEach(t),bp=h(o),he=s(o,"DIV",{class:!0});var ln=a(he);B(Is.$$.fragment,ln),T_=h(ln),Bt=s(ln,"P",{});var fi=a(Bt);w_=i(fi,`BigBird 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 `),Sl=s(fi,"CODE",{});var fw=a(Sl);$_=i(fw,"span start logits"),fw.forEach(t),x_=i(fi," and "),Dl=s(fi,"CODE",{});var gw=a(Dl);F_=i(gw,"span end logits"),gw.forEach(t),z_=i(fi,")."),fi.forEach(t),q_=h(ln),Os=s(ln,"P",{});var ch=a(Os);M_=i(ch,"This model is a PyTorch "),Ns=s(ch,"A",{href:!0,rel:!0});var _w=a(Ns);E_=i(_w,"torch.nn.Module"),_w.forEach(t),j_=i(ch,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),ch.forEach(t),P_=h(ln),K=s(ln,"DIV",{class:!0});var He=a(K);B(Ss.$$.fragment,He),C_=h(He),yt=s(He,"P",{});var gi=a(yt);A_=i(gi,"The "),Wr=s(gi,"A",{href:!0});var bw=a(Wr);L_=i(bw,"BigBirdForQuestionAnswering"),bw.forEach(t),I_=i(gi," forward method, overrides the "),Wl=s(gi,"CODE",{});var kw=a(Wl);O_=i(kw,"__call__"),kw.forEach(t),N_=i(gi," special method."),gi.forEach(t),S_=h(He),B(wo.$$.fragment,He),D_=h(He),B($o.$$.fragment,He),W_=h(He),B(xo.$$.fragment,He),He.forEach(t),ln.forEach(t),kp=h(o),Tt=s(o,"H2",{class:!0});var ph=a(Tt);Fo=s(ph,"A",{id:!0,class:!0,href:!0});var vw=a(Fo);Ul=s(vw,"SPAN",{});var Bw=a(Ul);B(Ds.$$.fragment,Bw),Bw.forEach(t),vw.forEach(t),U_=h(ph),Rl=s(ph,"SPAN",{});var yw=a(Rl);R_=i(yw,"FlaxBigBirdModel"),yw.forEach(t),ph.forEach(t),vp=h(o),C=s(o,"DIV",{class:!0});var Z=a(C);B(Ws.$$.fragment,Z),G_=h(Z),Gl=s(Z,"P",{});var Tw=a(Gl);Q_=i(Tw,"The bare BigBird Model transformer outputting raw hidden-states without any specific head on top."),Tw.forEach(t),H_=h(Z),Us=s(Z,"P",{});var hh=a(Us);V_=i(hh,"This model inherits from "),Ur=s(hh,"A",{href:!0});var ww=a(Ur);J_=i(ww,"FlaxPreTrainedModel"),ww.forEach(t),K_=i(hh,`. 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)`),hh.forEach(t),X_=h(Z),Rs=s(Z,"P",{});var mh=a(Rs);Y_=i(mh,"This model is also a Flax Linen "),Gs=s(mh,"A",{href:!0,rel:!0});var $w=a(Gs);Z_=i($w,"flax.linen.Module"),$w.forEach(t),eb=i(mh,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),mh.forEach(t),tb=h(Z),Ql=s(Z,"P",{});var xw=a(Ql);ob=i(xw,"Finally, this model supports inherent JAX features such as:"),xw.forEach(t),nb=h(Z),Ee=s(Z,"UL",{});var dn=a(Ee);Hl=s(dn,"LI",{});var Fw=a(Hl);Qs=s(Fw,"A",{href:!0,rel:!0});var zw=a(Qs);sb=i(zw,"Just-In-Time (JIT) compilation"),zw.forEach(t),Fw.forEach(t),ab=h(dn),Vl=s(dn,"LI",{});var qw=a(Vl);Hs=s(qw,"A",{href:!0,rel:!0});var Mw=a(Hs);rb=i(Mw,"Automatic Differentiation"),Mw.forEach(t),qw.forEach(t),ib=h(dn),Jl=s(dn,"LI",{});var Ew=a(Jl);Vs=s(Ew,"A",{href:!0,rel:!0});var jw=a(Vs);lb=i(jw,"Vectorization"),jw.forEach(t),Ew.forEach(t),db=h(dn),Kl=s(dn,"LI",{});var Pw=a(Kl);Js=s(Pw,"A",{href:!0,rel:!0});var Cw=a(Js);cb=i(Cw,"Parallelization"),Cw.forEach(t),Pw.forEach(t),dn.forEach(t),pb=h(Z),ve=s(Z,"DIV",{class:!0});var cn=a(ve);B(Ks.$$.fragment,cn),hb=h(cn),wt=s(cn,"P",{});var _i=a(wt);mb=i(_i,"The "),Xl=s(_i,"CODE",{});var Aw=a(Xl);ub=i(Aw,"FlaxBigBirdPreTrainedModel"),Aw.forEach(t),fb=i(_i," forward method, overrides the "),Yl=s(_i,"CODE",{});var Lw=a(Yl);gb=i(Lw,"__call__"),Lw.forEach(t),_b=i(_i," special method."),_i.forEach(t),bb=h(cn),B(zo.$$.fragment,cn),kb=h(cn),B(qo.$$.fragment,cn),cn.forEach(t),Z.forEach(t),Bp=h(o),$t=s(o,"H2",{class:!0});var uh=a($t);Mo=s(uh,"A",{id:!0,class:!0,href:!0});var Iw=a(Mo);Zl=s(Iw,"SPAN",{});var Ow=a(Zl);B(Xs.$$.fragment,Ow),Ow.forEach(t),Iw.forEach(t),vb=h(uh),ed=s(uh,"SPAN",{});var Nw=a(ed);Bb=i(Nw,"FlaxBigBirdForPreTraining"),Nw.forEach(t),uh.forEach(t),yp=h(o),A=s(o,"DIV",{class:!0});var ee=a(A);B(Ys.$$.fragment,ee),yb=h(ee),xt=s(ee,"P",{});var bi=a(xt);Tb=i(bi,"BigBird Model with two heads on top as done during the pretraining: a "),td=s(bi,"CODE",{});var Sw=a(td);wb=i(Sw,"masked language modeling"),Sw.forEach(t),$b=i(bi," head and a "),od=s(bi,"CODE",{});var Dw=a(od);xb=i(Dw,"next sentence prediction (classification)"),Dw.forEach(t),Fb=i(bi," head."),bi.forEach(t),zb=h(ee),Zs=s(ee,"P",{});var fh=a(Zs);qb=i(fh,"This model inherits from "),Rr=s(fh,"A",{href:!0});var Ww=a(Rr);Mb=i(Ww,"FlaxPreTrainedModel"),Ww.forEach(t),Eb=i(fh,`. 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)`),fh.forEach(t),jb=h(ee),ea=s(ee,"P",{});var gh=a(ea);Pb=i(gh,"This model is also a Flax Linen "),ta=s(gh,"A",{href:!0,rel:!0});var Uw=a(ta);Cb=i(Uw,"flax.linen.Module"),Uw.forEach(t),Ab=i(gh,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),gh.forEach(t),Lb=h(ee),nd=s(ee,"P",{});var Rw=a(nd);Ib=i(Rw,"Finally, this model supports inherent JAX features such as:"),Rw.forEach(t),Ob=h(ee),je=s(ee,"UL",{});var pn=a(je);sd=s(pn,"LI",{});var Gw=a(sd);oa=s(Gw,"A",{href:!0,rel:!0});var Qw=a(oa);Nb=i(Qw,"Just-In-Time (JIT) compilation"),Qw.forEach(t),Gw.forEach(t),Sb=h(pn),ad=s(pn,"LI",{});var Hw=a(ad);na=s(Hw,"A",{href:!0,rel:!0});var Vw=a(na);Db=i(Vw,"Automatic Differentiation"),Vw.forEach(t),Hw.forEach(t),Wb=h(pn),rd=s(pn,"LI",{});var Jw=a(rd);sa=s(Jw,"A",{href:!0,rel:!0});var Kw=a(sa);Ub=i(Kw,"Vectorization"),Kw.forEach(t),Jw.forEach(t),Rb=h(pn),id=s(pn,"LI",{});var Xw=a(id);aa=s(Xw,"A",{href:!0,rel:!0});var Yw=a(aa);Gb=i(Yw,"Parallelization"),Yw.forEach(t),Xw.forEach(t),pn.forEach(t),Qb=h(ee),Be=s(ee,"DIV",{class:!0});var hn=a(Be);B(ra.$$.fragment,hn),Hb=h(hn),Ft=s(hn,"P",{});var ki=a(Ft);Vb=i(ki,"The "),ld=s(ki,"CODE",{});var Zw=a(ld);Jb=i(Zw,"FlaxBigBirdPreTrainedModel"),Zw.forEach(t),Kb=i(ki," forward method, overrides the "),dd=s(ki,"CODE",{});var e1=a(dd);Xb=i(e1,"__call__"),e1.forEach(t),Yb=i(ki," special method."),ki.forEach(t),Zb=h(hn),B(Eo.$$.fragment,hn),ek=h(hn),B(jo.$$.fragment,hn),hn.forEach(t),ee.forEach(t),Tp=h(o),zt=s(o,"H2",{class:!0});var _h=a(zt);Po=s(_h,"A",{id:!0,class:!0,href:!0});var t1=a(Po);cd=s(t1,"SPAN",{});var o1=a(cd);B(ia.$$.fragment,o1),o1.forEach(t),t1.forEach(t),tk=h(_h),pd=s(_h,"SPAN",{});var n1=a(pd);ok=i(n1,"FlaxBigBirdForCausalLM"),n1.forEach(t),_h.forEach(t),wp=h(o),L=s(o,"DIV",{class:!0});var te=a(L);B(la.$$.fragment,te),nk=h(te),hd=s(te,"P",{});var s1=a(hd);sk=i(s1,`BigBird Model with a language modeling head on top (a linear layer on top of the hidden-states output) e.g for
autoregressive tasks.`),s1.forEach(t),ak=h(te),da=s(te,"P",{});var bh=a(da);rk=i(bh,"This model inherits from "),Gr=s(bh,"A",{href:!0});var a1=a(Gr);ik=i(a1,"FlaxPreTrainedModel"),a1.forEach(t),lk=i(bh,`. 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)`),bh.forEach(t),dk=h(te),ca=s(te,"P",{});var kh=a(ca);ck=i(kh,"This model is also a Flax Linen "),pa=s(kh,"A",{href:!0,rel:!0});var r1=a(pa);pk=i(r1,"flax.linen.Module"),r1.forEach(t),hk=i(kh,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),kh.forEach(t),mk=h(te),md=s(te,"P",{});var i1=a(md);uk=i(i1,"Finally, this model supports inherent JAX features such as:"),i1.forEach(t),fk=h(te),Pe=s(te,"UL",{});var mn=a(Pe);ud=s(mn,"LI",{});var l1=a(ud);ha=s(l1,"A",{href:!0,rel:!0});var d1=a(ha);gk=i(d1,"Just-In-Time (JIT) compilation"),d1.forEach(t),l1.forEach(t),_k=h(mn),fd=s(mn,"LI",{});var c1=a(fd);ma=s(c1,"A",{href:!0,rel:!0});var p1=a(ma);bk=i(p1,"Automatic Differentiation"),p1.forEach(t),c1.forEach(t),kk=h(mn),gd=s(mn,"LI",{});var h1=a(gd);ua=s(h1,"A",{href:!0,rel:!0});var m1=a(ua);vk=i(m1,"Vectorization"),m1.forEach(t),h1.forEach(t),Bk=h(mn),_d=s(mn,"LI",{});var u1=a(_d);fa=s(u1,"A",{href:!0,rel:!0});var f1=a(fa);yk=i(f1,"Parallelization"),f1.forEach(t),u1.forEach(t),mn.forEach(t),Tk=h(te),ye=s(te,"DIV",{class:!0});var un=a(ye);B(ga.$$.fragment,un),wk=h(un),qt=s(un,"P",{});var vi=a(qt);$k=i(vi,"The "),bd=s(vi,"CODE",{});var g1=a(bd);xk=i(g1,"FlaxBigBirdPreTrainedModel"),g1.forEach(t),Fk=i(vi," forward method, overrides the "),kd=s(vi,"CODE",{});var _1=a(kd);zk=i(_1,"__call__"),_1.forEach(t),qk=i(vi," special method."),vi.forEach(t),Mk=h(un),B(Co.$$.fragment,un),Ek=h(un),B(Ao.$$.fragment,un),un.forEach(t),te.forEach(t),$p=h(o),Mt=s(o,"H2",{class:!0});var vh=a(Mt);Lo=s(vh,"A",{id:!0,class:!0,href:!0});var b1=a(Lo);vd=s(b1,"SPAN",{});var k1=a(vd);B(_a.$$.fragment,k1),k1.forEach(t),b1.forEach(t),jk=h(vh),Bd=s(vh,"SPAN",{});var v1=a(Bd);Pk=i(v1,"FlaxBigBirdForMaskedLM"),v1.forEach(t),vh.forEach(t),xp=h(o),I=s(o,"DIV",{class:!0});var oe=a(I);B(ba.$$.fragment,oe),Ck=h(oe),ka=s(oe,"P",{});var Bh=a(ka);Ak=i(Bh,"BigBird Model with a "),yd=s(Bh,"CODE",{});var B1=a(yd);Lk=i(B1,"language modeling"),B1.forEach(t),Ik=i(Bh," head on top."),Bh.forEach(t),Ok=h(oe),va=s(oe,"P",{});var yh=a(va);Nk=i(yh,"This model inherits from "),Qr=s(yh,"A",{href:!0});var y1=a(Qr);Sk=i(y1,"FlaxPreTrainedModel"),y1.forEach(t),Dk=i(yh,`. 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)`),yh.forEach(t),Wk=h(oe),Ba=s(oe,"P",{});var Th=a(Ba);Uk=i(Th,"This model is also a Flax Linen "),ya=s(Th,"A",{href:!0,rel:!0});var T1=a(ya);Rk=i(T1,"flax.linen.Module"),T1.forEach(t),Gk=i(Th,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),Th.forEach(t),Qk=h(oe),Td=s(oe,"P",{});var w1=a(Td);Hk=i(w1,"Finally, this model supports inherent JAX features such as:"),w1.forEach(t),Vk=h(oe),Ce=s(oe,"UL",{});var fn=a(Ce);wd=s(fn,"LI",{});var $1=a(wd);Ta=s($1,"A",{href:!0,rel:!0});var x1=a(Ta);Jk=i(x1,"Just-In-Time (JIT) compilation"),x1.forEach(t),$1.forEach(t),Kk=h(fn),$d=s(fn,"LI",{});var F1=a($d);wa=s(F1,"A",{href:!0,rel:!0});var z1=a(wa);Xk=i(z1,"Automatic Differentiation"),z1.forEach(t),F1.forEach(t),Yk=h(fn),xd=s(fn,"LI",{});var q1=a(xd);$a=s(q1,"A",{href:!0,rel:!0});var M1=a($a);Zk=i(M1,"Vectorization"),M1.forEach(t),q1.forEach(t),ev=h(fn),Fd=s(fn,"LI",{});var E1=a(Fd);xa=s(E1,"A",{href:!0,rel:!0});var j1=a(xa);tv=i(j1,"Parallelization"),j1.forEach(t),E1.forEach(t),fn.forEach(t),ov=h(oe),Te=s(oe,"DIV",{class:!0});var gn=a(Te);B(Fa.$$.fragment,gn),nv=h(gn),Et=s(gn,"P",{});var Bi=a(Et);sv=i(Bi,"The "),zd=s(Bi,"CODE",{});var P1=a(zd);av=i(P1,"FlaxBigBirdPreTrainedModel"),P1.forEach(t),rv=i(Bi," forward method, overrides the "),qd=s(Bi,"CODE",{});var C1=a(qd);iv=i(C1,"__call__"),C1.forEach(t),lv=i(Bi," special method."),Bi.forEach(t),dv=h(gn),B(Io.$$.fragment,gn),cv=h(gn),B(Oo.$$.fragment,gn),gn.forEach(t),oe.forEach(t),Fp=h(o),jt=s(o,"H2",{class:!0});var wh=a(jt);No=s(wh,"A",{id:!0,class:!0,href:!0});var A1=a(No);Md=s(A1,"SPAN",{});var L1=a(Md);B(za.$$.fragment,L1),L1.forEach(t),A1.forEach(t),pv=h(wh),Ed=s(wh,"SPAN",{});var I1=a(Ed);hv=i(I1,"FlaxBigBirdForSequenceClassification"),I1.forEach(t),wh.forEach(t),zp=h(o),O=s(o,"DIV",{class:!0});var ne=a(O);B(qa.$$.fragment,ne),mv=h(ne),jd=s(ne,"P",{});var O1=a(jd);uv=i(O1,`BigBird Model transformer with a sequence classification/regression head on top (a linear layer on top of the
pooled output) e.g. for GLUE tasks.`),O1.forEach(t),fv=h(ne),Ma=s(ne,"P",{});var $h=a(Ma);gv=i($h,"This model inherits from "),Hr=s($h,"A",{href:!0});var N1=a(Hr);_v=i(N1,"FlaxPreTrainedModel"),N1.forEach(t),bv=i($h,`. 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)`),$h.forEach(t),kv=h(ne),Ea=s(ne,"P",{});var xh=a(Ea);vv=i(xh,"This model is also a Flax Linen "),ja=s(xh,"A",{href:!0,rel:!0});var S1=a(ja);Bv=i(S1,"flax.linen.Module"),S1.forEach(t),yv=i(xh,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),xh.forEach(t),Tv=h(ne),Pd=s(ne,"P",{});var D1=a(Pd);wv=i(D1,"Finally, this model supports inherent JAX features such as:"),D1.forEach(t),$v=h(ne),Ae=s(ne,"UL",{});var _n=a(Ae);Cd=s(_n,"LI",{});var W1=a(Cd);Pa=s(W1,"A",{href:!0,rel:!0});var U1=a(Pa);xv=i(U1,"Just-In-Time (JIT) compilation"),U1.forEach(t),W1.forEach(t),Fv=h(_n),Ad=s(_n,"LI",{});var R1=a(Ad);Ca=s(R1,"A",{href:!0,rel:!0});var G1=a(Ca);zv=i(G1,"Automatic Differentiation"),G1.forEach(t),R1.forEach(t),qv=h(_n),Ld=s(_n,"LI",{});var Q1=a(Ld);Aa=s(Q1,"A",{href:!0,rel:!0});var H1=a(Aa);Mv=i(H1,"Vectorization"),H1.forEach(t),Q1.forEach(t),Ev=h(_n),Id=s(_n,"LI",{});var V1=a(Id);La=s(V1,"A",{href:!0,rel:!0});var J1=a(La);jv=i(J1,"Parallelization"),J1.forEach(t),V1.forEach(t),_n.forEach(t),Pv=h(ne),we=s(ne,"DIV",{class:!0});var bn=a(we);B(Ia.$$.fragment,bn),Cv=h(bn),Pt=s(bn,"P",{});var yi=a(Pt);Av=i(yi,"The "),Od=s(yi,"CODE",{});var K1=a(Od);Lv=i(K1,"FlaxBigBirdPreTrainedModel"),K1.forEach(t),Iv=i(yi," forward method, overrides the "),Nd=s(yi,"CODE",{});var X1=a(Nd);Ov=i(X1,"__call__"),X1.forEach(t),Nv=i(yi," special method."),yi.forEach(t),Sv=h(bn),B(So.$$.fragment,bn),Dv=h(bn),B(Do.$$.fragment,bn),bn.forEach(t),ne.forEach(t),qp=h(o),Ct=s(o,"H2",{class:!0});var Fh=a(Ct);Wo=s(Fh,"A",{id:!0,class:!0,href:!0});var Y1=a(Wo);Sd=s(Y1,"SPAN",{});var Z1=a(Sd);B(Oa.$$.fragment,Z1),Z1.forEach(t),Y1.forEach(t),Wv=h(Fh),Dd=s(Fh,"SPAN",{});var e$=a(Dd);Uv=i(e$,"FlaxBigBirdForMultipleChoice"),e$.forEach(t),Fh.forEach(t),Mp=h(o),N=s(o,"DIV",{class:!0});var se=a(N);B(Na.$$.fragment,se),Rv=h(se),Wd=s(se,"P",{});var t$=a(Wd);Gv=i(t$,`BigBird 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.`),t$.forEach(t),Qv=h(se),Sa=s(se,"P",{});var zh=a(Sa);Hv=i(zh,"This model inherits from "),Vr=s(zh,"A",{href:!0});var o$=a(Vr);Vv=i(o$,"FlaxPreTrainedModel"),o$.forEach(t),Jv=i(zh,`. 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)`),zh.forEach(t),Kv=h(se),Da=s(se,"P",{});var qh=a(Da);Xv=i(qh,"This model is also a Flax Linen "),Wa=s(qh,"A",{href:!0,rel:!0});var n$=a(Wa);Yv=i(n$,"flax.linen.Module"),n$.forEach(t),Zv=i(qh,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),qh.forEach(t),eB=h(se),Ud=s(se,"P",{});var s$=a(Ud);tB=i(s$,"Finally, this model supports inherent JAX features such as:"),s$.forEach(t),oB=h(se),Le=s(se,"UL",{});var kn=a(Le);Rd=s(kn,"LI",{});var a$=a(Rd);Ua=s(a$,"A",{href:!0,rel:!0});var r$=a(Ua);nB=i(r$,"Just-In-Time (JIT) compilation"),r$.forEach(t),a$.forEach(t),sB=h(kn),Gd=s(kn,"LI",{});var i$=a(Gd);Ra=s(i$,"A",{href:!0,rel:!0});var l$=a(Ra);aB=i(l$,"Automatic Differentiation"),l$.forEach(t),i$.forEach(t),rB=h(kn),Qd=s(kn,"LI",{});var d$=a(Qd);Ga=s(d$,"A",{href:!0,rel:!0});var c$=a(Ga);iB=i(c$,"Vectorization"),c$.forEach(t),d$.forEach(t),lB=h(kn),Hd=s(kn,"LI",{});var p$=a(Hd);Qa=s(p$,"A",{href:!0,rel:!0});var h$=a(Qa);dB=i(h$,"Parallelization"),h$.forEach(t),p$.forEach(t),kn.forEach(t),cB=h(se),$e=s(se,"DIV",{class:!0});var vn=a($e);B(Ha.$$.fragment,vn),pB=h(vn),At=s(vn,"P",{});var Ti=a(At);hB=i(Ti,"The "),Vd=s(Ti,"CODE",{});var m$=a(Vd);mB=i(m$,"FlaxBigBirdPreTrainedModel"),m$.forEach(t),uB=i(Ti," forward method, overrides the "),Jd=s(Ti,"CODE",{});var u$=a(Jd);fB=i(u$,"__call__"),u$.forEach(t),gB=i(Ti," special method."),Ti.forEach(t),_B=h(vn),B(Uo.$$.fragment,vn),bB=h(vn),B(Ro.$$.fragment,vn),vn.forEach(t),se.forEach(t),Ep=h(o),Lt=s(o,"H2",{class:!0});var Mh=a(Lt);Go=s(Mh,"A",{id:!0,class:!0,href:!0});var f$=a(Go);Kd=s(f$,"SPAN",{});var g$=a(Kd);B(Va.$$.fragment,g$),g$.forEach(t),f$.forEach(t),kB=h(Mh),Xd=s(Mh,"SPAN",{});var _$=a(Xd);vB=i(_$,"FlaxBigBirdForTokenClassification"),_$.forEach(t),Mh.forEach(t),jp=h(o),S=s(o,"DIV",{class:!0});var ae=a(S);B(Ja.$$.fragment,ae),BB=h(ae),Yd=s(ae,"P",{});var b$=a(Yd);yB=i(b$,`BigBird 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.`),b$.forEach(t),TB=h(ae),Ka=s(ae,"P",{});var Eh=a(Ka);wB=i(Eh,"This model inherits from "),Jr=s(Eh,"A",{href:!0});var k$=a(Jr);$B=i(k$,"FlaxPreTrainedModel"),k$.forEach(t),xB=i(Eh,`. 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)`),Eh.forEach(t),FB=h(ae),Xa=s(ae,"P",{});var jh=a(Xa);zB=i(jh,"This model is also a Flax Linen "),Ya=s(jh,"A",{href:!0,rel:!0});var v$=a(Ya);qB=i(v$,"flax.linen.Module"),v$.forEach(t),MB=i(jh,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),jh.forEach(t),EB=h(ae),Zd=s(ae,"P",{});var B$=a(Zd);jB=i(B$,"Finally, this model supports inherent JAX features such as:"),B$.forEach(t),PB=h(ae),Ie=s(ae,"UL",{});var Bn=a(Ie);ec=s(Bn,"LI",{});var y$=a(ec);Za=s(y$,"A",{href:!0,rel:!0});var T$=a(Za);CB=i(T$,"Just-In-Time (JIT) compilation"),T$.forEach(t),y$.forEach(t),AB=h(Bn),tc=s(Bn,"LI",{});var w$=a(tc);er=s(w$,"A",{href:!0,rel:!0});var $$=a(er);LB=i($$,"Automatic Differentiation"),$$.forEach(t),w$.forEach(t),IB=h(Bn),oc=s(Bn,"LI",{});var x$=a(oc);tr=s(x$,"A",{href:!0,rel:!0});var F$=a(tr);OB=i(F$,"Vectorization"),F$.forEach(t),x$.forEach(t),NB=h(Bn),nc=s(Bn,"LI",{});var z$=a(nc);or=s(z$,"A",{href:!0,rel:!0});var q$=a(or);SB=i(q$,"Parallelization"),q$.forEach(t),z$.forEach(t),Bn.forEach(t),DB=h(ae),xe=s(ae,"DIV",{class:!0});var yn=a(xe);B(nr.$$.fragment,yn),WB=h(yn),It=s(yn,"P",{});var wi=a(It);UB=i(wi,"The "),sc=s(wi,"CODE",{});var M$=a(sc);RB=i(M$,"FlaxBigBirdPreTrainedModel"),M$.forEach(t),GB=i(wi," forward method, overrides the "),ac=s(wi,"CODE",{});var E$=a(ac);QB=i(E$,"__call__"),E$.forEach(t),HB=i(wi," special method."),wi.forEach(t),VB=h(yn),B(Qo.$$.fragment,yn),JB=h(yn),B(Ho.$$.fragment,yn),yn.forEach(t),ae.forEach(t),Pp=h(o),Ot=s(o,"H2",{class:!0});var Ph=a(Ot);Vo=s(Ph,"A",{id:!0,class:!0,href:!0});var j$=a(Vo);rc=s(j$,"SPAN",{});var P$=a(rc);B(sr.$$.fragment,P$),P$.forEach(t),j$.forEach(t),KB=h(Ph),ic=s(Ph,"SPAN",{});var C$=a(ic);XB=i(C$,"FlaxBigBirdForQuestionAnswering"),C$.forEach(t),Ph.forEach(t),Cp=h(o),D=s(o,"DIV",{class:!0});var re=a(D);B(ar.$$.fragment,re),YB=h(re),Nt=s(re,"P",{});var $i=a(Nt);ZB=i($i,`BigBird 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=s($i,"CODE",{});var A$=a(lc);ey=i(A$,"span start logits"),A$.forEach(t),ty=i($i," and "),dc=s($i,"CODE",{});var L$=a(dc);oy=i(L$,"span end logits"),L$.forEach(t),ny=i($i,")."),$i.forEach(t),sy=h(re),rr=s(re,"P",{});var Ch=a(rr);ay=i(Ch,"This model inherits from "),Kr=s(Ch,"A",{href:!0});var I$=a(Kr);ry=i(I$,"FlaxPreTrainedModel"),I$.forEach(t),iy=i(Ch,`. 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)`),Ch.forEach(t),ly=h(re),ir=s(re,"P",{});var Ah=a(ir);dy=i(Ah,"This model is also a Flax Linen "),lr=s(Ah,"A",{href:!0,rel:!0});var O$=a(lr);cy=i(O$,"flax.linen.Module"),O$.forEach(t),py=i(Ah,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),Ah.forEach(t),hy=h(re),cc=s(re,"P",{});var N$=a(cc);my=i(N$,"Finally, this model supports inherent JAX features such as:"),N$.forEach(t),uy=h(re),Oe=s(re,"UL",{});var Tn=a(Oe);pc=s(Tn,"LI",{});var S$=a(pc);dr=s(S$,"A",{href:!0,rel:!0});var D$=a(dr);fy=i(D$,"Just-In-Time (JIT) compilation"),D$.forEach(t),S$.forEach(t),gy=h(Tn),hc=s(Tn,"LI",{});var W$=a(hc);cr=s(W$,"A",{href:!0,rel:!0});var U$=a(cr);_y=i(U$,"Automatic Differentiation"),U$.forEach(t),W$.forEach(t),by=h(Tn),mc=s(Tn,"LI",{});var R$=a(mc);pr=s(R$,"A",{href:!0,rel:!0});var G$=a(pr);ky=i(G$,"Vectorization"),G$.forEach(t),R$.forEach(t),vy=h(Tn),uc=s(Tn,"LI",{});var Q$=a(uc);hr=s(Q$,"A",{href:!0,rel:!0});var H$=a(hr);By=i(H$,"Parallelization"),H$.forEach(t),Q$.forEach(t),Tn.forEach(t),yy=h(re),Fe=s(re,"DIV",{class:!0});var wn=a(Fe);B(mr.$$.fragment,wn),Ty=h(wn),St=s(wn,"P",{});var xi=a(St);wy=i(xi,"The "),Xr=s(xi,"A",{href:!0});var V$=a(Xr);$y=i(V$,"FlaxBigBirdForQuestionAnswering"),V$.forEach(t),xy=i(xi," forward method, overrides the "),fc=s(xi,"CODE",{});var J$=a(fc);Fy=i(J$,"__call__"),J$.forEach(t),zy=i(xi," special method."),xi.forEach(t),qy=h(wn),B(Jo.$$.fragment,wn),My=h(wn),B(Ko.$$.fragment,wn),wn.forEach(t),re.forEach(t),this.h()},h(){c(d,"name","hf:doc:metadata"),c(d,"content",JSON.stringify(Nx)),c(f,"id","bigbird"),c(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"),c(f,"href","#bigbird"),c(u,"class","relative group"),c(Wt,"id","overview"),c(Wt,"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"),c(Wt,"href","#overview"),c(Ve,"class","relative group"),c(xn,"href","https://arxiv.org/abs/2007.14062"),c(xn,"rel","nofollow"),c(zn,"href","https://huggingface.co/blog/big-bird"),c(zn,"rel","nofollow"),c(Mn,"href","https://huggingface.co/vasudevgupta"),c(Mn,"rel","nofollow"),c(En,"href","https://github.com/google-research/bigbird"),c(En,"rel","nofollow"),c(Rt,"id","transformers.BigBirdConfig"),c(Rt,"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"),c(Rt,"href","#transformers.BigBirdConfig"),c(Je,"class","relative group"),c(wr,"href","/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdModel"),c(Cn,"href","https://huggingface.co/google/bigbird-roberta-base"),c(Cn,"rel","nofollow"),c($r,"href","/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig"),c(xr,"href","/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig"),c(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Qt,"id","transformers.BigBirdTokenizer"),c(Qt,"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"),c(Qt,"href","#transformers.BigBirdTokenizer"),c(Ye,"class","relative group"),c(On,"href","https://github.com/google/sentencepiece"),c(On,"rel","nofollow"),c(Fr,"href","/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizer"),c(De,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Ht,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Vt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Mr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Jt,"id","transformers.BigBirdTokenizerFast"),c(Jt,"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"),c(Jt,"href","#transformers.BigBirdTokenizerFast"),c(et,"class","relative group"),c(Vn,"href","https://huggingface.co/docs/tokenizers/python/latest/components.html?highlight=unigram#models"),c(Vn,"rel","nofollow"),c(Er,"href","/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast"),c(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Xt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Yt,"id","transformers.models.big_bird.modeling_big_bird.BigBirdForPreTrainingOutput"),c(Yt,"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"),c(Yt,"href","#transformers.models.big_bird.modeling_big_bird.BigBirdForPreTrainingOutput"),c(tt,"class","relative group"),c(Cr,"href","/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdForPreTraining"),c(ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Zt,"id","transformers.BigBirdModel"),c(Zt,"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"),c(Zt,"href","#transformers.BigBirdModel"),c(nt,"class","relative group"),c(rs,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(rs,"rel","nofollow"),c(ls,"href","https://arxiv.org/abs/1706.03762"),c(ls,"rel","nofollow"),c(Ar,"href","/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdModel"),c(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(oo,"id","transformers.BigBirdForPreTraining"),c(oo,"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"),c(oo,"href","#transformers.BigBirdForPreTraining"),c(at,"class","relative group"),c(Lr,"href","/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdForPreTraining"),c(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(rt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ao,"id","transformers.BigBirdForCausalLM"),c(ao,"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"),c(ao,"href","#transformers.BigBirdForCausalLM"),c(lt,"class","relative group"),c(fs,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(fs,"rel","nofollow"),c(Ir,"href","/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdForCausalLM"),c(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(lo,"id","transformers.BigBirdForMaskedLM"),c(lo,"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"),c(lo,"href","#transformers.BigBirdForMaskedLM"),c(pt,"class","relative group"),c(ks,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(ks,"rel","nofollow"),c(Or,"href","/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdForMaskedLM"),c(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(mo,"id","transformers.BigBirdForSequenceClassification"),c(mo,"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"),c(mo,"href","#transformers.BigBirdForSequenceClassification"),c(ut,"class","relative group"),c(ws,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(ws,"rel","nofollow"),c(Nr,"href","/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdForSequenceClassification"),c(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(_o,"id","transformers.BigBirdForMultipleChoice"),c(_o,"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"),c(_o,"href","#transformers.BigBirdForMultipleChoice"),c(gt,"class","relative group"),c(qs,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(qs,"rel","nofollow"),c(Sr,"href","/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdForMultipleChoice"),c(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(vo,"id","transformers.BigBirdForTokenClassification"),c(vo,"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"),c(vo,"href","#transformers.BigBirdForTokenClassification"),c(bt,"class","relative group"),c(Cs,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(Cs,"rel","nofollow"),c(Dr,"href","/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdForTokenClassification"),c(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(To,"id","transformers.BigBirdForQuestionAnswering"),c(To,"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"),c(To,"href","#transformers.BigBirdForQuestionAnswering"),c(vt,"class","relative group"),c(Ns,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(Ns,"rel","nofollow"),c(Wr,"href","/docs/transformers/main/en/model_doc/big_bird#transformers.BigBirdForQuestionAnswering"),c(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Fo,"id","transformers.FlaxBigBirdModel"),c(Fo,"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"),c(Fo,"href","#transformers.FlaxBigBirdModel"),c(Tt,"class","relative group"),c(Ur,"href","/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel"),c(Gs,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),c(Gs,"rel","nofollow"),c(Qs,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),c(Qs,"rel","nofollow"),c(Hs,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),c(Hs,"rel","nofollow"),c(Vs,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),c(Vs,"rel","nofollow"),c(Js,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),c(Js,"rel","nofollow"),c(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Mo,"id","transformers.FlaxBigBirdForPreTraining"),c(Mo,"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"),c(Mo,"href","#transformers.FlaxBigBirdForPreTraining"),c($t,"class","relative group"),c(Rr,"href","/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel"),c(ta,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),c(ta,"rel","nofollow"),c(oa,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),c(oa,"rel","nofollow"),c(na,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),c(na,"rel","nofollow"),c(sa,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),c(sa,"rel","nofollow"),c(aa,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),c(aa,"rel","nofollow"),c(Be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Po,"id","transformers.FlaxBigBirdForCausalLM"),c(Po,"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"),c(Po,"href","#transformers.FlaxBigBirdForCausalLM"),c(zt,"class","relative group"),c(Gr,"href","/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel"),c(pa,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),c(pa,"rel","nofollow"),c(ha,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),c(ha,"rel","nofollow"),c(ma,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),c(ma,"rel","nofollow"),c(ua,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),c(ua,"rel","nofollow"),c(fa,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),c(fa,"rel","nofollow"),c(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Lo,"id","transformers.FlaxBigBirdForMaskedLM"),c(Lo,"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"),c(Lo,"href","#transformers.FlaxBigBirdForMaskedLM"),c(Mt,"class","relative group"),c(Qr,"href","/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel"),c(ya,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),c(ya,"rel","nofollow"),c(Ta,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),c(Ta,"rel","nofollow"),c(wa,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),c(wa,"rel","nofollow"),c($a,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),c($a,"rel","nofollow"),c(xa,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),c(xa,"rel","nofollow"),c(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(No,"id","transformers.FlaxBigBirdForSequenceClassification"),c(No,"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"),c(No,"href","#transformers.FlaxBigBirdForSequenceClassification"),c(jt,"class","relative group"),c(Hr,"href","/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel"),c(ja,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),c(ja,"rel","nofollow"),c(Pa,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),c(Pa,"rel","nofollow"),c(Ca,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),c(Ca,"rel","nofollow"),c(Aa,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),c(Aa,"rel","nofollow"),c(La,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),c(La,"rel","nofollow"),c(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Wo,"id","transformers.FlaxBigBirdForMultipleChoice"),c(Wo,"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"),c(Wo,"href","#transformers.FlaxBigBirdForMultipleChoice"),c(Ct,"class","relative group"),c(Vr,"href","/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel"),c(Wa,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),c(Wa,"rel","nofollow"),c(Ua,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),c(Ua,"rel","nofollow"),c(Ra,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),c(Ra,"rel","nofollow"),c(Ga,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),c(Ga,"rel","nofollow"),c(Qa,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),c(Qa,"rel","nofollow"),c($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Go,"id","transformers.FlaxBigBirdForTokenClassification"),c(Go,"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"),c(Go,"href","#transformers.FlaxBigBirdForTokenClassification"),c(Lt,"class","relative group"),c(Jr,"href","/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel"),c(Ya,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),c(Ya,"rel","nofollow"),c(Za,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),c(Za,"rel","nofollow"),c(er,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),c(er,"rel","nofollow"),c(tr,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),c(tr,"rel","nofollow"),c(or,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),c(or,"rel","nofollow"),c(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Vo,"id","transformers.FlaxBigBirdForQuestionAnswering"),c(Vo,"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"),c(Vo,"href","#transformers.FlaxBigBirdForQuestionAnswering"),c(Ot,"class","relative group"),c(Kr,"href","/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel"),c(lr,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),c(lr,"rel","nofollow"),c(dr,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),c(dr,"rel","nofollow"),c(cr,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),c(cr,"rel","nofollow"),c(pr,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),c(pr,"rel","nofollow"),c(hr,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),c(hr,"rel","nofollow"),c(Xr,"href","/docs/transformers/main/en/model_doc/big_bird#transformers.FlaxBigBirdForQuestionAnswering"),c(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(o,g){e(document.head,d),k(o,b,g),k(o,u,g),e(u,f),e(f,_),y(l,_,null),e(u,m),e(u,F),e(F,Lh),k(o,Wc,g),k(o,Ve,g),e(Ve,Wt),e(Wt,Fi),y($n,Fi,null),e(Ve,Ih),e(Ve,zi),e(zi,Oh),k(o,Uc,g),k(o,Ut,g),e(Ut,Nh),e(Ut,xn),e(xn,Sh),e(Ut,Dh),k(o,Rc,g),k(o,vr,g),e(vr,Wh),k(o,Gc,g),k(o,Br,g),e(Br,qi),e(qi,Uh),k(o,Qc,g),k(o,yr,g),e(yr,Rh),k(o,Hc,g),k(o,W,g),e(W,Fn),e(Fn,Gh),e(Fn,zn),e(zn,Qh),e(Fn,Hh),e(W,Vh),e(W,ie),e(ie,Jh),e(ie,Mi),e(Mi,Kh),e(ie,Xh),e(ie,Ei),e(Ei,Yh),e(ie,Zh),e(ie,ji),e(ji,em),e(ie,tm),e(ie,Pi),e(Pi,om),e(ie,nm),e(W,sm),e(W,Ci),e(Ci,am),e(W,rm),e(W,Ai),e(Ai,im),e(W,lm),e(W,qn),e(qn,dm),e(qn,Li),e(Li,cm),e(qn,pm),e(W,hm),e(W,Tr),e(Tr,mm),e(Tr,Ii),e(Ii,um),e(W,fm),e(W,Oi),e(Oi,gm),k(o,Vc,g),k(o,Se,g),e(Se,_m),e(Se,Mn),e(Mn,bm),e(Se,km),e(Se,En),e(En,vm),e(Se,Bm),k(o,Jc,g),k(o,Je,g),e(Je,Rt),e(Rt,Ni),y(jn,Ni,null),e(Je,ym),e(Je,Si),e(Si,Tm),k(o,Kc,g),k(o,le,g),y(Pn,le,null),e(le,wm),e(le,Ke),e(Ke,$m),e(Ke,wr),e(wr,xm),e(Ke,Fm),e(Ke,Cn),e(Cn,zm),e(Ke,qm),e(le,Mm),e(le,Xe),e(Xe,Em),e(Xe,$r),e($r,jm),e(Xe,Pm),e(Xe,xr),e(xr,Cm),e(Xe,Am),e(le,Lm),y(Gt,le,null),k(o,Xc,g),k(o,Ye,g),e(Ye,Qt),e(Qt,Di),y(An,Di,null),e(Ye,Im),e(Ye,Wi),e(Wi,Om),k(o,Yc,g),k(o,P,g),y(Ln,P,null),e(P,Nm),e(P,In),e(In,Sm),e(In,On),e(On,Dm),e(In,Wm),e(P,Um),e(P,Nn),e(Nn,Rm),e(Nn,Fr),e(Fr,Gm),e(Nn,Qm),e(P,Hm),e(P,De),y(Sn,De,null),e(De,Vm),e(De,Ui),e(Ui,Jm),e(De,Km),e(De,Dn),e(Dn,zr),e(zr,Xm),e(zr,Ri),e(Ri,Ym),e(Dn,Zm),e(Dn,qr),e(qr,eu),e(qr,Gi),e(Gi,tu),e(P,ou),e(P,Ht),y(Wn,Ht,null),e(Ht,nu),e(Ht,Un),e(Un,su),e(Un,Qi),e(Qi,au),e(Un,ru),e(P,iu),e(P,Vt),y(Rn,Vt,null),e(Vt,lu),e(Vt,Ze),e(Ze,du),e(Ze,Hi),e(Hi,cu),e(Ze,pu),e(Ze,Vi),e(Vi,hu),e(Ze,mu),e(P,uu),e(P,Mr),y(Gn,Mr,null),k(o,Zc,g),k(o,et,g),e(et,Jt),e(Jt,Ji),y(Qn,Ji,null),e(et,fu),e(et,Ki),e(Ki,gu),k(o,ep,g),k(o,Q,g),y(Hn,Q,null),e(Q,_u),e(Q,ze),e(ze,bu),e(ze,Xi),e(Xi,ku),e(ze,vu),e(ze,Vn),e(Vn,Bu),e(ze,yu),e(ze,Er),e(Er,Tu),e(ze,wu),e(Q,$u),e(Q,We),y(Jn,We,null),e(We,xu),e(We,Yi),e(Yi,Fu),e(We,zu),e(We,Kn),e(Kn,jr),e(jr,qu),e(jr,Zi),e(Zi,Mu),e(Kn,Eu),e(Kn,Pr),e(Pr,ju),e(Pr,el),e(el,Pu),e(Q,Cu),e(Q,ue),y(Xn,ue,null),e(ue,Au),e(ue,tl),e(tl,Lu),e(ue,Iu),y(Kt,ue,null),e(ue,Ou),e(ue,ol),e(ol,Nu),e(Q,Su),e(Q,Xt),y(Yn,Xt,null),e(Xt,Du),e(Xt,Zn),e(Zn,Wu),e(Zn,nl),e(nl,Uu),e(Zn,Ru),k(o,tp,g),k(o,tt,g),e(tt,Yt),e(Yt,sl),y(es,sl,null),e(tt,Gu),e(tt,al),e(al,Qu),k(o,op,g),k(o,ot,g),y(ts,ot,null),e(ot,Hu),e(ot,os),e(os,Vu),e(os,Cr),e(Cr,Ju),e(os,Ku),k(o,np,g),k(o,nt,g),e(nt,Zt),e(Zt,rl),y(ns,rl,null),e(nt,Xu),e(nt,il),e(il,Yu),k(o,sp,g),k(o,H,g),y(ss,H,null),e(H,Zu),e(H,as),e(as,ef),e(as,rs),e(rs,tf),e(as,of),e(H,nf),e(H,is),e(is,sf),e(is,ls),e(ls,af),e(is,rf),e(H,lf),e(H,U),e(U,df),e(U,ll),e(ll,cf),e(U,pf),e(U,dl),e(dl,hf),e(U,mf),e(U,cl),e(cl,uf),e(U,ff),e(U,pl),e(pl,gf),e(U,_f),e(U,hl),e(hl,bf),e(U,kf),e(U,ml),e(ml,vf),e(U,Bf),e(H,yf),e(H,fe),y(ds,fe,null),e(fe,Tf),e(fe,st),e(st,wf),e(st,Ar),e(Ar,$f),e(st,xf),e(st,ul),e(ul,Ff),e(st,zf),e(fe,qf),y(eo,fe,null),e(fe,Mf),y(to,fe,null),k(o,ap,g),k(o,at,g),e(at,oo),e(oo,fl),y(cs,fl,null),e(at,Ef),e(at,gl),e(gl,jf),k(o,rp,g),k(o,rt,g),y(ps,rt,null),e(rt,Pf),e(rt,ge),y(hs,ge,null),e(ge,Cf),e(ge,it),e(it,Af),e(it,Lr),e(Lr,Lf),e(it,If),e(it,_l),e(_l,Of),e(it,Nf),e(ge,Sf),y(no,ge,null),e(ge,Df),y(so,ge,null),k(o,ip,g),k(o,lt,g),e(lt,ao),e(ao,bl),y(ms,bl,null),e(lt,Wf),e(lt,kl),e(kl,Uf),k(o,lp,g),k(o,qe,g),y(us,qe,null),e(qe,Rf),e(qe,dt),e(dt,Gf),e(dt,vl),e(vl,Qf),e(dt,Hf),e(dt,fs),e(fs,Vf),e(dt,Jf),e(qe,Kf),e(qe,_e),y(gs,_e,null),e(_e,Xf),e(_e,ct),e(ct,Yf),e(ct,Ir),e(Ir,Zf),e(ct,eg),e(ct,Bl),e(Bl,tg),e(ct,og),e(_e,ng),y(ro,_e,null),e(_e,sg),y(io,_e,null),k(o,dp,g),k(o,pt,g),e(pt,lo),e(lo,yl),y(_s,yl,null),e(pt,ag),e(pt,Tl),e(Tl,rg),k(o,cp,g),k(o,Me,g),y(bs,Me,null),e(Me,ig),e(Me,ht),e(ht,lg),e(ht,wl),e(wl,dg),e(ht,cg),e(ht,ks),e(ks,pg),e(ht,hg),e(Me,mg),e(Me,V),y(vs,V,null),e(V,ug),e(V,mt),e(mt,fg),e(mt,Or),e(Or,gg),e(mt,_g),e(mt,$l),e($l,bg),e(mt,kg),e(V,vg),y(co,V,null),e(V,Bg),y(po,V,null),e(V,yg),y(ho,V,null),k(o,pp,g),k(o,ut,g),e(ut,mo),e(mo,xl),y(Bs,xl,null),e(ut,Tg),e(ut,Fl),e(Fl,wg),k(o,hp,g),k(o,de,g),y(ys,de,null),e(de,$g),e(de,zl),e(zl,xg),e(de,Fg),e(de,Ts),e(Ts,zg),e(Ts,ws),e(ws,qg),e(Ts,Mg),e(de,Eg),e(de,J),y($s,J,null),e(J,jg),e(J,ft),e(ft,Pg),e(ft,Nr),e(Nr,Cg),e(ft,Ag),e(ft,ql),e(ql,Lg),e(ft,Ig),e(J,Og),y(uo,J,null),e(J,Ng),y(fo,J,null),e(J,Sg),y(go,J,null),k(o,mp,g),k(o,gt,g),e(gt,_o),e(_o,Ml),y(xs,Ml,null),e(gt,Dg),e(gt,El),e(El,Wg),k(o,up,g),k(o,ce,g),y(Fs,ce,null),e(ce,Ug),e(ce,jl),e(jl,Rg),e(ce,Gg),e(ce,zs),e(zs,Qg),e(zs,qs),e(qs,Hg),e(zs,Vg),e(ce,Jg),e(ce,be),y(Ms,be,null),e(be,Kg),e(be,_t),e(_t,Xg),e(_t,Sr),e(Sr,Yg),e(_t,Zg),e(_t,Pl),e(Pl,e_),e(_t,t_),e(be,o_),y(bo,be,null),e(be,n_),y(ko,be,null),k(o,fp,g),k(o,bt,g),e(bt,vo),e(vo,Cl),y(Es,Cl,null),e(bt,s_),e(bt,Al),e(Al,a_),k(o,gp,g),k(o,pe,g),y(js,pe,null),e(pe,r_),e(pe,Ll),e(Ll,i_),e(pe,l_),e(pe,Ps),e(Ps,d_),e(Ps,Cs),e(Cs,c_),e(Ps,p_),e(pe,h_),e(pe,ke),y(As,ke,null),e(ke,m_),e(ke,kt),e(kt,u_),e(kt,Dr),e(Dr,f_),e(kt,g_),e(kt,Il),e(Il,__),e(kt,b_),e(ke,k_),y(Bo,ke,null),e(ke,v_),y(yo,ke,null),k(o,_p,g),k(o,vt,g),e(vt,To),e(To,Ol),y(Ls,Ol,null),e(vt,B_),e(vt,Nl),e(Nl,y_),k(o,bp,g),k(o,he,g),y(Is,he,null),e(he,T_),e(he,Bt),e(Bt,w_),e(Bt,Sl),e(Sl,$_),e(Bt,x_),e(Bt,Dl),e(Dl,F_),e(Bt,z_),e(he,q_),e(he,Os),e(Os,M_),e(Os,Ns),e(Ns,E_),e(Os,j_),e(he,P_),e(he,K),y(Ss,K,null),e(K,C_),e(K,yt),e(yt,A_),e(yt,Wr),e(Wr,L_),e(yt,I_),e(yt,Wl),e(Wl,O_),e(yt,N_),e(K,S_),y(wo,K,null),e(K,D_),y($o,K,null),e(K,W_),y(xo,K,null),k(o,kp,g),k(o,Tt,g),e(Tt,Fo),e(Fo,Ul),y(Ds,Ul,null),e(Tt,U_),e(Tt,Rl),e(Rl,R_),k(o,vp,g),k(o,C,g),y(Ws,C,null),e(C,G_),e(C,Gl),e(Gl,Q_),e(C,H_),e(C,Us),e(Us,V_),e(Us,Ur),e(Ur,J_),e(Us,K_),e(C,X_),e(C,Rs),e(Rs,Y_),e(Rs,Gs),e(Gs,Z_),e(Rs,eb),e(C,tb),e(C,Ql),e(Ql,ob),e(C,nb),e(C,Ee),e(Ee,Hl),e(Hl,Qs),e(Qs,sb),e(Ee,ab),e(Ee,Vl),e(Vl,Hs),e(Hs,rb),e(Ee,ib),e(Ee,Jl),e(Jl,Vs),e(Vs,lb),e(Ee,db),e(Ee,Kl),e(Kl,Js),e(Js,cb),e(C,pb),e(C,ve),y(Ks,ve,null),e(ve,hb),e(ve,wt),e(wt,mb),e(wt,Xl),e(Xl,ub),e(wt,fb),e(wt,Yl),e(Yl,gb),e(wt,_b),e(ve,bb),y(zo,ve,null),e(ve,kb),y(qo,ve,null),k(o,Bp,g),k(o,$t,g),e($t,Mo),e(Mo,Zl),y(Xs,Zl,null),e($t,vb),e($t,ed),e(ed,Bb),k(o,yp,g),k(o,A,g),y(Ys,A,null),e(A,yb),e(A,xt),e(xt,Tb),e(xt,td),e(td,wb),e(xt,$b),e(xt,od),e(od,xb),e(xt,Fb),e(A,zb),e(A,Zs),e(Zs,qb),e(Zs,Rr),e(Rr,Mb),e(Zs,Eb),e(A,jb),e(A,ea),e(ea,Pb),e(ea,ta),e(ta,Cb),e(ea,Ab),e(A,Lb),e(A,nd),e(nd,Ib),e(A,Ob),e(A,je),e(je,sd),e(sd,oa),e(oa,Nb),e(je,Sb),e(je,ad),e(ad,na),e(na,Db),e(je,Wb),e(je,rd),e(rd,sa),e(sa,Ub),e(je,Rb),e(je,id),e(id,aa),e(aa,Gb),e(A,Qb),e(A,Be),y(ra,Be,null),e(Be,Hb),e(Be,Ft),e(Ft,Vb),e(Ft,ld),e(ld,Jb),e(Ft,Kb),e(Ft,dd),e(dd,Xb),e(Ft,Yb),e(Be,Zb),y(Eo,Be,null),e(Be,ek),y(jo,Be,null),k(o,Tp,g),k(o,zt,g),e(zt,Po),e(Po,cd),y(ia,cd,null),e(zt,tk),e(zt,pd),e(pd,ok),k(o,wp,g),k(o,L,g),y(la,L,null),e(L,nk),e(L,hd),e(hd,sk),e(L,ak),e(L,da),e(da,rk),e(da,Gr),e(Gr,ik),e(da,lk),e(L,dk),e(L,ca),e(ca,ck),e(ca,pa),e(pa,pk),e(ca,hk),e(L,mk),e(L,md),e(md,uk),e(L,fk),e(L,Pe),e(Pe,ud),e(ud,ha),e(ha,gk),e(Pe,_k),e(Pe,fd),e(fd,ma),e(ma,bk),e(Pe,kk),e(Pe,gd),e(gd,ua),e(ua,vk),e(Pe,Bk),e(Pe,_d),e(_d,fa),e(fa,yk),e(L,Tk),e(L,ye),y(ga,ye,null),e(ye,wk),e(ye,qt),e(qt,$k),e(qt,bd),e(bd,xk),e(qt,Fk),e(qt,kd),e(kd,zk),e(qt,qk),e(ye,Mk),y(Co,ye,null),e(ye,Ek),y(Ao,ye,null),k(o,$p,g),k(o,Mt,g),e(Mt,Lo),e(Lo,vd),y(_a,vd,null),e(Mt,jk),e(Mt,Bd),e(Bd,Pk),k(o,xp,g),k(o,I,g),y(ba,I,null),e(I,Ck),e(I,ka),e(ka,Ak),e(ka,yd),e(yd,Lk),e(ka,Ik),e(I,Ok),e(I,va),e(va,Nk),e(va,Qr),e(Qr,Sk),e(va,Dk),e(I,Wk),e(I,Ba),e(Ba,Uk),e(Ba,ya),e(ya,Rk),e(Ba,Gk),e(I,Qk),e(I,Td),e(Td,Hk),e(I,Vk),e(I,Ce),e(Ce,wd),e(wd,Ta),e(Ta,Jk),e(Ce,Kk),e(Ce,$d),e($d,wa),e(wa,Xk),e(Ce,Yk),e(Ce,xd),e(xd,$a),e($a,Zk),e(Ce,ev),e(Ce,Fd),e(Fd,xa),e(xa,tv),e(I,ov),e(I,Te),y(Fa,Te,null),e(Te,nv),e(Te,Et),e(Et,sv),e(Et,zd),e(zd,av),e(Et,rv),e(Et,qd),e(qd,iv),e(Et,lv),e(Te,dv),y(Io,Te,null),e(Te,cv),y(Oo,Te,null),k(o,Fp,g),k(o,jt,g),e(jt,No),e(No,Md),y(za,Md,null),e(jt,pv),e(jt,Ed),e(Ed,hv),k(o,zp,g),k(o,O,g),y(qa,O,null),e(O,mv),e(O,jd),e(jd,uv),e(O,fv),e(O,Ma),e(Ma,gv),e(Ma,Hr),e(Hr,_v),e(Ma,bv),e(O,kv),e(O,Ea),e(Ea,vv),e(Ea,ja),e(ja,Bv),e(Ea,yv),e(O,Tv),e(O,Pd),e(Pd,wv),e(O,$v),e(O,Ae),e(Ae,Cd),e(Cd,Pa),e(Pa,xv),e(Ae,Fv),e(Ae,Ad),e(Ad,Ca),e(Ca,zv),e(Ae,qv),e(Ae,Ld),e(Ld,Aa),e(Aa,Mv),e(Ae,Ev),e(Ae,Id),e(Id,La),e(La,jv),e(O,Pv),e(O,we),y(Ia,we,null),e(we,Cv),e(we,Pt),e(Pt,Av),e(Pt,Od),e(Od,Lv),e(Pt,Iv),e(Pt,Nd),e(Nd,Ov),e(Pt,Nv),e(we,Sv),y(So,we,null),e(we,Dv),y(Do,we,null),k(o,qp,g),k(o,Ct,g),e(Ct,Wo),e(Wo,Sd),y(Oa,Sd,null),e(Ct,Wv),e(Ct,Dd),e(Dd,Uv),k(o,Mp,g),k(o,N,g),y(Na,N,null),e(N,Rv),e(N,Wd),e(Wd,Gv),e(N,Qv),e(N,Sa),e(Sa,Hv),e(Sa,Vr),e(Vr,Vv),e(Sa,Jv),e(N,Kv),e(N,Da),e(Da,Xv),e(Da,Wa),e(Wa,Yv),e(Da,Zv),e(N,eB),e(N,Ud),e(Ud,tB),e(N,oB),e(N,Le),e(Le,Rd),e(Rd,Ua),e(Ua,nB),e(Le,sB),e(Le,Gd),e(Gd,Ra),e(Ra,aB),e(Le,rB),e(Le,Qd),e(Qd,Ga),e(Ga,iB),e(Le,lB),e(Le,Hd),e(Hd,Qa),e(Qa,dB),e(N,cB),e(N,$e),y(Ha,$e,null),e($e,pB),e($e,At),e(At,hB),e(At,Vd),e(Vd,mB),e(At,uB),e(At,Jd),e(Jd,fB),e(At,gB),e($e,_B),y(Uo,$e,null),e($e,bB),y(Ro,$e,null),k(o,Ep,g),k(o,Lt,g),e(Lt,Go),e(Go,Kd),y(Va,Kd,null),e(Lt,kB),e(Lt,Xd),e(Xd,vB),k(o,jp,g),k(o,S,g),y(Ja,S,null),e(S,BB),e(S,Yd),e(Yd,yB),e(S,TB),e(S,Ka),e(Ka,wB),e(Ka,Jr),e(Jr,$B),e(Ka,xB),e(S,FB),e(S,Xa),e(Xa,zB),e(Xa,Ya),e(Ya,qB),e(Xa,MB),e(S,EB),e(S,Zd),e(Zd,jB),e(S,PB),e(S,Ie),e(Ie,ec),e(ec,Za),e(Za,CB),e(Ie,AB),e(Ie,tc),e(tc,er),e(er,LB),e(Ie,IB),e(Ie,oc),e(oc,tr),e(tr,OB),e(Ie,NB),e(Ie,nc),e(nc,or),e(or,SB),e(S,DB),e(S,xe),y(nr,xe,null),e(xe,WB),e(xe,It),e(It,UB),e(It,sc),e(sc,RB),e(It,GB),e(It,ac),e(ac,QB),e(It,HB),e(xe,VB),y(Qo,xe,null),e(xe,JB),y(Ho,xe,null),k(o,Pp,g),k(o,Ot,g),e(Ot,Vo),e(Vo,rc),y(sr,rc,null),e(Ot,KB),e(Ot,ic),e(ic,XB),k(o,Cp,g),k(o,D,g),y(ar,D,null),e(D,YB),e(D,Nt),e(Nt,ZB),e(Nt,lc),e(lc,ey),e(Nt,ty),e(Nt,dc),e(dc,oy),e(Nt,ny),e(D,sy),e(D,rr),e(rr,ay),e(rr,Kr),e(Kr,ry),e(rr,iy),e(D,ly),e(D,ir),e(ir,dy),e(ir,lr),e(lr,cy),e(ir,py),e(D,hy),e(D,cc),e(cc,my),e(D,uy),e(D,Oe),e(Oe,pc),e(pc,dr),e(dr,fy),e(Oe,gy),e(Oe,hc),e(hc,cr),e(cr,_y),e(Oe,by),e(Oe,mc),e(mc,pr),e(pr,ky),e(Oe,vy),e(Oe,uc),e(uc,hr),e(hr,By),e(D,yy),e(D,Fe),y(mr,Fe,null),e(Fe,Ty),e(Fe,St),e(St,wy),e(St,Xr),e(Xr,$y),e(St,xy),e(St,fc),e(fc,Fy),e(St,zy),e(Fe,qy),y(Jo,Fe,null),e(Fe,My),y(Ko,Fe,null),Ap=!0},p(o,[g]){const ur={};g&2&&(ur.$$scope={dirty:g,ctx:o}),Gt.$set(ur);const gc={};g&2&&(gc.$$scope={dirty:g,ctx:o}),Kt.$set(gc);const _c={};g&2&&(_c.$$scope={dirty:g,ctx:o}),eo.$set(_c);const bc={};g&2&&(bc.$$scope={dirty:g,ctx:o}),to.$set(bc);const fr={};g&2&&(fr.$$scope={dirty:g,ctx:o}),no.$set(fr);const kc={};g&2&&(kc.$$scope={dirty:g,ctx:o}),so.$set(kc);const vc={};g&2&&(vc.$$scope={dirty:g,ctx:o}),ro.$set(vc);const Bc={};g&2&&(Bc.$$scope={dirty:g,ctx:o}),io.$set(Bc);const gr={};g&2&&(gr.$$scope={dirty:g,ctx:o}),co.$set(gr);const yc={};g&2&&(yc.$$scope={dirty:g,ctx:o}),po.$set(yc);const Tc={};g&2&&(Tc.$$scope={dirty:g,ctx:o}),ho.$set(Tc);const wc={};g&2&&(wc.$$scope={dirty:g,ctx:o}),uo.$set(wc);const $c={};g&2&&($c.$$scope={dirty:g,ctx:o}),fo.$set($c);const xc={};g&2&&(xc.$$scope={dirty:g,ctx:o}),go.$set(xc);const R={};g&2&&(R.$$scope={dirty:g,ctx:o}),bo.$set(R);const _r={};g&2&&(_r.$$scope={dirty:g,ctx:o}),ko.$set(_r);const Fc={};g&2&&(Fc.$$scope={dirty:g,ctx:o}),Bo.$set(Fc);const me={};g&2&&(me.$$scope={dirty:g,ctx:o}),yo.$set(me);const zc={};g&2&&(zc.$$scope={dirty:g,ctx:o}),wo.$set(zc);const qc={};g&2&&(qc.$$scope={dirty:g,ctx:o}),$o.$set(qc);const Mc={};g&2&&(Mc.$$scope={dirty:g,ctx:o}),xo.$set(Mc);const Ec={};g&2&&(Ec.$$scope={dirty:g,ctx:o}),zo.$set(Ec);const jc={};g&2&&(jc.$$scope={dirty:g,ctx:o}),qo.$set(jc);const Pc={};g&2&&(Pc.$$scope={dirty:g,ctx:o}),Eo.$set(Pc);const br={};g&2&&(br.$$scope={dirty:g,ctx:o}),jo.$set(br);const Cc={};g&2&&(Cc.$$scope={dirty:g,ctx:o}),Co.$set(Cc);const Yr={};g&2&&(Yr.$$scope={dirty:g,ctx:o}),Ao.$set(Yr);const Ac={};g&2&&(Ac.$$scope={dirty:g,ctx:o}),Io.$set(Ac);const Lc={};g&2&&(Lc.$$scope={dirty:g,ctx:o}),Oo.$set(Lc);const Dt={};g&2&&(Dt.$$scope={dirty:g,ctx:o}),So.$set(Dt);const Ic={};g&2&&(Ic.$$scope={dirty:g,ctx:o}),Do.$set(Ic);const Oc={};g&2&&(Oc.$$scope={dirty:g,ctx:o}),Uo.$set(Oc);const kr={};g&2&&(kr.$$scope={dirty:g,ctx:o}),Ro.$set(kr);const Nc={};g&2&&(Nc.$$scope={dirty:g,ctx:o}),Qo.$set(Nc);const Sc={};g&2&&(Sc.$$scope={dirty:g,ctx:o}),Ho.$set(Sc);const Dc={};g&2&&(Dc.$$scope={dirty:g,ctx:o}),Jo.$set(Dc);const Ne={};g&2&&(Ne.$$scope={dirty:g,ctx:o}),Ko.$set(Ne)},i(o){Ap||(T(l.$$.fragment,o),T($n.$$.fragment,o),T(jn.$$.fragment,o),T(Pn.$$.fragment,o),T(Gt.$$.fragment,o),T(An.$$.fragment,o),T(Ln.$$.fragment,o),T(Sn.$$.fragment,o),T(Wn.$$.fragment,o),T(Rn.$$.fragment,o),T(Gn.$$.fragment,o),T(Qn.$$.fragment,o),T(Hn.$$.fragment,o),T(Jn.$$.fragment,o),T(Xn.$$.fragment,o),T(Kt.$$.fragment,o),T(Yn.$$.fragment,o),T(es.$$.fragment,o),T(ts.$$.fragment,o),T(ns.$$.fragment,o),T(ss.$$.fragment,o),T(ds.$$.fragment,o),T(eo.$$.fragment,o),T(to.$$.fragment,o),T(cs.$$.fragment,o),T(ps.$$.fragment,o),T(hs.$$.fragment,o),T(no.$$.fragment,o),T(so.$$.fragment,o),T(ms.$$.fragment,o),T(us.$$.fragment,o),T(gs.$$.fragment,o),T(ro.$$.fragment,o),T(io.$$.fragment,o),T(_s.$$.fragment,o),T(bs.$$.fragment,o),T(vs.$$.fragment,o),T(co.$$.fragment,o),T(po.$$.fragment,o),T(ho.$$.fragment,o),T(Bs.$$.fragment,o),T(ys.$$.fragment,o),T($s.$$.fragment,o),T(uo.$$.fragment,o),T(fo.$$.fragment,o),T(go.$$.fragment,o),T(xs.$$.fragment,o),T(Fs.$$.fragment,o),T(Ms.$$.fragment,o),T(bo.$$.fragment,o),T(ko.$$.fragment,o),T(Es.$$.fragment,o),T(js.$$.fragment,o),T(As.$$.fragment,o),T(Bo.$$.fragment,o),T(yo.$$.fragment,o),T(Ls.$$.fragment,o),T(Is.$$.fragment,o),T(Ss.$$.fragment,o),T(wo.$$.fragment,o),T($o.$$.fragment,o),T(xo.$$.fragment,o),T(Ds.$$.fragment,o),T(Ws.$$.fragment,o),T(Ks.$$.fragment,o),T(zo.$$.fragment,o),T(qo.$$.fragment,o),T(Xs.$$.fragment,o),T(Ys.$$.fragment,o),T(ra.$$.fragment,o),T(Eo.$$.fragment,o),T(jo.$$.fragment,o),T(ia.$$.fragment,o),T(la.$$.fragment,o),T(ga.$$.fragment,o),T(Co.$$.fragment,o),T(Ao.$$.fragment,o),T(_a.$$.fragment,o),T(ba.$$.fragment,o),T(Fa.$$.fragment,o),T(Io.$$.fragment,o),T(Oo.$$.fragment,o),T(za.$$.fragment,o),T(qa.$$.fragment,o),T(Ia.$$.fragment,o),T(So.$$.fragment,o),T(Do.$$.fragment,o),T(Oa.$$.fragment,o),T(Na.$$.fragment,o),T(Ha.$$.fragment,o),T(Uo.$$.fragment,o),T(Ro.$$.fragment,o),T(Va.$$.fragment,o),T(Ja.$$.fragment,o),T(nr.$$.fragment,o),T(Qo.$$.fragment,o),T(Ho.$$.fragment,o),T(sr.$$.fragment,o),T(ar.$$.fragment,o),T(mr.$$.fragment,o),T(Jo.$$.fragment,o),T(Ko.$$.fragment,o),Ap=!0)},o(o){w(l.$$.fragment,o),w($n.$$.fragment,o),w(jn.$$.fragment,o),w(Pn.$$.fragment,o),w(Gt.$$.fragment,o),w(An.$$.fragment,o),w(Ln.$$.fragment,o),w(Sn.$$.fragment,o),w(Wn.$$.fragment,o),w(Rn.$$.fragment,o),w(Gn.$$.fragment,o),w(Qn.$$.fragment,o),w(Hn.$$.fragment,o),w(Jn.$$.fragment,o),w(Xn.$$.fragment,o),w(Kt.$$.fragment,o),w(Yn.$$.fragment,o),w(es.$$.fragment,o),w(ts.$$.fragment,o),w(ns.$$.fragment,o),w(ss.$$.fragment,o),w(ds.$$.fragment,o),w(eo.$$.fragment,o),w(to.$$.fragment,o),w(cs.$$.fragment,o),w(ps.$$.fragment,o),w(hs.$$.fragment,o),w(no.$$.fragment,o),w(so.$$.fragment,o),w(ms.$$.fragment,o),w(us.$$.fragment,o),w(gs.$$.fragment,o),w(ro.$$.fragment,o),w(io.$$.fragment,o),w(_s.$$.fragment,o),w(bs.$$.fragment,o),w(vs.$$.fragment,o),w(co.$$.fragment,o),w(po.$$.fragment,o),w(ho.$$.fragment,o),w(Bs.$$.fragment,o),w(ys.$$.fragment,o),w($s.$$.fragment,o),w(uo.$$.fragment,o),w(fo.$$.fragment,o),w(go.$$.fragment,o),w(xs.$$.fragment,o),w(Fs.$$.fragment,o),w(Ms.$$.fragment,o),w(bo.$$.fragment,o),w(ko.$$.fragment,o),w(Es.$$.fragment,o),w(js.$$.fragment,o),w(As.$$.fragment,o),w(Bo.$$.fragment,o),w(yo.$$.fragment,o),w(Ls.$$.fragment,o),w(Is.$$.fragment,o),w(Ss.$$.fragment,o),w(wo.$$.fragment,o),w($o.$$.fragment,o),w(xo.$$.fragment,o),w(Ds.$$.fragment,o),w(Ws.$$.fragment,o),w(Ks.$$.fragment,o),w(zo.$$.fragment,o),w(qo.$$.fragment,o),w(Xs.$$.fragment,o),w(Ys.$$.fragment,o),w(ra.$$.fragment,o),w(Eo.$$.fragment,o),w(jo.$$.fragment,o),w(ia.$$.fragment,o),w(la.$$.fragment,o),w(ga.$$.fragment,o),w(Co.$$.fragment,o),w(Ao.$$.fragment,o),w(_a.$$.fragment,o),w(ba.$$.fragment,o),w(Fa.$$.fragment,o),w(Io.$$.fragment,o),w(Oo.$$.fragment,o),w(za.$$.fragment,o),w(qa.$$.fragment,o),w(Ia.$$.fragment,o),w(So.$$.fragment,o),w(Do.$$.fragment,o),w(Oa.$$.fragment,o),w(Na.$$.fragment,o),w(Ha.$$.fragment,o),w(Uo.$$.fragment,o),w(Ro.$$.fragment,o),w(Va.$$.fragment,o),w(Ja.$$.fragment,o),w(nr.$$.fragment,o),w(Qo.$$.fragment,o),w(Ho.$$.fragment,o),w(sr.$$.fragment,o),w(ar.$$.fragment,o),w(mr.$$.fragment,o),w(Jo.$$.fragment,o),w(Ko.$$.fragment,o),Ap=!1},d(o){t(d),o&&t(b),o&&t(u),$(l),o&&t(Wc),o&&t(Ve),$($n),o&&t(Uc),o&&t(Ut),o&&t(Rc),o&&t(vr),o&&t(Gc),o&&t(Br),o&&t(Qc),o&&t(yr),o&&t(Hc),o&&t(W),o&&t(Vc),o&&t(Se),o&&t(Jc),o&&t(Je),$(jn),o&&t(Kc),o&&t(le),$(Pn),$(Gt),o&&t(Xc),o&&t(Ye),$(An),o&&t(Yc),o&&t(P),$(Ln),$(Sn),$(Wn),$(Rn),$(Gn),o&&t(Zc),o&&t(et),$(Qn),o&&t(ep),o&&t(Q),$(Hn),$(Jn),$(Xn),$(Kt),$(Yn),o&&t(tp),o&&t(tt),$(es),o&&t(op),o&&t(ot),$(ts),o&&t(np),o&&t(nt),$(ns),o&&t(sp),o&&t(H),$(ss),$(ds),$(eo),$(to),o&&t(ap),o&&t(at),$(cs),o&&t(rp),o&&t(rt),$(ps),$(hs),$(no),$(so),o&&t(ip),o&&t(lt),$(ms),o&&t(lp),o&&t(qe),$(us),$(gs),$(ro),$(io),o&&t(dp),o&&t(pt),$(_s),o&&t(cp),o&&t(Me),$(bs),$(vs),$(co),$(po),$(ho),o&&t(pp),o&&t(ut),$(Bs),o&&t(hp),o&&t(de),$(ys),$($s),$(uo),$(fo),$(go),o&&t(mp),o&&t(gt),$(xs),o&&t(up),o&&t(ce),$(Fs),$(Ms),$(bo),$(ko),o&&t(fp),o&&t(bt),$(Es),o&&t(gp),o&&t(pe),$(js),$(As),$(Bo),$(yo),o&&t(_p),o&&t(vt),$(Ls),o&&t(bp),o&&t(he),$(Is),$(Ss),$(wo),$($o),$(xo),o&&t(kp),o&&t(Tt),$(Ds),o&&t(vp),o&&t(C),$(Ws),$(Ks),$(zo),$(qo),o&&t(Bp),o&&t($t),$(Xs),o&&t(yp),o&&t(A),$(Ys),$(ra),$(Eo),$(jo),o&&t(Tp),o&&t(zt),$(ia),o&&t(wp),o&&t(L),$(la),$(ga),$(Co),$(Ao),o&&t($p),o&&t(Mt),$(_a),o&&t(xp),o&&t(I),$(ba),$(Fa),$(Io),$(Oo),o&&t(Fp),o&&t(jt),$(za),o&&t(zp),o&&t(O),$(qa),$(Ia),$(So),$(Do),o&&t(qp),o&&t(Ct),$(Oa),o&&t(Mp),o&&t(N),$(Na),$(Ha),$(Uo),$(Ro),o&&t(Ep),o&&t(Lt),$(Va),o&&t(jp),o&&t(S),$(Ja),$(nr),$(Qo),$(Ho),o&&t(Pp),o&&t(Ot),$(sr),o&&t(Cp),o&&t(D),$(ar),$(mr),$(Jo),$(Ko)}}}const Nx={local:"bigbird",sections:[{local:"overview",title:"Overview"},{local:"transformers.BigBirdConfig",title:"BigBirdConfig"},{local:"transformers.BigBirdTokenizer",title:"BigBirdTokenizer"},{local:"transformers.BigBirdTokenizerFast",title:"BigBirdTokenizerFast"},{local:"transformers.models.big_bird.modeling_big_bird.BigBirdForPreTrainingOutput",title:"BigBird specific outputs"},{local:"transformers.BigBirdModel",title:"BigBirdModel"},{local:"transformers.BigBirdForPreTraining",title:"BigBirdForPreTraining"},{local:"transformers.BigBirdForCausalLM",title:"BigBirdForCausalLM"},{local:"transformers.BigBirdForMaskedLM",title:"BigBirdForMaskedLM"},{local:"transformers.BigBirdForSequenceClassification",title:"BigBirdForSequenceClassification"},{local:"transformers.BigBirdForMultipleChoice",title:"BigBirdForMultipleChoice"},{local:"transformers.BigBirdForTokenClassification",title:"BigBirdForTokenClassification"},{local:"transformers.BigBirdForQuestionAnswering",title:"BigBirdForQuestionAnswering"},{local:"transformers.FlaxBigBirdModel",title:"FlaxBigBirdModel"},{local:"transformers.FlaxBigBirdForPreTraining",title:"FlaxBigBirdForPreTraining"},{local:"transformers.FlaxBigBirdForCausalLM",title:"FlaxBigBirdForCausalLM"},{local:"transformers.FlaxBigBirdForMaskedLM",title:"FlaxBigBirdForMaskedLM"},{local:"transformers.FlaxBigBirdForSequenceClassification",title:"FlaxBigBirdForSequenceClassification"},{local:"transformers.FlaxBigBirdForMultipleChoice",title:"FlaxBigBirdForMultipleChoice"},{local:"transformers.FlaxBigBirdForTokenClassification",title:"FlaxBigBirdForTokenClassification"},{local:"transformers.FlaxBigBirdForQuestionAnswering",title:"FlaxBigBirdForQuestionAnswering"}],title:"BigBird"};function Sx(x){return ex(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Hx extends K${constructor(d){super();X$(this,d,Sx,Ox,Y$,{})}}export{Hx as default,Nx as metadata};
