import{s as Xo,o as So,n as rt}from"../chunks/scheduler.01eeda35.js";import{S as Do,i as Oo,g as r,s as a,r as m,A as Yo,h as i,f as o,c as s,j as w,u as p,x as y,k as b,y as n,a as l,v as h,d as g,t as u,w as f}from"../chunks/index.6dd51b66.js";import{T as _o}from"../chunks/Tip.de9bae2b.js";import{D as C}from"../chunks/Docstring.76e6b3cf.js";import{C as yo}from"../chunks/CodeBlock.864da1b0.js";import{E as Vo}from"../chunks/ExampleCodeBlock.6a36fb6b.js";import{H as W,E as Ko}from"../chunks/EditOnGithub.7faefd25.js";function en($){let d,M=`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(){d=r("p"),d.innerHTML=M},l(_){d=i(_,"P",{"data-svelte-h":!0}),y(d)!=="svelte-fincs2"&&(d.innerHTML=M)},m(_,T){l(_,d,T)},p:rt,d(_){_&&o(d)}}}function tn($){let d,M=`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(){d=r("p"),d.innerHTML=M},l(_){d=i(_,"P",{"data-svelte-h":!0}),y(d)!=="svelte-fincs2"&&(d.innerHTML=M)},m(_,T){l(_,d,T)},p:rt,d(_){_&&o(d)}}}function on($){let d,M="Example:",_,T,v;return T=new yo({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBBcmlhVGV4dEZvckNhdXNhbExNJTBBJTBBbW9kZWwlMjAlM0QlMjBBcmlhVGV4dEZvckNhdXNhbExNLmZyb21fcHJldHJhaW5lZCglMjJtZXRhLWFyaWFfdGV4dCUyRkFyaWFUZXh0LTItN2ItaGYlMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIybWV0YS1hcmlhX3RleHQlMkZBcmlhVGV4dC0yLTdiLWhmJTIyKSUwQSUwQXByb21wdCUyMCUzRCUyMCUyMkhleSUyQyUyMGFyZSUyMHlvdSUyMGNvbnNjaW91cyUzRiUyMENhbiUyMHlvdSUyMHRhbGslMjB0byUyMG1lJTNGJTIyJTBBaW5wdXRzJTIwJTNEJTIwdG9rZW5pemVyKHByb21wdCUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTBBJTIzJTIwR2VuZXJhdGUlMEFnZW5lcmF0ZV9pZHMlMjAlM0QlMjBtb2RlbC5nZW5lcmF0ZShpbnB1dHMuaW5wdXRfaWRzJTJDJTIwbWF4X2xlbmd0aCUzRDMwKSUwQXRva2VuaXplci5iYXRjaF9kZWNvZGUoZ2VuZXJhdGVfaWRzJTJDJTIwc2tpcF9zcGVjaWFsX3Rva2VucyUzRFRydWUlMkMlMjBjbGVhbl91cF90b2tlbml6YXRpb25fc3BhY2VzJTNERmFsc2UpJTVCMCU1RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, AriaTextForCausalLM

<span class="hljs-meta">&gt;&gt;&gt; </span>model = AriaTextForCausalLM.from_pretrained(<span class="hljs-string">&quot;meta-aria_text/AriaText-2-7b-hf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;meta-aria_text/AriaText-2-7b-hf&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;Hey, are you conscious? Can you talk to me?&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(prompt, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Generate</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>generate_ids = model.generate(inputs.input_ids, max_length=<span class="hljs-number">30</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer.batch_decode(generate_ids, skip_special_tokens=<span class="hljs-literal">True</span>, clean_up_tokenization_spaces=<span class="hljs-literal">False</span>)[<span class="hljs-number">0</span>]
<span class="hljs-string">&quot;Hey, are you conscious? Can you talk to me?\\nI&#x27;m not conscious, but I can talk to you.&quot;</span>`,wrap:!1}}),{c(){d=r("p"),d.textContent=M,_=a(),m(T.$$.fragment)},l(c){d=i(c,"P",{"data-svelte-h":!0}),y(d)!=="svelte-11lpom8"&&(d.textContent=M),_=s(c),p(T.$$.fragment,c)},m(c,x){l(c,d,x),l(c,_,x),h(T,c,x),v=!0},p:rt,i(c){v||(g(T.$$.fragment,c),v=!0)},o(c){u(T.$$.fragment,c),v=!1},d(c){c&&(o(d),o(_)),f(T,c)}}}function nn($){let d,M=`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(){d=r("p"),d.innerHTML=M},l(_){d=i(_,"P",{"data-svelte-h":!0}),y(d)!=="svelte-fincs2"&&(d.innerHTML=M)},m(_,T){l(_,d,T)},p:rt,d(_){_&&o(d)}}}function an($){let d,M="Example:",_,T,v;return T=new yo({props:{code:"aW1wb3J0JTIwcmVxdWVzdHMlMEFpbXBvcnQlMjB0b3JjaCUwQWZyb20lMjBQSUwlMjBpbXBvcnQlMjBJbWFnZSUwQWZyb20lMjBpbyUyMGltcG9ydCUyMEJ5dGVzSU8lMEElMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Byb2Nlc3NvciUyQyUyMEF1dG9Nb2RlbCUwQWZyb20lMjB0cmFuc2Zvcm1lcnMuaW1hZ2VfdXRpbHMlMjBpbXBvcnQlMjBsb2FkX2ltYWdlJTBBJTBBJTIzJTIwTm90ZSUyMHRoYXQlMjBwYXNzaW5nJTIwdGhlJTIwaW1hZ2UlMjB1cmxzJTIwKGluc3RlYWQlMjBvZiUyMHRoZSUyMGFjdHVhbCUyMHBpbCUyMGltYWdlcyklMjB0byUyMHRoZSUyMHByb2Nlc3NvciUyMGlzJTIwYWxzbyUyMHBvc3NpYmxlJTBBaW1hZ2UxJTIwJTNEJTIwbG9hZF9pbWFnZSglMjJodHRwcyUzQSUyRiUyRmNkbi5icml0YW5uaWNhLmNvbSUyRjYxJTJGOTMwNjEtMDUwLTk5MTQ3RENFJTJGU3RhdHVlLW9mLUxpYmVydHktSXNsYW5kLU5ldy1Zb3JrLUJheS5qcGclMjIpJTBBaW1hZ2UyJTIwJTNEJTIwbG9hZF9pbWFnZSglMjJodHRwcyUzQSUyRiUyRmNkbi5icml0YW5uaWNhLmNvbSUyRjU5JTJGOTQ0NTktMDUwLURCQTQyNDY3JTJGU2t5bGluZS1DaGljYWdvLmpwZyUyMiklMEFpbWFnZTMlMjAlM0QlMjBsb2FkX2ltYWdlKCUyMmh0dHBzJTNBJTJGJTJGY2RuLmJyaXRhbm5pY2EuY29tJTJGNjglMkYxNzA4NjgtMDUwLThEREU4MjYzJTJGR29sZGVuLUdhdGUtQnJpZGdlLVNhbi1GcmFuY2lzY28uanBnJTIyKSUwQSUwQXByb2Nlc3NvciUyMCUzRCUyMEF1dG9Qcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMlJoeW1lcy1BSSUyRkFyaWElMjIpJTBBbW9kZWwlMjAlM0QlMjBBdXRvTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMlJoeW1lcy1BSSUyRkFyaWElMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmJmbG9hdDE2JTJDJTIwZGV2aWNlX21hcCUzRCUyMmF1dG8lMjIpJTBBJTBBJTIzJTIwQ3JlYXRlJTIwaW5wdXRzJTBBbWVzc2FnZXMlMjAlM0QlMjAlNUIlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJyb2xlJTIyJTNBJTIwJTIydXNlciUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmNvbnRlbnQlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMjJ0eXBlJTIyJTNBJTIwJTIyaW1hZ2UlMjIlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMjJ0eXBlJTIyJTNBJTIwJTIydGV4dCUyMiUyQyUyMCUyMnRleHQlMjIlM0ElMjAlMjJJbiUyMHRoaXMlMjBpbWFnZSUyQyUyMHdlJTIwY2FuJTIwc2VlJTIwdGhlJTIwY2l0eSUyMG9mJTIwTmV3JTIwWW9yayUyQyUyMGFuZCUyMG1vcmUlMjBzcGVjaWZpY2FsbHklMjB0aGUlMjBTdGF0dWUlMjBvZiUyMExpYmVydHkuJTIyJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTIydHlwZSUyMiUzQSUyMCUyMmltYWdlJTIyJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTIydHlwZSUyMiUzQSUyMCUyMnRleHQlMjIlMkMlMjAlMjJ0ZXh0JTIyJTNBJTIwJTIyV2hhdCUyMGNhbiUyMHdlJTIwc2VlJTIwaW4lMjB0aGlzJTIwaW1hZ2UlM0YlMjIlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJyb2xlJTIyJTNBJTIwJTIydXNlciUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmNvbnRlbnQlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMjJ0eXBlJTIyJTNBJTIwJTIyaW1hZ2UlMjIlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMjJ0eXBlJTIyJTNBJTIwJTIydGV4dCUyMiUyQyUyMCUyMnRleHQlMjIlM0ElMjAlMjJJbiUyMHdoaWNoJTIwY2l0eSUyMGlzJTIwdGhhdCUyMGJyaWRnZSUyMGxvY2F0ZWQlM0YlMjIlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlN0QlMEElNUQlMEElMEFwcm9tcHRzJTIwJTNEJTIwJTVCcHJvY2Vzc29yLmFwcGx5X2NoYXRfdGVtcGxhdGUoJTVCbWVzc2FnZSU1RCUyQyUyMGFkZF9nZW5lcmF0aW9uX3Byb21wdCUzRFRydWUpJTIwZm9yJTIwbWVzc2FnZSUyMGluJTIwbWVzc2FnZXMlNUQlMEFpbWFnZXMlMjAlM0QlMjAlNUIlNUJpbWFnZTElMkMlMjBpbWFnZTIlNUQlMkMlMjAlNUJpbWFnZTMlNUQlNUQlMEFpbnB1dHMlMjAlM0QlMjBwcm9jZXNzb3IodGV4dCUzRHByb21wdHMlMkMlMjBpbWFnZXMlM0RpbWFnZXMlMkMlMjBwYWRkaW5nJTNEVHJ1ZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpLnRvKG1vZGVsLmRldmljZSklMEElMEElMjMlMjBHZW5lcmF0ZSUwQWdlbmVyYXRlZF9pZHMlMjAlM0QlMjBtb2RlbC5nZW5lcmF0ZSgqKmlucHV0cyUyQyUyMG1heF9uZXdfdG9rZW5zJTNEMjU2KSUwQWdlbmVyYXRlZF90ZXh0cyUyMCUzRCUyMHByb2Nlc3Nvci5iYXRjaF9kZWNvZGUoZ2VuZXJhdGVkX2lkcyUyQyUyMHNraXBfc3BlY2lhbF90b2tlbnMlM0RUcnVlKSUwQSUwQXByaW50KGdlbmVyYXRlZF90ZXh0cyU1QjAlNUQpJTBBJTBBcHJpbnQoZ2VuZXJhdGVkX3RleHRzJTVCMSU1RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> requests
<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> PIL <span class="hljs-keyword">import</span> Image
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> io <span class="hljs-keyword">import</span> BytesIO

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, AutoModel
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers.image_utils <span class="hljs-keyword">import</span> load_image

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Note that passing the image urls (instead of the actual pil images) to the processor is also possible</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image1 = load_image(<span class="hljs-string">&quot;https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image2 = load_image(<span class="hljs-string">&quot;https://cdn.britannica.com/59/94459-050-DBA42467/Skyline-Chicago.jpg&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image3 = load_image(<span class="hljs-string">&quot;https://cdn.britannica.com/68/170868-050-8DDE8263/Golden-Gate-Bridge-San-Francisco.jpg&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;Rhymes-AI/Aria&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = AutoModel.from_pretrained(<span class="hljs-string">&quot;Rhymes-AI/Aria&quot;</span>, torch_dtype=torch.bfloat16, device_map=<span class="hljs-string">&quot;auto&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Create inputs</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>messages = [
<span class="hljs-meta">... </span>    {
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;user&quot;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;content&quot;</span>: [
<span class="hljs-meta">... </span>            {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;image&quot;</span>},
<span class="hljs-meta">... </span>            {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;text&quot;</span>, <span class="hljs-string">&quot;text&quot;</span>: <span class="hljs-string">&quot;In this image, we can see the city of New York, and more specifically the Statue of Liberty.&quot;</span>},
<span class="hljs-meta">... </span>            {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;image&quot;</span>},
<span class="hljs-meta">... </span>            {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;text&quot;</span>, <span class="hljs-string">&quot;text&quot;</span>: <span class="hljs-string">&quot;What can we see in this image?&quot;</span>},
<span class="hljs-meta">... </span>        ]
<span class="hljs-meta">... </span>    },
<span class="hljs-meta">... </span>    {
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;user&quot;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;content&quot;</span>: [
<span class="hljs-meta">... </span>            {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;image&quot;</span>},
<span class="hljs-meta">... </span>            {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;text&quot;</span>, <span class="hljs-string">&quot;text&quot;</span>: <span class="hljs-string">&quot;In which city is that bridge located?&quot;</span>},
<span class="hljs-meta">... </span>        ]
<span class="hljs-meta">... </span>    }
<span class="hljs-meta">... </span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>prompts = [processor.apply_chat_template([message], add_generation_prompt=<span class="hljs-literal">True</span>) <span class="hljs-keyword">for</span> message <span class="hljs-keyword">in</span> messages]
<span class="hljs-meta">&gt;&gt;&gt; </span>images = [[image1, image2], [image3]]
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(text=prompts, images=images, padding=<span class="hljs-literal">True</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>).to(model.device)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Generate</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>generated_ids = model.generate(**inputs, max_new_tokens=<span class="hljs-number">256</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>generated_texts = processor.batch_decode(generated_ids, skip_special_tokens=<span class="hljs-literal">True</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(generated_texts[<span class="hljs-number">0</span>])
Assistant: There are buildings, trees, lights, <span class="hljs-keyword">and</span> water visible <span class="hljs-keyword">in</span> this image.

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(generated_texts[<span class="hljs-number">1</span>])
Assistant: The bridge <span class="hljs-keyword">is</span> <span class="hljs-keyword">in</span> San Francisco.`,wrap:!1}}),{c(){d=r("p"),d.textContent=M,_=a(),m(T.$$.fragment)},l(c){d=i(c,"P",{"data-svelte-h":!0}),y(d)!=="svelte-11lpom8"&&(d.textContent=M),_=s(c),p(T.$$.fragment,c)},m(c,x){l(c,d,x),l(c,_,x),h(T,c,x),v=!0},p:rt,i(c){v||(g(T.$$.fragment,c),v=!0)},o(c){u(T.$$.fragment,c),v=!1},d(c){c&&(o(d),o(_)),f(T,c)}}}function sn($){let d,M,_,T,v,c,x,To='<img alt="PyTorch" src="https://img.shields.io/badge/PyTorch-DE3412?style=flat&amp;logo=pytorch&amp;logoColor=white"/> <img alt="FlashAttention" src="https://img.shields.io/badge/%E2%9A%A1%EF%B8%8E%20FlashAttention-eae0c8?style=flat"/> <img alt="SDPA" src="https://img.shields.io/badge/SDPA-DE3412?style=flat&amp;logo=pytorch&amp;logoColor=white"/>',it,te,lt,oe,Mo='The Aria model was proposed in <a href="https://huggingface.co/papers/2410.05993" rel="nofollow">Aria: An Open Multimodal Native Mixture-of-Experts Model</a> by Li et al. from the Rhymes.AI team.',dt,ne,bo="Aria is an open multimodal-native model with best-in-class performance across a wide range of multimodal, language, and coding tasks. It has a Mixture-of-Experts architecture, with respectively 3.9B and 3.5B activated parameters per visual token and text token.",ct,ae,vo="The abstract from the paper is the following:",mt,se,wo="<em>Information comes in diverse modalities. Multimodal native AI models are essential to integrate real-world information and deliver comprehensive understanding. While proprietary multimodal native models exist, their lack of openness imposes obstacles for adoptions, let alone adaptations. To fill this gap, we introduce Aria, an open multimodal native model with best-in-class performance across a wide range of multimodal, language, and coding tasks. Aria is a mixture-of-expert model with 3.9B and 3.5B activated parameters per visual token and text token, respectively. It outperforms Pixtral-12B and Llama3.2-11B, and is competitive against the best proprietary models on various multimodal tasks. We pre-train Aria from scratch following a 4-stage pipeline, which progressively equips the model with strong capabilities in language understanding, multimodal understanding, long context window, and instruction following. We open-source the model weights along with a codebase that facilitates easy adoptions and adaptations of Aria in real-world applications.</em>",pt,re,xo=`This model was contributed by <a href="https://huggingface.co/m-ric" rel="nofollow">m-ric</a>.
The original code can be found <a href="https://github.com/rhymes-ai/Aria" rel="nofollow">here</a>.`,ht,ie,gt,le,Ao="Here’s how to use the model for vision tasks:",ut,de,ft,ce,_t,A,me,Nt,Ne,jo=`A vision processor for the Aria model that handles image preprocessing.
Initialize the AriaImageProcessor.`,Bt,Z,pe,Lt,Be,ko="Process an image with variable resolutions by dividing it into patches.",Pt,R,he,Wt,Le,Co=`Pads the <code>image</code> with the specified <code>padding</code> and <code>mode</code>. Padding can be in the (<code>height</code>, <code>width</code>)
dimension of in the (<code>num_patches</code>) dimension. In the second case an iterable if tuples is expected
as input.`,Et,G,ge,Zt,Pe,Io="Process a list of images.",yt,ue,Tt,I,fe,Rt,We,Jo="AriaProcessor is a processor for the Aria model which wraps the Aria image preprocessor and the LLama slow tokenizer.",Gt,H,_e,Ht,Ee,Uo=`This method forwards all its arguments to LlamaTokenizerFast’s <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.batch_decode">batch_decode()</a>. Please
refer to the docstring of this method for more information.`,Qt,Q,ye,Vt,Ze,$o=`This method forwards all its arguments to LlamaTokenizerFast’s <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.decode">decode()</a>. Please refer to
the docstring of this method for more information.`,Mt,Te,bt,E,Me,Xt,Re,zo=`This class handles the configuration for the text component of the Aria model.
Instantiating a configuration with the defaults will yield a similar configuration to that of the model of the Aria
<a href="https://huggingface.co/rhymes-ai/Aria" rel="nofollow">rhymes-ai/Aria</a> architecture.
This class extends the LlamaConfig to include additional parameters specific to the Mixture of Experts (MoE) architecture.`,vt,be,wt,q,ve,St,Ge,Fo=`This class handles the configuration for both vision and text components of the Aria model,
as well as additional parameters for image token handling and projector mapping.
Instantiating a configuration with the defaults will yield a similar configuration to that of the model of the Aria
<a href="https://huggingface.co/rhymes-ai/Aria" rel="nofollow">rhymes-ai/Aria</a> architecture.`,Dt,He,qo=`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.`,xt,we,At,j,xe,Ot,Qe,No=`The bare AriaText Model outputting raw hidden-states without any specific head on top.
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.)`,Yt,Ve,Bo=`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.`,Kt,Xe,Lo="Transformer decoder consisting of <em>config.num_hidden_layers</em> layers. Each layer is a <code>AriaTextDecoderLayer</code>",eo,B,Ae,to,Se,Po='The <a href="/docs/transformers/main/en/model_doc/aria#transformers.AriaTextModel">AriaTextModel</a> forward method, overrides the <code>__call__</code> special method.',oo,V,jt,je,kt,J,ke,no,De,Wo="Aria model for causal language modeling tasks.",ao,Oe,Eo=`This class extends <code>LlamaForCausalLM</code> to incorporate the Mixture of Experts (MoE) approach,
allowing for more efficient and scalable language modeling.`,so,z,Ce,ro,Ye,Zo='The <a href="/docs/transformers/main/en/model_doc/aria#transformers.AriaTextForCausalLM">AriaTextForCausalLM</a> forward method, overrides the <code>__call__</code> special method.',io,X,lo,S,Ct,Ie,It,k,Je,co,Ke,Ro="Aria model for conditional generation tasks.",mo,et,Go=`This model combines a vision tower, a multi-modal projector, and a language model
to perform tasks that involve both image and text inputs.
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.)`,po,tt,Ho=`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.`,ho,F,Ue,go,ot,Qo='The <a href="/docs/transformers/main/en/model_doc/aria#transformers.AriaForConditionalGeneration">AriaForConditionalGeneration</a> forward method, overrides the <code>__call__</code> special method.',uo,D,fo,O,Jt,$e,Ut,st,$t;return v=new W({props:{title:"Aria",local:"aria",headingTag:"h1"}}),te=new W({props:{title:"Overview",local:"overview",headingTag:"h2"}}),ie=new W({props:{title:"Usage tips",local:"usage-tips",headingTag:"h2"}}),de=new yo({props:{code:"aW1wb3J0JTIwcmVxdWVzdHMlMEFpbXBvcnQlMjB0b3JjaCUwQWZyb20lMjBQSUwlMjBpbXBvcnQlMjBJbWFnZSUwQSUwQWZyb20lMjB0cmFuc2Zvcm1lcnMlMjBpbXBvcnQlMjBBcmlhUHJvY2Vzc29yJTJDJTIwQXJpYUZvckNvbmRpdGlvbmFsR2VuZXJhdGlvbiUwQSUwQW1vZGVsX2lkX29yX3BhdGglMjAlM0QlMjAlMjJyaHltZXMtYWklMkZBcmlhJTIyJTBBJTBBbW9kZWwlMjAlM0QlMjBBcmlhRm9yQ29uZGl0aW9uYWxHZW5lcmF0aW9uLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjBtb2RlbF9pZF9vcl9wYXRoJTJDJTIwZGV2aWNlX21hcCUzRCUyMmF1dG8lMjIlMEEpJTBBJTBBcHJvY2Vzc29yJTIwJTNEJTIwQXJpYVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQobW9kZWxfaWRfb3JfcGF0aCklMEElMEFpbWFnZSUyMCUzRCUyMEltYWdlLm9wZW4ocmVxdWVzdHMuZ2V0KCUyMmh0dHAlM0ElMkYlMkZpbWFnZXMuY29jb2RhdGFzZXQub3JnJTJGdmFsMjAxNyUyRjAwMDAwMDAzOTc2OS5qcGclMjIlMkMlMjBzdHJlYW0lM0RUcnVlKS5yYXcpJTBBJTBBbWVzc2FnZXMlMjAlM0QlMjAlNUIlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJyb2xlJTIyJTNBJTIwJTIydXNlciUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmNvbnRlbnQlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMjJ0eXBlJTIyJTNBJTIwJTIyaW1hZ2UlMjIlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMjJ0ZXh0JTIyJTNBJTIwJTIyd2hhdCUyMGlzJTIwdGhlJTIwaW1hZ2UlM0YlMjIlMkMlMjAlMjJ0eXBlJTIyJTNBJTIwJTIydGV4dCUyMiU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUyQyUwQSUyMCUyMCUyMCUyMCU3RCUwQSU1RCUwQSUwQXRleHQlMjAlM0QlMjBwcm9jZXNzb3IuYXBwbHlfY2hhdF90ZW1wbGF0ZShtZXNzYWdlcyUyQyUyMGFkZF9nZW5lcmF0aW9uX3Byb21wdCUzRFRydWUpJTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKHRleHQlM0R0ZXh0JTJDJTIwaW1hZ2VzJTNEaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQWlucHV0cy50byhtb2RlbC5kZXZpY2UpJTBBJTBBb3V0cHV0JTIwJTNEJTIwbW9kZWwuZ2VuZXJhdGUoJTBBJTIwJTIwJTIwJTIwKippbnB1dHMlMkMlMEElMjAlMjAlMjAlMjBtYXhfbmV3X3Rva2VucyUzRDE1JTJDJTBBJTIwJTIwJTIwJTIwc3RvcF9zdHJpbmdzJTNEJTVCJTIyJTNDJTdDaW1fZW5kJTdDJTNFJTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwdG9rZW5pemVyJTNEcHJvY2Vzc29yLnRva2VuaXplciUyQyUwQSUyMCUyMCUyMCUyMGRvX3NhbXBsZSUzRFRydWUlMkMlMEElMjAlMjAlMjAlMjB0ZW1wZXJhdHVyZSUzRDAuOSUyQyUwQSklMEFvdXRwdXRfaWRzJTIwJTNEJTIwb3V0cHV0JTVCMCU1RCU1QmlucHV0cyU1QiUyMmlucHV0X2lkcyUyMiU1RC5zaGFwZSU1QjElNUQlM0ElNUQlMEFyZXNwb25zZSUyMCUzRCUyMHByb2Nlc3Nvci5kZWNvZGUob3V0cHV0X2lkcyUyQyUyMHNraXBfc3BlY2lhbF90b2tlbnMlM0RUcnVlKQ==",highlighted:`<span class="hljs-keyword">import</span> requests
<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image

<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AriaProcessor, AriaForConditionalGeneration

model_id_or_path = <span class="hljs-string">&quot;rhymes-ai/Aria&quot;</span>

model = AriaForConditionalGeneration.from_pretrained(
    model_id_or_path, device_map=<span class="hljs-string">&quot;auto&quot;</span>
)

processor = AriaProcessor.from_pretrained(model_id_or_path)

image = Image.<span class="hljs-built_in">open</span>(requests.get(<span class="hljs-string">&quot;http://images.cocodataset.org/val2017/000000039769.jpg&quot;</span>, stream=<span class="hljs-literal">True</span>).raw)

messages = [
    {
        <span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;user&quot;</span>,
        <span class="hljs-string">&quot;content&quot;</span>: [
            {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;image&quot;</span>},
            {<span class="hljs-string">&quot;text&quot;</span>: <span class="hljs-string">&quot;what is the image?&quot;</span>, <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;text&quot;</span>},
        ],
    }
]

text = processor.apply_chat_template(messages, add_generation_prompt=<span class="hljs-literal">True</span>)
inputs = processor(text=text, images=image, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
inputs.to(model.device)

output = model.generate(
    **inputs,
    max_new_tokens=<span class="hljs-number">15</span>,
    stop_strings=[<span class="hljs-string">&quot;&lt;|im_end|&gt;&quot;</span>],
    tokenizer=processor.tokenizer,
    do_sample=<span class="hljs-literal">True</span>,
    temperature=<span class="hljs-number">0.9</span>,
)
output_ids = output[<span class="hljs-number">0</span>][inputs[<span class="hljs-string">&quot;input_ids&quot;</span>].shape[<span class="hljs-number">1</span>]:]
response = processor.decode(output_ids, skip_special_tokens=<span class="hljs-literal">True</span>)`,wrap:!1}}),ce=new W({props:{title:"AriaImageProcessor",local:"transformers.AriaImageProcessor",headingTag:"h2"}}),me=new C({props:{name:"class transformers.AriaImageProcessor",anchor:"transformers.AriaImageProcessor",parameters:[{name:"image_mean",val:": typing.List[float] = None"},{name:"image_std",val:": typing.List[float] = None"},{name:"max_image_size",val:": int = 980"},{name:"min_image_size",val:": int = 336"},{name:"split_resolutions",val:": typing.Optional[typing.List[typing.Tuple[int, int]]] = None"},{name:"split_image",val:": typing.Optional[bool] = False"},{name:"do_convert_rgb",val:": typing.Optional[bool] = True"},{name:"do_normalize",val:": typing.Optional[bool] = True"},{name:"resample",val:": Resampling = <Resampling.BICUBIC: 3>"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AriaImageProcessor.image_mean",description:`<strong>image_mean</strong> (<code>list</code>, <em>optional</em>, defaults to [0.5, 0.5, 0.5]) &#x2014;
Mean values for normalization.`,name:"image_mean"},{anchor:"transformers.AriaImageProcessor.image_std",description:`<strong>image_std</strong> (<code>list</code>, <em>optional</em>, defaults to [0.5, 0.5, 0.5]) &#x2014;
Standard deviation values for normalization.`,name:"image_std"},{anchor:"transformers.AriaImageProcessor.max_image_size",description:`<strong>max_image_size</strong> (<code>int</code>, <em>optional</em>, defaults to 980) &#x2014;
Maximum image size.`,name:"max_image_size"},{anchor:"transformers.AriaImageProcessor.min_image_size",description:`<strong>min_image_size</strong> (<code>int</code>, <em>optional</em>, defaults to 336) &#x2014;
Minimum image size.`,name:"min_image_size"},{anchor:"transformers.AriaImageProcessor.split_resolutions",description:`<strong>split_resolutions</strong> (<code>list</code>, <em>optional</em>, defaults to a list of optimal,resolutions as tuples) &#x2014;
The optimal resolutions for splitting the image.`,name:"split_resolutions"},{anchor:"transformers.AriaImageProcessor.split_image",description:`<strong>split_image</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to split the image.`,name:"split_image"},{anchor:"transformers.AriaImageProcessor.do_convert_rgb",description:`<strong>do_convert_rgb</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to convert the image to RGB.`,name:"do_convert_rgb"},{anchor:"transformers.AriaImageProcessor.do_normalize",description:`<strong>do_normalize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to normalize the image.`,name:"do_normalize"},{anchor:"transformers.AriaImageProcessor.resample",description:`<strong>resample</strong> (PILImageResampling, <em>optional</em>, defaults to <code>BICUBIC</code>) &#x2014;
The resampling filter to use if resizing the image.`,name:"resample"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/aria/image_processing_aria.py#L87"}}),pe=new C({props:{name:"get_image_patches",anchor:"transformers.AriaImageProcessor.get_image_patches",parameters:[{name:"image",val:": <built-in function array>"},{name:"grid_pinpoints",val:": typing.List[typing.Tuple[int, int]]"},{name:"patch_size",val:": int"},{name:"resample",val:": Resampling"},{name:"data_format",val:": ChannelDimension"},{name:"input_data_format",val:": ChannelDimension"}],parametersDescription:[{anchor:"transformers.AriaImageProcessor.get_image_patches.image",description:`<strong>image</strong> (<code>np.array</code>) &#x2014;
The input image to be processed.`,name:"image"},{anchor:"transformers.AriaImageProcessor.get_image_patches.grid_pinpoints",description:`<strong>grid_pinpoints</strong> (List[Tuple[int, int]]) &#x2014;
A list of possible resolutions as tuples.`,name:"grid_pinpoints"},{anchor:"transformers.AriaImageProcessor.get_image_patches.patch_size",description:`<strong>patch_size</strong> (<code>int</code>) &#x2014;
Size of the patches to divide the image into.`,name:"patch_size"},{anchor:"transformers.AriaImageProcessor.get_image_patches.resample",description:`<strong>resample</strong> (<code>PILImageResampling</code>) &#x2014;
Resampling filter to use if resizing the image.`,name:"resample"},{anchor:"transformers.AriaImageProcessor.get_image_patches.data_format",description:`<strong>data_format</strong> (<code>ChannelDimension</code> or <code>str</code>) &#x2014;
The channel dimension format for the output image.`,name:"data_format"},{anchor:"transformers.AriaImageProcessor.get_image_patches.input_data_format",description:`<strong>input_data_format</strong> (<code>ChannelDimension</code> or <code>str</code>) &#x2014;
The channel dimension format of the input image.`,name:"input_data_format"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/aria/image_processing_aria.py#L432",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of NumPy arrays containing the processed image patches.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[np.array]</code></p>
`}}),he=new C({props:{name:"pad",anchor:"transformers.AriaImageProcessor.pad",parameters:[{name:"image",val:": ndarray"},{name:"padding",val:": typing.Union[int, typing.Tuple[int, int], typing.Iterable[typing.Tuple[int, int]]]"},{name:"mode",val:": PaddingMode = <PaddingMode.CONSTANT: 'constant'>"},{name:"constant_values",val:": typing.Union[float, typing.Iterable[float]] = 0.0"},{name:"data_format",val:": typing.Union[str, transformers.image_utils.ChannelDimension, NoneType] = None"},{name:"input_data_format",val:": typing.Union[str, transformers.image_utils.ChannelDimension, NoneType] = None"}],parametersDescription:[{anchor:"transformers.AriaImageProcessor.pad.image",description:`<strong>image</strong> (<code>np.ndarray</code>) &#x2014;
The image to pad.`,name:"image"},{anchor:"transformers.AriaImageProcessor.pad.padding",description:`<strong>padding</strong> (<code>int</code> or <code>Tuple[int, int]</code> or <code>Iterable[Tuple[int, int]]</code>) &#x2014;
Padding to apply to the edges of the height, width axes. Can be one of three formats:<ul>
<li><code>((before_height, after_height), (before_width, after_width))</code> unique pad widths for each axis.</li>
<li><code>((before, after),)</code> yields same before and after pad for height and width.</li>
<li><code>(pad,)</code> or int is a shortcut for before = after = pad width for all axes.</li>
</ul>`,name:"padding"},{anchor:"transformers.AriaImageProcessor.pad.mode",description:`<strong>mode</strong> (<code>PaddingMode</code>) &#x2014;
The padding mode to use. Can be one of:<ul>
<li><code>&quot;constant&quot;</code>: pads with a constant value.</li>
<li><code>&quot;reflect&quot;</code>: pads with the reflection of the vector mirrored on the first and last values of the
vector along each axis.</li>
<li><code>&quot;replicate&quot;</code>: pads with the replication of the last value on the edge of the array along each axis.</li>
<li><code>&quot;symmetric&quot;</code>: pads with the reflection of the vector mirrored along the edge of the array.</li>
</ul>`,name:"mode"},{anchor:"transformers.AriaImageProcessor.pad.constant_values",description:`<strong>constant_values</strong> (<code>float</code> or <code>Iterable[float]</code>, <em>optional</em>) &#x2014;
The value to use for the padding if <code>mode</code> is <code>&quot;constant&quot;</code>.`,name:"constant_values"},{anchor:"transformers.AriaImageProcessor.pad.data_format",description:`<strong>data_format</strong> (<code>str</code> or <code>ChannelDimension</code>, <em>optional</em>) &#x2014;
The channel dimension format for the output image. Can be one of:<ul>
<li><code>&quot;channels_first&quot;</code> or <code>ChannelDimension.FIRST</code>: image in (num_channels, height, width) format.</li>
<li><code>&quot;channels_last&quot;</code> or <code>ChannelDimension.LAST</code>: image in (height, width, num_channels) format.
If unset, will use same as the input image.</li>
</ul>`,name:"data_format"},{anchor:"transformers.AriaImageProcessor.pad.input_data_format",description:`<strong>input_data_format</strong> (<code>str</code> or <code>ChannelDimension</code>, <em>optional</em>) &#x2014;
The channel dimension format for the input image. Can be one of:<ul>
<li><code>&quot;channels_first&quot;</code> or <code>ChannelDimension.FIRST</code>: image in (num_channels, height, width) format.</li>
<li><code>&quot;channels_last&quot;</code> or <code>ChannelDimension.LAST</code>: image in (height, width, num_channels) format.
If unset, will use the inferred format of the input image.</li>
</ul>`,name:"input_data_format"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/aria/image_processing_aria.py#L366",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The padded image.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>np.ndarray</code></p>
`}}),ge=new C({props:{name:"preprocess",anchor:"transformers.AriaImageProcessor.preprocess",parameters:[{name:"images",val:": typing.Union[ForwardRef('PIL.Image.Image'), numpy.ndarray, ForwardRef('torch.Tensor'), list['PIL.Image.Image'], list[numpy.ndarray], list['torch.Tensor'], typing.List[typing.Union[ForwardRef('PIL.Image.Image'), numpy.ndarray, ForwardRef('torch.Tensor'), list['PIL.Image.Image'], list[numpy.ndarray], list['torch.Tensor']]]]"},{name:"image_mean",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"image_std",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"max_image_size",val:": typing.Optional[int] = None"},{name:"min_image_size",val:": typing.Optional[int] = None"},{name:"split_image",val:": typing.Optional[bool] = None"},{name:"do_convert_rgb",val:": typing.Optional[bool] = None"},{name:"do_normalize",val:": typing.Optional[bool] = None"},{name:"resample",val:": Resampling = None"},{name:"return_tensors",val:": typing.Union[str, transformers.utils.generic.TensorType, NoneType] = 'pt'"},{name:"data_format",val:": typing.Optional[transformers.image_utils.ChannelDimension] = <ChannelDimension.FIRST: 'channels_first'>"},{name:"input_data_format",val:": typing.Union[str, transformers.image_utils.ChannelDimension, NoneType] = None"}],parametersDescription:[{anchor:"transformers.AriaImageProcessor.preprocess.images",description:`<strong>images</strong> (ImageInput or list of ImageInput) &#x2014;
The input image or a list of images.`,name:"images"},{anchor:"transformers.AriaImageProcessor.preprocess.image_mean",description:`<strong>image_mean</strong> (<code>list</code>, <em>optional</em>, defaults to [0.5, 0.5, 0.5]) &#x2014;
Mean values for normalization.`,name:"image_mean"},{anchor:"transformers.AriaImageProcessor.preprocess.image_std",description:`<strong>image_std</strong> (<code>list</code>, <em>optional</em>, defaults to [0.5, 0.5, 0.5]) &#x2014;
Standard deviation values for normalization.`,name:"image_std"},{anchor:"transformers.AriaImageProcessor.preprocess.max_image_size",description:`<strong>max_image_size</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.max_image_size</code> (980)) &#x2014;
Maximum image size.`,name:"max_image_size"},{anchor:"transformers.AriaImageProcessor.preprocess.min_image_size",description:`<strong>min_image_size</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.min_image_size</code> (336)) &#x2014;
Minimum image size.`,name:"min_image_size"},{anchor:"transformers.AriaImageProcessor.preprocess.split_image",description:`<strong>split_image</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.split_image</code> (False)) &#x2014;
Whether to split the image.`,name:"split_image"},{anchor:"transformers.AriaImageProcessor.preprocess.do_convert_rgb",description:`<strong>do_convert_rgb</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_convert_rgb</code> (True)) &#x2014;
Whether to convert the image to RGB.`,name:"do_convert_rgb"},{anchor:"transformers.AriaImageProcessor.preprocess.do_normalize",description:`<strong>do_normalize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_normalize</code> (True)) &#x2014;
Whether to normalize the image.`,name:"do_normalize"},{anchor:"transformers.AriaImageProcessor.preprocess.resample",description:`<strong>resample</strong> (PILImageResampling, <em>optional</em>, defaults to <code>self.resample</code> (BICUBIC)) &#x2014;
The resampling filter to use if resizing the image.`,name:"resample"},{anchor:"transformers.AriaImageProcessor.preprocess.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code> or <code>TensorType</code>, <em>optional</em>, defaults to &#x201C;pt&#x201D;) &#x2014;
The type of tensor to return.`,name:"return_tensors"},{anchor:"transformers.AriaImageProcessor.preprocess.data_format",description:`<strong>data_format</strong> (<code>str</code> or <code>ChannelDimension</code>, <em>optional</em>) &#x2014;
The channel dimension format for the output image. Can be one of:<ul>
<li><code>&quot;channels_first&quot;</code> or <code>ChannelDimension.FIRST</code>:
image in (num_channels, height, width) format.</li>
<li><code>&quot;channels_last&quot;</code> or <code>ChannelDimension.LAST</code>:
image in (height, width, num_channels) format.
If unset, will use same as the input image.</li>
</ul>`,name:"data_format"},{anchor:"transformers.AriaImageProcessor.preprocess.input_data_format",description:`<strong>input_data_format</strong> (<code>str</code> or <code>ChannelDimension</code>, <em>optional</em>) &#x2014;
The channel dimension format for the input image. Can be one of:<ul>
<li><code>&quot;channels_first&quot;</code> or <code>ChannelDimension.FIRST</code>:
image in (num_channels, height, width) format.</li>
<li><code>&quot;channels_last&quot;</code> or <code>ChannelDimension.LAST</code>:
image in (height, width, num_channels) format.
If unset, will use the inferred format of the input image.</li>
</ul>`,name:"input_data_format"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/aria/image_processing_aria.py#L147",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A BatchFeature object containing:</p>
<ul>
<li>‘pixel_values’:
Tensor of processed image pixel values.</li>
<li>‘pixel_mask’:
Boolean pixel mask. This mask is a 2D tensor of shape (max_image_size, max_image_size) where:<ul>
<li>True (1) values indicate pixels that belong to the original resized image.</li>
<li>False (0) values indicate pixels that are part of the padding.
The mask helps distinguish between actual image content and padded areas in subsequent processing steps.</li>
</ul></li>
<li>‘num_crops’:
The maximum number of crops across all images.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>BatchFeature</p>
`}}),ue=new W({props:{title:"AriaProcessor",local:"transformers.AriaProcessor",headingTag:"h2"}}),fe=new C({props:{name:"class transformers.AriaProcessor",anchor:"transformers.AriaProcessor",parameters:[{name:"image_processor",val:" = None"},{name:"tokenizer",val:": typing.Union[transformers.models.auto.tokenization_auto.AutoTokenizer, str] = None"},{name:"chat_template",val:": typing.Optional[str] = None"},{name:"size_conversion",val:": typing.Optional[typing.Dict[typing.Union[float, int], int]] = None"}],parametersDescription:[{anchor:"transformers.AriaProcessor.image_processor",description:`<strong>image_processor</strong> (<code>AriaImageProcessor</code>, <em>optional</em>) &#x2014;
The AriaImageProcessor to use for image preprocessing.`,name:"image_processor"},{anchor:"transformers.AriaProcessor.tokenizer",description:`<strong>tokenizer</strong> (<code>PreTrainedTokenizerBase</code>, <em>optional</em>) &#x2014;
An instance of <a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase">PreTrainedTokenizerBase</a>. This should correspond with the model&#x2019;s text model. The tokenizer is a required input.`,name:"tokenizer"},{anchor:"transformers.AriaProcessor.chat_template",description:`<strong>chat_template</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A Jinja template which will be used to convert lists of messages in a chat into a tokenizable string.`,name:"chat_template"},{anchor:"transformers.AriaProcessor.size_conversion",description:`<strong>size_conversion</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
A dictionary indicating size conversions for images.`,name:"size_conversion"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/aria/processing_aria.py#L44"}}),_e=new C({props:{name:"batch_decode",anchor:"transformers.AriaProcessor.batch_decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/aria/processing_aria.py#L143"}}),ye=new C({props:{name:"decode",anchor:"transformers.AriaProcessor.decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/aria/processing_aria.py#L150"}}),Te=new W({props:{title:"AriaTextConfig",local:"transformers.AriaTextConfig",headingTag:"h2"}}),Me=new C({props:{name:"class transformers.AriaTextConfig",anchor:"transformers.AriaTextConfig",parameters:[{name:"vocab_size",val:" = 32000"},{name:"hidden_size",val:" = 4096"},{name:"intermediate_size",val:": int = 4096"},{name:"num_hidden_layers",val:" = 32"},{name:"num_attention_heads",val:" = 32"},{name:"num_key_value_heads",val:" = None"},{name:"hidden_act",val:" = 'silu'"},{name:"max_position_embeddings",val:" = 2048"},{name:"initializer_range",val:" = 0.02"},{name:"rms_norm_eps",val:" = 1e-06"},{name:"use_cache",val:" = True"},{name:"pad_token_id",val:" = 2"},{name:"bos_token_id",val:" = 1"},{name:"eos_token_id",val:" = 2"},{name:"pretraining_tp",val:" = 1"},{name:"tie_word_embeddings",val:" = False"},{name:"rope_theta",val:" = 10000.0"},{name:"rope_scaling",val:" = None"},{name:"attention_bias",val:" = False"},{name:"attention_dropout",val:" = 0.0"},{name:"mlp_bias",val:" = False"},{name:"head_dim",val:" = None"},{name:"moe_num_experts",val:": int = 8"},{name:"moe_topk",val:": int = 2"},{name:"moe_num_shared_experts",val:": int = 2"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AriaTextConfig.vocab_size",description:`<strong>vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 32000) &#x2014;
Vocabulary size of the LLaMA 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/llama#transformers.LlamaModel">LlamaModel</a>`,name:"vocab_size"},{anchor:"transformers.AriaTextConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 4096) &#x2014;
Dimension of the hidden representations.`,name:"hidden_size"},{anchor:"transformers.AriaTextConfig.intermediate_size",description:`<strong>intermediate_size</strong> (<code>int</code>, <em>optional</em>, defaults to 4096) &#x2014;
The size of the MLP representations.`,name:"intermediate_size"},{anchor:"transformers.AriaTextConfig.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 Transformer decoder.`,name:"num_hidden_layers"},{anchor:"transformers.AriaTextConfig.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 32) &#x2014;
Number of attention heads for each attention layer in the Transformer decoder.`,name:"num_attention_heads"},{anchor:"transformers.AriaTextConfig.num_key_value_heads",description:`<strong>num_key_value_heads</strong> (<code>int</code>, <em>optional</em>) &#x2014;
This is the number of key_value heads that should be used to implement Grouped Query Attention. If
<code>num_key_value_heads=num_attention_heads</code>, the model will use Multi Head Attention (MHA), if
<code>num_key_value_heads=1</code> the model will use Multi Query Attention (MQA) otherwise GQA is used. When
converting a multi-head checkpoint to a GQA checkpoint, each group key and value head should be constructed
by meanpooling all the original heads within that group. For more details checkout <a href="https://arxiv.org/pdf/2305.13245.pdf" rel="nofollow">this
paper</a>. If it is not specified, will default to
<code>num_attention_heads</code>.`,name:"num_key_value_heads"},{anchor:"transformers.AriaTextConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code> or <code>function</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.AriaTextConfig.max_position_embeddings",description:`<strong>max_position_embeddings</strong> (<code>int</code>, <em>optional</em>, defaults to 2048) &#x2014;
The maximum sequence length that this model might ever be used with. Llama 1 supports up to 2048 tokens,
Llama 2 up to 4096, CodeLlama up to 16384.`,name:"max_position_embeddings"},{anchor:"transformers.AriaTextConfig.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.AriaTextConfig.rms_norm_eps",description:`<strong>rms_norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-06) &#x2014;
The epsilon used by the rms normalization layers.`,name:"rms_norm_eps"},{anchor:"transformers.AriaTextConfig.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.AriaTextConfig.pad_token_id",description:`<strong>pad_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014;
Padding token id.`,name:"pad_token_id"},{anchor:"transformers.AriaTextConfig.bos_token_id",description:`<strong>bos_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Beginning of stream token id.`,name:"bos_token_id"},{anchor:"transformers.AriaTextConfig.eos_token_id",description:`<strong>eos_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014;
End of stream token id.`,name:"eos_token_id"},{anchor:"transformers.AriaTextConfig.pretraining_tp",description:`<strong>pretraining_tp</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Experimental feature. Tensor parallelism rank used during pretraining. Please refer to <a href="https://huggingface.co/docs/transformers/main/perf_train_gpu_many#tensor-parallelism" rel="nofollow">this
document</a> to
understand more about it. This value is necessary to ensure exact reproducibility of the pretraining
results. Please refer to <a href="https://github.com/pytorch/pytorch/issues/76232" rel="nofollow">this issue</a>.`,name:"pretraining_tp"},{anchor:"transformers.AriaTextConfig.tie_word_embeddings",description:`<strong>tie_word_embeddings</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to tie weight embeddings`,name:"tie_word_embeddings"},{anchor:"transformers.AriaTextConfig.rope_theta",description:`<strong>rope_theta</strong> (<code>float</code>, <em>optional</em>, defaults to 10000.0) &#x2014;
The base period of the RoPE embeddings.`,name:"rope_theta"},{anchor:"transformers.AriaTextConfig.rope_scaling",description:`<strong>rope_scaling</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
Dictionary containing the scaling configuration for the RoPE embeddings. NOTE: if you apply new rope type
and you expect the model to work on longer <code>max_position_embeddings</code>, we recommend you to update this value
accordingly.
Expected contents:
<code>rope_type</code> (<code>str</code>):
The sub-variant of RoPE to use. Can be one of [&#x2018;default&#x2019;, &#x2018;linear&#x2019;, &#x2018;dynamic&#x2019;, &#x2018;yarn&#x2019;, &#x2018;longrope&#x2019;,
&#x2018;llama3&#x2019;], with &#x2018;default&#x2019; being the original RoPE implementation.
<code>factor</code> (<code>float</code>, <em>optional</em>):
Used with all rope types except &#x2018;default&#x2019;. The scaling factor to apply to the RoPE embeddings. In
most scaling types, a <code>factor</code> of x will enable the model to handle sequences of length x <em>
original maximum pre-trained length.
<code>original_max_position_embeddings</code> (<code>int</code>, </em>optional<em>):
Used with &#x2018;dynamic&#x2019;, &#x2018;longrope&#x2019; and &#x2018;llama3&#x2019;. The original max position embeddings used during
pretraining.
<code>attention_factor</code> (<code>float</code>, </em>optional<em>):
Used with &#x2018;yarn&#x2019; and &#x2018;longrope&#x2019;. The scaling factor to be applied on the attention
computation. If unspecified, it defaults to value recommended by the implementation, using the
<code>factor</code> field to infer the suggested value.
<code>beta_fast</code> (<code>float</code>, </em>optional<em>):
Only used with &#x2018;yarn&#x2019;. Parameter to set the boundary for extrapolation (only) in the linear
ramp function. If unspecified, it defaults to 32.
<code>beta_slow</code> (<code>float</code>, </em>optional<em>):
Only used with &#x2018;yarn&#x2019;. Parameter to set the boundary for interpolation (only) in the linear
ramp function. If unspecified, it defaults to 1.
<code>short_factor</code> (<code>List[float]</code>, </em>optional<em>):
Only used with &#x2018;longrope&#x2019;. The scaling factor to be applied to short contexts (&lt;
<code>original_max_position_embeddings</code>). Must be a list of numbers with the same length as the hidden
size divided by the number of attention heads divided by 2
<code>long_factor</code> (<code>List[float]</code>, </em>optional<em>):
Only used with &#x2018;longrope&#x2019;. The scaling factor to be applied to long contexts (&lt;
<code>original_max_position_embeddings</code>). Must be a list of numbers with the same length as the hidden
size divided by the number of attention heads divided by 2
<code>low_freq_factor</code> (<code>float</code>, </em>optional<em>):
Only used with &#x2018;llama3&#x2019;. Scaling factor applied to low frequency components of the RoPE
<code>high_freq_factor</code> (<code>float</code>, </em>optional*):
Only used with &#x2018;llama3&#x2019;. Scaling factor applied to high frequency components of the RoPE`,name:"rope_scaling"},{anchor:"transformers.AriaTextConfig.attention_bias",description:`<strong>attention_bias</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use a bias in the query, key, value and output projection layers during self-attention.`,name:"attention_bias"},{anchor:"transformers.AriaTextConfig.attention_dropout",description:`<strong>attention_dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout ratio for the attention probabilities.`,name:"attention_dropout"},{anchor:"transformers.AriaTextConfig.mlp_bias",description:`<strong>mlp_bias</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use a bias in up_proj, down_proj and gate_proj layers in the MLP layers.`,name:"mlp_bias"},{anchor:"transformers.AriaTextConfig.head_dim",description:`<strong>head_dim</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The attention head dimension. If None, it will default to hidden_size // num_heads`,name:"head_dim"},{anchor:"transformers.AriaTextConfig.moe_num_experts",description:`<strong>moe_num_experts</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
The number of experts in the MoE layer.`,name:"moe_num_experts"},{anchor:"transformers.AriaTextConfig.moe_topk",description:`<strong>moe_topk</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014;
The number of top experts to route to for each token.`,name:"moe_topk"},{anchor:"transformers.AriaTextConfig.moe_num_shared_experts",description:`<strong>moe_num_shared_experts</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014;
The number of shared experts.`,name:"moe_num_shared_experts"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/aria/configuration_aria.py#L28"}}),be=new W({props:{title:"AriaConfig",local:"transformers.AriaConfig",headingTag:"h2"}}),ve=new C({props:{name:"class transformers.AriaConfig",anchor:"transformers.AriaConfig",parameters:[{name:"vision_config",val:" = None"},{name:"vision_feature_layer",val:": int = -1"},{name:"text_config",val:": AriaTextConfig = None"},{name:"projector_patch_to_query_dict",val:": typing.Dict = None"},{name:"image_token_index",val:": int = 9"},{name:"initializer_range",val:": float = 0.02"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AriaConfig.vision_config",description:`<strong>vision_config</strong> (<code>AriaVisionConfig</code> or <code>dict</code>, <em>optional</em>) &#x2014;
Configuration for the vision component.`,name:"vision_config"},{anchor:"transformers.AriaConfig.vision_feature_layer",description:`<strong>vision_feature_layer</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
The index of the layer to select the vision feature.`,name:"vision_feature_layer"},{anchor:"transformers.AriaConfig.text_config",description:`<strong>text_config</strong> (<code>AriaTextConfig</code> or <code>dict</code>, <em>optional</em>) &#x2014;
Configuration for the text component.`,name:"text_config"},{anchor:"transformers.AriaConfig.projector_patch_to_query_dict",description:`<strong>projector_patch_to_query_dict</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Mapping of patch sizes to query dimensions.`,name:"projector_patch_to_query_dict"},{anchor:"transformers.AriaConfig.image_token_index",description:`<strong>image_token_index</strong> (<code>int</code>, <em>optional</em>, defaults to 9) &#x2014;
Index used to represent image tokens.`,name:"image_token_index"},{anchor:"transformers.AriaConfig.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.AriaConfig.model_type",description:`<strong>model_type</strong> (<code>str</code>) &#x2014;
Type of the model, set to <code>&quot;aria&quot;</code>.`,name:"model_type"},{anchor:"transformers.AriaConfig.image_token_index",description:`<strong>image_token_index</strong> (<code>int</code>) &#x2014;
Index used to represent image tokens.`,name:"image_token_index"},{anchor:"transformers.AriaConfig.projector_patch_to_query_dict",description:`<strong>projector_patch_to_query_dict</strong> (<code>dict</code>) &#x2014;
Mapping of patch sizes to query dimensions.`,name:"projector_patch_to_query_dict"},{anchor:"transformers.AriaConfig.vision_config",description:`<strong>vision_config</strong> (<code>AriaVisionConfig</code>) &#x2014;
Configuration for the vision component.`,name:"vision_config"},{anchor:"transformers.AriaConfig.text_config",description:`<strong>text_config</strong> (<code>AriaTextConfig</code>) &#x2014;
Configuration for the text component.`,name:"text_config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/aria/configuration_aria.py#L223"}}),we=new W({props:{title:"AriaTextModel",local:"transformers.AriaTextModel",headingTag:"h2"}}),xe=new C({props:{name:"class transformers.AriaTextModel",anchor:"transformers.AriaTextModel",parameters:[{name:"config",val:": AriaTextConfig"}],parametersDescription:[{anchor:"transformers.AriaTextModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/aria#transformers.AriaTextConfig">AriaTextConfig</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"},{anchor:"transformers.AriaTextModel.config",description:"<strong>config</strong> &#x2014; AriaTextConfig",name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/aria/modeling_aria.py#L871"}}),Ae=new C({props:{name:"forward",anchor:"transformers.AriaTextModel.forward",parameters:[{name:"input_ids",val:": LongTensor = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"past_key_values",val:": typing.Optional[transformers.cache_utils.Cache] = None"},{name:"inputs_embeds",val:": typing.Optional[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"},{name:"cache_position",val:": typing.Optional[torch.LongTensor] = None"},{name:"**flash_attn_kwargs",val:": typing_extensions.Unpack[transformers.modeling_flash_attention_utils.FlashAttentionKwargs]"}],parametersDescription:[{anchor:"transformers.AriaTextModel.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. Padding will be ignored by default should you provide
it.</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.AriaTextModel.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a></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>If <code>past_key_values</code> is used, optionally only the last <code>input_ids</code> have to be input (see
<code>past_key_values</code>).</p>
<p>If you want to change padding behavior, you should read <code>modeling_opt._prepare_decoder_attention_mask</code>
and modify to your needs. See diagram 1 in <a href="https://arxiv.org/abs/1910.13461" rel="nofollow">the paper</a> for more
information on the default strategy.</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:"attention_mask"},{anchor:"transformers.AriaTextModel.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.n_positions - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.AriaTextModel.forward.past_key_values",description:`<strong>past_key_values</strong> (<code>Cache</code> or <code>tuple(tuple(torch.FloatTensor))</code>, <em>optional</em>) &#x2014;
Pre-computed hidden-states (key and values in the self-attention blocks and in the cross-attention
blocks) that can be used to speed up sequential decoding. This typically consists in the <code>past_key_values</code>
returned by the model at a previous stage of decoding, when <code>use_cache=True</code> or <code>config.use_cache=True</code>.</p>
<p>Two formats are allowed:</p>
<ul>
<li>a <a href="/docs/transformers/main/en/internal/generation_utils#transformers.Cache">Cache</a> instance, see our
<a href="https://huggingface.co/docs/transformers/en/kv_cache" rel="nofollow">kv cache guide</a>;</li>
<li>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>). This is also known as the legacy
cache format.</li>
</ul>
<p>The model will output the same cache format that is fed as input. If no <code>past_key_values</code> are passed, the
legacy cache format will be returned.</p>
<p>If <code>past_key_values</code> are used, the user can optionally input only the last <code>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>input_ids</code>
of shape <code>(batch_size, sequence_length)</code>.`,name:"past_key_values"},{anchor:"transformers.AriaTextModel.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.AriaTextModel.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"},{anchor:"transformers.AriaTextModel.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.AriaTextModel.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.AriaTextModel.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.AriaTextModel.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"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/aria/modeling_aria.py#L905"}}),V=new _o({props:{$$slots:{default:[en]},$$scope:{ctx:$}}}),je=new W({props:{title:"AriaTextForCausalLM",local:"transformers.AriaTextForCausalLM",headingTag:"h2"}}),ke=new C({props:{name:"class transformers.AriaTextForCausalLM",anchor:"transformers.AriaTextForCausalLM",parameters:[{name:"config",val:": AriaTextConfig"}],parametersDescription:[{anchor:"transformers.AriaTextForCausalLM.config",description:`<strong>config</strong> (<code>AriaTextConfig</code>) &#x2014;
Configuration object for the model.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/aria/modeling_aria.py#L1144"}}),Ce=new C({props:{name:"forward",anchor:"transformers.AriaTextForCausalLM.forward",parameters:[{name:"input_ids",val:": LongTensor = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"past_key_values",val:": typing.Union[typing.List[torch.FloatTensor], transformers.cache_utils.Cache, NoneType] = None"},{name:"inputs_embeds",val:": typing.Optional[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"},{name:"cache_position",val:": typing.Optional[torch.LongTensor] = None"},{name:"logits_to_keep",val:": typing.Union[int, torch.Tensor] = 0"},{name:"**kwargs",val:": typing_extensions.Unpack[transformers.models.aria.modeling_aria.KwargsForCausalLM]"}],parametersDescription:[{anchor:"transformers.AriaTextForCausalLM.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. Padding will be ignored by default should you provide
it.</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.AriaTextForCausalLM.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a></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>If <code>past_key_values</code> is used, optionally only the last <code>input_ids</code> have to be input (see
<code>past_key_values</code>).</p>
<p>If you want to change padding behavior, you should read <code>modeling_opt._prepare_decoder_attention_mask</code>
and modify to your needs. See diagram 1 in <a href="https://arxiv.org/abs/1910.13461" rel="nofollow">the paper</a> for more
information on the default strategy.</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:"attention_mask"},{anchor:"transformers.AriaTextForCausalLM.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.n_positions - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.AriaTextForCausalLM.forward.past_key_values",description:`<strong>past_key_values</strong> (<code>Cache</code> or <code>tuple(tuple(torch.FloatTensor))</code>, <em>optional</em>) &#x2014;
Pre-computed hidden-states (key and values in the self-attention blocks and in the cross-attention
blocks) that can be used to speed up sequential decoding. This typically consists in the <code>past_key_values</code>
returned by the model at a previous stage of decoding, when <code>use_cache=True</code> or <code>config.use_cache=True</code>.</p>
<p>Two formats are allowed:</p>
<ul>
<li>a <a href="/docs/transformers/main/en/internal/generation_utils#transformers.Cache">Cache</a> instance, see our
<a href="https://huggingface.co/docs/transformers/en/kv_cache" rel="nofollow">kv cache guide</a>;</li>
<li>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>). This is also known as the legacy
cache format.</li>
</ul>
<p>The model will output the same cache format that is fed as input. If no <code>past_key_values</code> are passed, the
legacy cache format will be returned.</p>
<p>If <code>past_key_values</code> are used, the user can optionally input only the last <code>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>input_ids</code>
of shape <code>(batch_size, sequence_length)</code>.`,name:"past_key_values"},{anchor:"transformers.AriaTextForCausalLM.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.AriaTextForCausalLM.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"},{anchor:"transformers.AriaTextForCausalLM.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.AriaTextForCausalLM.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.AriaTextForCausalLM.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.AriaTextForCausalLM.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.AriaTextForCausalLM.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 either be in <code>[0, ..., config.vocab_size]</code> or -100 (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.AriaTextForCausalLM.forward.logits_to_keep",description:`<strong>logits_to_keep</strong> (<code>int</code> or <code>torch.Tensor</code>, <em>optional</em>) &#x2014;
If an <code>int</code>, compute logits for the last <code>logits_to_keep</code> tokens. If <code>0</code>, calculate logits for all
<code>input_ids</code> (special case). Only last token logits are needed for generation, and calculating them only for that
token can save memory, which becomes pretty significant for long sequences or large vocabulary size.
If a <code>torch.Tensor</code>, must be 1D corresponding to the indices to keep in the sequence length dimension.
This is useful when using packed tensor format (single dimension for batch and sequence length).`,name:"logits_to_keep"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/aria/modeling_aria.py#L1188",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.CausalLMOutputWithPast"
>transformers.modeling_outputs.CausalLMOutputWithPast</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/main/en/model_doc/aria#transformers.AriaTextConfig"
>AriaTextConfig</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>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>) — 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>)</p>
<p>Contains pre-computed hidden-states (key and values in the self-attention blocks) that can be used (see
<code>past_key_values</code> input) to speed up sequential decoding.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(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>
<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>) — 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:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.CausalLMOutputWithPast"
>transformers.modeling_outputs.CausalLMOutputWithPast</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),X=new _o({props:{$$slots:{default:[tn]},$$scope:{ctx:$}}}),S=new Vo({props:{anchor:"transformers.AriaTextForCausalLM.forward.example",$$slots:{default:[on]},$$scope:{ctx:$}}}),Ie=new W({props:{title:"AriaForConditionalGeneration",local:"transformers.AriaForConditionalGeneration",headingTag:"h2"}}),Je=new C({props:{name:"class transformers.AriaForConditionalGeneration",anchor:"transformers.AriaForConditionalGeneration",parameters:[{name:"config",val:": AriaConfig"}],parametersDescription:[{anchor:"transformers.AriaForConditionalGeneration.config",description:`<strong>config</strong> (<code>AriaConfig</code>) &#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/aria/modeling_aria.py#L1373"}}),Ue=new C({props:{name:"forward",anchor:"transformers.AriaForConditionalGeneration.forward",parameters:[{name:"input_ids",val:": LongTensor = None"},{name:"pixel_values",val:": FloatTensor = None"},{name:"pixel_mask",val:": LongTensor = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"past_key_values",val:": typing.Optional[typing.List[torch.FloatTensor]] = None"},{name:"inputs_embeds",val:": typing.Optional[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"},{name:"logits_to_keep",val:": typing.Union[int, torch.Tensor] = 0"},{name:"cache_position",val:": typing.Optional[torch.LongTensor] = None"},{name:"**loss_kwargs",val:""}],parametersDescription:[{anchor:"transformers.AriaForConditionalGeneration.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code>, <em>optional</em>) &#x2014;
Input token IDs.`,name:"input_ids"},{anchor:"transformers.AriaForConditionalGeneration.forward.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pixel values of the images.`,name:"pixel_values"},{anchor:"transformers.AriaForConditionalGeneration.forward.pixel_mask",description:`<strong>pixel_mask</strong> (<code>torch.LongTensor</code>, <em>optional</em>) &#x2014;
Mask for the pixel values.`,name:"pixel_mask"},{anchor:"transformers.AriaForConditionalGeneration.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Attention mask.`,name:"attention_mask"},{anchor:"transformers.AriaForConditionalGeneration.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code>, <em>optional</em>) &#x2014;
Position IDs.`,name:"position_ids"},{anchor:"transformers.AriaForConditionalGeneration.forward.past_key_values",description:`<strong>past_key_values</strong> (<code>List[torch.FloatTensor]</code>, <em>optional</em>) &#x2014;
Past key values for efficient processing.`,name:"past_key_values"},{anchor:"transformers.AriaForConditionalGeneration.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Input embeddings.`,name:"inputs_embeds"},{anchor:"transformers.AriaForConditionalGeneration.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code>, <em>optional</em>) &#x2014;
Labels for computing the language modeling loss.`,name:"labels"},{anchor:"transformers.AriaForConditionalGeneration.forward.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to use the model&#x2019;s cache mechanism.`,name:"use_cache"},{anchor:"transformers.AriaForConditionalGeneration.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to output attention weights.`,name:"output_attentions"},{anchor:"transformers.AriaForConditionalGeneration.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to output hidden states.`,name:"output_hidden_states"},{anchor:"transformers.AriaForConditionalGeneration.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to return a <code>ModelOutput</code> object.`,name:"return_dict"},{anchor:"transformers.AriaForConditionalGeneration.forward.logits_to_keep",description:`<strong>logits_to_keep</strong> (<code>int</code> or <code>torch.Tensor</code>, <em>optional</em>, defaults to 0) &#x2014;
If an <code>int</code>, calculate logits for the last <code>logits_to_keep</code> tokens, or all <code>input_ids</code> if <code>0</code>.
Otherwise, slice according to the 1D tensor in the sequence length dimension`,name:"logits_to_keep"},{anchor:"transformers.AriaForConditionalGeneration.forward.cache_position",description:`<strong>cache_position</strong> (<code>torch.LongTensor</code>, <em>optional</em>) &#x2014;
Cache positions.`,name:"cache_position"},{anchor:"transformers.AriaForConditionalGeneration.forward.*loss_kwargs",description:`*<strong>*loss_kwargs</strong> &#x2014;
Additional keyword arguments for loss calculation.`,name:"*loss_kwargs"},{anchor:"transformers.AriaForConditionalGeneration.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 either be in <code>[0, ..., config.vocab_size]</code> or <code>model.image_token_id</code> (where <code>model</code> is your instance of <code>Idefics3ForConditionalGeneration</code>).
Tokens with indices set to <code>model.image_token_id</code> are ignored (masked), the loss is only
computed for the tokens with labels in <code>[0, ..., config.vocab_size]</code>.`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/aria/modeling_aria.py#L1451",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.aria.modeling_aria.AriaCausalLMOutputWithPast</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 (<code>&lt;class 'transformers.models.aria.configuration_aria.AriaConfig'&gt;</code>) 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>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>) — 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>)</p>
<p>Contains pre-computed hidden-states (key and values in the self-attention blocks) that can be used (see
<code>past_key_values</code> input) to speed up sequential decoding.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(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>
<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>) — 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>image_hidden_states</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) — A <code>torch.FloatTensor</code> of size (batch_size, num_images, sequence_length, hidden_size)\`.
image_hidden_states of the model produced by the vision encoder and after projecting the last hidden state.</p>
</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.aria.modeling_aria.AriaCausalLMOutputWithPast</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),D=new _o({props:{$$slots:{default:[nn]},$$scope:{ctx:$}}}),O=new Vo({props:{anchor:"transformers.AriaForConditionalGeneration.forward.example",$$slots:{default:[an]},$$scope:{ctx:$}}}),$e=new Ko({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/aria.md"}}),{c(){d=r("meta"),M=a(),_=r("p"),T=a(),m(v.$$.fragment),c=a(),x=r("div"),x.innerHTML=To,it=a(),m(te.$$.fragment),lt=a(),oe=r("p"),oe.innerHTML=Mo,dt=a(),ne=r("p"),ne.textContent=bo,ct=a(),ae=r("p"),ae.textContent=vo,mt=a(),se=r("p"),se.innerHTML=wo,pt=a(),re=r("p"),re.innerHTML=xo,ht=a(),m(ie.$$.fragment),gt=a(),le=r("p"),le.textContent=Ao,ut=a(),m(de.$$.fragment),ft=a(),m(ce.$$.fragment),_t=a(),A=r("div"),m(me.$$.fragment),Nt=a(),Ne=r("p"),Ne.textContent=jo,Bt=a(),Z=r("div"),m(pe.$$.fragment),Lt=a(),Be=r("p"),Be.textContent=ko,Pt=a(),R=r("div"),m(he.$$.fragment),Wt=a(),Le=r("p"),Le.innerHTML=Co,Et=a(),G=r("div"),m(ge.$$.fragment),Zt=a(),Pe=r("p"),Pe.textContent=Io,yt=a(),m(ue.$$.fragment),Tt=a(),I=r("div"),m(fe.$$.fragment),Rt=a(),We=r("p"),We.textContent=Jo,Gt=a(),H=r("div"),m(_e.$$.fragment),Ht=a(),Ee=r("p"),Ee.innerHTML=Uo,Qt=a(),Q=r("div"),m(ye.$$.fragment),Vt=a(),Ze=r("p"),Ze.innerHTML=$o,Mt=a(),m(Te.$$.fragment),bt=a(),E=r("div"),m(Me.$$.fragment),Xt=a(),Re=r("p"),Re.innerHTML=zo,vt=a(),m(be.$$.fragment),wt=a(),q=r("div"),m(ve.$$.fragment),St=a(),Ge=r("p"),Ge.innerHTML=Fo,Dt=a(),He=r("p"),He.innerHTML=qo,xt=a(),m(we.$$.fragment),At=a(),j=r("div"),m(xe.$$.fragment),Ot=a(),Qe=r("p"),Qe.innerHTML=No,Yt=a(),Ve=r("p"),Ve.innerHTML=Bo,Kt=a(),Xe=r("p"),Xe.innerHTML=Lo,eo=a(),B=r("div"),m(Ae.$$.fragment),to=a(),Se=r("p"),Se.innerHTML=Po,oo=a(),m(V.$$.fragment),jt=a(),m(je.$$.fragment),kt=a(),J=r("div"),m(ke.$$.fragment),no=a(),De=r("p"),De.textContent=Wo,ao=a(),Oe=r("p"),Oe.innerHTML=Eo,so=a(),z=r("div"),m(Ce.$$.fragment),ro=a(),Ye=r("p"),Ye.innerHTML=Zo,io=a(),m(X.$$.fragment),lo=a(),m(S.$$.fragment),Ct=a(),m(Ie.$$.fragment),It=a(),k=r("div"),m(Je.$$.fragment),co=a(),Ke=r("p"),Ke.textContent=Ro,mo=a(),et=r("p"),et.innerHTML=Go,po=a(),tt=r("p"),tt.innerHTML=Ho,ho=a(),F=r("div"),m(Ue.$$.fragment),go=a(),ot=r("p"),ot.innerHTML=Qo,uo=a(),m(D.$$.fragment),fo=a(),m(O.$$.fragment),Jt=a(),m($e.$$.fragment),Ut=a(),st=r("p"),this.h()},l(e){const t=Yo("svelte-u9bgzb",document.head);d=i(t,"META",{name:!0,content:!0}),t.forEach(o),M=s(e),_=i(e,"P",{}),w(_).forEach(o),T=s(e),p(v.$$.fragment,e),c=s(e),x=i(e,"DIV",{class:!0,"data-svelte-h":!0}),y(x)!=="svelte-b95w5j"&&(x.innerHTML=To),it=s(e),p(te.$$.fragment,e),lt=s(e),oe=i(e,"P",{"data-svelte-h":!0}),y(oe)!=="svelte-195me2j"&&(oe.innerHTML=Mo),dt=s(e),ne=i(e,"P",{"data-svelte-h":!0}),y(ne)!=="svelte-1owneff"&&(ne.textContent=bo),ct=s(e),ae=i(e,"P",{"data-svelte-h":!0}),y(ae)!=="svelte-vfdo9a"&&(ae.textContent=vo),mt=s(e),se=i(e,"P",{"data-svelte-h":!0}),y(se)!=="svelte-nlncfs"&&(se.innerHTML=wo),pt=s(e),re=i(e,"P",{"data-svelte-h":!0}),y(re)!=="svelte-ioiyaz"&&(re.innerHTML=xo),ht=s(e),p(ie.$$.fragment,e),gt=s(e),le=i(e,"P",{"data-svelte-h":!0}),y(le)!=="svelte-1h4ykjz"&&(le.textContent=Ao),ut=s(e),p(de.$$.fragment,e),ft=s(e),p(ce.$$.fragment,e),_t=s(e),A=i(e,"DIV",{class:!0});var U=w(A);p(me.$$.fragment,U),Nt=s(U),Ne=i(U,"P",{"data-svelte-h":!0}),y(Ne)!=="svelte-xu4frv"&&(Ne.textContent=jo),Bt=s(U),Z=i(U,"DIV",{class:!0});var ze=w(Z);p(pe.$$.fragment,ze),Lt=s(ze),Be=i(ze,"P",{"data-svelte-h":!0}),y(Be)!=="svelte-1ycjrv2"&&(Be.textContent=ko),ze.forEach(o),Pt=s(U),R=i(U,"DIV",{class:!0});var Fe=w(R);p(he.$$.fragment,Fe),Wt=s(Fe),Le=i(Fe,"P",{"data-svelte-h":!0}),y(Le)!=="svelte-1wucq2q"&&(Le.innerHTML=Co),Fe.forEach(o),Et=s(U),G=i(U,"DIV",{class:!0});var qe=w(G);p(ge.$$.fragment,qe),Zt=s(qe),Pe=i(qe,"P",{"data-svelte-h":!0}),y(Pe)!=="svelte-1bzutl7"&&(Pe.textContent=Io),qe.forEach(o),U.forEach(o),yt=s(e),p(ue.$$.fragment,e),Tt=s(e),I=i(e,"DIV",{class:!0});var N=w(I);p(fe.$$.fragment,N),Rt=s(N),We=i(N,"P",{"data-svelte-h":!0}),y(We)!=="svelte-1nclzmj"&&(We.textContent=Jo),Gt=s(N),H=i(N,"DIV",{class:!0});var zt=w(H);p(_e.$$.fragment,zt),Ht=s(zt),Ee=i(zt,"P",{"data-svelte-h":!0}),y(Ee)!=="svelte-1o9eza"&&(Ee.innerHTML=Uo),zt.forEach(o),Qt=s(N),Q=i(N,"DIV",{class:!0});var Ft=w(Q);p(ye.$$.fragment,Ft),Vt=s(Ft),Ze=i(Ft,"P",{"data-svelte-h":!0}),y(Ze)!=="svelte-kk16qw"&&(Ze.innerHTML=$o),Ft.forEach(o),N.forEach(o),Mt=s(e),p(Te.$$.fragment,e),bt=s(e),E=i(e,"DIV",{class:!0});var qt=w(E);p(Me.$$.fragment,qt),Xt=s(qt),Re=i(qt,"P",{"data-svelte-h":!0}),y(Re)!=="svelte-1e52xps"&&(Re.innerHTML=zo),qt.forEach(o),vt=s(e),p(be.$$.fragment,e),wt=s(e),q=i(e,"DIV",{class:!0});var nt=w(q);p(ve.$$.fragment,nt),St=s(nt),Ge=i(nt,"P",{"data-svelte-h":!0}),y(Ge)!=="svelte-1yio4ls"&&(Ge.innerHTML=Fo),Dt=s(nt),He=i(nt,"P",{"data-svelte-h":!0}),y(He)!=="svelte-o55m63"&&(He.innerHTML=qo),nt.forEach(o),xt=s(e),p(we.$$.fragment,e),At=s(e),j=i(e,"DIV",{class:!0});var L=w(j);p(xe.$$.fragment,L),Ot=s(L),Qe=i(L,"P",{"data-svelte-h":!0}),y(Qe)!=="svelte-1nvpgt8"&&(Qe.innerHTML=No),Yt=s(L),Ve=i(L,"P",{"data-svelte-h":!0}),y(Ve)!=="svelte-hswkmf"&&(Ve.innerHTML=Bo),Kt=s(L),Xe=i(L,"P",{"data-svelte-h":!0}),y(Xe)!=="svelte-hv6iwd"&&(Xe.innerHTML=Lo),eo=s(L),B=i(L,"DIV",{class:!0});var at=w(B);p(Ae.$$.fragment,at),to=s(at),Se=i(at,"P",{"data-svelte-h":!0}),y(Se)!=="svelte-y3k5h8"&&(Se.innerHTML=Po),oo=s(at),p(V.$$.fragment,at),at.forEach(o),L.forEach(o),jt=s(e),p(je.$$.fragment,e),kt=s(e),J=i(e,"DIV",{class:!0});var Y=w(J);p(ke.$$.fragment,Y),no=s(Y),De=i(Y,"P",{"data-svelte-h":!0}),y(De)!=="svelte-1a7pb01"&&(De.textContent=Wo),ao=s(Y),Oe=i(Y,"P",{"data-svelte-h":!0}),y(Oe)!=="svelte-1r6b2j"&&(Oe.innerHTML=Eo),so=s(Y),z=i(Y,"DIV",{class:!0});var K=w(z);p(Ce.$$.fragment,K),ro=s(K),Ye=i(K,"P",{"data-svelte-h":!0}),y(Ye)!=="svelte-1kg7dko"&&(Ye.innerHTML=Zo),io=s(K),p(X.$$.fragment,K),lo=s(K),p(S.$$.fragment,K),K.forEach(o),Y.forEach(o),Ct=s(e),p(Ie.$$.fragment,e),It=s(e),k=i(e,"DIV",{class:!0});var P=w(k);p(Je.$$.fragment,P),co=s(P),Ke=i(P,"P",{"data-svelte-h":!0}),y(Ke)!=="svelte-1yqt7kz"&&(Ke.textContent=Ro),mo=s(P),et=i(P,"P",{"data-svelte-h":!0}),y(et)!=="svelte-21u6jb"&&(et.innerHTML=Go),po=s(P),tt=i(P,"P",{"data-svelte-h":!0}),y(tt)!=="svelte-hswkmf"&&(tt.innerHTML=Ho),ho=s(P),F=i(P,"DIV",{class:!0});var ee=w(F);p(Ue.$$.fragment,ee),go=s(ee),ot=i(ee,"P",{"data-svelte-h":!0}),y(ot)!=="svelte-1or1ojk"&&(ot.innerHTML=Qo),uo=s(ee),p(D.$$.fragment,ee),fo=s(ee),p(O.$$.fragment,ee),ee.forEach(o),P.forEach(o),Jt=s(e),p($e.$$.fragment,e),Ut=s(e),st=i(e,"P",{}),w(st).forEach(o),this.h()},h(){b(d,"name","hf:doc:metadata"),b(d,"content",rn),b(x,"class","flex flex-wrap space-x-1"),b(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(k,"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,t){n(document.head,d),l(e,M,t),l(e,_,t),l(e,T,t),h(v,e,t),l(e,c,t),l(e,x,t),l(e,it,t),h(te,e,t),l(e,lt,t),l(e,oe,t),l(e,dt,t),l(e,ne,t),l(e,ct,t),l(e,ae,t),l(e,mt,t),l(e,se,t),l(e,pt,t),l(e,re,t),l(e,ht,t),h(ie,e,t),l(e,gt,t),l(e,le,t),l(e,ut,t),h(de,e,t),l(e,ft,t),h(ce,e,t),l(e,_t,t),l(e,A,t),h(me,A,null),n(A,Nt),n(A,Ne),n(A,Bt),n(A,Z),h(pe,Z,null),n(Z,Lt),n(Z,Be),n(A,Pt),n(A,R),h(he,R,null),n(R,Wt),n(R,Le),n(A,Et),n(A,G),h(ge,G,null),n(G,Zt),n(G,Pe),l(e,yt,t),h(ue,e,t),l(e,Tt,t),l(e,I,t),h(fe,I,null),n(I,Rt),n(I,We),n(I,Gt),n(I,H),h(_e,H,null),n(H,Ht),n(H,Ee),n(I,Qt),n(I,Q),h(ye,Q,null),n(Q,Vt),n(Q,Ze),l(e,Mt,t),h(Te,e,t),l(e,bt,t),l(e,E,t),h(Me,E,null),n(E,Xt),n(E,Re),l(e,vt,t),h(be,e,t),l(e,wt,t),l(e,q,t),h(ve,q,null),n(q,St),n(q,Ge),n(q,Dt),n(q,He),l(e,xt,t),h(we,e,t),l(e,At,t),l(e,j,t),h(xe,j,null),n(j,Ot),n(j,Qe),n(j,Yt),n(j,Ve),n(j,Kt),n(j,Xe),n(j,eo),n(j,B),h(Ae,B,null),n(B,to),n(B,Se),n(B,oo),h(V,B,null),l(e,jt,t),h(je,e,t),l(e,kt,t),l(e,J,t),h(ke,J,null),n(J,no),n(J,De),n(J,ao),n(J,Oe),n(J,so),n(J,z),h(Ce,z,null),n(z,ro),n(z,Ye),n(z,io),h(X,z,null),n(z,lo),h(S,z,null),l(e,Ct,t),h(Ie,e,t),l(e,It,t),l(e,k,t),h(Je,k,null),n(k,co),n(k,Ke),n(k,mo),n(k,et),n(k,po),n(k,tt),n(k,ho),n(k,F),h(Ue,F,null),n(F,go),n(F,ot),n(F,uo),h(D,F,null),n(F,fo),h(O,F,null),l(e,Jt,t),h($e,e,t),l(e,Ut,t),l(e,st,t),$t=!0},p(e,[t]){const U={};t&2&&(U.$$scope={dirty:t,ctx:e}),V.$set(U);const ze={};t&2&&(ze.$$scope={dirty:t,ctx:e}),X.$set(ze);const Fe={};t&2&&(Fe.$$scope={dirty:t,ctx:e}),S.$set(Fe);const qe={};t&2&&(qe.$$scope={dirty:t,ctx:e}),D.$set(qe);const N={};t&2&&(N.$$scope={dirty:t,ctx:e}),O.$set(N)},i(e){$t||(g(v.$$.fragment,e),g(te.$$.fragment,e),g(ie.$$.fragment,e),g(de.$$.fragment,e),g(ce.$$.fragment,e),g(me.$$.fragment,e),g(pe.$$.fragment,e),g(he.$$.fragment,e),g(ge.$$.fragment,e),g(ue.$$.fragment,e),g(fe.$$.fragment,e),g(_e.$$.fragment,e),g(ye.$$.fragment,e),g(Te.$$.fragment,e),g(Me.$$.fragment,e),g(be.$$.fragment,e),g(ve.$$.fragment,e),g(we.$$.fragment,e),g(xe.$$.fragment,e),g(Ae.$$.fragment,e),g(V.$$.fragment,e),g(je.$$.fragment,e),g(ke.$$.fragment,e),g(Ce.$$.fragment,e),g(X.$$.fragment,e),g(S.$$.fragment,e),g(Ie.$$.fragment,e),g(Je.$$.fragment,e),g(Ue.$$.fragment,e),g(D.$$.fragment,e),g(O.$$.fragment,e),g($e.$$.fragment,e),$t=!0)},o(e){u(v.$$.fragment,e),u(te.$$.fragment,e),u(ie.$$.fragment,e),u(de.$$.fragment,e),u(ce.$$.fragment,e),u(me.$$.fragment,e),u(pe.$$.fragment,e),u(he.$$.fragment,e),u(ge.$$.fragment,e),u(ue.$$.fragment,e),u(fe.$$.fragment,e),u(_e.$$.fragment,e),u(ye.$$.fragment,e),u(Te.$$.fragment,e),u(Me.$$.fragment,e),u(be.$$.fragment,e),u(ve.$$.fragment,e),u(we.$$.fragment,e),u(xe.$$.fragment,e),u(Ae.$$.fragment,e),u(V.$$.fragment,e),u(je.$$.fragment,e),u(ke.$$.fragment,e),u(Ce.$$.fragment,e),u(X.$$.fragment,e),u(S.$$.fragment,e),u(Ie.$$.fragment,e),u(Je.$$.fragment,e),u(Ue.$$.fragment,e),u(D.$$.fragment,e),u(O.$$.fragment,e),u($e.$$.fragment,e),$t=!1},d(e){e&&(o(M),o(_),o(T),o(c),o(x),o(it),o(lt),o(oe),o(dt),o(ne),o(ct),o(ae),o(mt),o(se),o(pt),o(re),o(ht),o(gt),o(le),o(ut),o(ft),o(_t),o(A),o(yt),o(Tt),o(I),o(Mt),o(bt),o(E),o(vt),o(wt),o(q),o(xt),o(At),o(j),o(jt),o(kt),o(J),o(Ct),o(It),o(k),o(Jt),o(Ut),o(st)),o(d),f(v,e),f(te,e),f(ie,e),f(de,e),f(ce,e),f(me),f(pe),f(he),f(ge),f(ue,e),f(fe),f(_e),f(ye),f(Te,e),f(Me),f(be,e),f(ve),f(we,e),f(xe),f(Ae),f(V),f(je,e),f(ke),f(Ce),f(X),f(S),f(Ie,e),f(Je),f(Ue),f(D),f(O),f($e,e)}}}const rn='{"title":"Aria","local":"aria","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Usage tips","local":"usage-tips","sections":[],"depth":2},{"title":"AriaImageProcessor","local":"transformers.AriaImageProcessor","sections":[],"depth":2},{"title":"AriaProcessor","local":"transformers.AriaProcessor","sections":[],"depth":2},{"title":"AriaTextConfig","local":"transformers.AriaTextConfig","sections":[],"depth":2},{"title":"AriaConfig","local":"transformers.AriaConfig","sections":[],"depth":2},{"title":"AriaTextModel","local":"transformers.AriaTextModel","sections":[],"depth":2},{"title":"AriaTextForCausalLM","local":"transformers.AriaTextForCausalLM","sections":[],"depth":2},{"title":"AriaForConditionalGeneration","local":"transformers.AriaForConditionalGeneration","sections":[],"depth":2}],"depth":1}';function ln($){return So(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class fn extends Do{constructor(d){super(),Oo(this,d,ln,sn,Xo,{})}}export{fn as component};
