import{s as bt,o as _t,n as E}from"../chunks/scheduler.18a86fab.js";import{S as Mt,i as Tt,g as f,s as i,r as g,A as yt,h as u,f as a,c as l,j as ae,x as w,u as b,k as se,l as wt,y as p,a as c,v as _,d as M,t as T,w as y}from"../chunks/index.98837b22.js";import{T as Ke}from"../chunks/Tip.77304350.js";import{D as Me}from"../chunks/Docstring.6758ea23.js";import{C as ge}from"../chunks/CodeBlock.8d0c2e8a.js";import{E as gt}from"../chunks/ExampleCodeBlock.0c42463f.js";import{H as Ze}from"../chunks/Heading.7e7e0c5b.js";import{H as $t,a as et}from"../chunks/HfOption.6641485e.js";import{E as vt}from"../chunks/index.499f366c.js";function Ft($){let t,r="Click on the FalconMamba models in the right sidebar for more examples of how to apply FalconMamba to different language tasks.";return{c(){t=f("p"),t.textContent=r},l(o){t=u(o,"P",{"data-svelte-h":!0}),w(t)!=="svelte-eg9y95"&&(t.textContent=r)},m(o,d){c(o,t,d)},p:E,d(o){o&&a(t)}}}function Jt($){let t,r;return t=new ge({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwcGlwZWxpbmUlMEElMEFwaXBlbGluZSUyMCUzRCUyMHBpcGVsaW5lKCUwQSUyMCUyMCUyMCUyMCUyMnRleHQtZ2VuZXJhdGlvbiUyMiUyQyUwQSUyMCUyMCUyMCUyMG1vZGVsJTNEJTIydGlpdWFlJTJGZmFsY29uLW1hbWJhLTdiLWluc3RydWN0JTIyJTJDJTBBJTIwJTIwJTIwJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5iZmxvYXQxNiUyQyUwQSUyMCUyMCUyMCUyMGRldmljZSUzRDAlMEEpJTBBcGlwZWxpbmUoJTBBJTIwJTIwJTIwJTIwJTIyRXhwbGFpbiUyMHRoZSUyMGRpZmZlcmVuY2UlMjBiZXR3ZWVuJTIwdHJhbnNmb3JtZXJzJTIwYW5kJTIwU1NNcyUyMiUyQyUwQSUyMCUyMCUyMCUyMG1heF9sZW5ndGglM0QxMDAlMkMlMEElMjAlMjAlMjAlMjBkb19zYW1wbGUlM0RUcnVlJTJDJTBBJTIwJTIwJTIwJTIwdGVtcGVyYXR1cmUlM0QwLjclMEEp",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

pipeline = pipeline(
    <span class="hljs-string">&quot;text-generation&quot;</span>,
    model=<span class="hljs-string">&quot;tiiuae/falcon-mamba-7b-instruct&quot;</span>,
    torch_dtype=torch.bfloat16,
    device=<span class="hljs-number">0</span>
)
pipeline(
    <span class="hljs-string">&quot;Explain the difference between transformers and SSMs&quot;</span>,
    max_length=<span class="hljs-number">100</span>,
    do_sample=<span class="hljs-literal">True</span>,
    temperature=<span class="hljs-number">0.7</span>
)`,wrap:!1}}),{c(){g(t.$$.fragment)},l(o){b(t.$$.fragment,o)},m(o,d){_(t,o,d),r=!0},p:E,i(o){r||(M(t.$$.fragment,o),r=!0)},o(o){T(t.$$.fragment,o),r=!1},d(o){y(t,o)}}}function Ct($){let t,r;return t=new ge({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Rva2VuaXplciUyQyUyMEF1dG9Nb2RlbEZvckNhdXNhbExNJTBBJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIydGlpdWFlJTJGZmFsY29uLW1hbWJhLTdiLWluc3RydWN0JTIyKSUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsRm9yQ2F1c2FsTE0uZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMnRpaXVhZSUyRmZhbGNvbi1tYW1iYS03Yi1pbnN0cnVjdCUyMiUyQyUwQSUyMCUyMCUyMCUyMHRvcmNoX2R0eXBlJTNEdG9yY2guYmZsb2F0MTYlMkMlMEElMjAlMjAlMjAlMjBkZXZpY2VfbWFwJTNEJTIyYXV0byUyMiUwQSklMEElMEFpbnB1dF9pZHMlMjAlM0QlMjB0b2tlbml6ZXIoJTIyRXhwbGFpbiUyMHRoZSUyMGRpZmZlcmVuY2UlMjBiZXR3ZWVuJTIwdHJhbnNmb3JtZXJzJTIwYW5kJTIwU1NNcyUyMiUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpLnRvKCUyMmN1ZGElMjIpJTBBJTBBb3V0cHV0JTIwJTNEJTIwbW9kZWwuZ2VuZXJhdGUoKippbnB1dF9pZHMlMkMlMjBtYXhfbmV3X3Rva2VucyUzRDEwMCUyQyUyMGNhY2hlX2ltcGxlbWVudGF0aW9uJTNEJTIyc3RhdGljJTIyKSUwQXByaW50KHRva2VuaXplci5kZWNvZGUob3V0cHV0JTVCMCU1RCUyQyUyMHNraXBfc3BlY2lhbF90b2tlbnMlM0RUcnVlKSk=",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;tiiuae/falcon-mamba-7b-instruct&quot;</span>)
model = AutoModelForCausalLM.from_pretrained(
    <span class="hljs-string">&quot;tiiuae/falcon-mamba-7b-instruct&quot;</span>,
    torch_dtype=torch.bfloat16,
    device_map=<span class="hljs-string">&quot;auto&quot;</span>
)

input_ids = tokenizer(<span class="hljs-string">&quot;Explain the difference between transformers and SSMs&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>).to(<span class="hljs-string">&quot;cuda&quot;</span>)

output = model.generate(**input_ids, max_new_tokens=<span class="hljs-number">100</span>, cache_implementation=<span class="hljs-string">&quot;static&quot;</span>)
<span class="hljs-built_in">print</span>(tokenizer.decode(output[<span class="hljs-number">0</span>], skip_special_tokens=<span class="hljs-literal">True</span>))`,wrap:!1}}),{c(){g(t.$$.fragment)},l(o){b(t.$$.fragment,o)},m(o,d){_(t,o,d),r=!0},p:E,i(o){r||(M(t.$$.fragment,o),r=!0)},o(o){T(t.$$.fragment,o),r=!1},d(o){y(t,o)}}}function kt($){let t,r;return t=new ge({props:{code:"dHJhbnNmb3JtZXJzJTIwY2hhdCUyMHRpaXVhZSUyRmZhbGNvbi1tYW1iYS03Yi1pbnN0cnVjdCUyMC0tdG9yY2hfZHR5cGUlMjBhdXRvJTIwLS1kZXZpY2UlMjAw",highlighted:"transformers chat tiiuae/falcon-mamba-7b-instruct --torch_dtype auto --device 0",wrap:!1}}),{c(){g(t.$$.fragment)},l(o){b(t.$$.fragment,o)},m(o,d){_(t,o,d),r=!0},p:E,i(o){r||(M(t.$$.fragment,o),r=!0)},o(o){T(t.$$.fragment,o),r=!1},d(o){y(t,o)}}}function xt($){let t,r,o,d,h,m;return t=new et({props:{id:"usage",option:"Pipeline",$$slots:{default:[Jt]},$$scope:{ctx:$}}}),o=new et({props:{id:"usage",option:"AutoModel",$$slots:{default:[Ct]},$$scope:{ctx:$}}}),h=new et({props:{id:"usage",option:"transformers CLI",$$slots:{default:[kt]},$$scope:{ctx:$}}}),{c(){g(t.$$.fragment),r=i(),g(o.$$.fragment),d=i(),g(h.$$.fragment)},l(s){b(t.$$.fragment,s),r=l(s),b(o.$$.fragment,s),d=l(s),b(h.$$.fragment,s)},m(s,v){_(t,s,v),c(s,r,v),_(o,s,v),c(s,d,v),_(h,s,v),m=!0},p(s,v){const X={};v&2&&(X.$$scope={dirty:v,ctx:s}),t.$set(X);const j={};v&2&&(j.$$scope={dirty:v,ctx:s}),o.$set(j);const be={};v&2&&(be.$$scope={dirty:v,ctx:s}),h.$set(be)},i(s){m||(M(t.$$.fragment,s),M(o.$$.fragment,s),M(h.$$.fragment,s),m=!0)},o(s){T(t.$$.fragment,s),T(o.$$.fragment,s),T(h.$$.fragment,s),m=!1},d(s){s&&(a(r),a(d)),y(t,s),y(o,s),y(h,s)}}}function Ut($){let t,r="Example:",o,d,h;return d=new ge({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEZhbGNvbk1hbWJhQ29uZmlnJTJDJTIwRmFsY29uTWFtYmFNb2RlbCUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBGYWxjb25NYW1iYSUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwRmFsY29uTWFtYmFDb25maWcoKSUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBtb2RlbCUyMCh3aXRoJTIwcmFuZG9tJTIwd2VpZ2h0cyklMjBmcm9tJTIwdGhlJTIwY29uZmlndXJhdGlvbiUwQW1vZGVsJTIwJTNEJTIwRmFsY29uTWFtYmFNb2RlbChjb25maWd1cmF0aW9uKSUwQSUwQSUyMyUyMEFjY2Vzc2luZyUyMHRoZSUyMG1vZGVsJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBtb2RlbC5jb25maWc=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> FalconMambaConfig, FalconMambaModel

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

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FalconMambaModel(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`,wrap:!1}}),{c(){t=f("p"),t.textContent=r,o=i(),g(d.$$.fragment)},l(m){t=u(m,"P",{"data-svelte-h":!0}),w(t)!=="svelte-11lpom8"&&(t.textContent=r),o=l(m),b(d.$$.fragment,m)},m(m,s){c(m,t,s),c(m,o,s),_(d,m,s),h=!0},p:E,i(m){h||(M(d.$$.fragment,m),h=!0)},o(m){T(d.$$.fragment,m),h=!1},d(m){m&&(a(t),a(o)),y(d,m)}}}function It($){let t,r=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){t=f("p"),t.innerHTML=r},l(o){t=u(o,"P",{"data-svelte-h":!0}),w(t)!=="svelte-fincs2"&&(t.innerHTML=r)},m(o,d){c(o,t,d)},p:E,d(o){o&&a(t)}}}function zt($){let t,r=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){t=f("p"),t.innerHTML=r},l(o){t=u(o,"P",{"data-svelte-h":!0}),w(t)!=="svelte-fincs2"&&(t.innerHTML=r)},m(o,d){c(o,t,d)},p:E,d(o){o&&a(t)}}}function jt($){let t,r="Example:",o,d,h;return d=new ge({props:{code:"",highlighted:"",wrap:!1}}),{c(){t=f("p"),t.textContent=r,o=i(),g(d.$$.fragment)},l(m){t=u(m,"P",{"data-svelte-h":!0}),w(t)!=="svelte-11lpom8"&&(t.textContent=r),o=l(m),b(d.$$.fragment,m)},m(m,s){c(m,t,s),c(m,o,s),_(d,m,s),h=!0},p:E,i(m){h||(M(d.$$.fragment,m),h=!0)},o(m){T(d.$$.fragment,m),h=!1},d(m){m&&(a(t),a(o)),y(d,m)}}}function Wt($){let t,r,o,d,h,m='<div class="flex flex-wrap space-x-1"><img alt="PyTorch" src="https://img.shields.io/badge/PyTorch-DE3412?style=flat&amp;logo=pytorch&amp;logoColor=white"/></div>',s,v,X,j,be='<a href="https://huggingface.co/papers/2410.05355" rel="nofollow">FalconMamba</a> is a 7B large language model, available as pretrained and instruction-tuned variants, based on the <a href="./mamba">Mamba</a>. This model implements a pure Mamba design that focuses on computational efficiency while maintaining strong performance. FalconMamba is significantly faster at inference and requires substantially less memory for long sequence generation. The models are pretrained on a diverse 5.8T token dataset including <a href="https://huggingface.co/datasets/tiiuae/falcon-refinedweb" rel="nofollow">RefinedWeb</a>, technical content, code, and mathematical data.',Te,H,tt='You can find the official FalconMamba checkpoints in the <a href="https://huggingface.co/collections/tiiuae/falconmamba-7b-66b9a580324dd1598b0f6d4a" rel="nofollow">FalconMamba 7B</a> collection.',ye,Z,we,V,ot='The examples below demonstrate how to generate text with <a href="/docs/transformers/main/en/main_classes/pipelines#transformers.Pipeline">Pipeline</a>, <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoModel">AutoModel</a>, and from the command line.',$e,R,ve,Y,nt='Quantization reduces the memory burden of large models by representing the weights in a lower precision. Refer to the <a href="../quantization/overview">Quantization</a> overview for more available quantization backends.',Fe,Q,at='The example below uses <a href="../quantization/bitsandbytes">bitsandbytes</a> to quantize the weights to 4-bits.',Je,P,Ce,S,ke,C,A,Re,re,st=`This is the configuration class to store the configuration of a <a href="/docs/transformers/main/en/model_doc/falcon_mamba#transformers.FalconMambaModel">FalconMambaModel</a>. It is used to instantiate a FALCON_MAMBA
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 FALCON_MAMBA
<a href="https://huggingface.co/tiiuae/falcon-mamba-7b" rel="nofollow">tiiuae/falcon-mamba-7b</a> architecture.`,Be,ie,rt=`Configuration objects inherit from <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> and can be used to control the model outputs. Read the
documentation from <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Ge,B,xe,D,Ue,F,O,qe,le,it="The bare Falcon Mamba Model outputting raw hidden-states without any specific head on top.",Ne,ce,lt=`This model inherits from <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`,Ee,de,ct=`This model is also a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`,Xe,W,K,He,me,dt='The <a href="/docs/transformers/main/en/model_doc/falcon_mamba#transformers.FalconMambaModel">FalconMambaModel</a> forward method, overrides the <code>__call__</code> special method.',Ve,G,Ie,ee,ze,J,te,Ye,pe,mt=`The FALCONMAMBA Model transformer with a language modeling head on top (linear layer with weights tied to the input
embeddings).`,Qe,fe,pt=`This model inherits from <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`,Pe,ue,ft=`This model is also a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`,Se,U,oe,Ae,he,ut='The <a href="/docs/transformers/main/en/model_doc/falcon_mamba#transformers.FalconMambaForCausalLM">FalconMambaForCausalLM</a> forward method, overrides the <code>__call__</code> special method.',De,q,Oe,N,je,ne,We,_e,Le;return v=new Ze({props:{title:"FalconMamba",local:"falconmamba",headingTag:"h1"}}),Z=new Ke({props:{warning:!1,$$slots:{default:[Ft]},$$scope:{ctx:$}}}),R=new $t({props:{id:"usage",options:["Pipeline","AutoModel","transformers CLI"],$$slots:{default:[xt]},$$scope:{ctx:$}}}),P=new ge({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Rva2VuaXplciUyQyUyMEZhbGNvbk1hbWJhRm9yQ2F1c2FsTE0lMkMlMjBCaXRzQW5kQnl0ZXNDb25maWclMEElMEFxdWFudGl6YXRpb25fY29uZmlnJTIwJTNEJTIwQml0c0FuZEJ5dGVzQ29uZmlnKCUwQSUyMCUyMCUyMCUyMGxvYWRfaW5fNGJpdCUzRFRydWUlMkMlMEElMjAlMjAlMjAlMjBibmJfNGJpdF9jb21wdXRlX2R0eXBlJTNEdG9yY2guYmZsb2F0MTYlMkMlMEElMjAlMjAlMjAlMjBibmJfNGJpdF9xdWFudF90eXBlJTNEJTIybmY0JTIyJTJDJTBBJTIwJTIwJTIwJTIwYm5iXzRiaXRfdXNlX2RvdWJsZV9xdWFudCUzRFRydWUlMkMlMEEpJTBBJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIydGlpdWFlJTJGZmFsY29uLW1hbWJhLTdiJTIyKSUwQW1vZGVsJTIwJTNEJTIwRmFsY29uTWFtYmFGb3JDYXVzYWxMTS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIydGlpdWFlJTJGZmFsY29uLW1hbWJhLTdiJTIyJTJDJTBBJTIwJTIwJTIwJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5iZmxvYXQxNiUyQyUwQSUyMCUyMCUyMCUyMGRldmljZV9tYXAlM0QlMjJhdXRvJTIyJTJDJTBBJTIwJTIwJTIwJTIwcXVhbnRpemF0aW9uX2NvbmZpZyUzRHF1YW50aXphdGlvbl9jb25maWclMkMlMEEpJTBBJTBBaW5wdXRzJTIwJTNEJTIwdG9rZW5pemVyKCUyMkV4cGxhaW4lMjB0aGUlMjBjb25jZXB0JTIwb2YlMjBzdGF0ZSUyMHNwYWNlJTIwbW9kZWxzJTIwaW4lMjBzaW1wbGUlMjB0ZXJtcyUyMiUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpLnRvKCUyMmN1ZGElMjIpJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsLmdlbmVyYXRlKCoqaW5wdXRzJTJDJTIwbWF4X25ld190b2tlbnMlM0QxMDApJTBBcHJpbnQodG9rZW5pemVyLmRlY29kZShvdXRwdXRzJTVCMCU1RCUyQyUyMHNraXBfc3BlY2lhbF90b2tlbnMlM0RUcnVlKSk=",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, FalconMambaForCausalLM, BitsAndBytesConfig

quantization_config = BitsAndBytesConfig(
    load_in_4bit=<span class="hljs-literal">True</span>,
    bnb_4bit_compute_dtype=torch.bfloat16,
    bnb_4bit_quant_type=<span class="hljs-string">&quot;nf4&quot;</span>,
    bnb_4bit_use_double_quant=<span class="hljs-literal">True</span>,
)

tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;tiiuae/falcon-mamba-7b&quot;</span>)
model = FalconMambaForCausalLM.from_pretrained(
    <span class="hljs-string">&quot;tiiuae/falcon-mamba-7b&quot;</span>,
    torch_dtype=torch.bfloat16,
    device_map=<span class="hljs-string">&quot;auto&quot;</span>,
    quantization_config=quantization_config,
)

inputs = tokenizer(<span class="hljs-string">&quot;Explain the concept of state space models in simple terms&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>).to(<span class="hljs-string">&quot;cuda&quot;</span>)
outputs = model.generate(**inputs, max_new_tokens=<span class="hljs-number">100</span>)
<span class="hljs-built_in">print</span>(tokenizer.decode(outputs[<span class="hljs-number">0</span>], skip_special_tokens=<span class="hljs-literal">True</span>))`,wrap:!1}}),S=new Ze({props:{title:"FalconMambaConfig",local:"transformers.FalconMambaConfig",headingTag:"h2"}}),A=new Me({props:{name:"class transformers.FalconMambaConfig",anchor:"transformers.FalconMambaConfig",parameters:[{name:"vocab_size",val:" = 50280"},{name:"hidden_size",val:" = 768"},{name:"state_size",val:" = 16"},{name:"num_hidden_layers",val:" = 32"},{name:"layer_norm_epsilon",val:" = 1e-05"},{name:"pad_token_id",val:" = 0"},{name:"bos_token_id",val:" = 0"},{name:"eos_token_id",val:" = 0"},{name:"expand",val:" = 2"},{name:"conv_kernel",val:" = 4"},{name:"use_bias",val:" = False"},{name:"use_conv_bias",val:" = True"},{name:"hidden_act",val:" = 'silu'"},{name:"initializer_range",val:" = 0.1"},{name:"residual_in_fp32",val:" = True"},{name:"time_step_rank",val:" = 'auto'"},{name:"time_step_scale",val:" = 1.0"},{name:"time_step_min",val:" = 0.001"},{name:"time_step_max",val:" = 0.1"},{name:"time_step_init_scheme",val:" = 'random'"},{name:"time_step_floor",val:" = 0.0001"},{name:"rescale_prenorm_residual",val:" = False"},{name:"use_cache",val:" = True"},{name:"use_mambapy",val:" = False"},{name:"mixer_rms_eps",val:" = 1e-06"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FalconMambaConfig.vocab_size",description:`<strong>vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 50280) &#x2014;
Vocabulary size of the FALCON_MAMBA model. Defines the number of different tokens that can be represented by the
<code>inputs_ids</code> passed when calling <a href="/docs/transformers/main/en/model_doc/falcon_mamba#transformers.FalconMambaModel">FalconMambaModel</a>.`,name:"vocab_size"},{anchor:"transformers.FalconMambaConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014;
Dimensionality of the embeddings and hidden states.`,name:"hidden_size"},{anchor:"transformers.FalconMambaConfig.state_size",description:"<strong>state_size</strong> (<code>int</code>, <em>optional</em>, defaults to 16) &#x2014; shape of the state space latents.",name:"state_size"},{anchor:"transformers.FalconMambaConfig.num_hidden_layers",description:`<strong>num_hidden_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 32) &#x2014;
Number of hidden layers in the model.`,name:"num_hidden_layers"},{anchor:"transformers.FalconMambaConfig.layer_norm_epsilon",description:`<strong>layer_norm_epsilon</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-05) &#x2014;
The epsilon to use in the layer normalization layers.`,name:"layer_norm_epsilon"},{anchor:"transformers.FalconMambaConfig.pad_token_id",description:`<strong>pad_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
Padding token id.`,name:"pad_token_id"},{anchor:"transformers.FalconMambaConfig.bos_token_id",description:`<strong>bos_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
The id of the beginning of sentence token in the vocabulary.`,name:"bos_token_id"},{anchor:"transformers.FalconMambaConfig.eos_token_id",description:`<strong>eos_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
The id of the end of sentence token in the vocabulary.`,name:"eos_token_id"},{anchor:"transformers.FalconMambaConfig.expand",description:"<strong>expand</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014; Expanding factor used to determine the intermediate size.",name:"expand"},{anchor:"transformers.FalconMambaConfig.conv_kernel",description:"<strong>conv_kernel</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014; Size of the convolution kernel.",name:"conv_kernel"},{anchor:"transformers.FalconMambaConfig.use_bias",description:`<strong>use_bias</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to use bias in [&#x201C;in_proj&#x201D;, &#x201C;out_proj&#x201D;] of the mixer block`,name:"use_bias"},{anchor:"transformers.FalconMambaConfig.use_conv_bias",description:`<strong>use_conv_bias</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to use bias in the convolution layer of the mixer block.`,name:"use_conv_bias"},{anchor:"transformers.FalconMambaConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;silu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the decoder.`,name:"hidden_act"},{anchor:"transformers.FalconMambaConfig.initializer_range",description:`<strong>initializer_range</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.`,name:"initializer_range"},{anchor:"transformers.FalconMambaConfig.residual_in_fp32",description:`<strong>residual_in_fp32</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not residuals should be in <code>float32</code>. If set to <code>False</code> residuals will keep the same <code>dtype</code> as the rest of the model`,name:"residual_in_fp32"},{anchor:"transformers.FalconMambaConfig.time_step_rank",description:`<strong>time_step_rank</strong> (<code>Union[int,str]</code>, <em>optional</em>, defaults to <code>&quot;auto&quot;</code>) &#x2014;
Rank of the discretization projection matrix. <code>&quot;auto&quot;</code> means that it will default to <code>math.ceil(self.hidden_size / 16)</code>`,name:"time_step_rank"},{anchor:"transformers.FalconMambaConfig.time_step_scale",description:`<strong>time_step_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
Scale used used to scale <code>dt_proj.bias</code>.`,name:"time_step_scale"},{anchor:"transformers.FalconMambaConfig.time_step_min",description:`<strong>time_step_min</strong> (<code>float</code>, <em>optional</em>, defaults to 0.001) &#x2014;
Minimum <code>time_step</code> used to bound <code>dt_proj.bias</code>.`,name:"time_step_min"},{anchor:"transformers.FalconMambaConfig.time_step_max",description:`<strong>time_step_max</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
Maximum <code>time_step</code> used to bound <code>dt_proj.bias</code>.`,name:"time_step_max"},{anchor:"transformers.FalconMambaConfig.time_step_init_scheme",description:`<strong>time_step_init_scheme</strong> (<code>float</code>, <em>optional</em>, defaults to <code>&quot;random&quot;</code>) &#x2014;
Init scheme used for <code>dt_proj.weight</code>. Should be one of <code>[&quot;random&quot;,&quot;uniform&quot;]</code>`,name:"time_step_init_scheme"},{anchor:"transformers.FalconMambaConfig.time_step_floor",description:`<strong>time_step_floor</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0001) &#x2014;
Minimum clamping value of the <code>dt_proj.bias</code> layer initialization.`,name:"time_step_floor"},{anchor:"transformers.FalconMambaConfig.rescale_prenorm_residual",description:`<strong>rescale_prenorm_residual</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to rescale <code>out_proj</code> weights when initializing.`,name:"rescale_prenorm_residual"},{anchor:"transformers.FalconMambaConfig.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not the cache should be used.`,name:"use_cache"},{anchor:"transformers.FalconMambaConfig.use_mambapy",description:`<strong>use_mambapy</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Determines the fallback strategy during training if the CUDA-based official implementation of FalconMamba is not available. If <code>True</code>, the falcon_mamba.py implementation is used. If <code>False</code>, the naive and slower implementation is used. Consider switching to the naive version if memory is limited.`,name:"use_mambapy"},{anchor:"transformers.FalconMambaConfig.mixer_rms_eps",description:`<strong>mixer_rms_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-06) &#x2014;
The RMS norm epsilon value that is used in the Mixer RMS norm for B, C and dt states.`,name:"mixer_rms_eps"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/falcon_mamba/configuration_falcon_mamba.py#L26"}}),B=new gt({props:{anchor:"transformers.FalconMambaConfig.example",$$slots:{default:[Ut]},$$scope:{ctx:$}}}),D=new Ze({props:{title:"FalconMambaModel",local:"transformers.FalconMambaModel",headingTag:"h2"}}),O=new Me({props:{name:"class transformers.FalconMambaModel",anchor:"transformers.FalconMambaModel",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.FalconMambaModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/falcon_mamba#transformers.FalconMambaModel">FalconMambaModel</a>) &#x2014;
Model configuration class with all the parameters of the model. Initializing with a config file does not
load the weights associated with the model, only the configuration. Check out the
<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/falcon_mamba/modeling_falcon_mamba.py#L548"}}),K=new Me({props:{name:"forward",anchor:"transformers.FalconMambaModel.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.LongTensor] = None"},{name:"cache_params",val:": typing.Optional[transformers.cache_utils.MambaCache] = None"},{name:"use_cache",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"cache_position",val:": typing.Optional[torch.LongTensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.LongTensor] = None"}],parametersDescription:[{anchor:"transformers.FalconMambaModel.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of input sequence tokens in the vocabulary. Padding will be ignored by default.</p>
<p>Indices can be obtained using <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.FalconMambaModel.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <code>input_ids</code> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.FalconMambaModel.forward.cache_params",description:`<strong>cache_params</strong> (<code>~cache_utils.MambaCache</code>, <em>optional</em>) &#x2014;
If passed along, the model uses the previous state in all the blocks (which will give the output for the
<code>input_ids</code> provided as if the model add <code>state_input_ids + input_ids</code> as context).`,name:"cache_params"},{anchor:"transformers.FalconMambaModel.forward.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If set to <code>True</code>, the <code>cache_params</code> is returned and can be used to quickly generate the next logits.`,name:"use_cache"},{anchor:"transformers.FalconMambaModel.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.FalconMambaModel.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.FalconMambaModel.forward.cache_position",description:`<strong>cache_position</strong> (<code>torch.LongTensor</code> of shape <code>(sequence_length)</code>, <em>optional</em>) &#x2014;
Indices depicting the position of the input sequence tokens in the sequence. Contrarily to <code>position_ids</code>,
this tensor is not affected by padding. It is used to update the cache in the correct position and to infer
the complete sequence length.`,name:"cache_position"},{anchor:"transformers.FalconMambaModel.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.LongTensor</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"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/falcon_mamba/modeling_falcon_mamba.py#L569",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.falcon_mamba.modeling_falcon_mamba.FalconMambaOutput</code> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/main/en/model_doc/falcon_mamba#transformers.FalconMambaConfig"
>FalconMambaConfig</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>) — Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>cache_params</strong> (<code>MambaCache</code>) — The state of the model at the last time step. Can be used in a forward method with the next <code>input_ids</code> to
avoid providing the old <code>input_ids</code>.</p>
<p>Includes both the State space model state matrices after the selective scan, and the Convolutional states</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>) — 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>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.falcon_mamba.modeling_falcon_mamba.FalconMambaOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),G=new Ke({props:{$$slots:{default:[It]},$$scope:{ctx:$}}}),ee=new Ze({props:{title:"FalconMambaLMHeadModel",local:"transformers.FalconMambaForCausalLM",headingTag:"h2"}}),te=new Me({props:{name:"class transformers.FalconMambaForCausalLM",anchor:"transformers.FalconMambaForCausalLM",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.FalconMambaForCausalLM.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/falcon_mamba#transformers.FalconMambaForCausalLM">FalconMambaForCausalLM</a>) &#x2014;
Model configuration class with all the parameters of the model. Initializing with a config file does not
load the weights associated with the model, only the configuration. Check out the
<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/falcon_mamba/modeling_falcon_mamba.py#L653"}}),oe=new Me({props:{name:"forward",anchor:"transformers.FalconMambaForCausalLM.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.LongTensor] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"cache_params",val:": typing.Optional[transformers.cache_utils.MambaCache] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"use_cache",val:": typing.Optional[bool] = None"},{name:"cache_position",val:": typing.Optional[torch.Tensor] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FalconMambaForCausalLM.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of input sequence tokens in the vocabulary. Padding will be ignored by default.</p>
<p>Indices can be obtained using <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.FalconMambaForCausalLM.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.LongTensor</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.FalconMambaForCausalLM.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <code>input_ids</code> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.FalconMambaForCausalLM.forward.cache_params",description:`<strong>cache_params</strong> (<code>~cache_utils.MambaCache</code>, <em>optional</em>) &#x2014;
If passed along, the model uses the previous state in all the blocks (which will give the output for the
<code>input_ids</code> provided as if the model add <code>state_input_ids + input_ids</code> as context).`,name:"cache_params"},{anchor:"transformers.FalconMambaForCausalLM.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Labels for language modeling. Note that the labels <strong>are shifted</strong> inside the model, i.e. you can set
<code>labels = input_ids</code> Indices are selected in <code>[-100, 0, ..., config.vocab_size]</code> All labels set to <code>-100</code>
are ignored (masked), the loss is only computed for labels in <code>[0, ..., config.vocab_size]</code>`,name:"labels"},{anchor:"transformers.FalconMambaForCausalLM.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.FalconMambaForCausalLM.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.FalconMambaForCausalLM.forward.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If set to <code>True</code>, the <code>cache_params</code> is returned and can be used to quickly generate the next logits.`,name:"use_cache"},{anchor:"transformers.FalconMambaForCausalLM.forward.cache_position",description:`<strong>cache_position</strong> (<code>torch.Tensor</code> of shape <code>(sequence_length)</code>, <em>optional</em>) &#x2014;
Indices depicting the position of the input sequence tokens in the sequence. Contrarily to <code>position_ids</code>,
this tensor is not affected by padding. It is used to update the cache in the correct position and to infer
the complete sequence length.`,name:"cache_position"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/falcon_mamba/modeling_falcon_mamba.py#L749",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.falcon_mamba.modeling_falcon_mamba.FalconMambaCausalLMOutput</code> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/main/en/model_doc/falcon_mamba#transformers.FalconMambaConfig"
>FalconMambaConfig</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) — 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>) — Prediction scores of the language modeling head (scores for each vocabulary token before SoftMax).</p>
</li>
<li>
<p><strong>cache_params</strong> (<code>MambaCache</code>) — The state of the model at the last time step. Can be used in a forward method with the next <code>input_ids</code> to
avoid providing the old <code>input_ids</code>.</p>
<p>Includes both the State space model state matrices after the selective scan, and the Convolutional states</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>) — 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>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.falcon_mamba.modeling_falcon_mamba.FalconMambaCausalLMOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),q=new Ke({props:{$$slots:{default:[zt]},$$scope:{ctx:$}}}),N=new gt({props:{anchor:"transformers.FalconMambaForCausalLM.forward.example",$$slots:{default:[jt]},$$scope:{ctx:$}}}),ne=new vt({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/falcon_mamba.md"}}),{c(){t=f("meta"),r=i(),o=f("p"),d=i(),h=f("div"),h.innerHTML=m,s=i(),g(v.$$.fragment),X=i(),j=f("p"),j.innerHTML=be,Te=i(),H=f("p"),H.innerHTML=tt,ye=i(),g(Z.$$.fragment),we=i(),V=f("p"),V.innerHTML=ot,$e=i(),g(R.$$.fragment),ve=i(),Y=f("p"),Y.innerHTML=nt,Fe=i(),Q=f("p"),Q.innerHTML=at,Je=i(),g(P.$$.fragment),Ce=i(),g(S.$$.fragment),ke=i(),C=f("div"),g(A.$$.fragment),Re=i(),re=f("p"),re.innerHTML=st,Be=i(),ie=f("p"),ie.innerHTML=rt,Ge=i(),g(B.$$.fragment),xe=i(),g(D.$$.fragment),Ue=i(),F=f("div"),g(O.$$.fragment),qe=i(),le=f("p"),le.textContent=it,Ne=i(),ce=f("p"),ce.innerHTML=lt,Ee=i(),de=f("p"),de.innerHTML=ct,Xe=i(),W=f("div"),g(K.$$.fragment),He=i(),me=f("p"),me.innerHTML=dt,Ve=i(),g(G.$$.fragment),Ie=i(),g(ee.$$.fragment),ze=i(),J=f("div"),g(te.$$.fragment),Ye=i(),pe=f("p"),pe.textContent=mt,Qe=i(),fe=f("p"),fe.innerHTML=pt,Pe=i(),ue=f("p"),ue.innerHTML=ft,Se=i(),U=f("div"),g(oe.$$.fragment),Ae=i(),he=f("p"),he.innerHTML=ut,De=i(),g(q.$$.fragment),Oe=i(),g(N.$$.fragment),je=i(),g(ne.$$.fragment),We=i(),_e=f("p"),this.h()},l(e){const n=yt("svelte-u9bgzb",document.head);t=u(n,"META",{name:!0,content:!0}),n.forEach(a),r=l(e),o=u(e,"P",{}),ae(o).forEach(a),d=l(e),h=u(e,"DIV",{style:!0,"data-svelte-h":!0}),w(h)!=="svelte-wa5t4p"&&(h.innerHTML=m),s=l(e),b(v.$$.fragment,e),X=l(e),j=u(e,"P",{"data-svelte-h":!0}),w(j)!=="svelte-mfwozy"&&(j.innerHTML=be),Te=l(e),H=u(e,"P",{"data-svelte-h":!0}),w(H)!=="svelte-1bq960n"&&(H.innerHTML=tt),ye=l(e),b(Z.$$.fragment,e),we=l(e),V=u(e,"P",{"data-svelte-h":!0}),w(V)!=="svelte-rdli43"&&(V.innerHTML=ot),$e=l(e),b(R.$$.fragment,e),ve=l(e),Y=u(e,"P",{"data-svelte-h":!0}),w(Y)!=="svelte-nf5ooi"&&(Y.innerHTML=nt),Fe=l(e),Q=u(e,"P",{"data-svelte-h":!0}),w(Q)!=="svelte-1ca5nhg"&&(Q.innerHTML=at),Je=l(e),b(P.$$.fragment,e),Ce=l(e),b(S.$$.fragment,e),ke=l(e),C=u(e,"DIV",{class:!0});var I=ae(C);b(A.$$.fragment,I),Re=l(I),re=u(I,"P",{"data-svelte-h":!0}),w(re)!=="svelte-i5sdtz"&&(re.innerHTML=st),Be=l(I),ie=u(I,"P",{"data-svelte-h":!0}),w(ie)!=="svelte-o55m63"&&(ie.innerHTML=rt),Ge=l(I),b(B.$$.fragment,I),I.forEach(a),xe=l(e),b(D.$$.fragment,e),Ue=l(e),F=u(e,"DIV",{class:!0});var k=ae(F);b(O.$$.fragment,k),qe=l(k),le=u(k,"P",{"data-svelte-h":!0}),w(le)!=="svelte-198mazx"&&(le.textContent=it),Ne=l(k),ce=u(k,"P",{"data-svelte-h":!0}),w(ce)!=="svelte-6pahdo"&&(ce.innerHTML=lt),Ee=l(k),de=u(k,"P",{"data-svelte-h":!0}),w(de)!=="svelte-hswkmf"&&(de.innerHTML=ct),Xe=l(k),W=u(k,"DIV",{class:!0});var L=ae(W);b(K.$$.fragment,L),He=l(L),me=u(L,"P",{"data-svelte-h":!0}),w(me)!=="svelte-yet315"&&(me.innerHTML=dt),Ve=l(L),b(G.$$.fragment,L),L.forEach(a),k.forEach(a),Ie=l(e),b(ee.$$.fragment,e),ze=l(e),J=u(e,"DIV",{class:!0});var x=ae(J);b(te.$$.fragment,x),Ye=l(x),pe=u(x,"P",{"data-svelte-h":!0}),w(pe)!=="svelte-g0dgxw"&&(pe.textContent=mt),Qe=l(x),fe=u(x,"P",{"data-svelte-h":!0}),w(fe)!=="svelte-6pahdo"&&(fe.innerHTML=pt),Pe=l(x),ue=u(x,"P",{"data-svelte-h":!0}),w(ue)!=="svelte-hswkmf"&&(ue.innerHTML=ft),Se=l(x),U=u(x,"DIV",{class:!0});var z=ae(U);b(oe.$$.fragment,z),Ae=l(z),he=u(z,"P",{"data-svelte-h":!0}),w(he)!=="svelte-pk1lht"&&(he.innerHTML=ut),De=l(z),b(q.$$.fragment,z),Oe=l(z),b(N.$$.fragment,z),z.forEach(a),x.forEach(a),je=l(e),b(ne.$$.fragment,e),We=l(e),_e=u(e,"P",{}),ae(_e).forEach(a),this.h()},h(){se(t,"name","hf:doc:metadata"),se(t,"content",Lt),wt(h,"float","right"),se(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),se(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),se(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),se(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),se(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,n){p(document.head,t),c(e,r,n),c(e,o,n),c(e,d,n),c(e,h,n),c(e,s,n),_(v,e,n),c(e,X,n),c(e,j,n),c(e,Te,n),c(e,H,n),c(e,ye,n),_(Z,e,n),c(e,we,n),c(e,V,n),c(e,$e,n),_(R,e,n),c(e,ve,n),c(e,Y,n),c(e,Fe,n),c(e,Q,n),c(e,Je,n),_(P,e,n),c(e,Ce,n),_(S,e,n),c(e,ke,n),c(e,C,n),_(A,C,null),p(C,Re),p(C,re),p(C,Be),p(C,ie),p(C,Ge),_(B,C,null),c(e,xe,n),_(D,e,n),c(e,Ue,n),c(e,F,n),_(O,F,null),p(F,qe),p(F,le),p(F,Ne),p(F,ce),p(F,Ee),p(F,de),p(F,Xe),p(F,W),_(K,W,null),p(W,He),p(W,me),p(W,Ve),_(G,W,null),c(e,Ie,n),_(ee,e,n),c(e,ze,n),c(e,J,n),_(te,J,null),p(J,Ye),p(J,pe),p(J,Qe),p(J,fe),p(J,Pe),p(J,ue),p(J,Se),p(J,U),_(oe,U,null),p(U,Ae),p(U,he),p(U,De),_(q,U,null),p(U,Oe),_(N,U,null),c(e,je,n),_(ne,e,n),c(e,We,n),c(e,_e,n),Le=!0},p(e,[n]){const I={};n&2&&(I.$$scope={dirty:n,ctx:e}),Z.$set(I);const k={};n&2&&(k.$$scope={dirty:n,ctx:e}),R.$set(k);const L={};n&2&&(L.$$scope={dirty:n,ctx:e}),B.$set(L);const x={};n&2&&(x.$$scope={dirty:n,ctx:e}),G.$set(x);const z={};n&2&&(z.$$scope={dirty:n,ctx:e}),q.$set(z);const ht={};n&2&&(ht.$$scope={dirty:n,ctx:e}),N.$set(ht)},i(e){Le||(M(v.$$.fragment,e),M(Z.$$.fragment,e),M(R.$$.fragment,e),M(P.$$.fragment,e),M(S.$$.fragment,e),M(A.$$.fragment,e),M(B.$$.fragment,e),M(D.$$.fragment,e),M(O.$$.fragment,e),M(K.$$.fragment,e),M(G.$$.fragment,e),M(ee.$$.fragment,e),M(te.$$.fragment,e),M(oe.$$.fragment,e),M(q.$$.fragment,e),M(N.$$.fragment,e),M(ne.$$.fragment,e),Le=!0)},o(e){T(v.$$.fragment,e),T(Z.$$.fragment,e),T(R.$$.fragment,e),T(P.$$.fragment,e),T(S.$$.fragment,e),T(A.$$.fragment,e),T(B.$$.fragment,e),T(D.$$.fragment,e),T(O.$$.fragment,e),T(K.$$.fragment,e),T(G.$$.fragment,e),T(ee.$$.fragment,e),T(te.$$.fragment,e),T(oe.$$.fragment,e),T(q.$$.fragment,e),T(N.$$.fragment,e),T(ne.$$.fragment,e),Le=!1},d(e){e&&(a(r),a(o),a(d),a(h),a(s),a(X),a(j),a(Te),a(H),a(ye),a(we),a(V),a($e),a(ve),a(Y),a(Fe),a(Q),a(Je),a(Ce),a(ke),a(C),a(xe),a(Ue),a(F),a(Ie),a(ze),a(J),a(je),a(We),a(_e)),a(t),y(v,e),y(Z,e),y(R,e),y(P,e),y(S,e),y(A),y(B),y(D,e),y(O),y(K),y(G),y(ee,e),y(te),y(oe),y(q),y(N),y(ne,e)}}}const Lt='{"title":"FalconMamba","local":"falconmamba","sections":[{"title":"FalconMambaConfig","local":"transformers.FalconMambaConfig","sections":[],"depth":2},{"title":"FalconMambaModel","local":"transformers.FalconMambaModel","sections":[],"depth":2},{"title":"FalconMambaLMHeadModel","local":"transformers.FalconMambaForCausalLM","sections":[],"depth":2}],"depth":1}';function Zt($){return _t(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Yt extends Mt{constructor(t){super(),Tt(this,t,Zt,Wt,bt,{})}}export{Yt as component};
