import{S as Q$,i as H$,s as V$,e as n,k as p,w as v,t as a,M as J$,c as s,d as t,m as h,a as r,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 K$,L as E}from"../../chunks/vendor-hf-doc-builder.js";import{T as Q}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 X$(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=a("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=r(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 Y$(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=a("sequence pair mask has the following format:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=r(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 Z$(x){let d,b,u,f,_;return{c(){d=n("p"),b=a("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=a("Module"),_=a(`
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=r(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=r(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 e0(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=a("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=r(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 t0(x){let d,b,u,f,_;return{c(){d=n("p"),b=a("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=a("Module"),_=a(`
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=r(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=r(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 o0(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=a("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=r(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 n0(x){let d,b,u,f,_;return{c(){d=n("p"),b=a("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=a("Module"),_=a(`
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=r(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=r(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 s0(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=a("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=r(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 r0(x){let d,b,u,f,_;return{c(){d=n("p"),b=a("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=a("Module"),_=a(`
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=r(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=r(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 a0(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=a("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=r(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 i0(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 l0(x){let d,b,u,f,_;return{c(){d=n("p"),b=a("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=a("Module"),_=a(`
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=r(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=r(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 d0(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=a("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=r(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 c0(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 p0(x){let d,b,u,f,_;return{c(){d=n("p"),b=a("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=a("Module"),_=a(`
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=r(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=r(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 h0(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=a("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=r(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 m0(x){let d,b,u,f,_;return{c(){d=n("p"),b=a("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=a("Module"),_=a(`
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=r(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=r(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 u0(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=a("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=r(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 f0(x){let d,b,u,f,_;return{c(){d=n("p"),b=a("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=a("Module"),_=a(`
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=r(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=r(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 g0(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("google/bigbird-roberta-base")
model = BigBirdForQuestionAnswering.from_pretrained("google/bigbird-roberta-base")
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_token_ids = inputs.input_ids[0, answer_start_index : answer_end_index + 1]
predict_answer_token = tokenizer.decode(predict_answer_token_ids)`,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;google/bigbird-roberta-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BigBirdForQuestionAnswering.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 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_token_ids = 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>predict_answer_token = tokenizer.decode(predict_answer_token_ids)`}}),{c(){d=n("p"),b=a("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=r(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 _0(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`,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`}}),{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 b0(x){let d,b,u,f,_;return{c(){d=n("p"),b=a("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=a("Module"),_=a(`
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=r(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=r(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 k0(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=a("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=r(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 v0(x){let d,b,u,f,_;return{c(){d=n("p"),b=a("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=a("Module"),_=a(`
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=r(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=r(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 B0(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=a("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=r(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 y0(x){let d,b,u,f,_;return{c(){d=n("p"),b=a("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=a("Module"),_=a(`
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=r(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=r(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 T0(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=a("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=r(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 w0(x){let d,b,u,f,_;return{c(){d=n("p"),b=a("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=a("Module"),_=a(`
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=r(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=r(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 $0(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=a("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=r(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 x0(x){let d,b,u,f,_;return{c(){d=n("p"),b=a("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=a("Module"),_=a(`
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=r(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=r(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 F0(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=a("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=r(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 z0(x){let d,b,u,f,_;return{c(){d=n("p"),b=a("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=a("Module"),_=a(`
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=r(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=r(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 q0(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=a("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=r(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 M0(x){let d,b,u,f,_;return{c(){d=n("p"),b=a("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=a("Module"),_=a(`
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=r(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=r(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 E0(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=a("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=r(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 j0(x){let d,b,u,f,_;return{c(){d=n("p"),b=a("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n("code"),f=a("Module"),_=a(`
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=r(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=r(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 P0(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=a("Example:"),u=p(),v(f.$$.fragment)},l(l){d=s(l,"P",{});var m=r(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 C0(x){let d,b,u,f,_,l,m,F,sm,ip,Je,Rt,Ii,qn,rm,Ni,am,lp,Gt,im,Mn,lm,dm,dp,$a,cm,cp,xa,Si,pm,pp,Fa,hm,hp,W,En,mm,jn,um,fm,gm,de,_m,Di,bm,km,Wi,vm,Bm,Ui,ym,Tm,Ri,wm,$m,xm,Gi,Fm,zm,Qi,qm,Mm,Pn,Em,Hi,jm,Pm,Cm,za,Am,Vi,Lm,Om,Ji,Im,mp,De,Nm,Cn,Sm,Dm,An,Wm,Um,up,Ke,Qt,Ki,Ln,Rm,Xi,Gm,fp,G,Yi,qa,Qm,Hm,Zi,Ma,Vm,Jm,el,Ea,Km,Xm,tl,ja,Ym,Zm,ol,Pa,eu,tu,nl,Ca,ou,gp,Xe,Ht,sl,On,nu,rl,su,_p,ce,In,ru,Ye,au,Aa,iu,lu,Nn,du,cu,pu,Ze,hu,La,mu,uu,Oa,fu,gu,_u,Vt,bp,et,Jt,al,Sn,bu,il,ku,kp,P,Dn,vu,Wn,Bu,Un,yu,Tu,wu,Rn,$u,Ia,xu,Fu,zu,We,Gn,qu,ll,Mu,Eu,Qn,Na,ju,dl,Pu,Cu,Sa,Au,cl,Lu,Ou,Kt,Hn,Iu,Vn,Nu,pl,Su,Du,Wu,Xt,Jn,Uu,tt,Ru,hl,Gu,Qu,ml,Hu,Vu,Ju,Da,Kn,vp,ot,Yt,ul,Xn,Ku,fl,Xu,Bp,H,Yn,Yu,Me,Zu,gl,ef,tf,Zn,of,nf,Wa,sf,rf,af,Ue,es,lf,_l,df,cf,ts,Ua,pf,bl,hf,mf,Ra,uf,kl,ff,gf,ge,os,_f,vl,bf,kf,Zt,vf,Bl,Bf,yf,eo,ns,Tf,ss,wf,yl,$f,xf,yp,nt,to,Tl,rs,Ff,wl,zf,Tp,st,as,qf,is,Mf,Ga,Ef,jf,wp,rt,oo,$l,ls,Pf,xl,Cf,$p,V,ds,Af,cs,Lf,ps,Of,If,Nf,hs,Sf,ms,Df,Wf,Uf,U,Rf,Fl,Gf,Qf,zl,Hf,Vf,ql,Jf,Kf,Ml,Xf,Yf,El,Zf,eg,jl,tg,og,ng,_e,us,sg,at,rg,Qa,ag,ig,Pl,lg,dg,cg,no,pg,so,xp,it,ro,Cl,fs,hg,Al,mg,Fp,lt,gs,ug,be,_s,fg,dt,gg,Ha,_g,bg,Ll,kg,vg,Bg,ao,yg,io,zp,ct,lo,Ol,bs,Tg,Il,wg,qp,Ee,ks,$g,pt,xg,Nl,Fg,zg,vs,qg,Mg,Eg,ke,Bs,jg,ht,Pg,Va,Cg,Ag,Sl,Lg,Og,Ig,co,Ng,po,Mp,mt,ho,Dl,ys,Sg,Wl,Dg,Ep,je,Ts,Wg,ut,Ug,Ul,Rg,Gg,ws,Qg,Hg,Vg,K,$s,Jg,ft,Kg,Ja,Xg,Yg,Rl,Zg,e_,t_,mo,o_,uo,n_,fo,jp,gt,go,Gl,xs,s_,Ql,r_,Pp,pe,Fs,a_,Hl,i_,l_,zs,d_,qs,c_,p_,h_,X,Ms,m_,_t,u_,Ka,f_,g_,Vl,__,b_,k_,_o,v_,bo,B_,ko,Cp,bt,vo,Jl,Es,y_,Kl,T_,Ap,he,js,w_,Xl,$_,x_,Ps,F_,Cs,z_,q_,M_,ve,As,E_,kt,j_,Xa,P_,C_,Yl,A_,L_,O_,Bo,I_,yo,Lp,vt,To,Zl,Ls,N_,ed,S_,Op,me,Os,D_,td,W_,U_,Is,R_,Ns,G_,Q_,H_,Be,Ss,V_,Bt,J_,Ya,K_,X_,od,Y_,Z_,eb,wo,tb,$o,Ip,yt,xo,nd,Ds,ob,sd,nb,Np,ue,Ws,sb,Tt,rb,rd,ab,ib,ad,lb,db,cb,Us,pb,Rs,hb,mb,ub,Y,Gs,fb,wt,gb,Za,_b,bb,id,kb,vb,Bb,Fo,yb,zo,Tb,qo,Sp,$t,Mo,ld,Qs,wb,dd,$b,Dp,C,Hs,xb,cd,Fb,zb,Vs,qb,ei,Mb,Eb,jb,Js,Pb,Ks,Cb,Ab,Lb,pd,Ob,Ib,Pe,hd,Xs,Nb,Sb,md,Ys,Db,Wb,ud,Zs,Ub,Rb,fd,er,Gb,Qb,ye,tr,Hb,xt,Vb,gd,Jb,Kb,_d,Xb,Yb,Zb,Eo,ek,jo,Wp,Ft,Po,bd,or,tk,kd,ok,Up,A,nr,nk,zt,sk,vd,rk,ak,Bd,ik,lk,dk,sr,ck,ti,pk,hk,mk,rr,uk,ar,fk,gk,_k,yd,bk,kk,Ce,Td,ir,vk,Bk,wd,lr,yk,Tk,$d,dr,wk,$k,xd,cr,xk,Fk,Te,pr,zk,qt,qk,Fd,Mk,Ek,zd,jk,Pk,Ck,Co,Ak,Ao,Rp,Mt,Lo,qd,hr,Lk,Md,Ok,Gp,L,mr,Ik,Ed,Nk,Sk,ur,Dk,oi,Wk,Uk,Rk,fr,Gk,gr,Qk,Hk,Vk,jd,Jk,Kk,Ae,Pd,_r,Xk,Yk,Cd,br,Zk,ev,Ad,kr,tv,ov,Ld,vr,nv,sv,we,Br,rv,Et,av,Od,iv,lv,Id,dv,cv,pv,Oo,hv,Io,Qp,jt,No,Nd,yr,mv,Sd,uv,Hp,O,Tr,fv,wr,gv,Dd,_v,bv,kv,$r,vv,ni,Bv,yv,Tv,xr,wv,Fr,$v,xv,Fv,Wd,zv,qv,Le,Ud,zr,Mv,Ev,Rd,qr,jv,Pv,Gd,Mr,Cv,Av,Qd,Er,Lv,Ov,$e,jr,Iv,Pt,Nv,Hd,Sv,Dv,Vd,Wv,Uv,Rv,So,Gv,Do,Vp,Ct,Wo,Jd,Pr,Qv,Kd,Hv,Jp,I,Cr,Vv,Xd,Jv,Kv,Ar,Xv,si,Yv,Zv,eB,Lr,tB,Or,oB,nB,sB,Yd,rB,aB,Oe,Zd,Ir,iB,lB,ec,Nr,dB,cB,tc,Sr,pB,hB,oc,Dr,mB,uB,xe,Wr,fB,At,gB,nc,_B,bB,sc,kB,vB,BB,Uo,yB,Ro,Kp,Lt,Go,rc,Ur,TB,ac,wB,Xp,N,Rr,$B,ic,xB,FB,Gr,zB,ri,qB,MB,EB,Qr,jB,Hr,PB,CB,AB,lc,LB,OB,Ie,dc,Vr,IB,NB,cc,Jr,SB,DB,pc,Kr,WB,UB,hc,Xr,RB,GB,Fe,Yr,QB,Ot,HB,mc,VB,JB,uc,KB,XB,YB,Qo,ZB,Ho,Yp,It,Vo,fc,Zr,ey,gc,ty,Zp,S,ea,oy,_c,ny,sy,ta,ry,ai,ay,iy,ly,oa,dy,na,cy,py,hy,bc,my,uy,Ne,kc,sa,fy,gy,vc,ra,_y,by,Bc,aa,ky,vy,yc,ia,By,yy,ze,la,Ty,Nt,wy,Tc,$y,xy,wc,Fy,zy,qy,Jo,My,Ko,eh,St,Xo,$c,da,Ey,xc,jy,th,D,ca,Py,Dt,Cy,Fc,Ay,Ly,zc,Oy,Iy,Ny,pa,Sy,ii,Dy,Wy,Uy,ha,Ry,ma,Gy,Qy,Hy,qc,Vy,Jy,Se,Mc,ua,Ky,Xy,Ec,fa,Yy,Zy,jc,ga,e1,t1,Pc,_a,o1,n1,qe,ba,s1,Wt,r1,li,a1,i1,Cc,l1,d1,c1,Yo,p1,Zo,oh;return l=new q({}),qn=new q({}),Ln=new q({}),On=new q({}),In=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/v4.29.0/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/v4.29.0/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/v4.29.0/src/transformers/models/big_bird/configuration_big_bird.py#L34"}}),Vt=new M({props:{anchor:"transformers.BigBirdConfig.example",$$slots:{default:[X$]},$$scope:{ctx:x}}}),Sn=new q({}),Dn=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/v4.29.0/src/transformers/models/big_bird/tokenization_big_bird.py#L52"}}),Gn=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/v4.29.0/src/transformers/models/big_bird/tokenization_big_bird.py#L268",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>
`}}),Hn=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/v4.29.0/src/transformers/models/big_bird/tokenization_big_bird.py#L293",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>
`}}),Jn=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/v4.29.0/src/transformers/models/big_bird/tokenization_big_bird.py#L320",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>
`}}),Kn=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/v4.29.0/src/transformers/models/big_bird/tokenization_big_bird.py#L251"}}),Xn=new q({}),Yn=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/v4.29.0/src/transformers/models/big_bird/tokenization_big_bird_fast.py#L68"}}),es=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/v4.29.0/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>
`}}),os=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/v4.29.0/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>
`}}),Zt=new M({props:{anchor:"transformers.BigBirdTokenizerFast.create_token_type_ids_from_sequences.example",$$slots:{default:[Y$]},$$scope:{ctx:x}}}),ns=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/v4.29.0/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>
`}}),rs=new q({}),as=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/v4.29.0/src/transformers/models/big_bird/modeling_big_bird.py#L1853"}}),ls=new q({}),ds=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/v4.29.0/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/v4.29.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_big_bird.py#L1925"}}),us=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/v4.29.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__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/v4.29.0/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/v4.29.0/src/transformers/models/big_bird/modeling_big_bird.py#L1982",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_outputs.BaseModelOutputWithPoolingAndCrossAttentions"
>transformers.modeling_outputs.BaseModelOutputWithPoolingAndCrossAttentions</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.29.0/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/v4.29.0/en/main_classes/output#transformers.modeling_outputs.BaseModelOutputWithPoolingAndCrossAttentions"
>transformers.modeling_outputs.BaseModelOutputWithPoolingAndCrossAttentions</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),no=new Q({props:{$$slots:{default:[Z$]},$$scope:{ctx:x}}}),so=new M({props:{anchor:"transformers.BigBirdModel.forward.example",$$slots:{default:[e0]},$$scope:{ctx:x}}}),fs=new q({}),gs=new z({props:{name:"class transformers.BigBirdForPreTraining",anchor:"transformers.BigBirdForPreTraining",parameters:[{name:"config",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_big_bird.py#L2263"}}),_s=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/v4.29.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__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/v4.29.0/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/v4.29.0/src/transformers/models/big_bird/modeling_big_bird.py#L2281",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/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/v4.29.0/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/v4.29.0/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>
`}}),ao=new Q({props:{$$slots:{default:[t0]},$$scope:{ctx:x}}}),io=new M({props:{anchor:"transformers.BigBirdForPreTraining.forward.example",$$slots:{default:[o0]},$$scope:{ctx:x}}}),bs=new q({}),ks=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/v4.29.0/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/v4.29.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_big_bird.py#L2513"}}),Bs=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/v4.29.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__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/v4.29.0/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/v4.29.0/src/transformers/models/big_bird/modeling_big_bird.py#L2539",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_outputs.CausalLMOutputWithCrossAttentions"
>transformers.modeling_outputs.CausalLMOutputWithCrossAttentions</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.29.0/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/v4.29.0/en/main_classes/output#transformers.modeling_outputs.CausalLMOutputWithCrossAttentions"
>transformers.modeling_outputs.CausalLMOutputWithCrossAttentions</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),co=new Q({props:{$$slots:{default:[n0]},$$scope:{ctx:x}}}),po=new M({props:{anchor:"transformers.BigBirdForCausalLM.forward.example",$$slots:{default:[s0]},$$scope:{ctx:x}}}),ys=new q({}),Ts=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/v4.29.0/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/v4.29.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_big_bird.py#L2369"}}),$s=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/v4.29.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__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/v4.29.0/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/v4.29.0/src/transformers/models/big_bird/modeling_big_bird.py#L2393",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_outputs.MaskedLMOutput"
>transformers.modeling_outputs.MaskedLMOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.29.0/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/v4.29.0/en/main_classes/output#transformers.modeling_outputs.MaskedLMOutput"
>transformers.modeling_outputs.MaskedLMOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),mo=new Q({props:{$$slots:{default:[r0]},$$scope:{ctx:x}}}),uo=new M({props:{anchor:"transformers.BigBirdForMaskedLM.forward.example",$$slots:{default:[a0]},$$scope:{ctx:x}}}),fo=new M({props:{anchor:"transformers.BigBirdForMaskedLM.forward.example-2",$$slots:{default:[i0]},$$scope:{ctx:x}}}),xs=new q({}),Fs=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/v4.29.0/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/v4.29.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_big_bird.py#L2680"}}),Ms=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/v4.29.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__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/v4.29.0/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/v4.29.0/src/transformers/models/big_bird/modeling_big_bird.py#L2691",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_outputs.SequenceClassifierOutput"
>transformers.modeling_outputs.SequenceClassifierOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.29.0/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/v4.29.0/en/main_classes/output#transformers.modeling_outputs.SequenceClassifierOutput"
>transformers.modeling_outputs.SequenceClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),_o=new Q({props:{$$slots:{default:[l0]},$$scope:{ctx:x}}}),bo=new M({props:{anchor:"transformers.BigBirdForSequenceClassification.forward.example",$$slots:{default:[d0]},$$scope:{ctx:x}}}),ko=new M({props:{anchor:"transformers.BigBirdForSequenceClassification.forward.example-2",$$slots:{default:[c0]},$$scope:{ctx:x}}}),Es=new q({}),js=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/v4.29.0/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/v4.29.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_big_bird.py#L2808"}}),As=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/v4.29.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__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/v4.29.0/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/v4.29.0/src/transformers/models/big_bird/modeling_big_bird.py#L2819",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_outputs.MultipleChoiceModelOutput"
>transformers.modeling_outputs.MultipleChoiceModelOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.29.0/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/v4.29.0/en/main_classes/output#transformers.modeling_outputs.MultipleChoiceModelOutput"
>transformers.modeling_outputs.MultipleChoiceModelOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Bo=new Q({props:{$$slots:{default:[p0]},$$scope:{ctx:x}}}),yo=new M({props:{anchor:"transformers.BigBirdForMultipleChoice.forward.example",$$slots:{default:[h0]},$$scope:{ctx:x}}}),Ls=new q({}),Os=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/v4.29.0/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/v4.29.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_big_bird.py#L2901"}}),Ss=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/v4.29.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__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/v4.29.0/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/v4.29.0/src/transformers/models/big_bird/modeling_big_bird.py#L2916",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_outputs.TokenClassifierOutput"
>transformers.modeling_outputs.TokenClassifierOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.29.0/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/v4.29.0/en/main_classes/output#transformers.modeling_outputs.TokenClassifierOutput"
>transformers.modeling_outputs.TokenClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),wo=new Q({props:{$$slots:{default:[m0]},$$scope:{ctx:x}}}),$o=new M({props:{anchor:"transformers.BigBirdForTokenClassification.forward.example",$$slots:{default:[u0]},$$scope:{ctx:x}}}),Ds=new q({}),Ws=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/v4.29.0/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/v4.29.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_big_bird.py#L3000"}}),Gs=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/v4.29.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__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/v4.29.0/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/v4.29.0/src/transformers/models/big_bird/modeling_big_bird.py#L3014",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/v4.29.0/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>
`}}),Fo=new Q({props:{$$slots:{default:[f0]},$$scope:{ctx:x}}}),zo=new M({props:{anchor:"transformers.BigBirdForQuestionAnswering.forward.example",$$slots:{default:[g0]},$$scope:{ctx:x}}}),qo=new M({props:{anchor:"transformers.BigBirdForQuestionAnswering.forward.example-2",$$slots:{default:[_0]},$$scope:{ctx:x}}}),Qs=new q({}),Hs=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/v4.29.0/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/v4.29.0/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/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_flax_big_bird.py#L1890"}}),tr=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:": typing.Optional[PRNGKey] = None"},{name:"indices_rng",val:": typing.Optional[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/v4.29.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__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/v4.29.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_flax_big_bird.py#L1717",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling"
>transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.29.0/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/v4.29.0/en/main_classes/output#transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling"
>transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Eo=new Q({props:{$$slots:{default:[b0]},$$scope:{ctx:x}}}),jo=new M({props:{anchor:"transformers.FlaxBigBirdModel.__call__.example",$$slots:{default:[k0]},$$scope:{ctx:x}}}),or=new q({}),nr=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/v4.29.0/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/v4.29.0/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/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_flax_big_bird.py#L1967"}}),pr=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:": typing.Optional[PRNGKey] = None"},{name:"indices_rng",val:": typing.Optional[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/v4.29.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__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/v4.29.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_flax_big_bird.py#L1717",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/v4.29.0/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>
`}}),Co=new Q({props:{$$slots:{default:[v0]},$$scope:{ctx:x}}}),Ao=new M({props:{anchor:"transformers.FlaxBigBirdForPreTraining.__call__.example",$$slots:{default:[B0]},$$scope:{ctx:x}}}),hr=new q({}),mr=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/v4.29.0/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/v4.29.0/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/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_flax_big_bird.py#L2599"}}),Br=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:": typing.Optional[PRNGKey] = None"},{name:"indices_rng",val:": typing.Optional[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/v4.29.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__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/v4.29.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_flax_big_bird.py#L1717",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_flax_outputs.FlaxCausalLMOutputWithCrossAttentions"
>transformers.modeling_flax_outputs.FlaxCausalLMOutputWithCrossAttentions</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.29.0/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/v4.29.0/en/main_classes/output#transformers.modeling_flax_outputs.FlaxCausalLMOutputWithCrossAttentions"
>transformers.modeling_flax_outputs.FlaxCausalLMOutputWithCrossAttentions</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Oo=new Q({props:{$$slots:{default:[y0]},$$scope:{ctx:x}}}),Io=new M({props:{anchor:"transformers.FlaxBigBirdForCausalLM.__call__.example",$$slots:{default:[T0]},$$scope:{ctx:x}}}),yr=new q({}),Tr=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/v4.29.0/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/v4.29.0/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/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_flax_big_bird.py#L2060"}}),jr=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:": typing.Optional[PRNGKey] = None"},{name:"indices_rng",val:": typing.Optional[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/v4.29.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__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/v4.29.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_flax_big_bird.py#L1717",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/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/v4.29.0/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/v4.29.0/en/main_classes/output#transformers.modeling_flax_outputs.FlaxMaskedLMOutput"
>transformers.modeling_flax_outputs.FlaxMaskedLMOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),So=new Q({props:{$$slots:{default:[w0]},$$scope:{ctx:x}}}),Do=new M({props:{anchor:"transformers.FlaxBigBirdForMaskedLM.__call__.example",$$slots:{default:[$0]},$$scope:{ctx:x}}}),Pr=new q({}),Cr=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/v4.29.0/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/v4.29.0/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/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_flax_big_bird.py#L2150"}}),Wr=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:": typing.Optional[PRNGKey] = None"},{name:"indices_rng",val:": typing.Optional[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/v4.29.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__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/v4.29.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_flax_big_bird.py#L1717",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_flax_outputs.FlaxSequenceClassifierOutput"
>transformers.modeling_flax_outputs.FlaxSequenceClassifierOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.29.0/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/v4.29.0/en/main_classes/output#transformers.modeling_flax_outputs.FlaxSequenceClassifierOutput"
>transformers.modeling_flax_outputs.FlaxSequenceClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Uo=new Q({props:{$$slots:{default:[x0]},$$scope:{ctx:x}}}),Ro=new M({props:{anchor:"transformers.FlaxBigBirdForSequenceClassification.__call__.example",$$slots:{default:[F0]},$$scope:{ctx:x}}}),Ur=new q({}),Rr=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/v4.29.0/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/v4.29.0/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/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_flax_big_bird.py#L2231"}}),Yr=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:": typing.Optional[PRNGKey] = None"},{name:"indices_rng",val:": typing.Optional[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/v4.29.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__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/v4.29.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_flax_big_bird.py#L1717",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_flax_outputs.FlaxMultipleChoiceModelOutput"
>transformers.modeling_flax_outputs.FlaxMultipleChoiceModelOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.29.0/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/v4.29.0/en/main_classes/output#transformers.modeling_flax_outputs.FlaxMultipleChoiceModelOutput"
>transformers.modeling_flax_outputs.FlaxMultipleChoiceModelOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Qo=new Q({props:{$$slots:{default:[z0]},$$scope:{ctx:x}}}),Ho=new M({props:{anchor:"transformers.FlaxBigBirdForMultipleChoice.__call__.example",$$slots:{default:[q0]},$$scope:{ctx:x}}}),Zr=new q({}),ea=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/v4.29.0/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/v4.29.0/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/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_flax_big_bird.py#L2329"}}),la=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:": typing.Optional[PRNGKey] = None"},{name:"indices_rng",val:": typing.Optional[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/v4.29.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__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/v4.29.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_flax_big_bird.py#L1717",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_flax_outputs.FlaxTokenClassifierOutput"
>transformers.modeling_flax_outputs.FlaxTokenClassifierOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.29.0/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/v4.29.0/en/main_classes/output#transformers.modeling_flax_outputs.FlaxTokenClassifierOutput"
>transformers.modeling_flax_outputs.FlaxTokenClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Jo=new Q({props:{$$slots:{default:[M0]},$$scope:{ctx:x}}}),Ko=new M({props:{anchor:"transformers.FlaxBigBirdForTokenClassification.__call__.example",$$slots:{default:[E0]},$$scope:{ctx:x}}}),da=new q({}),ca=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/v4.29.0/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/v4.29.0/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/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_flax_big_bird.py#L2432"}}),ba=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:": typing.Optional[PRNGKey] = None"},{name:"indices_rng",val:": typing.Optional[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/v4.29.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__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/v4.29.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/big_bird/modeling_flax_big_bird.py#L2435",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/v4.29.0/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>
`}}),Yo=new Q({props:{$$slots:{default:[j0]},$$scope:{ctx:x}}}),Zo=new M({props:{anchor:"transformers.FlaxBigBirdForQuestionAnswering.__call__.example",$$slots:{default:[P0]},$$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"),sm=a("BigBird"),ip=p(),Je=n("h2"),Rt=n("a"),Ii=n("span"),v(qn.$$.fragment),rm=p(),Ni=n("span"),am=a("Overview"),lp=p(),Gt=n("p"),im=a("The BigBird model was proposed in "),Mn=n("a"),lm=a("Big Bird: Transformers for Longer Sequences"),dm=a(` 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.`),dp=p(),$a=n("p"),cm=a("The abstract from the paper is the following:"),cp=p(),xa=n("p"),Si=n("em"),pm=a(`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.`),pp=p(),Fa=n("p"),hm=a("Tips:"),hp=p(),W=n("ul"),En=n("li"),mm=a("For an in-detail explanation on how BigBird\u2019s attention works, see "),jn=n("a"),um=a("this blog post"),fm=a("."),gm=p(),de=n("li"),_m=a("BigBird comes with 2 implementations: "),Di=n("strong"),bm=a("original_full"),km=a(" & "),Wi=n("strong"),vm=a("block_sparse"),Bm=a(`. For the sequence length < 1024, using
`),Ui=n("strong"),ym=a("original_full"),Tm=a(" is advised as there is no benefit in using "),Ri=n("strong"),wm=a("block_sparse"),$m=a(" attention."),xm=p(),Gi=n("li"),Fm=a("The code currently uses window size of 3 blocks and 2 global blocks."),zm=p(),Qi=n("li"),qm=a("Sequence length must be divisible by block size."),Mm=p(),Pn=n("li"),Em=a("Current implementation supports only "),Hi=n("strong"),jm=a("ITC"),Pm=a("."),Cm=p(),za=n("li"),Am=a("Current implementation doesn\u2019t support "),Vi=n("strong"),Lm=a("num_random_blocks = 0"),Om=p(),Ji=n("li"),Im=a(`BigBird is a model with absolute position embeddings so it\u2019s usually advised to pad the inputs on the right rather than
the left.`),mp=p(),De=n("p"),Nm=a("This model was contributed by "),Cn=n("a"),Sm=a("vasudevgupta"),Dm=a(`. The original code can be found
`),An=n("a"),Wm=a("here"),Um=a("."),up=p(),Ke=n("h2"),Qt=n("a"),Ki=n("span"),v(Ln.$$.fragment),Rm=p(),Xi=n("span"),Gm=a("Documentation resources"),fp=p(),G=n("ul"),Yi=n("li"),qa=n("a"),Qm=a("Text classification task guide"),Hm=p(),Zi=n("li"),Ma=n("a"),Vm=a("Token classification task guide"),Jm=p(),el=n("li"),Ea=n("a"),Km=a("Question answering task guide"),Xm=p(),tl=n("li"),ja=n("a"),Ym=a("Causal language modeling task guide"),Zm=p(),ol=n("li"),Pa=n("a"),eu=a("Masked language modeling task guide"),tu=p(),nl=n("li"),Ca=n("a"),ou=a("Multiple choice task guide"),gp=p(),Xe=n("h2"),Ht=n("a"),sl=n("span"),v(On.$$.fragment),nu=p(),rl=n("span"),su=a("BigBirdConfig"),_p=p(),ce=n("div"),v(In.$$.fragment),ru=p(),Ye=n("p"),au=a("This is the configuration class to store the configuration of a "),Aa=n("a"),iu=a("BigBirdModel"),lu=a(`. 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
`),Nn=n("a"),du=a("google/bigbird-roberta-base"),cu=a(" architecture."),pu=p(),Ze=n("p"),hu=a("Configuration objects inherit from "),La=n("a"),mu=a("PretrainedConfig"),uu=a(` and can be used to control the model outputs. Read the
documentation from `),Oa=n("a"),fu=a("PretrainedConfig"),gu=a(" for more information."),_u=p(),v(Vt.$$.fragment),bp=p(),et=n("h2"),Jt=n("a"),al=n("span"),v(Sn.$$.fragment),bu=p(),il=n("span"),ku=a("BigBirdTokenizer"),kp=p(),P=n("div"),v(Dn.$$.fragment),vu=p(),Wn=n("p"),Bu=a("Construct a BigBird tokenizer. Based on "),Un=n("a"),yu=a("SentencePiece"),Tu=a("."),wu=p(),Rn=n("p"),$u=a("This tokenizer inherits from "),Ia=n("a"),xu=a("PreTrainedTokenizer"),Fu=a(` which contains most of the main methods. Users should refer to
this superclass for more information regarding those methods.`),zu=p(),We=n("div"),v(Gn.$$.fragment),qu=p(),ll=n("p"),Mu=a(`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:`),Eu=p(),Qn=n("ul"),Na=n("li"),ju=a("single sequence: "),dl=n("code"),Pu=a("[CLS] X [SEP]"),Cu=p(),Sa=n("li"),Au=a("pair of sequences: "),cl=n("code"),Lu=a("[CLS] A [SEP] B [SEP]"),Ou=p(),Kt=n("div"),v(Hn.$$.fragment),Iu=p(),Vn=n("p"),Nu=a(`Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding
special tokens using the tokenizer `),pl=n("code"),Su=a("prepare_for_model"),Du=a(" method."),Wu=p(),Xt=n("div"),v(Jn.$$.fragment),Uu=p(),tt=n("p"),Ru=a(`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 `),hl=n("code"),Gu=a("token_ids_1"),Qu=a(" is "),ml=n("code"),Hu=a("None"),Vu=a(", this method only returns the first portion of the mask (0s)."),Ju=p(),Da=n("div"),v(Kn.$$.fragment),vp=p(),ot=n("h2"),Yt=n("a"),ul=n("span"),v(Xn.$$.fragment),Ku=p(),fl=n("span"),Xu=a("BigBirdTokenizerFast"),Bp=p(),H=n("div"),v(Yn.$$.fragment),Yu=p(),Me=n("p"),Zu=a("Construct a \u201Cfast\u201D BigBird tokenizer (backed by HuggingFace\u2019s "),gl=n("em"),ef=a("tokenizers"),tf=a(` library). Based on
`),Zn=n("a"),of=a("Unigram"),nf=a(`. This
tokenizer inherits from `),Wa=n("a"),sf=a("PreTrainedTokenizerFast"),rf=a(` which contains most of the main methods. Users should refer to
this superclass for more information regarding those methods`),af=p(),Ue=n("div"),v(es.$$.fragment),lf=p(),_l=n("p"),df=a(`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:`),cf=p(),ts=n("ul"),Ua=n("li"),pf=a("single sequence: "),bl=n("code"),hf=a("[CLS] X [SEP]"),mf=p(),Ra=n("li"),uf=a("pair of sequences: "),kl=n("code"),ff=a("[CLS] A [SEP] B [SEP]"),gf=p(),ge=n("div"),v(os.$$.fragment),_f=p(),vl=n("p"),bf=a("Creates a mask from the two sequences passed to be used in a sequence-pair classification task. An ALBERT"),kf=p(),v(Zt.$$.fragment),vf=p(),Bl=n("p"),Bf=a("if token_ids_1 is None, only returns the first portion of the mask (0s)."),yf=p(),eo=n("div"),v(ns.$$.fragment),Tf=p(),ss=n("p"),wf=a(`Retrieves sequence ids from a token list that has no special tokens added. This method is called when adding
special tokens using the tokenizer `),yl=n("code"),$f=a("prepare_for_model"),xf=a(" method."),yp=p(),nt=n("h2"),to=n("a"),Tl=n("span"),v(rs.$$.fragment),Ff=p(),wl=n("span"),zf=a("BigBird specific outputs"),Tp=p(),st=n("div"),v(as.$$.fragment),qf=p(),is=n("p"),Mf=a("Output type of "),Ga=n("a"),Ef=a("BigBirdForPreTraining"),jf=a("."),wp=p(),rt=n("h2"),oo=n("a"),$l=n("span"),v(ls.$$.fragment),Pf=p(),xl=n("span"),Cf=a("BigBirdModel"),$p=p(),V=n("div"),v(ds.$$.fragment),Af=p(),cs=n("p"),Lf=a(`The bare BigBird Model transformer outputting raw hidden-states without any specific head on top.
This model is a PyTorch `),ps=n("a"),Of=a("torch.nn.Module"),If=a(` 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(),hs=n("p"),Sf=a(`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 `),ms=n("a"),Df=a(`Attention is
all you need`),Wf=a(` by Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit,
Llion Jones, Aidan N. Gomez, Lukasz Kaiser and Illia Polosukhin.`),Uf=p(),U=n("p"),Rf=a("To behave as an decoder the model needs to be initialized with the "),Fl=n("code"),Gf=a("is_decoder"),Qf=a(` argument of the configuration set
to `),zl=n("code"),Hf=a("True"),Vf=a(". To be used in a Seq2Seq model, the model needs to initialized with both "),ql=n("code"),Jf=a("is_decoder"),Kf=a(` argument and
`),Ml=n("code"),Xf=a("add_cross_attention"),Yf=a(" set to "),El=n("code"),Zf=a("True"),eg=a("; an "),jl=n("code"),tg=a("encoder_hidden_states"),og=a(" is then expected as an input to the forward pass."),ng=p(),_e=n("div"),v(us.$$.fragment),sg=p(),at=n("p"),rg=a("The "),Qa=n("a"),ag=a("BigBirdModel"),ig=a(" forward method, overrides the "),Pl=n("code"),lg=a("__call__"),dg=a(" special method."),cg=p(),v(no.$$.fragment),pg=p(),v(so.$$.fragment),xp=p(),it=n("h2"),ro=n("a"),Cl=n("span"),v(fs.$$.fragment),hg=p(),Al=n("span"),mg=a("BigBirdForPreTraining"),Fp=p(),lt=n("div"),v(gs.$$.fragment),ug=p(),be=n("div"),v(_s.$$.fragment),fg=p(),dt=n("p"),gg=a("The "),Ha=n("a"),_g=a("BigBirdForPreTraining"),bg=a(" forward method, overrides the "),Ll=n("code"),kg=a("__call__"),vg=a(" special method."),Bg=p(),v(ao.$$.fragment),yg=p(),v(io.$$.fragment),zp=p(),ct=n("h2"),lo=n("a"),Ol=n("span"),v(bs.$$.fragment),Tg=p(),Il=n("span"),wg=a("BigBirdForCausalLM"),qp=p(),Ee=n("div"),v(ks.$$.fragment),$g=p(),pt=n("p"),xg=a("BigBird Model with a "),Nl=n("code"),Fg=a("language modeling"),zg=a(` head on top for CLM fine-tuning.
This model is a PyTorch `),vs=n("a"),qg=a("torch.nn.Module"),Mg=a(` 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(),ke=n("div"),v(Bs.$$.fragment),jg=p(),ht=n("p"),Pg=a("The "),Va=n("a"),Cg=a("BigBirdForCausalLM"),Ag=a(" forward method, overrides the "),Sl=n("code"),Lg=a("__call__"),Og=a(" special method."),Ig=p(),v(co.$$.fragment),Ng=p(),v(po.$$.fragment),Mp=p(),mt=n("h2"),ho=n("a"),Dl=n("span"),v(ys.$$.fragment),Sg=p(),Wl=n("span"),Dg=a("BigBirdForMaskedLM"),Ep=p(),je=n("div"),v(Ts.$$.fragment),Wg=p(),ut=n("p"),Ug=a("BigBird Model with a "),Ul=n("code"),Rg=a("language modeling"),Gg=a(` head on top.
This model is a PyTorch `),ws=n("a"),Qg=a("torch.nn.Module"),Hg=a(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Vg=p(),K=n("div"),v($s.$$.fragment),Jg=p(),ft=n("p"),Kg=a("The "),Ja=n("a"),Xg=a("BigBirdForMaskedLM"),Yg=a(" forward method, overrides the "),Rl=n("code"),Zg=a("__call__"),e_=a(" special method."),t_=p(),v(mo.$$.fragment),o_=p(),v(uo.$$.fragment),n_=p(),v(fo.$$.fragment),jp=p(),gt=n("h2"),go=n("a"),Gl=n("span"),v(xs.$$.fragment),s_=p(),Ql=n("span"),r_=a("BigBirdForSequenceClassification"),Pp=p(),pe=n("div"),v(Fs.$$.fragment),a_=p(),Hl=n("p"),i_=a(`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.`),l_=p(),zs=n("p"),d_=a("This model is a PyTorch "),qs=n("a"),c_=a("torch.nn.Module"),p_=a(` 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(),X=n("div"),v(Ms.$$.fragment),m_=p(),_t=n("p"),u_=a("The "),Ka=n("a"),f_=a("BigBirdForSequenceClassification"),g_=a(" forward method, overrides the "),Vl=n("code"),__=a("__call__"),b_=a(" special method."),k_=p(),v(_o.$$.fragment),v_=p(),v(bo.$$.fragment),B_=p(),v(ko.$$.fragment),Cp=p(),bt=n("h2"),vo=n("a"),Jl=n("span"),v(Es.$$.fragment),y_=p(),Kl=n("span"),T_=a("BigBirdForMultipleChoice"),Ap=p(),he=n("div"),v(js.$$.fragment),w_=p(),Xl=n("p"),$_=a(`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.`),x_=p(),Ps=n("p"),F_=a("This model is a PyTorch "),Cs=n("a"),z_=a("torch.nn.Module"),q_=a(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),M_=p(),ve=n("div"),v(As.$$.fragment),E_=p(),kt=n("p"),j_=a("The "),Xa=n("a"),P_=a("BigBirdForMultipleChoice"),C_=a(" forward method, overrides the "),Yl=n("code"),A_=a("__call__"),L_=a(" special method."),O_=p(),v(Bo.$$.fragment),I_=p(),v(yo.$$.fragment),Lp=p(),vt=n("h2"),To=n("a"),Zl=n("span"),v(Ls.$$.fragment),N_=p(),ed=n("span"),S_=a("BigBirdForTokenClassification"),Op=p(),me=n("div"),v(Os.$$.fragment),D_=p(),td=n("p"),W_=a(`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.`),U_=p(),Is=n("p"),R_=a("This model is a PyTorch "),Ns=n("a"),G_=a("torch.nn.Module"),Q_=a(` 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(),Be=n("div"),v(Ss.$$.fragment),V_=p(),Bt=n("p"),J_=a("The "),Ya=n("a"),K_=a("BigBirdForTokenClassification"),X_=a(" forward method, overrides the "),od=n("code"),Y_=a("__call__"),Z_=a(" special method."),eb=p(),v(wo.$$.fragment),tb=p(),v($o.$$.fragment),Ip=p(),yt=n("h2"),xo=n("a"),nd=n("span"),v(Ds.$$.fragment),ob=p(),sd=n("span"),nb=a("BigBirdForQuestionAnswering"),Np=p(),ue=n("div"),v(Ws.$$.fragment),sb=p(),Tt=n("p"),rb=a(`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 `),rd=n("code"),ab=a("span start logits"),ib=a(" and "),ad=n("code"),lb=a("span end logits"),db=a(")."),cb=p(),Us=n("p"),pb=a("This model is a PyTorch "),Rs=n("a"),hb=a("torch.nn.Module"),mb=a(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),ub=p(),Y=n("div"),v(Gs.$$.fragment),fb=p(),wt=n("p"),gb=a("The "),Za=n("a"),_b=a("BigBirdForQuestionAnswering"),bb=a(" forward method, overrides the "),id=n("code"),kb=a("__call__"),vb=a(" special method."),Bb=p(),v(Fo.$$.fragment),yb=p(),v(zo.$$.fragment),Tb=p(),v(qo.$$.fragment),Sp=p(),$t=n("h2"),Mo=n("a"),ld=n("span"),v(Qs.$$.fragment),wb=p(),dd=n("span"),$b=a("FlaxBigBirdModel"),Dp=p(),C=n("div"),v(Hs.$$.fragment),xb=p(),cd=n("p"),Fb=a("The bare BigBird Model transformer outputting raw hidden-states without any specific head on top."),zb=p(),Vs=n("p"),qb=a("This model inherits from "),ei=n("a"),Mb=a("FlaxPreTrainedModel"),Eb=a(`. 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(),Js=n("p"),Pb=a("This model is also a Flax Linen "),Ks=n("a"),Cb=a("flax.linen.Module"),Ab=a(`
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(),pd=n("p"),Ob=a("Finally, this model supports inherent JAX features such as:"),Ib=p(),Pe=n("ul"),hd=n("li"),Xs=n("a"),Nb=a("Just-In-Time (JIT) compilation"),Sb=p(),md=n("li"),Ys=n("a"),Db=a("Automatic Differentiation"),Wb=p(),ud=n("li"),Zs=n("a"),Ub=a("Vectorization"),Rb=p(),fd=n("li"),er=n("a"),Gb=a("Parallelization"),Qb=p(),ye=n("div"),v(tr.$$.fragment),Hb=p(),xt=n("p"),Vb=a("The "),gd=n("code"),Jb=a("FlaxBigBirdPreTrainedModel"),Kb=a(" forward method, overrides the "),_d=n("code"),Xb=a("__call__"),Yb=a(" special method."),Zb=p(),v(Eo.$$.fragment),ek=p(),v(jo.$$.fragment),Wp=p(),Ft=n("h2"),Po=n("a"),bd=n("span"),v(or.$$.fragment),tk=p(),kd=n("span"),ok=a("FlaxBigBirdForPreTraining"),Up=p(),A=n("div"),v(nr.$$.fragment),nk=p(),zt=n("p"),sk=a("BigBird Model with two heads on top as done during the pretraining: a "),vd=n("code"),rk=a("masked language modeling"),ak=a(" head and a "),Bd=n("code"),ik=a("next sentence prediction (classification)"),lk=a(" head."),dk=p(),sr=n("p"),ck=a("This model inherits from "),ti=n("a"),pk=a("FlaxPreTrainedModel"),hk=a(`. 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)`),mk=p(),rr=n("p"),uk=a("This model is also a Flax Linen "),ar=n("a"),fk=a("flax.linen.Module"),gk=a(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),_k=p(),yd=n("p"),bk=a("Finally, this model supports inherent JAX features such as:"),kk=p(),Ce=n("ul"),Td=n("li"),ir=n("a"),vk=a("Just-In-Time (JIT) compilation"),Bk=p(),wd=n("li"),lr=n("a"),yk=a("Automatic Differentiation"),Tk=p(),$d=n("li"),dr=n("a"),wk=a("Vectorization"),$k=p(),xd=n("li"),cr=n("a"),xk=a("Parallelization"),Fk=p(),Te=n("div"),v(pr.$$.fragment),zk=p(),qt=n("p"),qk=a("The "),Fd=n("code"),Mk=a("FlaxBigBirdPreTrainedModel"),Ek=a(" forward method, overrides the "),zd=n("code"),jk=a("__call__"),Pk=a(" special method."),Ck=p(),v(Co.$$.fragment),Ak=p(),v(Ao.$$.fragment),Rp=p(),Mt=n("h2"),Lo=n("a"),qd=n("span"),v(hr.$$.fragment),Lk=p(),Md=n("span"),Ok=a("FlaxBigBirdForCausalLM"),Gp=p(),L=n("div"),v(mr.$$.fragment),Ik=p(),Ed=n("p"),Nk=a(`BigBird Model with a language modeling head on top (a linear layer on top of the hidden-states output) e.g for
autoregressive tasks.`),Sk=p(),ur=n("p"),Dk=a("This model inherits from "),oi=n("a"),Wk=a("FlaxPreTrainedModel"),Uk=a(`. 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)`),Rk=p(),fr=n("p"),Gk=a("This model is also a Flax Linen "),gr=n("a"),Qk=a("flax.linen.Module"),Hk=a(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),Vk=p(),jd=n("p"),Jk=a("Finally, this model supports inherent JAX features such as:"),Kk=p(),Ae=n("ul"),Pd=n("li"),_r=n("a"),Xk=a("Just-In-Time (JIT) compilation"),Yk=p(),Cd=n("li"),br=n("a"),Zk=a("Automatic Differentiation"),ev=p(),Ad=n("li"),kr=n("a"),tv=a("Vectorization"),ov=p(),Ld=n("li"),vr=n("a"),nv=a("Parallelization"),sv=p(),we=n("div"),v(Br.$$.fragment),rv=p(),Et=n("p"),av=a("The "),Od=n("code"),iv=a("FlaxBigBirdPreTrainedModel"),lv=a(" forward method, overrides the "),Id=n("code"),dv=a("__call__"),cv=a(" special method."),pv=p(),v(Oo.$$.fragment),hv=p(),v(Io.$$.fragment),Qp=p(),jt=n("h2"),No=n("a"),Nd=n("span"),v(yr.$$.fragment),mv=p(),Sd=n("span"),uv=a("FlaxBigBirdForMaskedLM"),Hp=p(),O=n("div"),v(Tr.$$.fragment),fv=p(),wr=n("p"),gv=a("BigBird Model with a "),Dd=n("code"),_v=a("language modeling"),bv=a(" head on top."),kv=p(),$r=n("p"),vv=a("This model inherits from "),ni=n("a"),Bv=a("FlaxPreTrainedModel"),yv=a(`. 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)`),Tv=p(),xr=n("p"),wv=a("This model is also a Flax Linen "),Fr=n("a"),$v=a("flax.linen.Module"),xv=a(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),Fv=p(),Wd=n("p"),zv=a("Finally, this model supports inherent JAX features such as:"),qv=p(),Le=n("ul"),Ud=n("li"),zr=n("a"),Mv=a("Just-In-Time (JIT) compilation"),Ev=p(),Rd=n("li"),qr=n("a"),jv=a("Automatic Differentiation"),Pv=p(),Gd=n("li"),Mr=n("a"),Cv=a("Vectorization"),Av=p(),Qd=n("li"),Er=n("a"),Lv=a("Parallelization"),Ov=p(),$e=n("div"),v(jr.$$.fragment),Iv=p(),Pt=n("p"),Nv=a("The "),Hd=n("code"),Sv=a("FlaxBigBirdPreTrainedModel"),Dv=a(" forward method, overrides the "),Vd=n("code"),Wv=a("__call__"),Uv=a(" special method."),Rv=p(),v(So.$$.fragment),Gv=p(),v(Do.$$.fragment),Vp=p(),Ct=n("h2"),Wo=n("a"),Jd=n("span"),v(Pr.$$.fragment),Qv=p(),Kd=n("span"),Hv=a("FlaxBigBirdForSequenceClassification"),Jp=p(),I=n("div"),v(Cr.$$.fragment),Vv=p(),Xd=n("p"),Jv=a(`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.`),Kv=p(),Ar=n("p"),Xv=a("This model inherits from "),si=n("a"),Yv=a("FlaxPreTrainedModel"),Zv=a(`. 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)`),eB=p(),Lr=n("p"),tB=a("This model is also a Flax Linen "),Or=n("a"),oB=a("flax.linen.Module"),nB=a(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),sB=p(),Yd=n("p"),rB=a("Finally, this model supports inherent JAX features such as:"),aB=p(),Oe=n("ul"),Zd=n("li"),Ir=n("a"),iB=a("Just-In-Time (JIT) compilation"),lB=p(),ec=n("li"),Nr=n("a"),dB=a("Automatic Differentiation"),cB=p(),tc=n("li"),Sr=n("a"),pB=a("Vectorization"),hB=p(),oc=n("li"),Dr=n("a"),mB=a("Parallelization"),uB=p(),xe=n("div"),v(Wr.$$.fragment),fB=p(),At=n("p"),gB=a("The "),nc=n("code"),_B=a("FlaxBigBirdPreTrainedModel"),bB=a(" forward method, overrides the "),sc=n("code"),kB=a("__call__"),vB=a(" special method."),BB=p(),v(Uo.$$.fragment),yB=p(),v(Ro.$$.fragment),Kp=p(),Lt=n("h2"),Go=n("a"),rc=n("span"),v(Ur.$$.fragment),TB=p(),ac=n("span"),wB=a("FlaxBigBirdForMultipleChoice"),Xp=p(),N=n("div"),v(Rr.$$.fragment),$B=p(),ic=n("p"),xB=a(`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.`),FB=p(),Gr=n("p"),zB=a("This model inherits from "),ri=n("a"),qB=a("FlaxPreTrainedModel"),MB=a(`. 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)`),EB=p(),Qr=n("p"),jB=a("This model is also a Flax Linen "),Hr=n("a"),PB=a("flax.linen.Module"),CB=a(`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),AB=p(),lc=n("p"),LB=a("Finally, this model supports inherent JAX features such as:"),OB=p(),Ie=n("ul"),dc=n("li"),Vr=n("a"),IB=a("Just-In-Time (JIT) compilation"),NB=p(),cc=n("li"),Jr=n("a"),SB=a("Automatic Differentiation"),DB=p(),pc=n("li"),Kr=n("a"),WB=a("Vectorization"),UB=p(),hc=n("li"),Xr=n("a"),RB=a("Parallelization"),GB=p(),Fe=n("div"),v(Yr.$$.fragment),QB=p(),Ot=n("p"),HB=a("The "),mc=n("code"),VB=a("FlaxBigBirdPreTrainedModel"),JB=a(" forward method, overrides the "),uc=n("code"),KB=a("__call__"),XB=a(" special method."),YB=p(),v(Qo.$$.fragment),ZB=p(),v(Ho.$$.fragment),Yp=p(),It=n("h2"),Vo=n("a"),fc=n("span"),v(Zr.$$.fragment),ey=p(),gc=n("span"),ty=a("FlaxBigBirdForTokenClassification"),Zp=p(),S=n("div"),v(ea.$$.fragment),oy=p(),_c=n("p"),ny=a(`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.`),sy=p(),ta=n("p"),ry=a("This model inherits from "),ai=n("a"),ay=a("FlaxPreTrainedModel"),iy=a(`. 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(),oa=n("p"),dy=a("This model is also a Flax Linen "),na=n("a"),cy=a("flax.linen.Module"),py=a(`
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(),bc=n("p"),my=a("Finally, this model supports inherent JAX features such as:"),uy=p(),Ne=n("ul"),kc=n("li"),sa=n("a"),fy=a("Just-In-Time (JIT) compilation"),gy=p(),vc=n("li"),ra=n("a"),_y=a("Automatic Differentiation"),by=p(),Bc=n("li"),aa=n("a"),ky=a("Vectorization"),vy=p(),yc=n("li"),ia=n("a"),By=a("Parallelization"),yy=p(),ze=n("div"),v(la.$$.fragment),Ty=p(),Nt=n("p"),wy=a("The "),Tc=n("code"),$y=a("FlaxBigBirdPreTrainedModel"),xy=a(" forward method, overrides the "),wc=n("code"),Fy=a("__call__"),zy=a(" special method."),qy=p(),v(Jo.$$.fragment),My=p(),v(Ko.$$.fragment),eh=p(),St=n("h2"),Xo=n("a"),$c=n("span"),v(da.$$.fragment),Ey=p(),xc=n("span"),jy=a("FlaxBigBirdForQuestionAnswering"),th=p(),D=n("div"),v(ca.$$.fragment),Py=p(),Dt=n("p"),Cy=a(`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 `),Fc=n("code"),Ay=a("span start logits"),Ly=a(" and "),zc=n("code"),Oy=a("span end logits"),Iy=a(")."),Ny=p(),pa=n("p"),Sy=a("This model inherits from "),ii=n("a"),Dy=a("FlaxPreTrainedModel"),Wy=a(`. 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)`),Uy=p(),ha=n("p"),Ry=a("This model is also a Flax Linen "),ma=n("a"),Gy=a("flax.linen.Module"),Qy=a(`
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(),qc=n("p"),Vy=a("Finally, this model supports inherent JAX features such as:"),Jy=p(),Se=n("ul"),Mc=n("li"),ua=n("a"),Ky=a("Just-In-Time (JIT) compilation"),Xy=p(),Ec=n("li"),fa=n("a"),Yy=a("Automatic Differentiation"),Zy=p(),jc=n("li"),ga=n("a"),e1=a("Vectorization"),t1=p(),Pc=n("li"),_a=n("a"),o1=a("Parallelization"),n1=p(),qe=n("div"),v(ba.$$.fragment),s1=p(),Wt=n("p"),r1=a("The "),li=n("a"),a1=a("FlaxBigBirdForQuestionAnswering"),i1=a(" forward method, overrides the "),Cc=n("code"),l1=a("__call__"),d1=a(" special method."),c1=p(),v(Yo.$$.fragment),p1=p(),v(Zo.$$.fragment),this.h()},l(o){const g=J$('[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 ka=r(u);f=s(ka,"A",{id:!0,class:!0,href:!0});var Ac=r(f);_=s(Ac,"SPAN",{});var Lc=r(_);B(l.$$.fragment,Lc),Lc.forEach(t),Ac.forEach(t),m=h(ka),F=s(ka,"SPAN",{});var Oc=r(F);sm=i(Oc,"BigBird"),Oc.forEach(t),ka.forEach(t),ip=h(o),Je=s(o,"H2",{class:!0});var va=r(Je);Rt=s(va,"A",{id:!0,class:!0,href:!0});var Ic=r(Rt);Ii=s(Ic,"SPAN",{});var Nc=r(Ii);B(qn.$$.fragment,Nc),Nc.forEach(t),Ic.forEach(t),rm=h(va),Ni=s(va,"SPAN",{});var Sc=r(Ni);am=i(Sc,"Overview"),Sc.forEach(t),va.forEach(t),lp=h(o),Gt=s(o,"P",{});var Ba=r(Gt);im=i(Ba,"The BigBird model was proposed in "),Mn=s(Ba,"A",{href:!0,rel:!0});var Dc=r(Mn);lm=i(Dc,"Big Bird: Transformers for Longer Sequences"),Dc.forEach(t),dm=i(Ba,` 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.`),Ba.forEach(t),dp=h(o),$a=s(o,"P",{});var Wc=r($a);cm=i(Wc,"The abstract from the paper is the following:"),Wc.forEach(t),cp=h(o),xa=s(o,"P",{});var Uc=r(xa);Si=s(Uc,"EM",{});var Rc=r(Si);pm=i(Rc,`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.`),Rc.forEach(t),Uc.forEach(t),pp=h(o),Fa=s(o,"P",{});var Gc=r(Fa);hm=i(Gc,"Tips:"),Gc.forEach(t),hp=h(o),W=s(o,"UL",{});var R=r(W);En=s(R,"LI",{});var ya=r(En);mm=i(ya,"For an in-detail explanation on how BigBird\u2019s attention works, see "),jn=s(ya,"A",{href:!0,rel:!0});var Qc=r(jn);um=i(Qc,"this blog post"),Qc.forEach(t),fm=i(ya,"."),ya.forEach(t),gm=h(R),de=s(R,"LI",{});var fe=r(de);_m=i(fe,"BigBird comes with 2 implementations: "),Di=s(fe,"STRONG",{});var Hc=r(Di);bm=i(Hc,"original_full"),Hc.forEach(t),km=i(fe," & "),Wi=s(fe,"STRONG",{});var Vc=r(Wi);vm=i(Vc,"block_sparse"),Vc.forEach(t),Bm=i(fe,`. For the sequence length < 1024, using
`),Ui=s(fe,"STRONG",{});var Jc=r(Ui);ym=i(Jc,"original_full"),Jc.forEach(t),Tm=i(fe," is advised as there is no benefit in using "),Ri=s(fe,"STRONG",{});var Kc=r(Ri);wm=i(Kc,"block_sparse"),Kc.forEach(t),$m=i(fe," attention."),fe.forEach(t),xm=h(R),Gi=s(R,"LI",{});var Xc=r(Gi);Fm=i(Xc,"The code currently uses window size of 3 blocks and 2 global blocks."),Xc.forEach(t),zm=h(R),Qi=s(R,"LI",{});var Yc=r(Qi);qm=i(Yc,"Sequence length must be divisible by block size."),Yc.forEach(t),Mm=h(R),Pn=s(R,"LI",{});var Ta=r(Pn);Em=i(Ta,"Current implementation supports only "),Hi=s(Ta,"STRONG",{});var Zc=r(Hi);jm=i(Zc,"ITC"),Zc.forEach(t),Pm=i(Ta,"."),Ta.forEach(t),Cm=h(R),za=s(R,"LI",{});var di=r(za);Am=i(di,"Current implementation doesn\u2019t support "),Vi=s(di,"STRONG",{});var ep=r(Vi);Lm=i(ep,"num_random_blocks = 0"),ep.forEach(t),di.forEach(t),Om=h(R),Ji=s(R,"LI",{});var tp=r(Ji);Im=i(tp,`BigBird is a model with absolute position embeddings so it\u2019s usually advised to pad the inputs on the right rather than
the left.`),tp.forEach(t),R.forEach(t),mp=h(o),De=s(o,"P",{});var Ut=r(De);Nm=i(Ut,"This model was contributed by "),Cn=s(Ut,"A",{href:!0,rel:!0});var op=r(Cn);Sm=i(op,"vasudevgupta"),op.forEach(t),Dm=i(Ut,`. The original code can be found
`),An=s(Ut,"A",{href:!0,rel:!0});var np=r(An);Wm=i(np,"here"),np.forEach(t),Um=i(Ut,"."),Ut.forEach(t),up=h(o),Ke=s(o,"H2",{class:!0});var wa=r(Ke);Qt=s(wa,"A",{id:!0,class:!0,href:!0});var sp=r(Qt);Ki=s(sp,"SPAN",{});var rp=r(Ki);B(Ln.$$.fragment,rp),rp.forEach(t),sp.forEach(t),Rm=h(wa),Xi=s(wa,"SPAN",{});var ap=r(Xi);Gm=i(ap,"Documentation resources"),ap.forEach(t),wa.forEach(t),fp=h(o),G=s(o,"UL",{});var J=r(G);Yi=s(J,"LI",{});var g1=r(Yi);qa=s(g1,"A",{href:!0});var _1=r(qa);Qm=i(_1,"Text classification task guide"),_1.forEach(t),g1.forEach(t),Hm=h(J),Zi=s(J,"LI",{});var b1=r(Zi);Ma=s(b1,"A",{href:!0});var k1=r(Ma);Vm=i(k1,"Token classification task guide"),k1.forEach(t),b1.forEach(t),Jm=h(J),el=s(J,"LI",{});var v1=r(el);Ea=s(v1,"A",{href:!0});var B1=r(Ea);Km=i(B1,"Question answering task guide"),B1.forEach(t),v1.forEach(t),Xm=h(J),tl=s(J,"LI",{});var y1=r(tl);ja=s(y1,"A",{href:!0});var T1=r(ja);Ym=i(T1,"Causal language modeling task guide"),T1.forEach(t),y1.forEach(t),Zm=h(J),ol=s(J,"LI",{});var w1=r(ol);Pa=s(w1,"A",{href:!0});var $1=r(Pa);eu=i($1,"Masked language modeling task guide"),$1.forEach(t),w1.forEach(t),tu=h(J),nl=s(J,"LI",{});var x1=r(nl);Ca=s(x1,"A",{href:!0});var F1=r(Ca);ou=i(F1,"Multiple choice task guide"),F1.forEach(t),x1.forEach(t),J.forEach(t),gp=h(o),Xe=s(o,"H2",{class:!0});var nh=r(Xe);Ht=s(nh,"A",{id:!0,class:!0,href:!0});var z1=r(Ht);sl=s(z1,"SPAN",{});var q1=r(sl);B(On.$$.fragment,q1),q1.forEach(t),z1.forEach(t),nu=h(nh),rl=s(nh,"SPAN",{});var M1=r(rl);su=i(M1,"BigBirdConfig"),M1.forEach(t),nh.forEach(t),_p=h(o),ce=s(o,"DIV",{class:!0});var en=r(ce);B(In.$$.fragment,en),ru=h(en),Ye=s(en,"P",{});var ci=r(Ye);au=i(ci,"This is the configuration class to store the configuration of a "),Aa=s(ci,"A",{href:!0});var E1=r(Aa);iu=i(E1,"BigBirdModel"),E1.forEach(t),lu=i(ci,`. 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
`),Nn=s(ci,"A",{href:!0,rel:!0});var j1=r(Nn);du=i(j1,"google/bigbird-roberta-base"),j1.forEach(t),cu=i(ci," architecture."),ci.forEach(t),pu=h(en),Ze=s(en,"P",{});var pi=r(Ze);hu=i(pi,"Configuration objects inherit from "),La=s(pi,"A",{href:!0});var P1=r(La);mu=i(P1,"PretrainedConfig"),P1.forEach(t),uu=i(pi,` and can be used to control the model outputs. Read the
documentation from `),Oa=s(pi,"A",{href:!0});var C1=r(Oa);fu=i(C1,"PretrainedConfig"),C1.forEach(t),gu=i(pi," for more information."),pi.forEach(t),_u=h(en),B(Vt.$$.fragment,en),en.forEach(t),bp=h(o),et=s(o,"H2",{class:!0});var sh=r(et);Jt=s(sh,"A",{id:!0,class:!0,href:!0});var A1=r(Jt);al=s(A1,"SPAN",{});var L1=r(al);B(Sn.$$.fragment,L1),L1.forEach(t),A1.forEach(t),bu=h(sh),il=s(sh,"SPAN",{});var O1=r(il);ku=i(O1,"BigBirdTokenizer"),O1.forEach(t),sh.forEach(t),kp=h(o),P=s(o,"DIV",{class:!0});var Z=r(P);B(Dn.$$.fragment,Z),vu=h(Z),Wn=s(Z,"P",{});var rh=r(Wn);Bu=i(rh,"Construct a BigBird tokenizer. Based on "),Un=s(rh,"A",{href:!0,rel:!0});var I1=r(Un);yu=i(I1,"SentencePiece"),I1.forEach(t),Tu=i(rh,"."),rh.forEach(t),wu=h(Z),Rn=s(Z,"P",{});var ah=r(Rn);$u=i(ah,"This tokenizer inherits from "),Ia=s(ah,"A",{href:!0});var N1=r(Ia);xu=i(N1,"PreTrainedTokenizer"),N1.forEach(t),Fu=i(ah,` which contains most of the main methods. Users should refer to
this superclass for more information regarding those methods.`),ah.forEach(t),zu=h(Z),We=s(Z,"DIV",{class:!0});var hi=r(We);B(Gn.$$.fragment,hi),qu=h(hi),ll=s(hi,"P",{});var S1=r(ll);Mu=i(S1,`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:`),S1.forEach(t),Eu=h(hi),Qn=s(hi,"UL",{});var ih=r(Qn);Na=s(ih,"LI",{});var h1=r(Na);ju=i(h1,"single sequence: "),dl=s(h1,"CODE",{});var D1=r(dl);Pu=i(D1,"[CLS] X [SEP]"),D1.forEach(t),h1.forEach(t),Cu=h(ih),Sa=s(ih,"LI",{});var m1=r(Sa);Au=i(m1,"pair of sequences: "),cl=s(m1,"CODE",{});var W1=r(cl);Lu=i(W1,"[CLS] A [SEP] B [SEP]"),W1.forEach(t),m1.forEach(t),ih.forEach(t),hi.forEach(t),Ou=h(Z),Kt=s(Z,"DIV",{class:!0});var lh=r(Kt);B(Hn.$$.fragment,lh),Iu=h(lh),Vn=s(lh,"P",{});var dh=r(Vn);Nu=i(dh,`Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding
special tokens using the tokenizer `),pl=s(dh,"CODE",{});var U1=r(pl);Su=i(U1,"prepare_for_model"),U1.forEach(t),Du=i(dh," method."),dh.forEach(t),lh.forEach(t),Wu=h(Z),Xt=s(Z,"DIV",{class:!0});var ch=r(Xt);B(Jn.$$.fragment,ch),Uu=h(ch),tt=s(ch,"P",{});var mi=r(tt);Ru=i(mi,`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 `),hl=s(mi,"CODE",{});var R1=r(hl);Gu=i(R1,"token_ids_1"),R1.forEach(t),Qu=i(mi," is "),ml=s(mi,"CODE",{});var G1=r(ml);Hu=i(G1,"None"),G1.forEach(t),Vu=i(mi,", this method only returns the first portion of the mask (0s)."),mi.forEach(t),ch.forEach(t),Ju=h(Z),Da=s(Z,"DIV",{class:!0});var Q1=r(Da);B(Kn.$$.fragment,Q1),Q1.forEach(t),Z.forEach(t),vp=h(o),ot=s(o,"H2",{class:!0});var ph=r(ot);Yt=s(ph,"A",{id:!0,class:!0,href:!0});var H1=r(Yt);ul=s(H1,"SPAN",{});var V1=r(ul);B(Xn.$$.fragment,V1),V1.forEach(t),H1.forEach(t),Ku=h(ph),fl=s(ph,"SPAN",{});var J1=r(fl);Xu=i(J1,"BigBirdTokenizerFast"),J1.forEach(t),ph.forEach(t),Bp=h(o),H=s(o,"DIV",{class:!0});var Re=r(H);B(Yn.$$.fragment,Re),Yu=h(Re),Me=s(Re,"P",{});var tn=r(Me);Zu=i(tn,"Construct a \u201Cfast\u201D BigBird tokenizer (backed by HuggingFace\u2019s "),gl=s(tn,"EM",{});var K1=r(gl);ef=i(K1,"tokenizers"),K1.forEach(t),tf=i(tn,` library). Based on
`),Zn=s(tn,"A",{href:!0,rel:!0});var X1=r(Zn);of=i(X1,"Unigram"),X1.forEach(t),nf=i(tn,`. This
tokenizer inherits from `),Wa=s(tn,"A",{href:!0});var Y1=r(Wa);sf=i(Y1,"PreTrainedTokenizerFast"),Y1.forEach(t),rf=i(tn,` which contains most of the main methods. Users should refer to
this superclass for more information regarding those methods`),tn.forEach(t),af=h(Re),Ue=s(Re,"DIV",{class:!0});var ui=r(Ue);B(es.$$.fragment,ui),lf=h(ui),_l=s(ui,"P",{});var Z1=r(_l);df=i(Z1,`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:`),Z1.forEach(t),cf=h(ui),ts=s(ui,"UL",{});var hh=r(ts);Ua=s(hh,"LI",{});var u1=r(Ua);pf=i(u1,"single sequence: "),bl=s(u1,"CODE",{});var eT=r(bl);hf=i(eT,"[CLS] X [SEP]"),eT.forEach(t),u1.forEach(t),mf=h(hh),Ra=s(hh,"LI",{});var f1=r(Ra);uf=i(f1,"pair of sequences: "),kl=s(f1,"CODE",{});var tT=r(kl);ff=i(tT,"[CLS] A [SEP] B [SEP]"),tT.forEach(t),f1.forEach(t),hh.forEach(t),ui.forEach(t),gf=h(Re),ge=s(Re,"DIV",{class:!0});var on=r(ge);B(os.$$.fragment,on),_f=h(on),vl=s(on,"P",{});var oT=r(vl);bf=i(oT,"Creates a mask from the two sequences passed to be used in a sequence-pair classification task. An ALBERT"),oT.forEach(t),kf=h(on),B(Zt.$$.fragment,on),vf=h(on),Bl=s(on,"P",{});var nT=r(Bl);Bf=i(nT,"if token_ids_1 is None, only returns the first portion of the mask (0s)."),nT.forEach(t),on.forEach(t),yf=h(Re),eo=s(Re,"DIV",{class:!0});var mh=r(eo);B(ns.$$.fragment,mh),Tf=h(mh),ss=s(mh,"P",{});var uh=r(ss);wf=i(uh,`Retrieves sequence ids from a token list that has no special tokens added. This method is called when adding
special tokens using the tokenizer `),yl=s(uh,"CODE",{});var sT=r(yl);$f=i(sT,"prepare_for_model"),sT.forEach(t),xf=i(uh," method."),uh.forEach(t),mh.forEach(t),Re.forEach(t),yp=h(o),nt=s(o,"H2",{class:!0});var fh=r(nt);to=s(fh,"A",{id:!0,class:!0,href:!0});var rT=r(to);Tl=s(rT,"SPAN",{});var aT=r(Tl);B(rs.$$.fragment,aT),aT.forEach(t),rT.forEach(t),Ff=h(fh),wl=s(fh,"SPAN",{});var iT=r(wl);zf=i(iT,"BigBird specific outputs"),iT.forEach(t),fh.forEach(t),Tp=h(o),st=s(o,"DIV",{class:!0});var gh=r(st);B(as.$$.fragment,gh),qf=h(gh),is=s(gh,"P",{});var _h=r(is);Mf=i(_h,"Output type of "),Ga=s(_h,"A",{href:!0});var lT=r(Ga);Ef=i(lT,"BigBirdForPreTraining"),lT.forEach(t),jf=i(_h,"."),_h.forEach(t),gh.forEach(t),wp=h(o),rt=s(o,"H2",{class:!0});var bh=r(rt);oo=s(bh,"A",{id:!0,class:!0,href:!0});var dT=r(oo);$l=s(dT,"SPAN",{});var cT=r($l);B(ls.$$.fragment,cT),cT.forEach(t),dT.forEach(t),Pf=h(bh),xl=s(bh,"SPAN",{});var pT=r(xl);Cf=i(pT,"BigBirdModel"),pT.forEach(t),bh.forEach(t),$p=h(o),V=s(o,"DIV",{class:!0});var Ge=r(V);B(ds.$$.fragment,Ge),Af=h(Ge),cs=s(Ge,"P",{});var kh=r(cs);Lf=i(kh,`The bare BigBird Model transformer outputting raw hidden-states without any specific head on top.
This model is a PyTorch `),ps=s(kh,"A",{href:!0,rel:!0});var hT=r(ps);Of=i(hT,"torch.nn.Module"),hT.forEach(t),If=i(kh,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),kh.forEach(t),Nf=h(Ge),hs=s(Ge,"P",{});var vh=r(hs);Sf=i(vh,`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 `),ms=s(vh,"A",{href:!0,rel:!0});var mT=r(ms);Df=i(mT,`Attention is
all you need`),mT.forEach(t),Wf=i(vh,` by Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit,
Llion Jones, Aidan N. Gomez, Lukasz Kaiser and Illia Polosukhin.`),vh.forEach(t),Uf=h(Ge),U=s(Ge,"P",{});var ee=r(U);Rf=i(ee,"To behave as an decoder the model needs to be initialized with the "),Fl=s(ee,"CODE",{});var uT=r(Fl);Gf=i(uT,"is_decoder"),uT.forEach(t),Qf=i(ee,` argument of the configuration set
to `),zl=s(ee,"CODE",{});var fT=r(zl);Hf=i(fT,"True"),fT.forEach(t),Vf=i(ee,". To be used in a Seq2Seq model, the model needs to initialized with both "),ql=s(ee,"CODE",{});var gT=r(ql);Jf=i(gT,"is_decoder"),gT.forEach(t),Kf=i(ee,` argument and
`),Ml=s(ee,"CODE",{});var _T=r(Ml);Xf=i(_T,"add_cross_attention"),_T.forEach(t),Yf=i(ee," set to "),El=s(ee,"CODE",{});var bT=r(El);Zf=i(bT,"True"),bT.forEach(t),eg=i(ee,"; an "),jl=s(ee,"CODE",{});var kT=r(jl);tg=i(kT,"encoder_hidden_states"),kT.forEach(t),og=i(ee," is then expected as an input to the forward pass."),ee.forEach(t),ng=h(Ge),_e=s(Ge,"DIV",{class:!0});var nn=r(_e);B(us.$$.fragment,nn),sg=h(nn),at=s(nn,"P",{});var fi=r(at);rg=i(fi,"The "),Qa=s(fi,"A",{href:!0});var vT=r(Qa);ag=i(vT,"BigBirdModel"),vT.forEach(t),ig=i(fi," forward method, overrides the "),Pl=s(fi,"CODE",{});var BT=r(Pl);lg=i(BT,"__call__"),BT.forEach(t),dg=i(fi," special method."),fi.forEach(t),cg=h(nn),B(no.$$.fragment,nn),pg=h(nn),B(so.$$.fragment,nn),nn.forEach(t),Ge.forEach(t),xp=h(o),it=s(o,"H2",{class:!0});var Bh=r(it);ro=s(Bh,"A",{id:!0,class:!0,href:!0});var yT=r(ro);Cl=s(yT,"SPAN",{});var TT=r(Cl);B(fs.$$.fragment,TT),TT.forEach(t),yT.forEach(t),hg=h(Bh),Al=s(Bh,"SPAN",{});var wT=r(Al);mg=i(wT,"BigBirdForPreTraining"),wT.forEach(t),Bh.forEach(t),Fp=h(o),lt=s(o,"DIV",{class:!0});var yh=r(lt);B(gs.$$.fragment,yh),ug=h(yh),be=s(yh,"DIV",{class:!0});var sn=r(be);B(_s.$$.fragment,sn),fg=h(sn),dt=s(sn,"P",{});var gi=r(dt);gg=i(gi,"The "),Ha=s(gi,"A",{href:!0});var $T=r(Ha);_g=i($T,"BigBirdForPreTraining"),$T.forEach(t),bg=i(gi," forward method, overrides the "),Ll=s(gi,"CODE",{});var xT=r(Ll);kg=i(xT,"__call__"),xT.forEach(t),vg=i(gi," special method."),gi.forEach(t),Bg=h(sn),B(ao.$$.fragment,sn),yg=h(sn),B(io.$$.fragment,sn),sn.forEach(t),yh.forEach(t),zp=h(o),ct=s(o,"H2",{class:!0});var Th=r(ct);lo=s(Th,"A",{id:!0,class:!0,href:!0});var FT=r(lo);Ol=s(FT,"SPAN",{});var zT=r(Ol);B(bs.$$.fragment,zT),zT.forEach(t),FT.forEach(t),Tg=h(Th),Il=s(Th,"SPAN",{});var qT=r(Il);wg=i(qT,"BigBirdForCausalLM"),qT.forEach(t),Th.forEach(t),qp=h(o),Ee=s(o,"DIV",{class:!0});var _i=r(Ee);B(ks.$$.fragment,_i),$g=h(_i),pt=s(_i,"P",{});var bi=r(pt);xg=i(bi,"BigBird Model with a "),Nl=s(bi,"CODE",{});var MT=r(Nl);Fg=i(MT,"language modeling"),MT.forEach(t),zg=i(bi,` head on top for CLM fine-tuning.
This model is a PyTorch `),vs=s(bi,"A",{href:!0,rel:!0});var ET=r(vs);qg=i(ET,"torch.nn.Module"),ET.forEach(t),Mg=i(bi,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),bi.forEach(t),Eg=h(_i),ke=s(_i,"DIV",{class:!0});var rn=r(ke);B(Bs.$$.fragment,rn),jg=h(rn),ht=s(rn,"P",{});var ki=r(ht);Pg=i(ki,"The "),Va=s(ki,"A",{href:!0});var jT=r(Va);Cg=i(jT,"BigBirdForCausalLM"),jT.forEach(t),Ag=i(ki," forward method, overrides the "),Sl=s(ki,"CODE",{});var PT=r(Sl);Lg=i(PT,"__call__"),PT.forEach(t),Og=i(ki," special method."),ki.forEach(t),Ig=h(rn),B(co.$$.fragment,rn),Ng=h(rn),B(po.$$.fragment,rn),rn.forEach(t),_i.forEach(t),Mp=h(o),mt=s(o,"H2",{class:!0});var wh=r(mt);ho=s(wh,"A",{id:!0,class:!0,href:!0});var CT=r(ho);Dl=s(CT,"SPAN",{});var AT=r(Dl);B(ys.$$.fragment,AT),AT.forEach(t),CT.forEach(t),Sg=h(wh),Wl=s(wh,"SPAN",{});var LT=r(Wl);Dg=i(LT,"BigBirdForMaskedLM"),LT.forEach(t),wh.forEach(t),Ep=h(o),je=s(o,"DIV",{class:!0});var vi=r(je);B(Ts.$$.fragment,vi),Wg=h(vi),ut=s(vi,"P",{});var Bi=r(ut);Ug=i(Bi,"BigBird Model with a "),Ul=s(Bi,"CODE",{});var OT=r(Ul);Rg=i(OT,"language modeling"),OT.forEach(t),Gg=i(Bi,` head on top.
This model is a PyTorch `),ws=s(Bi,"A",{href:!0,rel:!0});var IT=r(ws);Qg=i(IT,"torch.nn.Module"),IT.forEach(t),Hg=i(Bi,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Bi.forEach(t),Vg=h(vi),K=s(vi,"DIV",{class:!0});var Qe=r(K);B($s.$$.fragment,Qe),Jg=h(Qe),ft=s(Qe,"P",{});var yi=r(ft);Kg=i(yi,"The "),Ja=s(yi,"A",{href:!0});var NT=r(Ja);Xg=i(NT,"BigBirdForMaskedLM"),NT.forEach(t),Yg=i(yi," forward method, overrides the "),Rl=s(yi,"CODE",{});var ST=r(Rl);Zg=i(ST,"__call__"),ST.forEach(t),e_=i(yi," special method."),yi.forEach(t),t_=h(Qe),B(mo.$$.fragment,Qe),o_=h(Qe),B(uo.$$.fragment,Qe),n_=h(Qe),B(fo.$$.fragment,Qe),Qe.forEach(t),vi.forEach(t),jp=h(o),gt=s(o,"H2",{class:!0});var $h=r(gt);go=s($h,"A",{id:!0,class:!0,href:!0});var DT=r(go);Gl=s(DT,"SPAN",{});var WT=r(Gl);B(xs.$$.fragment,WT),WT.forEach(t),DT.forEach(t),s_=h($h),Ql=s($h,"SPAN",{});var UT=r(Ql);r_=i(UT,"BigBirdForSequenceClassification"),UT.forEach(t),$h.forEach(t),Pp=h(o),pe=s(o,"DIV",{class:!0});var an=r(pe);B(Fs.$$.fragment,an),a_=h(an),Hl=s(an,"P",{});var RT=r(Hl);i_=i(RT,`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.`),RT.forEach(t),l_=h(an),zs=s(an,"P",{});var xh=r(zs);d_=i(xh,"This model is a PyTorch "),qs=s(xh,"A",{href:!0,rel:!0});var GT=r(qs);c_=i(GT,"torch.nn.Module"),GT.forEach(t),p_=i(xh,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),xh.forEach(t),h_=h(an),X=s(an,"DIV",{class:!0});var He=r(X);B(Ms.$$.fragment,He),m_=h(He),_t=s(He,"P",{});var Ti=r(_t);u_=i(Ti,"The "),Ka=s(Ti,"A",{href:!0});var QT=r(Ka);f_=i(QT,"BigBirdForSequenceClassification"),QT.forEach(t),g_=i(Ti," forward method, overrides the "),Vl=s(Ti,"CODE",{});var HT=r(Vl);__=i(HT,"__call__"),HT.forEach(t),b_=i(Ti," special method."),Ti.forEach(t),k_=h(He),B(_o.$$.fragment,He),v_=h(He),B(bo.$$.fragment,He),B_=h(He),B(ko.$$.fragment,He),He.forEach(t),an.forEach(t),Cp=h(o),bt=s(o,"H2",{class:!0});var Fh=r(bt);vo=s(Fh,"A",{id:!0,class:!0,href:!0});var VT=r(vo);Jl=s(VT,"SPAN",{});var JT=r(Jl);B(Es.$$.fragment,JT),JT.forEach(t),VT.forEach(t),y_=h(Fh),Kl=s(Fh,"SPAN",{});var KT=r(Kl);T_=i(KT,"BigBirdForMultipleChoice"),KT.forEach(t),Fh.forEach(t),Ap=h(o),he=s(o,"DIV",{class:!0});var ln=r(he);B(js.$$.fragment,ln),w_=h(ln),Xl=s(ln,"P",{});var XT=r(Xl);$_=i(XT,`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.`),XT.forEach(t),x_=h(ln),Ps=s(ln,"P",{});var zh=r(Ps);F_=i(zh,"This model is a PyTorch "),Cs=s(zh,"A",{href:!0,rel:!0});var YT=r(Cs);z_=i(YT,"torch.nn.Module"),YT.forEach(t),q_=i(zh,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),zh.forEach(t),M_=h(ln),ve=s(ln,"DIV",{class:!0});var dn=r(ve);B(As.$$.fragment,dn),E_=h(dn),kt=s(dn,"P",{});var wi=r(kt);j_=i(wi,"The "),Xa=s(wi,"A",{href:!0});var ZT=r(Xa);P_=i(ZT,"BigBirdForMultipleChoice"),ZT.forEach(t),C_=i(wi," forward method, overrides the "),Yl=s(wi,"CODE",{});var ew=r(Yl);A_=i(ew,"__call__"),ew.forEach(t),L_=i(wi," special method."),wi.forEach(t),O_=h(dn),B(Bo.$$.fragment,dn),I_=h(dn),B(yo.$$.fragment,dn),dn.forEach(t),ln.forEach(t),Lp=h(o),vt=s(o,"H2",{class:!0});var qh=r(vt);To=s(qh,"A",{id:!0,class:!0,href:!0});var tw=r(To);Zl=s(tw,"SPAN",{});var ow=r(Zl);B(Ls.$$.fragment,ow),ow.forEach(t),tw.forEach(t),N_=h(qh),ed=s(qh,"SPAN",{});var nw=r(ed);S_=i(nw,"BigBirdForTokenClassification"),nw.forEach(t),qh.forEach(t),Op=h(o),me=s(o,"DIV",{class:!0});var cn=r(me);B(Os.$$.fragment,cn),D_=h(cn),td=s(cn,"P",{});var sw=r(td);W_=i(sw,`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.`),sw.forEach(t),U_=h(cn),Is=s(cn,"P",{});var Mh=r(Is);R_=i(Mh,"This model is a PyTorch "),Ns=s(Mh,"A",{href:!0,rel:!0});var rw=r(Ns);G_=i(rw,"torch.nn.Module"),rw.forEach(t),Q_=i(Mh,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Mh.forEach(t),H_=h(cn),Be=s(cn,"DIV",{class:!0});var pn=r(Be);B(Ss.$$.fragment,pn),V_=h(pn),Bt=s(pn,"P",{});var $i=r(Bt);J_=i($i,"The "),Ya=s($i,"A",{href:!0});var aw=r(Ya);K_=i(aw,"BigBirdForTokenClassification"),aw.forEach(t),X_=i($i," forward method, overrides the "),od=s($i,"CODE",{});var iw=r(od);Y_=i(iw,"__call__"),iw.forEach(t),Z_=i($i," special method."),$i.forEach(t),eb=h(pn),B(wo.$$.fragment,pn),tb=h(pn),B($o.$$.fragment,pn),pn.forEach(t),cn.forEach(t),Ip=h(o),yt=s(o,"H2",{class:!0});var Eh=r(yt);xo=s(Eh,"A",{id:!0,class:!0,href:!0});var lw=r(xo);nd=s(lw,"SPAN",{});var dw=r(nd);B(Ds.$$.fragment,dw),dw.forEach(t),lw.forEach(t),ob=h(Eh),sd=s(Eh,"SPAN",{});var cw=r(sd);nb=i(cw,"BigBirdForQuestionAnswering"),cw.forEach(t),Eh.forEach(t),Np=h(o),ue=s(o,"DIV",{class:!0});var hn=r(ue);B(Ws.$$.fragment,hn),sb=h(hn),Tt=s(hn,"P",{});var xi=r(Tt);rb=i(xi,`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 `),rd=s(xi,"CODE",{});var pw=r(rd);ab=i(pw,"span start logits"),pw.forEach(t),ib=i(xi," and "),ad=s(xi,"CODE",{});var hw=r(ad);lb=i(hw,"span end logits"),hw.forEach(t),db=i(xi,")."),xi.forEach(t),cb=h(hn),Us=s(hn,"P",{});var jh=r(Us);pb=i(jh,"This model is a PyTorch "),Rs=s(jh,"A",{href:!0,rel:!0});var mw=r(Rs);hb=i(mw,"torch.nn.Module"),mw.forEach(t),mb=i(jh,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),jh.forEach(t),ub=h(hn),Y=s(hn,"DIV",{class:!0});var Ve=r(Y);B(Gs.$$.fragment,Ve),fb=h(Ve),wt=s(Ve,"P",{});var Fi=r(wt);gb=i(Fi,"The "),Za=s(Fi,"A",{href:!0});var uw=r(Za);_b=i(uw,"BigBirdForQuestionAnswering"),uw.forEach(t),bb=i(Fi," forward method, overrides the "),id=s(Fi,"CODE",{});var fw=r(id);kb=i(fw,"__call__"),fw.forEach(t),vb=i(Fi," special method."),Fi.forEach(t),Bb=h(Ve),B(Fo.$$.fragment,Ve),yb=h(Ve),B(zo.$$.fragment,Ve),Tb=h(Ve),B(qo.$$.fragment,Ve),Ve.forEach(t),hn.forEach(t),Sp=h(o),$t=s(o,"H2",{class:!0});var Ph=r($t);Mo=s(Ph,"A",{id:!0,class:!0,href:!0});var gw=r(Mo);ld=s(gw,"SPAN",{});var _w=r(ld);B(Qs.$$.fragment,_w),_w.forEach(t),gw.forEach(t),wb=h(Ph),dd=s(Ph,"SPAN",{});var bw=r(dd);$b=i(bw,"FlaxBigBirdModel"),bw.forEach(t),Ph.forEach(t),Dp=h(o),C=s(o,"DIV",{class:!0});var te=r(C);B(Hs.$$.fragment,te),xb=h(te),cd=s(te,"P",{});var kw=r(cd);Fb=i(kw,"The bare BigBird Model transformer outputting raw hidden-states without any specific head on top."),kw.forEach(t),zb=h(te),Vs=s(te,"P",{});var Ch=r(Vs);qb=i(Ch,"This model inherits from "),ei=s(Ch,"A",{href:!0});var vw=r(ei);Mb=i(vw,"FlaxPreTrainedModel"),vw.forEach(t),Eb=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),jb=h(te),Js=s(te,"P",{});var Ah=r(Js);Pb=i(Ah,"This model is also a Flax Linen "),Ks=s(Ah,"A",{href:!0,rel:!0});var Bw=r(Ks);Cb=i(Bw,"flax.linen.Module"),Bw.forEach(t),Ab=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),Lb=h(te),pd=s(te,"P",{});var yw=r(pd);Ob=i(yw,"Finally, this model supports inherent JAX features such as:"),yw.forEach(t),Ib=h(te),Pe=s(te,"UL",{});var mn=r(Pe);hd=s(mn,"LI",{});var Tw=r(hd);Xs=s(Tw,"A",{href:!0,rel:!0});var ww=r(Xs);Nb=i(ww,"Just-In-Time (JIT) compilation"),ww.forEach(t),Tw.forEach(t),Sb=h(mn),md=s(mn,"LI",{});var $w=r(md);Ys=s($w,"A",{href:!0,rel:!0});var xw=r(Ys);Db=i(xw,"Automatic Differentiation"),xw.forEach(t),$w.forEach(t),Wb=h(mn),ud=s(mn,"LI",{});var Fw=r(ud);Zs=s(Fw,"A",{href:!0,rel:!0});var zw=r(Zs);Ub=i(zw,"Vectorization"),zw.forEach(t),Fw.forEach(t),Rb=h(mn),fd=s(mn,"LI",{});var qw=r(fd);er=s(qw,"A",{href:!0,rel:!0});var Mw=r(er);Gb=i(Mw,"Parallelization"),Mw.forEach(t),qw.forEach(t),mn.forEach(t),Qb=h(te),ye=s(te,"DIV",{class:!0});var un=r(ye);B(tr.$$.fragment,un),Hb=h(un),xt=s(un,"P",{});var zi=r(xt);Vb=i(zi,"The "),gd=s(zi,"CODE",{});var Ew=r(gd);Jb=i(Ew,"FlaxBigBirdPreTrainedModel"),Ew.forEach(t),Kb=i(zi," forward method, overrides the "),_d=s(zi,"CODE",{});var jw=r(_d);Xb=i(jw,"__call__"),jw.forEach(t),Yb=i(zi," special method."),zi.forEach(t),Zb=h(un),B(Eo.$$.fragment,un),ek=h(un),B(jo.$$.fragment,un),un.forEach(t),te.forEach(t),Wp=h(o),Ft=s(o,"H2",{class:!0});var Lh=r(Ft);Po=s(Lh,"A",{id:!0,class:!0,href:!0});var Pw=r(Po);bd=s(Pw,"SPAN",{});var Cw=r(bd);B(or.$$.fragment,Cw),Cw.forEach(t),Pw.forEach(t),tk=h(Lh),kd=s(Lh,"SPAN",{});var Aw=r(kd);ok=i(Aw,"FlaxBigBirdForPreTraining"),Aw.forEach(t),Lh.forEach(t),Up=h(o),A=s(o,"DIV",{class:!0});var oe=r(A);B(nr.$$.fragment,oe),nk=h(oe),zt=s(oe,"P",{});var qi=r(zt);sk=i(qi,"BigBird Model with two heads on top as done during the pretraining: a "),vd=s(qi,"CODE",{});var Lw=r(vd);rk=i(Lw,"masked language modeling"),Lw.forEach(t),ak=i(qi," head and a "),Bd=s(qi,"CODE",{});var Ow=r(Bd);ik=i(Ow,"next sentence prediction (classification)"),Ow.forEach(t),lk=i(qi," head."),qi.forEach(t),dk=h(oe),sr=s(oe,"P",{});var Oh=r(sr);ck=i(Oh,"This model inherits from "),ti=s(Oh,"A",{href:!0});var Iw=r(ti);pk=i(Iw,"FlaxPreTrainedModel"),Iw.forEach(t),hk=i(Oh,`. 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)`),Oh.forEach(t),mk=h(oe),rr=s(oe,"P",{});var Ih=r(rr);uk=i(Ih,"This model is also a Flax Linen "),ar=s(Ih,"A",{href:!0,rel:!0});var Nw=r(ar);fk=i(Nw,"flax.linen.Module"),Nw.forEach(t),gk=i(Ih,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),Ih.forEach(t),_k=h(oe),yd=s(oe,"P",{});var Sw=r(yd);bk=i(Sw,"Finally, this model supports inherent JAX features such as:"),Sw.forEach(t),kk=h(oe),Ce=s(oe,"UL",{});var fn=r(Ce);Td=s(fn,"LI",{});var Dw=r(Td);ir=s(Dw,"A",{href:!0,rel:!0});var Ww=r(ir);vk=i(Ww,"Just-In-Time (JIT) compilation"),Ww.forEach(t),Dw.forEach(t),Bk=h(fn),wd=s(fn,"LI",{});var Uw=r(wd);lr=s(Uw,"A",{href:!0,rel:!0});var Rw=r(lr);yk=i(Rw,"Automatic Differentiation"),Rw.forEach(t),Uw.forEach(t),Tk=h(fn),$d=s(fn,"LI",{});var Gw=r($d);dr=s(Gw,"A",{href:!0,rel:!0});var Qw=r(dr);wk=i(Qw,"Vectorization"),Qw.forEach(t),Gw.forEach(t),$k=h(fn),xd=s(fn,"LI",{});var Hw=r(xd);cr=s(Hw,"A",{href:!0,rel:!0});var Vw=r(cr);xk=i(Vw,"Parallelization"),Vw.forEach(t),Hw.forEach(t),fn.forEach(t),Fk=h(oe),Te=s(oe,"DIV",{class:!0});var gn=r(Te);B(pr.$$.fragment,gn),zk=h(gn),qt=s(gn,"P",{});var Mi=r(qt);qk=i(Mi,"The "),Fd=s(Mi,"CODE",{});var Jw=r(Fd);Mk=i(Jw,"FlaxBigBirdPreTrainedModel"),Jw.forEach(t),Ek=i(Mi," forward method, overrides the "),zd=s(Mi,"CODE",{});var Kw=r(zd);jk=i(Kw,"__call__"),Kw.forEach(t),Pk=i(Mi," special method."),Mi.forEach(t),Ck=h(gn),B(Co.$$.fragment,gn),Ak=h(gn),B(Ao.$$.fragment,gn),gn.forEach(t),oe.forEach(t),Rp=h(o),Mt=s(o,"H2",{class:!0});var Nh=r(Mt);Lo=s(Nh,"A",{id:!0,class:!0,href:!0});var Xw=r(Lo);qd=s(Xw,"SPAN",{});var Yw=r(qd);B(hr.$$.fragment,Yw),Yw.forEach(t),Xw.forEach(t),Lk=h(Nh),Md=s(Nh,"SPAN",{});var Zw=r(Md);Ok=i(Zw,"FlaxBigBirdForCausalLM"),Zw.forEach(t),Nh.forEach(t),Gp=h(o),L=s(o,"DIV",{class:!0});var ne=r(L);B(mr.$$.fragment,ne),Ik=h(ne),Ed=s(ne,"P",{});var e2=r(Ed);Nk=i(e2,`BigBird Model with a language modeling head on top (a linear layer on top of the hidden-states output) e.g for
autoregressive tasks.`),e2.forEach(t),Sk=h(ne),ur=s(ne,"P",{});var Sh=r(ur);Dk=i(Sh,"This model inherits from "),oi=s(Sh,"A",{href:!0});var t2=r(oi);Wk=i(t2,"FlaxPreTrainedModel"),t2.forEach(t),Uk=i(Sh,`. 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)`),Sh.forEach(t),Rk=h(ne),fr=s(ne,"P",{});var Dh=r(fr);Gk=i(Dh,"This model is also a Flax Linen "),gr=s(Dh,"A",{href:!0,rel:!0});var o2=r(gr);Qk=i(o2,"flax.linen.Module"),o2.forEach(t),Hk=i(Dh,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),Dh.forEach(t),Vk=h(ne),jd=s(ne,"P",{});var n2=r(jd);Jk=i(n2,"Finally, this model supports inherent JAX features such as:"),n2.forEach(t),Kk=h(ne),Ae=s(ne,"UL",{});var _n=r(Ae);Pd=s(_n,"LI",{});var s2=r(Pd);_r=s(s2,"A",{href:!0,rel:!0});var r2=r(_r);Xk=i(r2,"Just-In-Time (JIT) compilation"),r2.forEach(t),s2.forEach(t),Yk=h(_n),Cd=s(_n,"LI",{});var a2=r(Cd);br=s(a2,"A",{href:!0,rel:!0});var i2=r(br);Zk=i(i2,"Automatic Differentiation"),i2.forEach(t),a2.forEach(t),ev=h(_n),Ad=s(_n,"LI",{});var l2=r(Ad);kr=s(l2,"A",{href:!0,rel:!0});var d2=r(kr);tv=i(d2,"Vectorization"),d2.forEach(t),l2.forEach(t),ov=h(_n),Ld=s(_n,"LI",{});var c2=r(Ld);vr=s(c2,"A",{href:!0,rel:!0});var p2=r(vr);nv=i(p2,"Parallelization"),p2.forEach(t),c2.forEach(t),_n.forEach(t),sv=h(ne),we=s(ne,"DIV",{class:!0});var bn=r(we);B(Br.$$.fragment,bn),rv=h(bn),Et=s(bn,"P",{});var Ei=r(Et);av=i(Ei,"The "),Od=s(Ei,"CODE",{});var h2=r(Od);iv=i(h2,"FlaxBigBirdPreTrainedModel"),h2.forEach(t),lv=i(Ei," forward method, overrides the "),Id=s(Ei,"CODE",{});var m2=r(Id);dv=i(m2,"__call__"),m2.forEach(t),cv=i(Ei," special method."),Ei.forEach(t),pv=h(bn),B(Oo.$$.fragment,bn),hv=h(bn),B(Io.$$.fragment,bn),bn.forEach(t),ne.forEach(t),Qp=h(o),jt=s(o,"H2",{class:!0});var Wh=r(jt);No=s(Wh,"A",{id:!0,class:!0,href:!0});var u2=r(No);Nd=s(u2,"SPAN",{});var f2=r(Nd);B(yr.$$.fragment,f2),f2.forEach(t),u2.forEach(t),mv=h(Wh),Sd=s(Wh,"SPAN",{});var g2=r(Sd);uv=i(g2,"FlaxBigBirdForMaskedLM"),g2.forEach(t),Wh.forEach(t),Hp=h(o),O=s(o,"DIV",{class:!0});var se=r(O);B(Tr.$$.fragment,se),fv=h(se),wr=s(se,"P",{});var Uh=r(wr);gv=i(Uh,"BigBird Model with a "),Dd=s(Uh,"CODE",{});var _2=r(Dd);_v=i(_2,"language modeling"),_2.forEach(t),bv=i(Uh," head on top."),Uh.forEach(t),kv=h(se),$r=s(se,"P",{});var Rh=r($r);vv=i(Rh,"This model inherits from "),ni=s(Rh,"A",{href:!0});var b2=r(ni);Bv=i(b2,"FlaxPreTrainedModel"),b2.forEach(t),yv=i(Rh,`. 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)`),Rh.forEach(t),Tv=h(se),xr=s(se,"P",{});var Gh=r(xr);wv=i(Gh,"This model is also a Flax Linen "),Fr=s(Gh,"A",{href:!0,rel:!0});var k2=r(Fr);$v=i(k2,"flax.linen.Module"),k2.forEach(t),xv=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),Fv=h(se),Wd=s(se,"P",{});var v2=r(Wd);zv=i(v2,"Finally, this model supports inherent JAX features such as:"),v2.forEach(t),qv=h(se),Le=s(se,"UL",{});var kn=r(Le);Ud=s(kn,"LI",{});var B2=r(Ud);zr=s(B2,"A",{href:!0,rel:!0});var y2=r(zr);Mv=i(y2,"Just-In-Time (JIT) compilation"),y2.forEach(t),B2.forEach(t),Ev=h(kn),Rd=s(kn,"LI",{});var T2=r(Rd);qr=s(T2,"A",{href:!0,rel:!0});var w2=r(qr);jv=i(w2,"Automatic Differentiation"),w2.forEach(t),T2.forEach(t),Pv=h(kn),Gd=s(kn,"LI",{});var $2=r(Gd);Mr=s($2,"A",{href:!0,rel:!0});var x2=r(Mr);Cv=i(x2,"Vectorization"),x2.forEach(t),$2.forEach(t),Av=h(kn),Qd=s(kn,"LI",{});var F2=r(Qd);Er=s(F2,"A",{href:!0,rel:!0});var z2=r(Er);Lv=i(z2,"Parallelization"),z2.forEach(t),F2.forEach(t),kn.forEach(t),Ov=h(se),$e=s(se,"DIV",{class:!0});var vn=r($e);B(jr.$$.fragment,vn),Iv=h(vn),Pt=s(vn,"P",{});var ji=r(Pt);Nv=i(ji,"The "),Hd=s(ji,"CODE",{});var q2=r(Hd);Sv=i(q2,"FlaxBigBirdPreTrainedModel"),q2.forEach(t),Dv=i(ji," forward method, overrides the "),Vd=s(ji,"CODE",{});var M2=r(Vd);Wv=i(M2,"__call__"),M2.forEach(t),Uv=i(ji," special method."),ji.forEach(t),Rv=h(vn),B(So.$$.fragment,vn),Gv=h(vn),B(Do.$$.fragment,vn),vn.forEach(t),se.forEach(t),Vp=h(o),Ct=s(o,"H2",{class:!0});var Qh=r(Ct);Wo=s(Qh,"A",{id:!0,class:!0,href:!0});var E2=r(Wo);Jd=s(E2,"SPAN",{});var j2=r(Jd);B(Pr.$$.fragment,j2),j2.forEach(t),E2.forEach(t),Qv=h(Qh),Kd=s(Qh,"SPAN",{});var P2=r(Kd);Hv=i(P2,"FlaxBigBirdForSequenceClassification"),P2.forEach(t),Qh.forEach(t),Jp=h(o),I=s(o,"DIV",{class:!0});var re=r(I);B(Cr.$$.fragment,re),Vv=h(re),Xd=s(re,"P",{});var C2=r(Xd);Jv=i(C2,`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.`),C2.forEach(t),Kv=h(re),Ar=s(re,"P",{});var Hh=r(Ar);Xv=i(Hh,"This model inherits from "),si=s(Hh,"A",{href:!0});var A2=r(si);Yv=i(A2,"FlaxPreTrainedModel"),A2.forEach(t),Zv=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),eB=h(re),Lr=s(re,"P",{});var Vh=r(Lr);tB=i(Vh,"This model is also a Flax Linen "),Or=s(Vh,"A",{href:!0,rel:!0});var L2=r(Or);oB=i(L2,"flax.linen.Module"),L2.forEach(t),nB=i(Vh,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),Vh.forEach(t),sB=h(re),Yd=s(re,"P",{});var O2=r(Yd);rB=i(O2,"Finally, this model supports inherent JAX features such as:"),O2.forEach(t),aB=h(re),Oe=s(re,"UL",{});var Bn=r(Oe);Zd=s(Bn,"LI",{});var I2=r(Zd);Ir=s(I2,"A",{href:!0,rel:!0});var N2=r(Ir);iB=i(N2,"Just-In-Time (JIT) compilation"),N2.forEach(t),I2.forEach(t),lB=h(Bn),ec=s(Bn,"LI",{});var S2=r(ec);Nr=s(S2,"A",{href:!0,rel:!0});var D2=r(Nr);dB=i(D2,"Automatic Differentiation"),D2.forEach(t),S2.forEach(t),cB=h(Bn),tc=s(Bn,"LI",{});var W2=r(tc);Sr=s(W2,"A",{href:!0,rel:!0});var U2=r(Sr);pB=i(U2,"Vectorization"),U2.forEach(t),W2.forEach(t),hB=h(Bn),oc=s(Bn,"LI",{});var R2=r(oc);Dr=s(R2,"A",{href:!0,rel:!0});var G2=r(Dr);mB=i(G2,"Parallelization"),G2.forEach(t),R2.forEach(t),Bn.forEach(t),uB=h(re),xe=s(re,"DIV",{class:!0});var yn=r(xe);B(Wr.$$.fragment,yn),fB=h(yn),At=s(yn,"P",{});var Pi=r(At);gB=i(Pi,"The "),nc=s(Pi,"CODE",{});var Q2=r(nc);_B=i(Q2,"FlaxBigBirdPreTrainedModel"),Q2.forEach(t),bB=i(Pi," forward method, overrides the "),sc=s(Pi,"CODE",{});var H2=r(sc);kB=i(H2,"__call__"),H2.forEach(t),vB=i(Pi," special method."),Pi.forEach(t),BB=h(yn),B(Uo.$$.fragment,yn),yB=h(yn),B(Ro.$$.fragment,yn),yn.forEach(t),re.forEach(t),Kp=h(o),Lt=s(o,"H2",{class:!0});var Jh=r(Lt);Go=s(Jh,"A",{id:!0,class:!0,href:!0});var V2=r(Go);rc=s(V2,"SPAN",{});var J2=r(rc);B(Ur.$$.fragment,J2),J2.forEach(t),V2.forEach(t),TB=h(Jh),ac=s(Jh,"SPAN",{});var K2=r(ac);wB=i(K2,"FlaxBigBirdForMultipleChoice"),K2.forEach(t),Jh.forEach(t),Xp=h(o),N=s(o,"DIV",{class:!0});var ae=r(N);B(Rr.$$.fragment,ae),$B=h(ae),ic=s(ae,"P",{});var X2=r(ic);xB=i(X2,`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.`),X2.forEach(t),FB=h(ae),Gr=s(ae,"P",{});var Kh=r(Gr);zB=i(Kh,"This model inherits from "),ri=s(Kh,"A",{href:!0});var Y2=r(ri);qB=i(Y2,"FlaxPreTrainedModel"),Y2.forEach(t),MB=i(Kh,`. 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)`),Kh.forEach(t),EB=h(ae),Qr=s(ae,"P",{});var Xh=r(Qr);jB=i(Xh,"This model is also a Flax Linen "),Hr=s(Xh,"A",{href:!0,rel:!0});var Z2=r(Hr);PB=i(Z2,"flax.linen.Module"),Z2.forEach(t),CB=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),AB=h(ae),lc=s(ae,"P",{});var e$=r(lc);LB=i(e$,"Finally, this model supports inherent JAX features such as:"),e$.forEach(t),OB=h(ae),Ie=s(ae,"UL",{});var Tn=r(Ie);dc=s(Tn,"LI",{});var t$=r(dc);Vr=s(t$,"A",{href:!0,rel:!0});var o$=r(Vr);IB=i(o$,"Just-In-Time (JIT) compilation"),o$.forEach(t),t$.forEach(t),NB=h(Tn),cc=s(Tn,"LI",{});var n$=r(cc);Jr=s(n$,"A",{href:!0,rel:!0});var s$=r(Jr);SB=i(s$,"Automatic Differentiation"),s$.forEach(t),n$.forEach(t),DB=h(Tn),pc=s(Tn,"LI",{});var r$=r(pc);Kr=s(r$,"A",{href:!0,rel:!0});var a$=r(Kr);WB=i(a$,"Vectorization"),a$.forEach(t),r$.forEach(t),UB=h(Tn),hc=s(Tn,"LI",{});var i$=r(hc);Xr=s(i$,"A",{href:!0,rel:!0});var l$=r(Xr);RB=i(l$,"Parallelization"),l$.forEach(t),i$.forEach(t),Tn.forEach(t),GB=h(ae),Fe=s(ae,"DIV",{class:!0});var wn=r(Fe);B(Yr.$$.fragment,wn),QB=h(wn),Ot=s(wn,"P",{});var Ci=r(Ot);HB=i(Ci,"The "),mc=s(Ci,"CODE",{});var d$=r(mc);VB=i(d$,"FlaxBigBirdPreTrainedModel"),d$.forEach(t),JB=i(Ci," forward method, overrides the "),uc=s(Ci,"CODE",{});var c$=r(uc);KB=i(c$,"__call__"),c$.forEach(t),XB=i(Ci," special method."),Ci.forEach(t),YB=h(wn),B(Qo.$$.fragment,wn),ZB=h(wn),B(Ho.$$.fragment,wn),wn.forEach(t),ae.forEach(t),Yp=h(o),It=s(o,"H2",{class:!0});var Yh=r(It);Vo=s(Yh,"A",{id:!0,class:!0,href:!0});var p$=r(Vo);fc=s(p$,"SPAN",{});var h$=r(fc);B(Zr.$$.fragment,h$),h$.forEach(t),p$.forEach(t),ey=h(Yh),gc=s(Yh,"SPAN",{});var m$=r(gc);ty=i(m$,"FlaxBigBirdForTokenClassification"),m$.forEach(t),Yh.forEach(t),Zp=h(o),S=s(o,"DIV",{class:!0});var ie=r(S);B(ea.$$.fragment,ie),oy=h(ie),_c=s(ie,"P",{});var u$=r(_c);ny=i(u$,`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.`),u$.forEach(t),sy=h(ie),ta=s(ie,"P",{});var Zh=r(ta);ry=i(Zh,"This model inherits from "),ai=s(Zh,"A",{href:!0});var f$=r(ai);ay=i(f$,"FlaxPreTrainedModel"),f$.forEach(t),iy=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),ly=h(ie),oa=s(ie,"P",{});var em=r(oa);dy=i(em,"This model is also a Flax Linen "),na=s(em,"A",{href:!0,rel:!0});var g$=r(na);cy=i(g$,"flax.linen.Module"),g$.forEach(t),py=i(em,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),em.forEach(t),hy=h(ie),bc=s(ie,"P",{});var _$=r(bc);my=i(_$,"Finally, this model supports inherent JAX features such as:"),_$.forEach(t),uy=h(ie),Ne=s(ie,"UL",{});var $n=r(Ne);kc=s($n,"LI",{});var b$=r(kc);sa=s(b$,"A",{href:!0,rel:!0});var k$=r(sa);fy=i(k$,"Just-In-Time (JIT) compilation"),k$.forEach(t),b$.forEach(t),gy=h($n),vc=s($n,"LI",{});var v$=r(vc);ra=s(v$,"A",{href:!0,rel:!0});var B$=r(ra);_y=i(B$,"Automatic Differentiation"),B$.forEach(t),v$.forEach(t),by=h($n),Bc=s($n,"LI",{});var y$=r(Bc);aa=s(y$,"A",{href:!0,rel:!0});var T$=r(aa);ky=i(T$,"Vectorization"),T$.forEach(t),y$.forEach(t),vy=h($n),yc=s($n,"LI",{});var w$=r(yc);ia=s(w$,"A",{href:!0,rel:!0});var $$=r(ia);By=i($$,"Parallelization"),$$.forEach(t),w$.forEach(t),$n.forEach(t),yy=h(ie),ze=s(ie,"DIV",{class:!0});var xn=r(ze);B(la.$$.fragment,xn),Ty=h(xn),Nt=s(xn,"P",{});var Ai=r(Nt);wy=i(Ai,"The "),Tc=s(Ai,"CODE",{});var x$=r(Tc);$y=i(x$,"FlaxBigBirdPreTrainedModel"),x$.forEach(t),xy=i(Ai," forward method, overrides the "),wc=s(Ai,"CODE",{});var F$=r(wc);Fy=i(F$,"__call__"),F$.forEach(t),zy=i(Ai," special method."),Ai.forEach(t),qy=h(xn),B(Jo.$$.fragment,xn),My=h(xn),B(Ko.$$.fragment,xn),xn.forEach(t),ie.forEach(t),eh=h(o),St=s(o,"H2",{class:!0});var tm=r(St);Xo=s(tm,"A",{id:!0,class:!0,href:!0});var z$=r(Xo);$c=s(z$,"SPAN",{});var q$=r($c);B(da.$$.fragment,q$),q$.forEach(t),z$.forEach(t),Ey=h(tm),xc=s(tm,"SPAN",{});var M$=r(xc);jy=i(M$,"FlaxBigBirdForQuestionAnswering"),M$.forEach(t),tm.forEach(t),th=h(o),D=s(o,"DIV",{class:!0});var le=r(D);B(ca.$$.fragment,le),Py=h(le),Dt=s(le,"P",{});var Li=r(Dt);Cy=i(Li,`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 `),Fc=s(Li,"CODE",{});var E$=r(Fc);Ay=i(E$,"span start logits"),E$.forEach(t),Ly=i(Li," and "),zc=s(Li,"CODE",{});var j$=r(zc);Oy=i(j$,"span end logits"),j$.forEach(t),Iy=i(Li,")."),Li.forEach(t),Ny=h(le),pa=s(le,"P",{});var om=r(pa);Sy=i(om,"This model inherits from "),ii=s(om,"A",{href:!0});var P$=r(ii);Dy=i(P$,"FlaxPreTrainedModel"),P$.forEach(t),Wy=i(om,`. 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)`),om.forEach(t),Uy=h(le),ha=s(le,"P",{});var nm=r(ha);Ry=i(nm,"This model is also a Flax Linen "),ma=s(nm,"A",{href:!0,rel:!0});var C$=r(ma);Gy=i(C$,"flax.linen.Module"),C$.forEach(t),Qy=i(nm,`
subclass. Use it as a regular Flax linen Module and refer to the Flax documentation for all matter related to
general usage and behavior.`),nm.forEach(t),Hy=h(le),qc=s(le,"P",{});var A$=r(qc);Vy=i(A$,"Finally, this model supports inherent JAX features such as:"),A$.forEach(t),Jy=h(le),Se=s(le,"UL",{});var Fn=r(Se);Mc=s(Fn,"LI",{});var L$=r(Mc);ua=s(L$,"A",{href:!0,rel:!0});var O$=r(ua);Ky=i(O$,"Just-In-Time (JIT) compilation"),O$.forEach(t),L$.forEach(t),Xy=h(Fn),Ec=s(Fn,"LI",{});var I$=r(Ec);fa=s(I$,"A",{href:!0,rel:!0});var N$=r(fa);Yy=i(N$,"Automatic Differentiation"),N$.forEach(t),I$.forEach(t),Zy=h(Fn),jc=s(Fn,"LI",{});var S$=r(jc);ga=s(S$,"A",{href:!0,rel:!0});var D$=r(ga);e1=i(D$,"Vectorization"),D$.forEach(t),S$.forEach(t),t1=h(Fn),Pc=s(Fn,"LI",{});var W$=r(Pc);_a=s(W$,"A",{href:!0,rel:!0});var U$=r(_a);o1=i(U$,"Parallelization"),U$.forEach(t),W$.forEach(t),Fn.forEach(t),n1=h(le),qe=s(le,"DIV",{class:!0});var zn=r(qe);B(ba.$$.fragment,zn),s1=h(zn),Wt=s(zn,"P",{});var Oi=r(Wt);r1=i(Oi,"The "),li=s(Oi,"A",{href:!0});var R$=r(li);a1=i(R$,"FlaxBigBirdForQuestionAnswering"),R$.forEach(t),i1=i(Oi," forward method, overrides the "),Cc=s(Oi,"CODE",{});var G$=r(Cc);l1=i(G$,"__call__"),G$.forEach(t),d1=i(Oi," special method."),Oi.forEach(t),c1=h(zn),B(Yo.$$.fragment,zn),p1=h(zn),B(Zo.$$.fragment,zn),zn.forEach(t),le.forEach(t),this.h()},h(){c(d,"name","hf:doc:metadata"),c(d,"content",JSON.stringify(A0)),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(Rt,"id","overview"),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","#overview"),c(Je,"class","relative group"),c(Mn,"href","https://arxiv.org/abs/2007.14062"),c(Mn,"rel","nofollow"),c(jn,"href","https://huggingface.co/blog/big-bird"),c(jn,"rel","nofollow"),c(Cn,"href","https://huggingface.co/vasudevgupta"),c(Cn,"rel","nofollow"),c(An,"href","https://github.com/google-research/bigbird"),c(An,"rel","nofollow"),c(Qt,"id","documentation-resources"),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","#documentation-resources"),c(Ke,"class","relative group"),c(qa,"href","../tasks/sequence_classification"),c(Ma,"href","../tasks/token_classification"),c(Ea,"href","../tasks/question_answering"),c(ja,"href","../tasks/language_modeling"),c(Pa,"href","../tasks/masked_language_modeling"),c(Ca,"href","../tasks/multiple_choice"),c(Ht,"id","transformers.BigBirdConfig"),c(Ht,"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(Ht,"href","#transformers.BigBirdConfig"),c(Xe,"class","relative group"),c(Aa,"href","/docs/transformers/v4.29.0/en/model_doc/big_bird#transformers.BigBirdModel"),c(Nn,"href","https://huggingface.co/google/bigbird-roberta-base"),c(Nn,"rel","nofollow"),c(La,"href","/docs/transformers/v4.29.0/en/main_classes/configuration#transformers.PretrainedConfig"),c(Oa,"href","/docs/transformers/v4.29.0/en/main_classes/configuration#transformers.PretrainedConfig"),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(Jt,"id","transformers.BigBirdTokenizer"),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.BigBirdTokenizer"),c(et,"class","relative group"),c(Un,"href","https://github.com/google/sentencepiece"),c(Un,"rel","nofollow"),c(Ia,"href","/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizer"),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(Kt,"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(Da,"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(Yt,"id","transformers.BigBirdTokenizerFast"),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.BigBirdTokenizerFast"),c(ot,"class","relative group"),c(Zn,"href","https://huggingface.co/docs/tokenizers/python/latest/components.html?highlight=unigram#models"),c(Zn,"rel","nofollow"),c(Wa,"href","/docs/transformers/v4.29.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast"),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(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(eo,"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(to,"id","transformers.models.big_bird.modeling_big_bird.BigBirdForPreTrainingOutput"),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.models.big_bird.modeling_big_bird.BigBirdForPreTrainingOutput"),c(nt,"class","relative group"),c(Ga,"href","/docs/transformers/v4.29.0/en/model_doc/big_bird#transformers.BigBirdForPreTraining"),c(st,"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.BigBirdModel"),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.BigBirdModel"),c(rt,"class","relative group"),c(ps,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(ps,"rel","nofollow"),c(ms,"href","https://arxiv.org/abs/1706.03762"),c(ms,"rel","nofollow"),c(Qa,"href","/docs/transformers/v4.29.0/en/model_doc/big_bird#transformers.BigBirdModel"),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(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(ro,"id","transformers.BigBirdForPreTraining"),c(ro,"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(ro,"href","#transformers.BigBirdForPreTraining"),c(it,"class","relative group"),c(Ha,"href","/docs/transformers/v4.29.0/en/model_doc/big_bird#transformers.BigBirdForPreTraining"),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(lt,"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.BigBirdForCausalLM"),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.BigBirdForCausalLM"),c(ct,"class","relative group"),c(vs,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(vs,"rel","nofollow"),c(Va,"href","/docs/transformers/v4.29.0/en/model_doc/big_bird#transformers.BigBirdForCausalLM"),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(Ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ho,"id","transformers.BigBirdForMaskedLM"),c(ho,"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(ho,"href","#transformers.BigBirdForMaskedLM"),c(mt,"class","relative group"),c(ws,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(ws,"rel","nofollow"),c(Ja,"href","/docs/transformers/v4.29.0/en/model_doc/big_bird#transformers.BigBirdForMaskedLM"),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(je,"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.BigBirdForSequenceClassification"),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.BigBirdForSequenceClassification"),c(gt,"class","relative group"),c(qs,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(qs,"rel","nofollow"),c(Ka,"href","/docs/transformers/v4.29.0/en/model_doc/big_bird#transformers.BigBirdForSequenceClassification"),c(X,"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(vo,"id","transformers.BigBirdForMultipleChoice"),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.BigBirdForMultipleChoice"),c(bt,"class","relative group"),c(Cs,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(Cs,"rel","nofollow"),c(Xa,"href","/docs/transformers/v4.29.0/en/model_doc/big_bird#transformers.BigBirdForMultipleChoice"),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(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(To,"id","transformers.BigBirdForTokenClassification"),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.BigBirdForTokenClassification"),c(vt,"class","relative group"),c(Ns,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(Ns,"rel","nofollow"),c(Ya,"href","/docs/transformers/v4.29.0/en/model_doc/big_bird#transformers.BigBirdForTokenClassification"),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(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(xo,"id","transformers.BigBirdForQuestionAnswering"),c(xo,"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(xo,"href","#transformers.BigBirdForQuestionAnswering"),c(yt,"class","relative group"),c(Rs,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(Rs,"rel","nofollow"),c(Za,"href","/docs/transformers/v4.29.0/en/model_doc/big_bird#transformers.BigBirdForQuestionAnswering"),c(Y,"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(Mo,"id","transformers.FlaxBigBirdModel"),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.FlaxBigBirdModel"),c($t,"class","relative group"),c(ei,"href","/docs/transformers/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel"),c(Ks,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),c(Ks,"rel","nofollow"),c(Xs,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),c(Xs,"rel","nofollow"),c(Ys,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),c(Ys,"rel","nofollow"),c(Zs,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),c(Zs,"rel","nofollow"),c(er,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),c(er,"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(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(Po,"id","transformers.FlaxBigBirdForPreTraining"),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.FlaxBigBirdForPreTraining"),c(Ft,"class","relative group"),c(ti,"href","/docs/transformers/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel"),c(ar,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),c(ar,"rel","nofollow"),c(ir,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),c(ir,"rel","nofollow"),c(lr,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),c(lr,"rel","nofollow"),c(dr,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),c(dr,"rel","nofollow"),c(cr,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),c(cr,"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(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(Lo,"id","transformers.FlaxBigBirdForCausalLM"),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.FlaxBigBirdForCausalLM"),c(Mt,"class","relative group"),c(oi,"href","/docs/transformers/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel"),c(gr,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),c(gr,"rel","nofollow"),c(_r,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),c(_r,"rel","nofollow"),c(br,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),c(br,"rel","nofollow"),c(kr,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),c(kr,"rel","nofollow"),c(vr,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),c(vr,"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(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(No,"id","transformers.FlaxBigBirdForMaskedLM"),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.FlaxBigBirdForMaskedLM"),c(jt,"class","relative group"),c(ni,"href","/docs/transformers/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel"),c(Fr,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),c(Fr,"rel","nofollow"),c(zr,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),c(zr,"rel","nofollow"),c(qr,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),c(qr,"rel","nofollow"),c(Mr,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),c(Mr,"rel","nofollow"),c(Er,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),c(Er,"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(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.FlaxBigBirdForSequenceClassification"),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.FlaxBigBirdForSequenceClassification"),c(Ct,"class","relative group"),c(si,"href","/docs/transformers/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel"),c(Or,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),c(Or,"rel","nofollow"),c(Ir,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),c(Ir,"rel","nofollow"),c(Nr,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),c(Nr,"rel","nofollow"),c(Sr,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),c(Sr,"rel","nofollow"),c(Dr,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),c(Dr,"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(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(Go,"id","transformers.FlaxBigBirdForMultipleChoice"),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.FlaxBigBirdForMultipleChoice"),c(Lt,"class","relative group"),c(ri,"href","/docs/transformers/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel"),c(Hr,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),c(Hr,"rel","nofollow"),c(Vr,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),c(Vr,"rel","nofollow"),c(Jr,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),c(Jr,"rel","nofollow"),c(Kr,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),c(Kr,"rel","nofollow"),c(Xr,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),c(Xr,"rel","nofollow"),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(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(Vo,"id","transformers.FlaxBigBirdForTokenClassification"),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.FlaxBigBirdForTokenClassification"),c(It,"class","relative group"),c(ai,"href","/docs/transformers/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel"),c(na,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),c(na,"rel","nofollow"),c(sa,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),c(sa,"rel","nofollow"),c(ra,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),c(ra,"rel","nofollow"),c(aa,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),c(aa,"rel","nofollow"),c(ia,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),c(ia,"rel","nofollow"),c(ze,"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(Xo,"id","transformers.FlaxBigBirdForQuestionAnswering"),c(Xo,"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(Xo,"href","#transformers.FlaxBigBirdForQuestionAnswering"),c(St,"class","relative group"),c(ii,"href","/docs/transformers/v4.29.0/en/main_classes/model#transformers.FlaxPreTrainedModel"),c(ma,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),c(ma,"rel","nofollow"),c(ua,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),c(ua,"rel","nofollow"),c(fa,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),c(fa,"rel","nofollow"),c(ga,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),c(ga,"rel","nofollow"),c(_a,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),c(_a,"rel","nofollow"),c(li,"href","/docs/transformers/v4.29.0/en/model_doc/big_bird#transformers.FlaxBigBirdForQuestionAnswering"),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(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,sm),k(o,ip,g),k(o,Je,g),e(Je,Rt),e(Rt,Ii),y(qn,Ii,null),e(Je,rm),e(Je,Ni),e(Ni,am),k(o,lp,g),k(o,Gt,g),e(Gt,im),e(Gt,Mn),e(Mn,lm),e(Gt,dm),k(o,dp,g),k(o,$a,g),e($a,cm),k(o,cp,g),k(o,xa,g),e(xa,Si),e(Si,pm),k(o,pp,g),k(o,Fa,g),e(Fa,hm),k(o,hp,g),k(o,W,g),e(W,En),e(En,mm),e(En,jn),e(jn,um),e(En,fm),e(W,gm),e(W,de),e(de,_m),e(de,Di),e(Di,bm),e(de,km),e(de,Wi),e(Wi,vm),e(de,Bm),e(de,Ui),e(Ui,ym),e(de,Tm),e(de,Ri),e(Ri,wm),e(de,$m),e(W,xm),e(W,Gi),e(Gi,Fm),e(W,zm),e(W,Qi),e(Qi,qm),e(W,Mm),e(W,Pn),e(Pn,Em),e(Pn,Hi),e(Hi,jm),e(Pn,Pm),e(W,Cm),e(W,za),e(za,Am),e(za,Vi),e(Vi,Lm),e(W,Om),e(W,Ji),e(Ji,Im),k(o,mp,g),k(o,De,g),e(De,Nm),e(De,Cn),e(Cn,Sm),e(De,Dm),e(De,An),e(An,Wm),e(De,Um),k(o,up,g),k(o,Ke,g),e(Ke,Qt),e(Qt,Ki),y(Ln,Ki,null),e(Ke,Rm),e(Ke,Xi),e(Xi,Gm),k(o,fp,g),k(o,G,g),e(G,Yi),e(Yi,qa),e(qa,Qm),e(G,Hm),e(G,Zi),e(Zi,Ma),e(Ma,Vm),e(G,Jm),e(G,el),e(el,Ea),e(Ea,Km),e(G,Xm),e(G,tl),e(tl,ja),e(ja,Ym),e(G,Zm),e(G,ol),e(ol,Pa),e(Pa,eu),e(G,tu),e(G,nl),e(nl,Ca),e(Ca,ou),k(o,gp,g),k(o,Xe,g),e(Xe,Ht),e(Ht,sl),y(On,sl,null),e(Xe,nu),e(Xe,rl),e(rl,su),k(o,_p,g),k(o,ce,g),y(In,ce,null),e(ce,ru),e(ce,Ye),e(Ye,au),e(Ye,Aa),e(Aa,iu),e(Ye,lu),e(Ye,Nn),e(Nn,du),e(Ye,cu),e(ce,pu),e(ce,Ze),e(Ze,hu),e(Ze,La),e(La,mu),e(Ze,uu),e(Ze,Oa),e(Oa,fu),e(Ze,gu),e(ce,_u),y(Vt,ce,null),k(o,bp,g),k(o,et,g),e(et,Jt),e(Jt,al),y(Sn,al,null),e(et,bu),e(et,il),e(il,ku),k(o,kp,g),k(o,P,g),y(Dn,P,null),e(P,vu),e(P,Wn),e(Wn,Bu),e(Wn,Un),e(Un,yu),e(Wn,Tu),e(P,wu),e(P,Rn),e(Rn,$u),e(Rn,Ia),e(Ia,xu),e(Rn,Fu),e(P,zu),e(P,We),y(Gn,We,null),e(We,qu),e(We,ll),e(ll,Mu),e(We,Eu),e(We,Qn),e(Qn,Na),e(Na,ju),e(Na,dl),e(dl,Pu),e(Qn,Cu),e(Qn,Sa),e(Sa,Au),e(Sa,cl),e(cl,Lu),e(P,Ou),e(P,Kt),y(Hn,Kt,null),e(Kt,Iu),e(Kt,Vn),e(Vn,Nu),e(Vn,pl),e(pl,Su),e(Vn,Du),e(P,Wu),e(P,Xt),y(Jn,Xt,null),e(Xt,Uu),e(Xt,tt),e(tt,Ru),e(tt,hl),e(hl,Gu),e(tt,Qu),e(tt,ml),e(ml,Hu),e(tt,Vu),e(P,Ju),e(P,Da),y(Kn,Da,null),k(o,vp,g),k(o,ot,g),e(ot,Yt),e(Yt,ul),y(Xn,ul,null),e(ot,Ku),e(ot,fl),e(fl,Xu),k(o,Bp,g),k(o,H,g),y(Yn,H,null),e(H,Yu),e(H,Me),e(Me,Zu),e(Me,gl),e(gl,ef),e(Me,tf),e(Me,Zn),e(Zn,of),e(Me,nf),e(Me,Wa),e(Wa,sf),e(Me,rf),e(H,af),e(H,Ue),y(es,Ue,null),e(Ue,lf),e(Ue,_l),e(_l,df),e(Ue,cf),e(Ue,ts),e(ts,Ua),e(Ua,pf),e(Ua,bl),e(bl,hf),e(ts,mf),e(ts,Ra),e(Ra,uf),e(Ra,kl),e(kl,ff),e(H,gf),e(H,ge),y(os,ge,null),e(ge,_f),e(ge,vl),e(vl,bf),e(ge,kf),y(Zt,ge,null),e(ge,vf),e(ge,Bl),e(Bl,Bf),e(H,yf),e(H,eo),y(ns,eo,null),e(eo,Tf),e(eo,ss),e(ss,wf),e(ss,yl),e(yl,$f),e(ss,xf),k(o,yp,g),k(o,nt,g),e(nt,to),e(to,Tl),y(rs,Tl,null),e(nt,Ff),e(nt,wl),e(wl,zf),k(o,Tp,g),k(o,st,g),y(as,st,null),e(st,qf),e(st,is),e(is,Mf),e(is,Ga),e(Ga,Ef),e(is,jf),k(o,wp,g),k(o,rt,g),e(rt,oo),e(oo,$l),y(ls,$l,null),e(rt,Pf),e(rt,xl),e(xl,Cf),k(o,$p,g),k(o,V,g),y(ds,V,null),e(V,Af),e(V,cs),e(cs,Lf),e(cs,ps),e(ps,Of),e(cs,If),e(V,Nf),e(V,hs),e(hs,Sf),e(hs,ms),e(ms,Df),e(hs,Wf),e(V,Uf),e(V,U),e(U,Rf),e(U,Fl),e(Fl,Gf),e(U,Qf),e(U,zl),e(zl,Hf),e(U,Vf),e(U,ql),e(ql,Jf),e(U,Kf),e(U,Ml),e(Ml,Xf),e(U,Yf),e(U,El),e(El,Zf),e(U,eg),e(U,jl),e(jl,tg),e(U,og),e(V,ng),e(V,_e),y(us,_e,null),e(_e,sg),e(_e,at),e(at,rg),e(at,Qa),e(Qa,ag),e(at,ig),e(at,Pl),e(Pl,lg),e(at,dg),e(_e,cg),y(no,_e,null),e(_e,pg),y(so,_e,null),k(o,xp,g),k(o,it,g),e(it,ro),e(ro,Cl),y(fs,Cl,null),e(it,hg),e(it,Al),e(Al,mg),k(o,Fp,g),k(o,lt,g),y(gs,lt,null),e(lt,ug),e(lt,be),y(_s,be,null),e(be,fg),e(be,dt),e(dt,gg),e(dt,Ha),e(Ha,_g),e(dt,bg),e(dt,Ll),e(Ll,kg),e(dt,vg),e(be,Bg),y(ao,be,null),e(be,yg),y(io,be,null),k(o,zp,g),k(o,ct,g),e(ct,lo),e(lo,Ol),y(bs,Ol,null),e(ct,Tg),e(ct,Il),e(Il,wg),k(o,qp,g),k(o,Ee,g),y(ks,Ee,null),e(Ee,$g),e(Ee,pt),e(pt,xg),e(pt,Nl),e(Nl,Fg),e(pt,zg),e(pt,vs),e(vs,qg),e(pt,Mg),e(Ee,Eg),e(Ee,ke),y(Bs,ke,null),e(ke,jg),e(ke,ht),e(ht,Pg),e(ht,Va),e(Va,Cg),e(ht,Ag),e(ht,Sl),e(Sl,Lg),e(ht,Og),e(ke,Ig),y(co,ke,null),e(ke,Ng),y(po,ke,null),k(o,Mp,g),k(o,mt,g),e(mt,ho),e(ho,Dl),y(ys,Dl,null),e(mt,Sg),e(mt,Wl),e(Wl,Dg),k(o,Ep,g),k(o,je,g),y(Ts,je,null),e(je,Wg),e(je,ut),e(ut,Ug),e(ut,Ul),e(Ul,Rg),e(ut,Gg),e(ut,ws),e(ws,Qg),e(ut,Hg),e(je,Vg),e(je,K),y($s,K,null),e(K,Jg),e(K,ft),e(ft,Kg),e(ft,Ja),e(Ja,Xg),e(ft,Yg),e(ft,Rl),e(Rl,Zg),e(ft,e_),e(K,t_),y(mo,K,null),e(K,o_),y(uo,K,null),e(K,n_),y(fo,K,null),k(o,jp,g),k(o,gt,g),e(gt,go),e(go,Gl),y(xs,Gl,null),e(gt,s_),e(gt,Ql),e(Ql,r_),k(o,Pp,g),k(o,pe,g),y(Fs,pe,null),e(pe,a_),e(pe,Hl),e(Hl,i_),e(pe,l_),e(pe,zs),e(zs,d_),e(zs,qs),e(qs,c_),e(zs,p_),e(pe,h_),e(pe,X),y(Ms,X,null),e(X,m_),e(X,_t),e(_t,u_),e(_t,Ka),e(Ka,f_),e(_t,g_),e(_t,Vl),e(Vl,__),e(_t,b_),e(X,k_),y(_o,X,null),e(X,v_),y(bo,X,null),e(X,B_),y(ko,X,null),k(o,Cp,g),k(o,bt,g),e(bt,vo),e(vo,Jl),y(Es,Jl,null),e(bt,y_),e(bt,Kl),e(Kl,T_),k(o,Ap,g),k(o,he,g),y(js,he,null),e(he,w_),e(he,Xl),e(Xl,$_),e(he,x_),e(he,Ps),e(Ps,F_),e(Ps,Cs),e(Cs,z_),e(Ps,q_),e(he,M_),e(he,ve),y(As,ve,null),e(ve,E_),e(ve,kt),e(kt,j_),e(kt,Xa),e(Xa,P_),e(kt,C_),e(kt,Yl),e(Yl,A_),e(kt,L_),e(ve,O_),y(Bo,ve,null),e(ve,I_),y(yo,ve,null),k(o,Lp,g),k(o,vt,g),e(vt,To),e(To,Zl),y(Ls,Zl,null),e(vt,N_),e(vt,ed),e(ed,S_),k(o,Op,g),k(o,me,g),y(Os,me,null),e(me,D_),e(me,td),e(td,W_),e(me,U_),e(me,Is),e(Is,R_),e(Is,Ns),e(Ns,G_),e(Is,Q_),e(me,H_),e(me,Be),y(Ss,Be,null),e(Be,V_),e(Be,Bt),e(Bt,J_),e(Bt,Ya),e(Ya,K_),e(Bt,X_),e(Bt,od),e(od,Y_),e(Bt,Z_),e(Be,eb),y(wo,Be,null),e(Be,tb),y($o,Be,null),k(o,Ip,g),k(o,yt,g),e(yt,xo),e(xo,nd),y(Ds,nd,null),e(yt,ob),e(yt,sd),e(sd,nb),k(o,Np,g),k(o,ue,g),y(Ws,ue,null),e(ue,sb),e(ue,Tt),e(Tt,rb),e(Tt,rd),e(rd,ab),e(Tt,ib),e(Tt,ad),e(ad,lb),e(Tt,db),e(ue,cb),e(ue,Us),e(Us,pb),e(Us,Rs),e(Rs,hb),e(Us,mb),e(ue,ub),e(ue,Y),y(Gs,Y,null),e(Y,fb),e(Y,wt),e(wt,gb),e(wt,Za),e(Za,_b),e(wt,bb),e(wt,id),e(id,kb),e(wt,vb),e(Y,Bb),y(Fo,Y,null),e(Y,yb),y(zo,Y,null),e(Y,Tb),y(qo,Y,null),k(o,Sp,g),k(o,$t,g),e($t,Mo),e(Mo,ld),y(Qs,ld,null),e($t,wb),e($t,dd),e(dd,$b),k(o,Dp,g),k(o,C,g),y(Hs,C,null),e(C,xb),e(C,cd),e(cd,Fb),e(C,zb),e(C,Vs),e(Vs,qb),e(Vs,ei),e(ei,Mb),e(Vs,Eb),e(C,jb),e(C,Js),e(Js,Pb),e(Js,Ks),e(Ks,Cb),e(Js,Ab),e(C,Lb),e(C,pd),e(pd,Ob),e(C,Ib),e(C,Pe),e(Pe,hd),e(hd,Xs),e(Xs,Nb),e(Pe,Sb),e(Pe,md),e(md,Ys),e(Ys,Db),e(Pe,Wb),e(Pe,ud),e(ud,Zs),e(Zs,Ub),e(Pe,Rb),e(Pe,fd),e(fd,er),e(er,Gb),e(C,Qb),e(C,ye),y(tr,ye,null),e(ye,Hb),e(ye,xt),e(xt,Vb),e(xt,gd),e(gd,Jb),e(xt,Kb),e(xt,_d),e(_d,Xb),e(xt,Yb),e(ye,Zb),y(Eo,ye,null),e(ye,ek),y(jo,ye,null),k(o,Wp,g),k(o,Ft,g),e(Ft,Po),e(Po,bd),y(or,bd,null),e(Ft,tk),e(Ft,kd),e(kd,ok),k(o,Up,g),k(o,A,g),y(nr,A,null),e(A,nk),e(A,zt),e(zt,sk),e(zt,vd),e(vd,rk),e(zt,ak),e(zt,Bd),e(Bd,ik),e(zt,lk),e(A,dk),e(A,sr),e(sr,ck),e(sr,ti),e(ti,pk),e(sr,hk),e(A,mk),e(A,rr),e(rr,uk),e(rr,ar),e(ar,fk),e(rr,gk),e(A,_k),e(A,yd),e(yd,bk),e(A,kk),e(A,Ce),e(Ce,Td),e(Td,ir),e(ir,vk),e(Ce,Bk),e(Ce,wd),e(wd,lr),e(lr,yk),e(Ce,Tk),e(Ce,$d),e($d,dr),e(dr,wk),e(Ce,$k),e(Ce,xd),e(xd,cr),e(cr,xk),e(A,Fk),e(A,Te),y(pr,Te,null),e(Te,zk),e(Te,qt),e(qt,qk),e(qt,Fd),e(Fd,Mk),e(qt,Ek),e(qt,zd),e(zd,jk),e(qt,Pk),e(Te,Ck),y(Co,Te,null),e(Te,Ak),y(Ao,Te,null),k(o,Rp,g),k(o,Mt,g),e(Mt,Lo),e(Lo,qd),y(hr,qd,null),e(Mt,Lk),e(Mt,Md),e(Md,Ok),k(o,Gp,g),k(o,L,g),y(mr,L,null),e(L,Ik),e(L,Ed),e(Ed,Nk),e(L,Sk),e(L,ur),e(ur,Dk),e(ur,oi),e(oi,Wk),e(ur,Uk),e(L,Rk),e(L,fr),e(fr,Gk),e(fr,gr),e(gr,Qk),e(fr,Hk),e(L,Vk),e(L,jd),e(jd,Jk),e(L,Kk),e(L,Ae),e(Ae,Pd),e(Pd,_r),e(_r,Xk),e(Ae,Yk),e(Ae,Cd),e(Cd,br),e(br,Zk),e(Ae,ev),e(Ae,Ad),e(Ad,kr),e(kr,tv),e(Ae,ov),e(Ae,Ld),e(Ld,vr),e(vr,nv),e(L,sv),e(L,we),y(Br,we,null),e(we,rv),e(we,Et),e(Et,av),e(Et,Od),e(Od,iv),e(Et,lv),e(Et,Id),e(Id,dv),e(Et,cv),e(we,pv),y(Oo,we,null),e(we,hv),y(Io,we,null),k(o,Qp,g),k(o,jt,g),e(jt,No),e(No,Nd),y(yr,Nd,null),e(jt,mv),e(jt,Sd),e(Sd,uv),k(o,Hp,g),k(o,O,g),y(Tr,O,null),e(O,fv),e(O,wr),e(wr,gv),e(wr,Dd),e(Dd,_v),e(wr,bv),e(O,kv),e(O,$r),e($r,vv),e($r,ni),e(ni,Bv),e($r,yv),e(O,Tv),e(O,xr),e(xr,wv),e(xr,Fr),e(Fr,$v),e(xr,xv),e(O,Fv),e(O,Wd),e(Wd,zv),e(O,qv),e(O,Le),e(Le,Ud),e(Ud,zr),e(zr,Mv),e(Le,Ev),e(Le,Rd),e(Rd,qr),e(qr,jv),e(Le,Pv),e(Le,Gd),e(Gd,Mr),e(Mr,Cv),e(Le,Av),e(Le,Qd),e(Qd,Er),e(Er,Lv),e(O,Ov),e(O,$e),y(jr,$e,null),e($e,Iv),e($e,Pt),e(Pt,Nv),e(Pt,Hd),e(Hd,Sv),e(Pt,Dv),e(Pt,Vd),e(Vd,Wv),e(Pt,Uv),e($e,Rv),y(So,$e,null),e($e,Gv),y(Do,$e,null),k(o,Vp,g),k(o,Ct,g),e(Ct,Wo),e(Wo,Jd),y(Pr,Jd,null),e(Ct,Qv),e(Ct,Kd),e(Kd,Hv),k(o,Jp,g),k(o,I,g),y(Cr,I,null),e(I,Vv),e(I,Xd),e(Xd,Jv),e(I,Kv),e(I,Ar),e(Ar,Xv),e(Ar,si),e(si,Yv),e(Ar,Zv),e(I,eB),e(I,Lr),e(Lr,tB),e(Lr,Or),e(Or,oB),e(Lr,nB),e(I,sB),e(I,Yd),e(Yd,rB),e(I,aB),e(I,Oe),e(Oe,Zd),e(Zd,Ir),e(Ir,iB),e(Oe,lB),e(Oe,ec),e(ec,Nr),e(Nr,dB),e(Oe,cB),e(Oe,tc),e(tc,Sr),e(Sr,pB),e(Oe,hB),e(Oe,oc),e(oc,Dr),e(Dr,mB),e(I,uB),e(I,xe),y(Wr,xe,null),e(xe,fB),e(xe,At),e(At,gB),e(At,nc),e(nc,_B),e(At,bB),e(At,sc),e(sc,kB),e(At,vB),e(xe,BB),y(Uo,xe,null),e(xe,yB),y(Ro,xe,null),k(o,Kp,g),k(o,Lt,g),e(Lt,Go),e(Go,rc),y(Ur,rc,null),e(Lt,TB),e(Lt,ac),e(ac,wB),k(o,Xp,g),k(o,N,g),y(Rr,N,null),e(N,$B),e(N,ic),e(ic,xB),e(N,FB),e(N,Gr),e(Gr,zB),e(Gr,ri),e(ri,qB),e(Gr,MB),e(N,EB),e(N,Qr),e(Qr,jB),e(Qr,Hr),e(Hr,PB),e(Qr,CB),e(N,AB),e(N,lc),e(lc,LB),e(N,OB),e(N,Ie),e(Ie,dc),e(dc,Vr),e(Vr,IB),e(Ie,NB),e(Ie,cc),e(cc,Jr),e(Jr,SB),e(Ie,DB),e(Ie,pc),e(pc,Kr),e(Kr,WB),e(Ie,UB),e(Ie,hc),e(hc,Xr),e(Xr,RB),e(N,GB),e(N,Fe),y(Yr,Fe,null),e(Fe,QB),e(Fe,Ot),e(Ot,HB),e(Ot,mc),e(mc,VB),e(Ot,JB),e(Ot,uc),e(uc,KB),e(Ot,XB),e(Fe,YB),y(Qo,Fe,null),e(Fe,ZB),y(Ho,Fe,null),k(o,Yp,g),k(o,It,g),e(It,Vo),e(Vo,fc),y(Zr,fc,null),e(It,ey),e(It,gc),e(gc,ty),k(o,Zp,g),k(o,S,g),y(ea,S,null),e(S,oy),e(S,_c),e(_c,ny),e(S,sy),e(S,ta),e(ta,ry),e(ta,ai),e(ai,ay),e(ta,iy),e(S,ly),e(S,oa),e(oa,dy),e(oa,na),e(na,cy),e(oa,py),e(S,hy),e(S,bc),e(bc,my),e(S,uy),e(S,Ne),e(Ne,kc),e(kc,sa),e(sa,fy),e(Ne,gy),e(Ne,vc),e(vc,ra),e(ra,_y),e(Ne,by),e(Ne,Bc),e(Bc,aa),e(aa,ky),e(Ne,vy),e(Ne,yc),e(yc,ia),e(ia,By),e(S,yy),e(S,ze),y(la,ze,null),e(ze,Ty),e(ze,Nt),e(Nt,wy),e(Nt,Tc),e(Tc,$y),e(Nt,xy),e(Nt,wc),e(wc,Fy),e(Nt,zy),e(ze,qy),y(Jo,ze,null),e(ze,My),y(Ko,ze,null),k(o,eh,g),k(o,St,g),e(St,Xo),e(Xo,$c),y(da,$c,null),e(St,Ey),e(St,xc),e(xc,jy),k(o,th,g),k(o,D,g),y(ca,D,null),e(D,Py),e(D,Dt),e(Dt,Cy),e(Dt,Fc),e(Fc,Ay),e(Dt,Ly),e(Dt,zc),e(zc,Oy),e(Dt,Iy),e(D,Ny),e(D,pa),e(pa,Sy),e(pa,ii),e(ii,Dy),e(pa,Wy),e(D,Uy),e(D,ha),e(ha,Ry),e(ha,ma),e(ma,Gy),e(ha,Qy),e(D,Hy),e(D,qc),e(qc,Vy),e(D,Jy),e(D,Se),e(Se,Mc),e(Mc,ua),e(ua,Ky),e(Se,Xy),e(Se,Ec),e(Ec,fa),e(fa,Yy),e(Se,Zy),e(Se,jc),e(jc,ga),e(ga,e1),e(Se,t1),e(Se,Pc),e(Pc,_a),e(_a,o1),e(D,n1),e(D,qe),y(ba,qe,null),e(qe,s1),e(qe,Wt),e(Wt,r1),e(Wt,li),e(li,a1),e(Wt,i1),e(Wt,Cc),e(Cc,l1),e(Wt,d1),e(qe,c1),y(Yo,qe,null),e(qe,p1),y(Zo,qe,null),oh=!0},p(o,[g]){const ka={};g&2&&(ka.$$scope={dirty:g,ctx:o}),Vt.$set(ka);const Ac={};g&2&&(Ac.$$scope={dirty:g,ctx:o}),Zt.$set(Ac);const Lc={};g&2&&(Lc.$$scope={dirty:g,ctx:o}),no.$set(Lc);const Oc={};g&2&&(Oc.$$scope={dirty:g,ctx:o}),so.$set(Oc);const va={};g&2&&(va.$$scope={dirty:g,ctx:o}),ao.$set(va);const Ic={};g&2&&(Ic.$$scope={dirty:g,ctx:o}),io.$set(Ic);const Nc={};g&2&&(Nc.$$scope={dirty:g,ctx:o}),co.$set(Nc);const Sc={};g&2&&(Sc.$$scope={dirty:g,ctx:o}),po.$set(Sc);const Ba={};g&2&&(Ba.$$scope={dirty:g,ctx:o}),mo.$set(Ba);const Dc={};g&2&&(Dc.$$scope={dirty:g,ctx:o}),uo.$set(Dc);const Wc={};g&2&&(Wc.$$scope={dirty:g,ctx:o}),fo.$set(Wc);const Uc={};g&2&&(Uc.$$scope={dirty:g,ctx:o}),_o.$set(Uc);const Rc={};g&2&&(Rc.$$scope={dirty:g,ctx:o}),bo.$set(Rc);const Gc={};g&2&&(Gc.$$scope={dirty:g,ctx:o}),ko.$set(Gc);const R={};g&2&&(R.$$scope={dirty:g,ctx:o}),Bo.$set(R);const ya={};g&2&&(ya.$$scope={dirty:g,ctx:o}),yo.$set(ya);const Qc={};g&2&&(Qc.$$scope={dirty:g,ctx:o}),wo.$set(Qc);const fe={};g&2&&(fe.$$scope={dirty:g,ctx:o}),$o.$set(fe);const Hc={};g&2&&(Hc.$$scope={dirty:g,ctx:o}),Fo.$set(Hc);const Vc={};g&2&&(Vc.$$scope={dirty:g,ctx:o}),zo.$set(Vc);const Jc={};g&2&&(Jc.$$scope={dirty:g,ctx:o}),qo.$set(Jc);const Kc={};g&2&&(Kc.$$scope={dirty:g,ctx:o}),Eo.$set(Kc);const Xc={};g&2&&(Xc.$$scope={dirty:g,ctx:o}),jo.$set(Xc);const Yc={};g&2&&(Yc.$$scope={dirty:g,ctx:o}),Co.$set(Yc);const Ta={};g&2&&(Ta.$$scope={dirty:g,ctx:o}),Ao.$set(Ta);const Zc={};g&2&&(Zc.$$scope={dirty:g,ctx:o}),Oo.$set(Zc);const di={};g&2&&(di.$$scope={dirty:g,ctx:o}),Io.$set(di);const ep={};g&2&&(ep.$$scope={dirty:g,ctx:o}),So.$set(ep);const tp={};g&2&&(tp.$$scope={dirty:g,ctx:o}),Do.$set(tp);const Ut={};g&2&&(Ut.$$scope={dirty:g,ctx:o}),Uo.$set(Ut);const op={};g&2&&(op.$$scope={dirty:g,ctx:o}),Ro.$set(op);const np={};g&2&&(np.$$scope={dirty:g,ctx:o}),Qo.$set(np);const wa={};g&2&&(wa.$$scope={dirty:g,ctx:o}),Ho.$set(wa);const sp={};g&2&&(sp.$$scope={dirty:g,ctx:o}),Jo.$set(sp);const rp={};g&2&&(rp.$$scope={dirty:g,ctx:o}),Ko.$set(rp);const ap={};g&2&&(ap.$$scope={dirty:g,ctx:o}),Yo.$set(ap);const J={};g&2&&(J.$$scope={dirty:g,ctx:o}),Zo.$set(J)},i(o){oh||(T(l.$$.fragment,o),T(qn.$$.fragment,o),T(Ln.$$.fragment,o),T(On.$$.fragment,o),T(In.$$.fragment,o),T(Vt.$$.fragment,o),T(Sn.$$.fragment,o),T(Dn.$$.fragment,o),T(Gn.$$.fragment,o),T(Hn.$$.fragment,o),T(Jn.$$.fragment,o),T(Kn.$$.fragment,o),T(Xn.$$.fragment,o),T(Yn.$$.fragment,o),T(es.$$.fragment,o),T(os.$$.fragment,o),T(Zt.$$.fragment,o),T(ns.$$.fragment,o),T(rs.$$.fragment,o),T(as.$$.fragment,o),T(ls.$$.fragment,o),T(ds.$$.fragment,o),T(us.$$.fragment,o),T(no.$$.fragment,o),T(so.$$.fragment,o),T(fs.$$.fragment,o),T(gs.$$.fragment,o),T(_s.$$.fragment,o),T(ao.$$.fragment,o),T(io.$$.fragment,o),T(bs.$$.fragment,o),T(ks.$$.fragment,o),T(Bs.$$.fragment,o),T(co.$$.fragment,o),T(po.$$.fragment,o),T(ys.$$.fragment,o),T(Ts.$$.fragment,o),T($s.$$.fragment,o),T(mo.$$.fragment,o),T(uo.$$.fragment,o),T(fo.$$.fragment,o),T(xs.$$.fragment,o),T(Fs.$$.fragment,o),T(Ms.$$.fragment,o),T(_o.$$.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(Os.$$.fragment,o),T(Ss.$$.fragment,o),T(wo.$$.fragment,o),T($o.$$.fragment,o),T(Ds.$$.fragment,o),T(Ws.$$.fragment,o),T(Gs.$$.fragment,o),T(Fo.$$.fragment,o),T(zo.$$.fragment,o),T(qo.$$.fragment,o),T(Qs.$$.fragment,o),T(Hs.$$.fragment,o),T(tr.$$.fragment,o),T(Eo.$$.fragment,o),T(jo.$$.fragment,o),T(or.$$.fragment,o),T(nr.$$.fragment,o),T(pr.$$.fragment,o),T(Co.$$.fragment,o),T(Ao.$$.fragment,o),T(hr.$$.fragment,o),T(mr.$$.fragment,o),T(Br.$$.fragment,o),T(Oo.$$.fragment,o),T(Io.$$.fragment,o),T(yr.$$.fragment,o),T(Tr.$$.fragment,o),T(jr.$$.fragment,o),T(So.$$.fragment,o),T(Do.$$.fragment,o),T(Pr.$$.fragment,o),T(Cr.$$.fragment,o),T(Wr.$$.fragment,o),T(Uo.$$.fragment,o),T(Ro.$$.fragment,o),T(Ur.$$.fragment,o),T(Rr.$$.fragment,o),T(Yr.$$.fragment,o),T(Qo.$$.fragment,o),T(Ho.$$.fragment,o),T(Zr.$$.fragment,o),T(ea.$$.fragment,o),T(la.$$.fragment,o),T(Jo.$$.fragment,o),T(Ko.$$.fragment,o),T(da.$$.fragment,o),T(ca.$$.fragment,o),T(ba.$$.fragment,o),T(Yo.$$.fragment,o),T(Zo.$$.fragment,o),oh=!0)},o(o){w(l.$$.fragment,o),w(qn.$$.fragment,o),w(Ln.$$.fragment,o),w(On.$$.fragment,o),w(In.$$.fragment,o),w(Vt.$$.fragment,o),w(Sn.$$.fragment,o),w(Dn.$$.fragment,o),w(Gn.$$.fragment,o),w(Hn.$$.fragment,o),w(Jn.$$.fragment,o),w(Kn.$$.fragment,o),w(Xn.$$.fragment,o),w(Yn.$$.fragment,o),w(es.$$.fragment,o),w(os.$$.fragment,o),w(Zt.$$.fragment,o),w(ns.$$.fragment,o),w(rs.$$.fragment,o),w(as.$$.fragment,o),w(ls.$$.fragment,o),w(ds.$$.fragment,o),w(us.$$.fragment,o),w(no.$$.fragment,o),w(so.$$.fragment,o),w(fs.$$.fragment,o),w(gs.$$.fragment,o),w(_s.$$.fragment,o),w(ao.$$.fragment,o),w(io.$$.fragment,o),w(bs.$$.fragment,o),w(ks.$$.fragment,o),w(Bs.$$.fragment,o),w(co.$$.fragment,o),w(po.$$.fragment,o),w(ys.$$.fragment,o),w(Ts.$$.fragment,o),w($s.$$.fragment,o),w(mo.$$.fragment,o),w(uo.$$.fragment,o),w(fo.$$.fragment,o),w(xs.$$.fragment,o),w(Fs.$$.fragment,o),w(Ms.$$.fragment,o),w(_o.$$.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(Os.$$.fragment,o),w(Ss.$$.fragment,o),w(wo.$$.fragment,o),w($o.$$.fragment,o),w(Ds.$$.fragment,o),w(Ws.$$.fragment,o),w(Gs.$$.fragment,o),w(Fo.$$.fragment,o),w(zo.$$.fragment,o),w(qo.$$.fragment,o),w(Qs.$$.fragment,o),w(Hs.$$.fragment,o),w(tr.$$.fragment,o),w(Eo.$$.fragment,o),w(jo.$$.fragment,o),w(or.$$.fragment,o),w(nr.$$.fragment,o),w(pr.$$.fragment,o),w(Co.$$.fragment,o),w(Ao.$$.fragment,o),w(hr.$$.fragment,o),w(mr.$$.fragment,o),w(Br.$$.fragment,o),w(Oo.$$.fragment,o),w(Io.$$.fragment,o),w(yr.$$.fragment,o),w(Tr.$$.fragment,o),w(jr.$$.fragment,o),w(So.$$.fragment,o),w(Do.$$.fragment,o),w(Pr.$$.fragment,o),w(Cr.$$.fragment,o),w(Wr.$$.fragment,o),w(Uo.$$.fragment,o),w(Ro.$$.fragment,o),w(Ur.$$.fragment,o),w(Rr.$$.fragment,o),w(Yr.$$.fragment,o),w(Qo.$$.fragment,o),w(Ho.$$.fragment,o),w(Zr.$$.fragment,o),w(ea.$$.fragment,o),w(la.$$.fragment,o),w(Jo.$$.fragment,o),w(Ko.$$.fragment,o),w(da.$$.fragment,o),w(ca.$$.fragment,o),w(ba.$$.fragment,o),w(Yo.$$.fragment,o),w(Zo.$$.fragment,o),oh=!1},d(o){t(d),o&&t(b),o&&t(u),$(l),o&&t(ip),o&&t(Je),$(qn),o&&t(lp),o&&t(Gt),o&&t(dp),o&&t($a),o&&t(cp),o&&t(xa),o&&t(pp),o&&t(Fa),o&&t(hp),o&&t(W),o&&t(mp),o&&t(De),o&&t(up),o&&t(Ke),$(Ln),o&&t(fp),o&&t(G),o&&t(gp),o&&t(Xe),$(On),o&&t(_p),o&&t(ce),$(In),$(Vt),o&&t(bp),o&&t(et),$(Sn),o&&t(kp),o&&t(P),$(Dn),$(Gn),$(Hn),$(Jn),$(Kn),o&&t(vp),o&&t(ot),$(Xn),o&&t(Bp),o&&t(H),$(Yn),$(es),$(os),$(Zt),$(ns),o&&t(yp),o&&t(nt),$(rs),o&&t(Tp),o&&t(st),$(as),o&&t(wp),o&&t(rt),$(ls),o&&t($p),o&&t(V),$(ds),$(us),$(no),$(so),o&&t(xp),o&&t(it),$(fs),o&&t(Fp),o&&t(lt),$(gs),$(_s),$(ao),$(io),o&&t(zp),o&&t(ct),$(bs),o&&t(qp),o&&t(Ee),$(ks),$(Bs),$(co),$(po),o&&t(Mp),o&&t(mt),$(ys),o&&t(Ep),o&&t(je),$(Ts),$($s),$(mo),$(uo),$(fo),o&&t(jp),o&&t(gt),$(xs),o&&t(Pp),o&&t(pe),$(Fs),$(Ms),$(_o),$(bo),$(ko),o&&t(Cp),o&&t(bt),$(Es),o&&t(Ap),o&&t(he),$(js),$(As),$(Bo),$(yo),o&&t(Lp),o&&t(vt),$(Ls),o&&t(Op),o&&t(me),$(Os),$(Ss),$(wo),$($o),o&&t(Ip),o&&t(yt),$(Ds),o&&t(Np),o&&t(ue),$(Ws),$(Gs),$(Fo),$(zo),$(qo),o&&t(Sp),o&&t($t),$(Qs),o&&t(Dp),o&&t(C),$(Hs),$(tr),$(Eo),$(jo),o&&t(Wp),o&&t(Ft),$(or),o&&t(Up),o&&t(A),$(nr),$(pr),$(Co),$(Ao),o&&t(Rp),o&&t(Mt),$(hr),o&&t(Gp),o&&t(L),$(mr),$(Br),$(Oo),$(Io),o&&t(Qp),o&&t(jt),$(yr),o&&t(Hp),o&&t(O),$(Tr),$(jr),$(So),$(Do),o&&t(Vp),o&&t(Ct),$(Pr),o&&t(Jp),o&&t(I),$(Cr),$(Wr),$(Uo),$(Ro),o&&t(Kp),o&&t(Lt),$(Ur),o&&t(Xp),o&&t(N),$(Rr),$(Yr),$(Qo),$(Ho),o&&t(Yp),o&&t(It),$(Zr),o&&t(Zp),o&&t(S),$(ea),$(la),$(Jo),$(Ko),o&&t(eh),o&&t(St),$(da),o&&t(th),o&&t(D),$(ca),$(ba),$(Yo),$(Zo)}}}const A0={local:"bigbird",sections:[{local:"overview",title:"Overview"},{local:"documentation-resources",title:"Documentation resources"},{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 L0(x){return K$(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class U0 extends Q${constructor(d){super();H$(this,d,L0,C0,V$,{})}}export{U0 as default,A0 as metadata};
