import{s as Zt,f as Ht,o as St,n as Et}from"../chunks/scheduler.25b97de1.js";import{S as Ft,i as Dt,g as i,s as r,r as c,A as Qt,h as l,f as o,c as a,j,u as p,x as m,k as w,y as s,a as n,v as h,d as f,t as g,w as u}from"../chunks/index.d9030fc9.js";import{T as Xt}from"../chunks/Tip.baa67368.js";import{D as G}from"../chunks/Docstring.ffac8efa.js";import{C as xt}from"../chunks/CodeBlock.e6cd0d95.js";import{E as At}from"../chunks/ExampleCodeBlock.22dfe688.js";import{H as ce,E as Yt}from"../chunks/EditOnGithub.91d95064.js";function Ot(pe){let d,U="Example:",b,T,P;return T=new xt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFBpeHRyYWxWaXNpb25Nb2RlbCUyQyUyMFBpeHRyYWxWaXNpb25Db25maWclMEElMEElMjMlMjBJbml0aWFsaXppbmclMjBhJTIwUGl4dHJhbC0xMkIlMjBzdHlsZSUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWclMjAlM0QlMjBQaXh0cmFsVmlzaW9uQ29uZmlnKCklMEElMEElMjMlMjBJbml0aWFsaXppbmclMjBhJTIwbW9kZWwlMjAod2l0aCUyMHJhbmRvbWx5JTIwaW5pdGlhbGl6ZWQlMjB3ZWlnaHRzKSUyMGZyb20lMjB0aGUlMjBjb25maWd1cmF0aW9uJTBBbW9kZWwlMjAlM0QlMjBQaXh0cmFsVmlzaW9uTW9kZWwoY29uZmlndXJhdGlvbiklMEElMEElMjMlMjBBY2Nlc3NpbmclMjB0aGUlMjBtb2RlbCUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwbW9kZWwuY29uZmln",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> PixtralVisionModel, PixtralVisionConfig

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a Pixtral-12B style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>config = PixtralVisionConfig()

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

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Accessing the model configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = model.config`,wrap:!1}}),{c(){d=i("p"),d.textContent=U,b=r(),c(T.$$.fragment)},l(_){d=l(_,"P",{"data-svelte-h":!0}),m(d)!=="svelte-11lpom8"&&(d.textContent=U),b=a(_),p(T.$$.fragment,_)},m(_,$){n(_,d,$),n(_,b,$),h(T,_,$),P=!0},p:Et,i(_){P||(f(T.$$.fragment,_),P=!0)},o(_){g(T.$$.fragment,_),P=!1},d(_){_&&(o(d),o(b)),u(T,_)}}}function Kt(pe){let d,U=`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=i("p"),d.innerHTML=U},l(b){d=l(b,"P",{"data-svelte-h":!0}),m(d)!=="svelte-fincs2"&&(d.innerHTML=U)},m(b,T){n(b,d,T)},p:Et,d(b){b&&o(d)}}}function eo(pe){let d,U,b,T,P,_,$,Ce,L,Mt='The Pixtral model was released by the Mistral AI team in a <a href="https://mistral.ai/news/pixtral-12b/" rel="nofollow">blog post</a>. Pixtral is a multimodal version of <a href="mistral">Mistral</a>, incorporating a 400 million parameter vision encoder trained from scratch.',Ue,W,Tt="The intro from the blog says the following:",Je,E,yt="<em>Pixtral is trained to understand both natural images and documents, achieving 52.5% on the MMMU reasoning benchmark, surpassing a number of larger models. The model shows strong abilities in tasks such as chart and figure understanding, document question answering, multimodal reasoning and instruction following. Pixtral is able to ingest images at their natural resolution and aspect ratio, giving the user flexibility on the number of tokens used to process an image. Pixtral is also able to process any number of images in its long context window of 128K tokens. Unlike previous open-source models, Pixtral does not compromise on text benchmark performance to excel in multimodal tasks.</em>",ze,k,vt,je,Z,wt='Pixtral architecture. Taken from the <a href="https://mistral.ai/news/pixtral-12b/">blog post.</a>',ke,H,Pt="Tips:",Ve,S,$t='<li>Pixtral is a multimodal model, taking images and text as input, and producing text as output.</li> <li>This model follows the <a href="llava">Llava</a> architecture. The model uses <a href="/docs/transformers/main/en/model_doc/pixtral#transformers.PixtralVisionModel">PixtralVisionModel</a> for its vision encoder, and <a href="/docs/transformers/main/en/model_doc/mistral#transformers.MistralForCausalLM">MistralForCausalLM</a> for its language decoder.</li> <li>The main contribution is the 2d ROPE (rotary position embeddings) on the images, and support for arbitrary image sizes (the images are not padded together nor are they resized).</li> <li>Similar to <a href="llava">Llava</a>, the model internally replaces the <code>[IMG]</code> token placeholders by image embeddings from the vision encoder. The format for one or multiple prompts is the following:</li>',Be,F,Re,D,It='Then, the processor will replace each <code>[IMG]</code> token with a number of <code>[IMG]</code> tokens that depend on the height and the width of each image. Each <em>row</em> of the image is separated by an <code>[IMG_BREAK]</code> token, and each image is separated by an <code>[IMG_END]</code> token. It’s advised to use the <code>apply_chat_template</code> method of the processor, which takes care of all of this. See the <a href="#usage">usage section</a> for more info.',qe,Q,Ct='This model was contributed by <a href="https://huggingface.co/amyeroberts" rel="nofollow">amyeroberts</a> and <a href="https://huggingface.co/ArthurZ" rel="nofollow">ArthurZ</a>. The original code can be found <a href="https://github.com/vllm-project/vllm/pull/8377" rel="nofollow">here</a>.',Ne,X,Ge,A,Ut="At inference time, it’s advised to use the processor’s <code>apply_chat_template</code> method, which correctly formats the prompt for the model:",Le,Y,We,O,Ee,x,K,tt,he,Jt=`This is the configuration class to store the configuration of a <a href="/docs/transformers/main/en/model_doc/pixtral#transformers.PixtralVisionModel">PixtralVisionModel</a>. It is used to instantiate an
Pixtral vision encoder according to the specified arguments, defining the model architecture. Instantiating a configuration
with the defaults will yield a similar configuration to the vision encoder used by Pixtral-12B.`,ot,fe,zt='e.g. <a href="https://huggingface.co/pixtral-hf/pixtral-9b" rel="nofollow">pixtral-hf/pixtral-9b</a>',rt,ge,jt=`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.`,at,V,Ze,ee,He,y,te,nt,ue,kt=`The bare Pixtral vision encoder 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.)`,st,_e,Vt=`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.`,it,J,oe,lt,be,Bt='The <a href="/docs/transformers/main/en/model_doc/pixtral#transformers.PixtralVisionModel">PixtralVisionModel</a> forward method, overrides the <code>__call__</code> special method.',dt,B,Se,re,Fe,I,ae,mt,xe,Rt="Constructs a Pixtral image processor.",ct,R,ne,pt,Me,qt="Preprocess an image or batch of images.",De,se,Qe,M,ie,ht,Te,Nt="Constructs a Pixtral processor which wraps a Pixtral image processor and a Pixtral tokenizer into a single processor.",ft,ye,Gt=`<a href="/docs/transformers/main/en/model_doc/pixtral#transformers.PixtralProcessor">PixtralProcessor</a> offers all the functionalities of <a href="/docs/transformers/main/en/model_doc/clip#transformers.CLIPImageProcessor">CLIPImageProcessor</a> and <a href="/docs/transformers/main/en/model_doc/llama2#transformers.LlamaTokenizerFast">LlamaTokenizerFast</a>. See the
<code>__call__()</code> and <a href="/docs/transformers/main/en/model_doc/pixtral#transformers.PixtralProcessor.decode">decode()</a> for more information.`,gt,q,le,ut,ve,Lt=`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.`,_t,N,de,bt,we,Wt=`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.`,Xe,me,Ae,Ie,Ye;return P=new ce({props:{title:"Pixtral",local:"pixtral",headingTag:"h1"}}),$=new ce({props:{title:"Overview",local:"overview",headingTag:"h2"}}),F=new xt({props:{code:"JTIyJTNDcyUzRSU1QklOU1QlNUQlNUJJTUclNUQlNUNuV2hhdCUyMGFyZSUyMHRoZSUyMHRoaW5ncyUyMEklMjBzaG91bGQlMjBiZSUyMGNhdXRpb3VzJTIwYWJvdXQlMjB3aGVuJTIwSSUyMHZpc2l0JTIwdGhpcyUyMHBsYWNlJTNGJTVCJTJGSU5TVCU1RCUyMg==",highlighted:'&quot;&lt;s&gt;<span class="hljs-selector-attr">[INST]</span><span class="hljs-selector-attr">[IMG]</span>\\nWhat are the things <span class="hljs-selector-tag">I</span> should be cautious about when <span class="hljs-selector-tag">I</span> visit this place?<span class="hljs-selector-attr">[/INST]</span>&quot;',wrap:!1}}),X=new ce({props:{title:"Usage",local:"usage",headingTag:"h2"}}),Y=new xt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMkMlMjBMbGF2YUZvckNvbmRpdGlvbmFsR2VuZXJhdGlvbiUwQWZyb20lMjBQSUwlMjBpbXBvcnQlMjBJbWFnZSUwQSUwQW1vZGVsX2lkJTIwJTNEJTIwJTIybWlzdHJhbC1jb21tdW5pdHklMkZwaXh0cmFsLTEyYiUyMiUwQXByb2Nlc3NvciUyMCUzRCUyMEF1dG9Qcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKG1vZGVsX2lkKSUwQW1vZGVsJTIwJTNEJTIwTGxhdmFGb3JDb25kaXRpb25hbEdlbmVyYXRpb24uZnJvbV9wcmV0cmFpbmVkKG1vZGVsX2lkKS50byglMjJjdWRhJTIyKSUwQSUwQXVybF9kb2clMjAlM0QlMjAlMjJodHRwcyUzQSUyRiUyRnBpY3N1bS5waG90b3MlMkZpZCUyRjIzNyUyRjIwMCUyRjMwMCUyMiUwQXVybF9tb3VudGFpbiUyMCUzRCUyMCUyMmh0dHBzJTNBJTJGJTJGcGljc3VtLnBob3RvcyUyRnNlZWQlMkZwaWNzdW0lMkYyMDAlMkYzMDAlMjIlMEElMEFjaGF0JTIwJTNEJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIycm9sZSUyMiUzQSUyMCUyMnVzZXIlMjIlMkMlMjAlMjJjb250ZW50JTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTIydHlwZSUyMiUzQSUyMCUyMnRleHQlMjIlMkMlMjAlMjJjb250ZW50JTIyJTNBJTIwJTIyQ2FuJTIwdGhpcyUyMGFuaW1hbCUyMiU3RCUyQyUyMCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUyMnR5cGUlMjIlM0ElMjAlMjJpbWFnZSUyMiU3RCUyQyUyMCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUyMnR5cGUlMjIlM0ElMjAlMjJ0ZXh0JTIyJTJDJTIwJTIyY29udGVudCUyMiUzQSUyMCUyMmxpdmUlMjBoZXJlJTNGJTIyJTdEJTJDJTIwJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTIydHlwZSUyMiUzQSUyMCUyMmltYWdlJTIyJTdEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwJTdEJTBBJTVEJTBBJTBBcHJvbXB0JTIwJTNEJTIwcHJvY2Vzc29yLmFwcGx5X2NoYXRfdGVtcGxhdGUoY2hhdCklMEFpbnB1dHMlMjAlM0QlMjBwcm9jZXNzb3IodGV4dCUzRHByb21wdCUyQyUyMGltYWdlcyUzRCU1QnVybF9kb2clMkMlMjB1cmxfbW91bnRhaW4lNUQlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKS50byhtb2RlbC5kZXZpY2UpJTBBZ2VuZXJhdGVfaWRzJTIwJTNEJTIwbW9kZWwuZ2VuZXJhdGUoKippbnB1dHMlMkMlMjBtYXhfbmV3X3Rva2VucyUzRDUwMCklMEFvdXRwdXQlMjAlM0QlMjBwcm9jZXNzb3IuYmF0Y2hfZGVjb2RlKGdlbmVyYXRlX2lkcyUyQyUyMHNraXBfc3BlY2lhbF90b2tlbnMlM0RUcnVlJTJDJTIwY2xlYW5fdXBfdG9rZW5pemF0aW9uX3NwYWNlcyUzREZhbHNlKSU1QjAlNUQ=",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, LlavaForConditionalGeneration
<span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image

model_id = <span class="hljs-string">&quot;mistral-community/pixtral-12b&quot;</span>
processor = AutoProcessor.from_pretrained(model_id)
model = LlavaForConditionalGeneration.from_pretrained(model_id).to(<span class="hljs-string">&quot;cuda&quot;</span>)

url_dog = <span class="hljs-string">&quot;https://picsum.photos/id/237/200/300&quot;</span>
url_mountain = <span class="hljs-string">&quot;https://picsum.photos/seed/picsum/200/300&quot;</span>

chat = [
    {
      <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;text&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;Can this animal&quot;</span>}, 
        {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;image&quot;</span>}, 
        {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;text&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;live here?&quot;</span>}, 
        {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;image&quot;</span>}
      ]
    }
]

prompt = processor.apply_chat_template(chat)
inputs = processor(text=prompt, images=[url_dog, url_mountain], return_tensors=<span class="hljs-string">&quot;pt&quot;</span>).to(model.device)
generate_ids = model.generate(**inputs, max_new_tokens=<span class="hljs-number">500</span>)
output = processor.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>]`,wrap:!1}}),O=new ce({props:{title:"PixtralVisionConfig",local:"transformers.PixtralVisionConfig",headingTag:"h2"}}),K=new G({props:{name:"class transformers.PixtralVisionConfig",anchor:"transformers.PixtralVisionConfig",parameters:[{name:"hidden_size",val:" = 1024"},{name:"intermediate_size",val:" = 4096"},{name:"num_hidden_layers",val:" = 24"},{name:"num_attention_heads",val:" = 16"},{name:"num_channels",val:" = 3"},{name:"image_size",val:" = 1024"},{name:"patch_size",val:" = 16"},{name:"hidden_act",val:" = 'gelu'"},{name:"attention_dropout",val:" = 0.0"},{name:"rope_theta",val:" = 10000.0"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PixtralVisionConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1024) &#x2014;
Dimension of the hidden representations.`,name:"hidden_size"},{anchor:"transformers.PixtralVisionConfig.intermediate_size",description:`<strong>intermediate_size</strong> (<code>int</code>, <em>optional</em>, defaults to 4096) &#x2014;
Dimension of the MLP representations.`,name:"intermediate_size"},{anchor:"transformers.PixtralVisionConfig.num_hidden_layers",description:`<strong>num_hidden_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 24) &#x2014;
Number of hidden layers in the Transformer encoder.`,name:"num_hidden_layers"},{anchor:"transformers.PixtralVisionConfig.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 16) &#x2014;
Number of attention heads in the Transformer encoder.`,name:"num_attention_heads"},{anchor:"transformers.PixtralVisionConfig.num_channels",description:`<strong>num_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 3) &#x2014;
Number of input channels in the input images.`,name:"num_channels"},{anchor:"transformers.PixtralVisionConfig.image_size",description:`<strong>image_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1024) &#x2014;
Max dimension of the input images.`,name:"image_size"},{anchor:"transformers.PixtralVisionConfig.patch_size",description:`<strong>patch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 16) &#x2014;
Size of the image patches.`,name:"patch_size"},{anchor:"transformers.PixtralVisionConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;gelu&quot;</code>) &#x2014;
Activation function used in the hidden layers.`,name:"hidden_act"},{anchor:"transformers.PixtralVisionConfig.attention_dropout",description:`<strong>attention_dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Dropout probability for the attention layers.`,name:"attention_dropout"},{anchor:"transformers.PixtralVisionConfig.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"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/pixtral/configuration_pixtral.py#L23"}}),V=new At({props:{anchor:"transformers.PixtralVisionConfig.example",$$slots:{default:[Ot]},$$scope:{ctx:pe}}}),ee=new ce({props:{title:"PixtralVisionModel",local:"transformers.PixtralVisionModel",headingTag:"h2"}}),te=new G({props:{name:"class transformers.PixtralVisionModel",anchor:"transformers.PixtralVisionModel",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.PixtralVisionModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/pixtral#transformers.PixtralVisionConfig">PixtralVisionConfig</a>) &#x2014;
Model configuration class with all the parameters of the vision encoder. 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/pixtral/modeling_pixtral.py#L455"}}),oe=new G({props:{name:"forward",anchor:"transformers.PixtralVisionModel.forward",parameters:[{name:"pixel_values",val:": List"},{name:"output_hidden_states",val:": Optional = False"},{name:"output_attentions",val:": Optional = None"},{name:"return_dict",val:": Optional = None"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PixtralVisionModel.forward.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <code>AutoImageProcessor.__call__()</code>
for details.`,name:"pixel_values"},{anchor:"transformers.PixtralVisionModel.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.PixtralVisionModel.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.PixtralVisionModel.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"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/pixtral/modeling_pixtral.py#L476",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>tensor of token features for
all tokens of all images of shape (N_toks, D)</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>pixel_values</p>
`}}),B=new Xt({props:{$$slots:{default:[Kt]},$$scope:{ctx:pe}}}),re=new ce({props:{title:"PixtralImageProcessor",local:"transformers.PixtralImageProcessor",headingTag:"h2"}}),ae=new G({props:{name:"class transformers.PixtralImageProcessor",anchor:"transformers.PixtralImageProcessor",parameters:[{name:"do_resize",val:": bool = True"},{name:"size",val:": Dict = None"},{name:"patch_size",val:": Dict = None"},{name:"resample",val:": Resampling = <Resampling.BICUBIC: 3>"},{name:"do_rescale",val:": bool = True"},{name:"rescale_factor",val:": Union = 0.00392156862745098"},{name:"do_normalize",val:": bool = True"},{name:"image_mean",val:": Union = None"},{name:"image_std",val:": Union = None"},{name:"do_convert_rgb",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PixtralImageProcessor.do_resize",description:`<strong>do_resize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to resize the image&#x2019;s (height, width) dimensions to the specified <code>size</code>. Can be overridden by
<code>do_resize</code> in the <code>preprocess</code> method.`,name:"do_resize"},{anchor:"transformers.PixtralImageProcessor.size",description:`<strong>size</strong> (<code>Dict[str, int]</code> <em>optional</em>, defaults to <code>{&quot;longest_edge&quot; -- 1024}</code>):
Size of the maximum dimension of either the height or width dimension of the image. Used to control how
images are resized. If either the height or width are greater than <code>size[&quot;longest_edge&quot;]</code> then both the height and width are rescaled by <code>height / ratio</code>, <code>width /ratio</code> where <code>ratio = max(height / longest_edge, width / longest_edge)</code>`,name:"size"},{anchor:"transformers.PixtralImageProcessor.patch_size",description:`<strong>patch_size</strong> (<code>Dict[str, int]</code> <em>optional</em>, defaults to <code>{&quot;height&quot; -- 16, &quot;width&quot;: 16}</code>):
Size of the patches in the model, used to calculate the output image size. Can be overridden by <code>patch_size</code> in the <code>preprocess</code> method.`,name:"patch_size"},{anchor:"transformers.PixtralImageProcessor.resample",description:`<strong>resample</strong> (<code>PILImageResampling</code>, <em>optional</em>, defaults to <code>Resampling.BICUBIC</code>) &#x2014;
Resampling filter to use if resizing the image. Can be overridden by <code>resample</code> in the <code>preprocess</code> method.`,name:"resample"},{anchor:"transformers.PixtralImageProcessor.do_rescale",description:`<strong>do_rescale</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to rescale the image by the specified scale <code>rescale_factor</code>. Can be overridden by <code>do_rescale</code> in
the <code>preprocess</code> method.`,name:"do_rescale"},{anchor:"transformers.PixtralImageProcessor.rescale_factor",description:`<strong>rescale_factor</strong> (<code>int</code> or <code>float</code>, <em>optional</em>, defaults to <code>1/255</code>) &#x2014;
Scale factor to use if rescaling the image. Can be overridden by <code>rescale_factor</code> in the <code>preprocess</code>
method.`,name:"rescale_factor"},{anchor:"transformers.PixtralImageProcessor.do_normalize",description:`<strong>do_normalize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to normalize the image. Can be overridden by <code>do_normalize</code> in the <code>preprocess</code> method.`,name:"do_normalize"},{anchor:"transformers.PixtralImageProcessor.image_mean",description:`<strong>image_mean</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>[0.48145466, 0.4578275, 0.40821073]</code>) &#x2014;
Mean to use if normalizing the image. This is a float or list of floats the length of the number of
channels in the image. Can be overridden by the <code>image_mean</code> parameter in the <code>preprocess</code> method.`,name:"image_mean"},{anchor:"transformers.PixtralImageProcessor.image_std",description:`<strong>image_std</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>[0.26862954, 0.26130258, 0.27577711]</code>) &#x2014;
Standard deviation to use if normalizing the image. This is a float or list of floats the length of the
number of channels in the image. Can be overridden by the <code>image_std</code> parameter in the <code>preprocess</code> method.
Can be overridden by the <code>image_std</code> parameter in the <code>preprocess</code> method.`,name:"image_std"},{anchor:"transformers.PixtralImageProcessor.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"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/pixtral/image_processing_pixtral.py#L231"}}),ne=new G({props:{name:"preprocess",anchor:"transformers.PixtralImageProcessor.preprocess",parameters:[{name:"images",val:": Union"},{name:"do_resize",val:": bool = None"},{name:"size",val:": Dict = None"},{name:"patch_size",val:": Dict = None"},{name:"resample",val:": Resampling = None"},{name:"do_rescale",val:": bool = None"},{name:"rescale_factor",val:": float = None"},{name:"do_normalize",val:": bool = None"},{name:"image_mean",val:": Union = None"},{name:"image_std",val:": Union = None"},{name:"do_convert_rgb",val:": bool = None"},{name:"return_tensors",val:": Union = None"},{name:"data_format",val:": Optional = <ChannelDimension.FIRST: 'channels_first'>"},{name:"input_data_format",val:": Union = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PixtralImageProcessor.preprocess.images",description:`<strong>images</strong> (<code>ImageInput</code>) &#x2014;
Image to preprocess. Expects a single or batch of images with pixel values ranging from 0 to 255. If
passing in images with pixel values between 0 and 1, set <code>do_rescale=False</code>.`,name:"images"},{anchor:"transformers.PixtralImageProcessor.preprocess.do_resize",description:`<strong>do_resize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_resize</code>) &#x2014;
Whether to resize the image.`,name:"do_resize"},{anchor:"transformers.PixtralImageProcessor.preprocess.size",description:`<strong>size</strong> (<code>Dict[str, int]</code>, <em>optional</em>, defaults to <code>self.size</code>) &#x2014;
Describes the maximum input dimensions to the model.`,name:"size"},{anchor:"transformers.PixtralImageProcessor.preprocess.patch_size",description:`<strong>patch_size</strong> (<code>Dict[str, int]</code>, <em>optional</em>, defaults to <code>self.patch_size</code>) &#x2014;
Patch size in the model. Used to calculate the image after resizing.`,name:"patch_size"},{anchor:"transformers.PixtralImageProcessor.preprocess.resample",description:`<strong>resample</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.resample</code>) &#x2014;
Resampling filter to use if resizing the image. This can be one of the enum <code>PILImageResampling</code>. Only
has an effect if <code>do_resize</code> is set to <code>True</code>.`,name:"resample"},{anchor:"transformers.PixtralImageProcessor.preprocess.do_rescale",description:`<strong>do_rescale</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_rescale</code>) &#x2014;
Whether to rescale the image.`,name:"do_rescale"},{anchor:"transformers.PixtralImageProcessor.preprocess.rescale_factor",description:`<strong>rescale_factor</strong> (<code>float</code>, <em>optional</em>, defaults to <code>self.rescale_factor</code>) &#x2014;
Rescale factor to rescale the image by if <code>do_rescale</code> is set to <code>True</code>.`,name:"rescale_factor"},{anchor:"transformers.PixtralImageProcessor.preprocess.do_normalize",description:`<strong>do_normalize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_normalize</code>) &#x2014;
Whether to normalize the image.`,name:"do_normalize"},{anchor:"transformers.PixtralImageProcessor.preprocess.image_mean",description:`<strong>image_mean</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>self.image_mean</code>) &#x2014;
Image mean to use for normalization. Only has an effect if <code>do_normalize</code> is set to <code>True</code>.`,name:"image_mean"},{anchor:"transformers.PixtralImageProcessor.preprocess.image_std",description:`<strong>image_std</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>self.image_std</code>) &#x2014;
Image standard deviation to use for normalization. Only has an effect if <code>do_normalize</code> is set to
<code>True</code>.`,name:"image_std"},{anchor:"transformers.PixtralImageProcessor.preprocess.do_convert_rgb",description:`<strong>do_convert_rgb</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_convert_rgb</code>) &#x2014;
Whether to convert the image to RGB.`,name:"do_convert_rgb"},{anchor:"transformers.PixtralImageProcessor.preprocess.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code> or <code>TensorType</code>, <em>optional</em>) &#x2014;
The type of tensors to return. Can be one of:<ul>
<li>Unset: Return a list of <code>np.ndarray</code>.</li>
<li><code>TensorType.TENSORFLOW</code> or <code>&apos;tf&apos;</code>: Return a batch of type <code>tf.Tensor</code>.</li>
<li><code>TensorType.PYTORCH</code> or <code>&apos;pt&apos;</code>: Return a batch of type <code>torch.Tensor</code>.</li>
<li><code>TensorType.NUMPY</code> or <code>&apos;np&apos;</code>: Return a batch of type <code>np.ndarray</code>.</li>
<li><code>TensorType.JAX</code> or <code>&apos;jax&apos;</code>: Return a batch of type <code>jax.numpy.ndarray</code>.</li>
</ul>`,name:"return_tensors"},{anchor:"transformers.PixtralImageProcessor.preprocess.data_format",description:`<strong>data_format</strong> (<code>ChannelDimension</code> or <code>str</code>, <em>optional</em>, defaults to <code>ChannelDimension.FIRST</code>) &#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.</li>
<li>Unset: Use the channel dimension format of the input image.</li>
</ul>`,name:"data_format"},{anchor:"transformers.PixtralImageProcessor.preprocess.input_data_format",description:`<strong>input_data_format</strong> (<code>ChannelDimension</code> or <code>str</code>, <em>optional</em>) &#x2014;
The channel dimension format for the input image. If unset, the channel dimension format is inferred
from 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.</li>
<li><code>&quot;none&quot;</code> or <code>ChannelDimension.NONE</code>: image in (height, width) format.</li>
</ul>`,name:"input_data_format"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/pixtral/image_processing_pixtral.py#L368"}}),se=new ce({props:{title:"PixtralProcessor",local:"transformers.PixtralProcessor",headingTag:"h2"}}),ie=new G({props:{name:"class transformers.PixtralProcessor",anchor:"transformers.PixtralProcessor",parameters:[{name:"image_processor",val:" = None"},{name:"tokenizer",val:" = None"},{name:"patch_size",val:": int = 16"},{name:"chat_template",val:" = None"},{name:"image_token",val:" = '[IMG]'"},{name:"image_break_token",val:" = '[IMG_BREAK]'"},{name:"image_end_token",val:" = '[IMG_END]'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PixtralProcessor.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/main/en/model_doc/pixtral#transformers.PixtralImageProcessor">PixtralImageProcessor</a>, <em>optional</em>) &#x2014;
The image processor is a required input.`,name:"image_processor"},{anchor:"transformers.PixtralProcessor.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/en/model_doc/llama2#transformers.LlamaTokenizerFast">LlamaTokenizerFast</a>, <em>optional</em>) &#x2014;
The tokenizer is a required input.`,name:"tokenizer"},{anchor:"transformers.PixtralProcessor.patch_size",description:`<strong>patch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 16) &#x2014;
Patch size from the vision tower.`,name:"patch_size"},{anchor:"transformers.PixtralProcessor.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.PixtralProcessor.image_token",description:`<strong>image_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[IMG]&quot;</code>) &#x2014;
Special token used to denote image location.`,name:"image_token"},{anchor:"transformers.PixtralProcessor.image_break_token",description:`<strong>image_break_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[IMG_BREAK]&quot;</code>) &#x2014;
Special token used to denote the end of a line of pixels in an image.`,name:"image_break_token"},{anchor:"transformers.PixtralProcessor.image_end_token",description:`<strong>image_end_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[IMG_END]&quot;</code>) &#x2014;
Special token used to denote the end of an image input.`,name:"image_end_token"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/pixtral/processing_pixtral.py#L104"}}),le=new G({props:{name:"batch_decode",anchor:"transformers.PixtralProcessor.batch_decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/pixtral/processing_pixtral.py#L262"}}),de=new G({props:{name:"decode",anchor:"transformers.PixtralProcessor.decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/pixtral/processing_pixtral.py#L270"}}),me=new Yt({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/pixtral.md"}}),{c(){d=i("meta"),U=r(),b=i("p"),T=r(),c(P.$$.fragment),_=r(),c($.$$.fragment),Ce=r(),L=i("p"),L.innerHTML=Mt,Ue=r(),W=i("p"),W.textContent=Tt,Je=r(),E=i("p"),E.innerHTML=yt,ze=r(),k=i("img"),je=r(),Z=i("small"),Z.innerHTML=wt,ke=r(),H=i("p"),H.textContent=Pt,Ve=r(),S=i("ul"),S.innerHTML=$t,Be=r(),c(F.$$.fragment),Re=r(),D=i("p"),D.innerHTML=It,qe=r(),Q=i("p"),Q.innerHTML=Ct,Ne=r(),c(X.$$.fragment),Ge=r(),A=i("p"),A.innerHTML=Ut,Le=r(),c(Y.$$.fragment),We=r(),c(O.$$.fragment),Ee=r(),x=i("div"),c(K.$$.fragment),tt=r(),he=i("p"),he.innerHTML=Jt,ot=r(),fe=i("p"),fe.innerHTML=zt,rt=r(),ge=i("p"),ge.innerHTML=jt,at=r(),c(V.$$.fragment),Ze=r(),c(ee.$$.fragment),He=r(),y=i("div"),c(te.$$.fragment),nt=r(),ue=i("p"),ue.innerHTML=kt,st=r(),_e=i("p"),_e.innerHTML=Vt,it=r(),J=i("div"),c(oe.$$.fragment),lt=r(),be=i("p"),be.innerHTML=Bt,dt=r(),c(B.$$.fragment),Se=r(),c(re.$$.fragment),Fe=r(),I=i("div"),c(ae.$$.fragment),mt=r(),xe=i("p"),xe.textContent=Rt,ct=r(),R=i("div"),c(ne.$$.fragment),pt=r(),Me=i("p"),Me.textContent=qt,De=r(),c(se.$$.fragment),Qe=r(),M=i("div"),c(ie.$$.fragment),ht=r(),Te=i("p"),Te.textContent=Nt,ft=r(),ye=i("p"),ye.innerHTML=Gt,gt=r(),q=i("div"),c(le.$$.fragment),ut=r(),ve=i("p"),ve.innerHTML=Lt,_t=r(),N=i("div"),c(de.$$.fragment),bt=r(),we=i("p"),we.innerHTML=Wt,Xe=r(),c(me.$$.fragment),Ae=r(),Ie=i("p"),this.h()},l(e){const t=Qt("svelte-u9bgzb",document.head);d=l(t,"META",{name:!0,content:!0}),t.forEach(o),U=a(e),b=l(e,"P",{}),j(b).forEach(o),T=a(e),p(P.$$.fragment,e),_=a(e),p($.$$.fragment,e),Ce=a(e),L=l(e,"P",{"data-svelte-h":!0}),m(L)!=="svelte-tgqlpw"&&(L.innerHTML=Mt),Ue=a(e),W=l(e,"P",{"data-svelte-h":!0}),m(W)!=="svelte-3te1w2"&&(W.textContent=Tt),Je=a(e),E=l(e,"P",{"data-svelte-h":!0}),m(E)!=="svelte-1y5kg5k"&&(E.innerHTML=yt),ze=a(e),k=l(e,"IMG",{src:!0,alt:!0,width:!0}),je=a(e),Z=l(e,"SMALL",{"data-svelte-h":!0}),m(Z)!=="svelte-10jofpl"&&(Z.innerHTML=wt),ke=a(e),H=l(e,"P",{"data-svelte-h":!0}),m(H)!=="svelte-axv494"&&(H.textContent=Pt),Ve=a(e),S=l(e,"UL",{"data-svelte-h":!0}),m(S)!=="svelte-rknnv7"&&(S.innerHTML=$t),Be=a(e),p(F.$$.fragment,e),Re=a(e),D=l(e,"P",{"data-svelte-h":!0}),m(D)!=="svelte-mxoquu"&&(D.innerHTML=It),qe=a(e),Q=l(e,"P",{"data-svelte-h":!0}),m(Q)!=="svelte-1fxleij"&&(Q.innerHTML=Ct),Ne=a(e),p(X.$$.fragment,e),Ge=a(e),A=l(e,"P",{"data-svelte-h":!0}),m(A)!=="svelte-orhe3n"&&(A.innerHTML=Ut),Le=a(e),p(Y.$$.fragment,e),We=a(e),p(O.$$.fragment,e),Ee=a(e),x=l(e,"DIV",{class:!0});var v=j(x);p(K.$$.fragment,v),tt=a(v),he=l(v,"P",{"data-svelte-h":!0}),m(he)!=="svelte-1xxf4yy"&&(he.innerHTML=Jt),ot=a(v),fe=l(v,"P",{"data-svelte-h":!0}),m(fe)!=="svelte-l0qt95"&&(fe.innerHTML=zt),rt=a(v),ge=l(v,"P",{"data-svelte-h":!0}),m(ge)!=="svelte-o55m63"&&(ge.innerHTML=jt),at=a(v),p(V.$$.fragment,v),v.forEach(o),Ze=a(e),p(ee.$$.fragment,e),He=a(e),y=l(e,"DIV",{class:!0});var C=j(y);p(te.$$.fragment,C),nt=a(C),ue=l(C,"P",{"data-svelte-h":!0}),m(ue)!=="svelte-ybvejp"&&(ue.innerHTML=kt),st=a(C),_e=l(C,"P",{"data-svelte-h":!0}),m(_e)!=="svelte-hswkmf"&&(_e.innerHTML=Vt),it=a(C),J=l(C,"DIV",{class:!0});var Pe=j(J);p(oe.$$.fragment,Pe),lt=a(Pe),be=l(Pe,"P",{"data-svelte-h":!0}),m(be)!=="svelte-1mwzfrr"&&(be.innerHTML=Bt),dt=a(Pe),p(B.$$.fragment,Pe),Pe.forEach(o),C.forEach(o),Se=a(e),p(re.$$.fragment,e),Fe=a(e),I=l(e,"DIV",{class:!0});var $e=j(I);p(ae.$$.fragment,$e),mt=a($e),xe=l($e,"P",{"data-svelte-h":!0}),m(xe)!=="svelte-1eqw4iw"&&(xe.textContent=Rt),ct=a($e),R=l($e,"DIV",{class:!0});var Oe=j(R);p(ne.$$.fragment,Oe),pt=a(Oe),Me=l(Oe,"P",{"data-svelte-h":!0}),m(Me)!=="svelte-1x3yxsa"&&(Me.textContent=qt),Oe.forEach(o),$e.forEach(o),De=a(e),p(se.$$.fragment,e),Qe=a(e),M=l(e,"DIV",{class:!0});var z=j(M);p(ie.$$.fragment,z),ht=a(z),Te=l(z,"P",{"data-svelte-h":!0}),m(Te)!=="svelte-1i1eb5d"&&(Te.textContent=Nt),ft=a(z),ye=l(z,"P",{"data-svelte-h":!0}),m(ye)!=="svelte-1wsohlj"&&(ye.innerHTML=Gt),gt=a(z),q=l(z,"DIV",{class:!0});var Ke=j(q);p(le.$$.fragment,Ke),ut=a(Ke),ve=l(Ke,"P",{"data-svelte-h":!0}),m(ve)!=="svelte-1o9eza"&&(ve.innerHTML=Lt),Ke.forEach(o),_t=a(z),N=l(z,"DIV",{class:!0});var et=j(N);p(de.$$.fragment,et),bt=a(et),we=l(et,"P",{"data-svelte-h":!0}),m(we)!=="svelte-kk16qw"&&(we.innerHTML=Wt),et.forEach(o),z.forEach(o),Xe=a(e),p(me.$$.fragment,e),Ae=a(e),Ie=l(e,"P",{}),j(Ie).forEach(o),this.h()},h(){w(d,"name","hf:doc:metadata"),w(d,"content",to),Ht(k.src,vt="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/pixtral_architecture.webp")||w(k,"src",vt),w(k,"alt","drawing"),w(k,"width","600"),w(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(M,"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){s(document.head,d),n(e,U,t),n(e,b,t),n(e,T,t),h(P,e,t),n(e,_,t),h($,e,t),n(e,Ce,t),n(e,L,t),n(e,Ue,t),n(e,W,t),n(e,Je,t),n(e,E,t),n(e,ze,t),n(e,k,t),n(e,je,t),n(e,Z,t),n(e,ke,t),n(e,H,t),n(e,Ve,t),n(e,S,t),n(e,Be,t),h(F,e,t),n(e,Re,t),n(e,D,t),n(e,qe,t),n(e,Q,t),n(e,Ne,t),h(X,e,t),n(e,Ge,t),n(e,A,t),n(e,Le,t),h(Y,e,t),n(e,We,t),h(O,e,t),n(e,Ee,t),n(e,x,t),h(K,x,null),s(x,tt),s(x,he),s(x,ot),s(x,fe),s(x,rt),s(x,ge),s(x,at),h(V,x,null),n(e,Ze,t),h(ee,e,t),n(e,He,t),n(e,y,t),h(te,y,null),s(y,nt),s(y,ue),s(y,st),s(y,_e),s(y,it),s(y,J),h(oe,J,null),s(J,lt),s(J,be),s(J,dt),h(B,J,null),n(e,Se,t),h(re,e,t),n(e,Fe,t),n(e,I,t),h(ae,I,null),s(I,mt),s(I,xe),s(I,ct),s(I,R),h(ne,R,null),s(R,pt),s(R,Me),n(e,De,t),h(se,e,t),n(e,Qe,t),n(e,M,t),h(ie,M,null),s(M,ht),s(M,Te),s(M,ft),s(M,ye),s(M,gt),s(M,q),h(le,q,null),s(q,ut),s(q,ve),s(M,_t),s(M,N),h(de,N,null),s(N,bt),s(N,we),n(e,Xe,t),h(me,e,t),n(e,Ae,t),n(e,Ie,t),Ye=!0},p(e,[t]){const v={};t&2&&(v.$$scope={dirty:t,ctx:e}),V.$set(v);const C={};t&2&&(C.$$scope={dirty:t,ctx:e}),B.$set(C)},i(e){Ye||(f(P.$$.fragment,e),f($.$$.fragment,e),f(F.$$.fragment,e),f(X.$$.fragment,e),f(Y.$$.fragment,e),f(O.$$.fragment,e),f(K.$$.fragment,e),f(V.$$.fragment,e),f(ee.$$.fragment,e),f(te.$$.fragment,e),f(oe.$$.fragment,e),f(B.$$.fragment,e),f(re.$$.fragment,e),f(ae.$$.fragment,e),f(ne.$$.fragment,e),f(se.$$.fragment,e),f(ie.$$.fragment,e),f(le.$$.fragment,e),f(de.$$.fragment,e),f(me.$$.fragment,e),Ye=!0)},o(e){g(P.$$.fragment,e),g($.$$.fragment,e),g(F.$$.fragment,e),g(X.$$.fragment,e),g(Y.$$.fragment,e),g(O.$$.fragment,e),g(K.$$.fragment,e),g(V.$$.fragment,e),g(ee.$$.fragment,e),g(te.$$.fragment,e),g(oe.$$.fragment,e),g(B.$$.fragment,e),g(re.$$.fragment,e),g(ae.$$.fragment,e),g(ne.$$.fragment,e),g(se.$$.fragment,e),g(ie.$$.fragment,e),g(le.$$.fragment,e),g(de.$$.fragment,e),g(me.$$.fragment,e),Ye=!1},d(e){e&&(o(U),o(b),o(T),o(_),o(Ce),o(L),o(Ue),o(W),o(Je),o(E),o(ze),o(k),o(je),o(Z),o(ke),o(H),o(Ve),o(S),o(Be),o(Re),o(D),o(qe),o(Q),o(Ne),o(Ge),o(A),o(Le),o(We),o(Ee),o(x),o(Ze),o(He),o(y),o(Se),o(Fe),o(I),o(De),o(Qe),o(M),o(Xe),o(Ae),o(Ie)),o(d),u(P,e),u($,e),u(F,e),u(X,e),u(Y,e),u(O,e),u(K),u(V),u(ee,e),u(te),u(oe),u(B),u(re,e),u(ae),u(ne),u(se,e),u(ie),u(le),u(de),u(me,e)}}}const to='{"title":"Pixtral","local":"pixtral","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Usage","local":"usage","sections":[],"depth":2},{"title":"PixtralVisionConfig","local":"transformers.PixtralVisionConfig","sections":[],"depth":2},{"title":"PixtralVisionModel","local":"transformers.PixtralVisionModel","sections":[],"depth":2},{"title":"PixtralImageProcessor","local":"transformers.PixtralImageProcessor","sections":[],"depth":2},{"title":"PixtralProcessor","local":"transformers.PixtralProcessor","sections":[],"depth":2}],"depth":1}';function oo(pe){return St(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class co extends Ft{constructor(d){super(),Dt(this,d,oo,eo,Zt,{})}}export{co as component};
