import{s as Ut,f as jt,o as zt,n as lt}from"../chunks/scheduler.bdbef820.js";import{S as xt,i as Jt,g as l,s as a,r as g,A as Zt,h as m,f as o,c as s,j as V,u as h,x as y,k as U,y as c,a as n,v as f,d as u,t as _,w as b}from"../chunks/index.33f81d56.js";import{T as Ft}from"../chunks/Tip.34194030.js";import{D as Ge}from"../chunks/Docstring.64554317.js";import{C as Se}from"../chunks/CodeBlock.362b34a4.js";import{E as Ct}from"../chunks/ExampleCodeBlock.4f2252c6.js";import{H as me,E as Wt}from"../chunks/EditOnGithub.a9246e21.js";function It(j){let i,w="Example:",p,d,G;return d=new Se({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFBhbGlHZW1tYUZvckNvbmRpdGlvbmFsR2VuZXJhdGlvbiUyQyUyMFBhbGlHZW1tYUNvbmZpZyUyQyUyMFNpZ2xpcFZpc2lvbkNvbmZpZyUyQyUyMEdlbW1hQ29uZmlnJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMFNpZ2xpcC1saWtlJTIwdmlzaW9uJTIwY29uZmlnJTBBdmlzaW9uX2NvbmZpZyUyMCUzRCUyMFNpZ2xpcFZpc2lvbkNvbmZpZygpJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMFBhbGlHZW1tYSUyMGNvbmZpZyUwQXRleHRfY29uZmlnJTIwJTNEJTIwR2VtbWFDb25maWcoKSUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBQYWxpR2VtbWElMjBwYWxpZ2VtbWEtM2ItMjI0JTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMFBhbGlHZW1tYUNvbmZpZyh2aXNpb25fY29uZmlnJTJDJTIwdGV4dF9jb25maWcpJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMG1vZGVsJTIwZnJvbSUyMHRoZSUyMHBhbGlnZW1tYS0zYi0yMjQlMjBzdHlsZSUyMGNvbmZpZ3VyYXRpb24lMEFtb2RlbCUyMCUzRCUyMFBhbGlHZW1tYUZvckNvbmRpdGlvbmFsR2VuZXJhdGlvbihjb25maWd1cmF0aW9uKSUwQSUwQSUyMyUyMEFjY2Vzc2luZyUyMHRoZSUyMG1vZGVsJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBtb2RlbC5jb25maWc=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> PaliGemmaForConditionalGeneration, PaliGemmaConfig, SiglipVisionConfig, GemmaConfig

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a Siglip-like vision config</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>vision_config = SiglipVisionConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a PaliGemma config</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>text_config = GemmaConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a PaliGemma paligemma-3b-224 style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = PaliGemmaConfig(vision_config, text_config)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model from the paligemma-3b-224 style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = PaliGemmaForConditionalGeneration(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(){i=l("p"),i.textContent=w,p=a(),g(d.$$.fragment)},l(r){i=m(r,"P",{"data-svelte-h":!0}),y(i)!=="svelte-11lpom8"&&(i.textContent=w),p=s(r),h(d.$$.fragment,r)},m(r,v){n(r,i,v),n(r,p,v),f(d,r,v),G=!0},p:lt,i(r){G||(u(d.$$.fragment,r),G=!0)},o(r){_(d.$$.fragment,r),G=!1},d(r){r&&(o(i),o(p)),b(d,r)}}}function Rt(j){let i,w=`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(){i=l("p"),i.innerHTML=w},l(p){i=m(p,"P",{"data-svelte-h":!0}),y(i)!=="svelte-fincs2"&&(i.innerHTML=w)},m(p,d){n(p,i,d)},p:lt,d(p){p&&o(i)}}}function Vt(j){let i,w="Example:",p,d,G;return d=new Se({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Byb2Nlc3NvciUyQyUyMFBhbGlHZW1tYUZvckNvbmRpdGlvbmFsR2VuZXJhdGlvbiUwQSUwQW1vZGVsJTIwJTNEJTIwUGFsaUdlbW1hRm9yQ29uZGl0aW9uYWxHZW5lcmF0aW9uLmZyb21fcHJldHJhaW5lZCglMjJnb29nbGUlMkZQYWxpR2VtbWEtdGVzdC0yMjRweC1oZiUyMiklMEFwcm9jZXNzb3IlMjAlM0QlMjBBdXRvUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJnb29nbGUlMkZQYWxpR2VtbWEtdGVzdC0yMjRweC1oZiUyMiklMEElMEFwcm9tcHQlMjAlM0QlMjAlMjJhbnN3ZXIlMjBlbiUyMFdoZXJlJTIwaXMlMjB0aGUlMjBjb3clMjBzdGFuZGluZyUzRiUyMiUwQXVybCUyMCUzRCUyMCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZndi1oZiUyRlBhbGlHZW1tYS10ZXN0LTIyNHB4LWhmJTJGcmVzb2x2ZSUyRm1haW4lMkZjb3dfYmVhY2hfMS5wbmclMjIlMEFpbWFnZSUyMCUzRCUyMEltYWdlLm9wZW4ocmVxdWVzdHMuZ2V0KHVybCUyQyUyMHN0cmVhbSUzRFRydWUpLnJhdyklMEElMEFpbnB1dHMlMjAlM0QlMjBwcm9jZXNzb3IoaW1hZ2VzJTNEaW1hZ2UlMkMlMjB0ZXh0JTNEcHJvbXB0JTJDJTIwJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEElMjMlMjBHZW5lcmF0ZSUwQWdlbmVyYXRlX2lkcyUyMCUzRCUyMG1vZGVsLmdlbmVyYXRlKCoqaW5wdXRzJTJDJTIwbWF4X2xlbmd0aCUzRDMwKSUwQXByb2Nlc3Nvci5iYXRjaF9kZWNvZGUoZ2VuZXJhdGVfaWRzJTJDJTIwc2tpcF9zcGVjaWFsX3Rva2VucyUzRFRydWUlMkMlMjBjbGVhbl91cF90b2tlbml6YXRpb25fc3BhY2VzJTNERmFsc2UpJTVCMCU1RA==",highlighted:`<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">import</span> requests
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, PaliGemmaForConditionalGeneration

<span class="hljs-meta">&gt;&gt;&gt; </span>model = PaliGemmaForConditionalGeneration.from_pretrained(<span class="hljs-string">&quot;google/PaliGemma-test-224px-hf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;google/PaliGemma-test-224px-hf&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;answer en Where is the cow standing?&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>url = <span class="hljs-string">&quot;https://huggingface.co/gv-hf/PaliGemma-test-224px-hf/resolve/main/cow_beach_1.png&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image = Image.<span class="hljs-built_in">open</span>(requests.get(url, stream=<span class="hljs-literal">True</span>).raw)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(images=image, text=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, max_length=<span class="hljs-number">30</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>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>]
<span class="hljs-string">&quot;answer en Where is the cow standing?\\nbeach&quot;</span>`,wrap:!1}}),{c(){i=l("p"),i.textContent=w,p=a(),g(d.$$.fragment)},l(r){i=m(r,"P",{"data-svelte-h":!0}),y(i)!=="svelte-11lpom8"&&(i.textContent=w),p=s(r),h(d.$$.fragment,r)},m(r,v){n(r,i,v),n(r,p,v),f(d,r,v),G=!0},p:lt,i(r){G||(u(d.$$.fragment,r),G=!0)},o(r){_(d.$$.fragment,r),G=!1},d(r){r&&(o(i),o(p)),b(d,r)}}}function Bt(j){let i,w,p,d,G,r,v,Me,B,mt='PaliGemma 모델은 구글이 제안한 <a href="https://huggingface.co/blog/paligemma" rel="nofollow">PaliGemma – Google의 최첨단 오픈 비전 언어 모델</a>에서 소개 되었습니다. PaliGemma는 <a href="siglip">SigLIP</a> 비전 인코더와 <a href="gemma">Gemma</a> 언어 인코더로 구성된 3B 규모의 비전-언어 모델로, 두 인코더가 멀티모달 선형 프로젝션으로 연결되어 있습니다. 이 모델은 이미지를 고정된 수의 VIT토큰으로 분할하고 이를 선택적 프롬프트 앞에 추가 하며, 모든 이미지 토큰과 입력 텍스트 토큰에 대해 전체 블록 어텐션을 사용하는 특징을 가지고 있습니다.',Te,H,ct="PaliGemma는 224x224, 448x448, 896x896의 3가지 해상도로 제공되며, 3개의 기본 모델과 55개의 다양한 작업에 대해 미세 조정된 버전, 그리고 2개의 혼합 모델이 있습니다.",we,z,dt,ke,N,pt='PaliGemma 아키텍처 <a href="https://huggingface.co/blog/paligemma">블로그 포스트.</a>',Pe,L,gt='이 모델은 <a href="https://huggingface.co/Molbap" rel="nofollow">Molbap</a>에 의해 기여 되었습니다.',$e,X,Ce,S,ht="PaliGemma의 추론은 다음처럼 수행됩니다:",Ue,E,je,q,ft="<li>PaliGemma는 대화용으로 설계되지 않았으며, 특정 사용 사례에 대해 미세 조정할 때 가장 잘 작동합니다. PaliGemma를 미세 조정할 수 있는 몇 가지 하위 작업에는 이미지 캡셔닝, 시각적 질문 답변(VQA), 오브젝트 디텍션, 참조 표현 분할 및 문서 이해가 포함됩니다.</li> <li>모델에 필요한 이미지, 텍스트 및 선택적 레이블을 준비하는데 <code>PaliGemmaProcessor</code>를 사용할 수 있습니다. PaliGemma 모델을 미세 조정할 때는, 프로세서에 <code>suffix</code>인자를 전달하여 다음 처럼 모델의 <code>labels</code>를 생성할 수 있습니다:</li>",ze,Y,xe,Q,Je,A,ut="PaliGemma를 시작하는 데 도움이 되는 Hugging Face와 community 자료 목록(🌎로 표시됨) 입니다.여기에 포함될 자료를 제출하고 싶으시다면 PR(Pull Request)를 열어주세요. 리뷰 해드리겠습니다! 자료는 기존 자료를 복제하는 대신 새로운 내용을 담고 있어야 합니다.",Ze,D,_t='<li>PaliGemma의 모든 기능을 소개하는 블로그 포스트는 <a href="https://huggingface.co/blog/paligemma" rel="nofollow">이곳</a>에서 찾을 수 있습니다. 🌎</li> <li>Trainer API를 사용하여 VQA(Visual Question Answering)를 위해 PaliGemma를 미세 조정하는 방법과 추론에 대한 데모 노트북은 <a href="https://github.com/huggingface/notebooks/tree/main/examples/paligemma" rel="nofollow">이곳</a>에서 찾을 수 있습니다. 🌎</li> <li>사용자 정의 데이터셋(영수증 이미지 -&gt; JSON)에 대해 PaliGemma를 미세 조정하는 방법과 추론에 대한 데모 노트북은 <a href="https://github.com/NielsRogge/Transformers-Tutorials/tree/master/PaliGemma" rel="nofollow">이곳</a>에서 찾을 수 있습니다. 🌎</li>',Fe,O,We,M,K,Ee,ce,bt=`This is the configuration class to store the configuration of a <a href="/docs/transformers/pr_22105/ko/model_doc/paligemma#transformers.PaliGemmaForConditionalGeneration">PaliGemmaForConditionalGeneration</a>. It is used to instantiate an
PaliGemmamodel according to the specified arguments, defining the model architecture. Instantiating a configuration
with the defaults will yield a similar configuration to that of the PaliGemma-2B.`,qe,de,yt='e.g. <a href="https://huggingface.co/paligemma-hf/paligemma-2b" rel="nofollow">paligemma-hf/paligemma-2b</a>',Ye,pe,Gt=`Configuration objects inherit from <a href="/docs/transformers/pr_22105/ko/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> and can be used to control the model outputs. Read the
documentation from <a href="/docs/transformers/pr_22105/ko/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Qe,x,Ie,ee,Re,T,te,Ae,ge,vt="Constructs a PaliGemma processor which wraps a PaliGemma image processor and a PaliGemma tokenizer into a single processor.",De,he,Mt=`<a href="/docs/transformers/pr_22105/ko/model_doc/paligemma#transformers.PaliGemmaProcessor">PaliGemmaProcessor</a> offers all the functionalities of <code>SiglipImageProcessor</code> and <a href="/docs/transformers/pr_22105/ko/model_doc/llama2#transformers.LlamaTokenizerFast">LlamaTokenizerFast</a>. See the
<code>__call__()</code> and <a href="/docs/transformers/pr_22105/ko/model_doc/paligemma#transformers.PaliGemmaProcessor.decode">decode()</a> for more information.`,Oe,J,oe,Ke,fe,Tt=`This method forwards all its arguments to GemmaTokenizerFast’s <a href="/docs/transformers/pr_22105/ko/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.batch_decode">batch_decode()</a>. Please
refer to the docstring of this method for more information.`,et,Z,ne,tt,ue,wt=`This method forwards all its arguments to GemmaTokenizerFast’s <a href="/docs/transformers/pr_22105/ko/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.decode">decode()</a>. Please refer to
the docstring of this method for more information.`,Ve,ae,Be,k,se,ot,_e,kt=`The PALIGEMMA model which consists of a vision backbone and a language model.
This model inherits from <a href="/docs/transformers/pr_22105/ko/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.)`,nt,be,Pt=`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.`,at,C,re,st,ye,$t='The <a href="/docs/transformers/pr_22105/ko/model_doc/paligemma#transformers.PaliGemmaForConditionalGeneration">PaliGemmaForConditionalGeneration</a> forward method, overrides the <code>__call__</code> special method.',rt,F,it,W,He,ie,Ne,ve,Le;return G=new me({props:{title:"PaliGemma",local:"paligemma",headingTag:"h1"}}),v=new me({props:{title:"개요",local:"overview",headingTag:"h2"}}),X=new me({props:{title:"사용 팁",local:"usage-tips",headingTag:"h2"}}),E=new Se({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMkMlMjBQYWxpR2VtbWFGb3JDb25kaXRpb25hbEdlbmVyYXRpb24lMEElMEFtb2RlbF9pZCUyMCUzRCUyMCUyMmdvb2dsZSUyRnBhbGlnZW1tYS0zYi1taXgtMjI0JTIyJTBBbW9kZWwlMjAlM0QlMjBQYWxpR2VtbWFGb3JDb25kaXRpb25hbEdlbmVyYXRpb24uZnJvbV9wcmV0cmFpbmVkKG1vZGVsX2lkKSUwQXByb2Nlc3NvciUyMCUzRCUyMEF1dG9Qcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKG1vZGVsX2lkKSUwQSUwQXByb21wdCUyMCUzRCUyMCUyMldoYXQlMjBpcyUyMG9uJTIwdGhlJTIwZmxvd2VyJTNGJTIyJTBBaW1hZ2VfZmlsZSUyMCUzRCUyMCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZkYXRhc2V0cyUyRmh1Z2dpbmdmYWNlJTJGZG9jdW1lbnRhdGlvbi1pbWFnZXMlMkZyZXNvbHZlJTJGbWFpbiUyRmJlZS5qcGclM0Zkb3dubG9hZCUzRHRydWUlMjIlMEFyYXdfaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldChpbWFnZV9maWxlJTJDJTIwc3RyZWFtJTNEVHJ1ZSkucmF3KSUwQWlucHV0cyUyMCUzRCUyMHByb2Nlc3NvcihyYXdfaW1hZ2UlMkMlMjBwcm9tcHQlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQW91dHB1dCUyMCUzRCUyMG1vZGVsLmdlbmVyYXRlKCoqaW5wdXRzJTJDJTIwbWF4X25ld190b2tlbnMlM0QyMCklMEElMEFwcmludChwcm9jZXNzb3IuZGVjb2RlKG91dHB1dCU1QjAlNUQlMkMlMjBza2lwX3NwZWNpYWxfdG9rZW5zJTNEVHJ1ZSklNUJsZW4ocHJvbXB0KSUzQSU1RCk=",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, PaliGemmaForConditionalGeneration

model_id = <span class="hljs-string">&quot;google/paligemma-3b-mix-224&quot;</span>
model = PaliGemmaForConditionalGeneration.from_pretrained(model_id)
processor = AutoProcessor.from_pretrained(model_id)

prompt = <span class="hljs-string">&quot;What is on the flower?&quot;</span>
image_file = <span class="hljs-string">&quot;https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg?download=true&quot;</span>
raw_image = Image.<span class="hljs-built_in">open</span>(requests.get(image_file, stream=<span class="hljs-literal">True</span>).raw)
inputs = processor(raw_image, prompt, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
output = model.generate(**inputs, max_new_tokens=<span class="hljs-number">20</span>)

<span class="hljs-built_in">print</span>(processor.decode(output[<span class="hljs-number">0</span>], skip_special_tokens=<span class="hljs-literal">True</span>)[<span class="hljs-built_in">len</span>(prompt):])`,wrap:!1}}),Y=new Se({props:{code:"cHJvbXB0JTIwJTNEJTIwJTIyV2hhdCUyMGlzJTIwb24lMjB0aGUlMjBmbG93ZXIlM0YlMjIlMEFhbnN3ZXIlMjAlM0QlMjAlMjJhJTIwYmVlJTIyJTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKGltYWdlcyUzRHJhd19pbWFnZSUyQyUyMHRleHQlM0Rwcm9tcHQlMkMlMjBzdWZmaXglM0RhbnN3ZXIlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKQ==",highlighted:`prompt = <span class="hljs-string">&quot;What is on the flower?&quot;</span>
answer = <span class="hljs-string">&quot;a bee&quot;</span>
inputs = processor(images=raw_image, text=prompt, suffix=answer, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)`,wrap:!1}}),Q=new me({props:{title:"자료",local:"resources",headingTag:"h2"}}),O=new me({props:{title:"PaliGemmaConfig",local:"transformers.PaliGemmaConfig ][ transformers.PaliGemmaConfig",headingTag:"h2"}}),K=new Ge({props:{name:"class transformers.PaliGemmaConfig",anchor:"transformers.PaliGemmaConfig",parameters:[{name:"vision_config",val:" = None"},{name:"text_config",val:" = None"},{name:"ignore_index",val:" = -100"},{name:"image_token_index",val:" = 256000"},{name:"vocab_size",val:" = 257152"},{name:"projection_dim",val:" = 2048"},{name:"hidden_size",val:" = 2048"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PaliGemmaConfig.vision_config",description:`<strong>vision_config</strong> (<code>PaliGemmaVisionConfig</code>,  <em>optional</em>) &#x2014;
Custom vision config or dict`,name:"vision_config"},{anchor:"transformers.PaliGemmaConfig.text_config",description:`<strong>text_config</strong> (<code>Union[AutoConfig, dict]</code>, <em>optional</em>) &#x2014;
The config object of the text backbone. Can be any of <code>LlamaConfig</code> or <code>MistralConfig</code>.`,name:"text_config"},{anchor:"transformers.PaliGemmaConfig.ignore_index",description:`<strong>ignore_index</strong> (<code>int</code>, <em>optional</em>, defaults to -100) &#x2014;
The ignore index for the loss function.`,name:"ignore_index"},{anchor:"transformers.PaliGemmaConfig.image_token_index",description:`<strong>image_token_index</strong> (<code>int</code>, <em>optional</em>, defaults to 256000) &#x2014;
The image token index to encode the image prompt.`,name:"image_token_index"},{anchor:"transformers.PaliGemmaConfig.vocab_size",description:`<strong>vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 257152) &#x2014;
Vocabulary size of the PaliGemmamodel. Defines the number of different tokens that can be represented by the
<code>inputs_ids</code> passed when calling <a href="/docs/transformers/pr_22105/ko/model_doc/paligemma#transformers.PaliGemmaForConditionalGeneration">~PaliGemmaForConditionalGeneration</a>`,name:"vocab_size"},{anchor:"transformers.PaliGemmaConfig.projection_dim",description:`<strong>projection_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 2048) &#x2014;
Dimension of the multimodal projection space.`,name:"projection_dim"},{anchor:"transformers.PaliGemmaConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 2048) &#x2014;
Dimension of the hidden layer of the Language model.`,name:"hidden_size"}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/models/paligemma/configuration_paligemma.py#L26"}}),x=new Ct({props:{anchor:"transformers.PaliGemmaConfig.example",$$slots:{default:[It]},$$scope:{ctx:j}}}),ee=new me({props:{title:"PaliGemmaProcessor",local:"transformers.PaliGemmaProcessor ][ transformers.PaliGemmaProcessor",headingTag:"h2"}}),te=new Ge({props:{name:"class transformers.PaliGemmaProcessor",anchor:"transformers.PaliGemmaProcessor",parameters:[{name:"image_processor",val:" = None"},{name:"tokenizer",val:" = None"},{name:"chat_template",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PaliGemmaProcessor.image_processor",description:`<strong>image_processor</strong> (<code>SiglipImageProcessor</code>, <em>optional</em>) &#x2014;
The image processor is a required input.`,name:"image_processor"},{anchor:"transformers.PaliGemmaProcessor.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_22105/ko/model_doc/llama2#transformers.LlamaTokenizerFast">LlamaTokenizerFast</a>, <em>optional</em>) &#x2014;
The tokenizer is a required input.`,name:"tokenizer"},{anchor:"transformers.PaliGemmaProcessor.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"}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/models/paligemma/processing_paligemma.py#L126"}}),oe=new Ge({props:{name:"batch_decode",anchor:"transformers.PaliGemmaProcessor.batch_decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/models/paligemma/processing_paligemma.py#L331"}}),ne=new Ge({props:{name:"decode",anchor:"transformers.PaliGemmaProcessor.decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/models/paligemma/processing_paligemma.py#L339"}}),ae=new me({props:{title:"PaliGemmaForConditionalGeneration",local:"transformers.PaliGemmaForConditionalGeneration ][ transformers.PaliGemmaForConditionalGeneration",headingTag:"h2"}}),se=new Ge({props:{name:"class transformers.PaliGemmaForConditionalGeneration",anchor:"transformers.PaliGemmaForConditionalGeneration",parameters:[{name:"config",val:": PaliGemmaConfig"}],parametersDescription:[{anchor:"transformers.PaliGemmaForConditionalGeneration.config",description:`<strong>config</strong> (<a href="/docs/transformers/pr_22105/ko/model_doc/paligemma#transformers.PaliGemmaConfig">PaliGemmaConfig</a> or <code>PaliGemmaVisionConfig</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/pr_22105/ko/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/vr_22105/src/transformers/models/paligemma/modeling_paligemma.py#L295"}}),re=new Ge({props:{name:"forward",anchor:"transformers.PaliGemmaForConditionalGeneration.forward",parameters:[{name:"input_ids",val:": LongTensor = None"},{name:"pixel_values",val:": FloatTensor = 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:"token_type_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"cache_position",val:": typing.Optional[torch.LongTensor] = 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:"num_logits_to_keep",val:": int = 0"}],parametersDescription:[{anchor:"transformers.PaliGemmaForConditionalGeneration.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/pr_22105/ko/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/pr_22105/ko/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/pr_22105/ko/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.PaliGemmaForConditionalGeneration.forward.pixel_values",description:"<strong>pixel_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, image_size, image_size)) -- The tensors corresponding to the input images. Pixel values can be obtained using [AutoImageProcessor](/docs/transformers/pr_22105/ko/model_doc/auto#transformers.AutoImageProcessor). See [SiglipImageProcessor.__call__()](/docs/transformers/pr_22105/ko/model_doc/vit#transformers.ViTFeatureExtractor.__call__) for details ([]</code>PaliGemmaProcessor<code>] uses </code>SiglipImageProcessor` for processing images).",name:"pixel_values"},{anchor:"transformers.PaliGemmaForConditionalGeneration.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/pr_22105/ko/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/pr_22105/ko/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/pr_22105/ko/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>decoder_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.PaliGemmaForConditionalGeneration.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>. <a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.PaliGemmaForConditionalGeneration.forward.past_key_values",description:`<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>) &#x2014;
Tuple of <code>tuple(torch.FloatTensor)</code> of length <code>config.n_layers</code>, with each tuple having 2 tensors of shape
<code>(batch_size, num_heads, sequence_length, embed_size_per_head)</code>) and 2 additional tensors of shape
<code>(batch_size, num_heads, encoder_sequence_length, embed_size_per_head)</code>.</p>
<p>Contains pre-computed hidden-states (key and values in the self-attention blocks and in the cross-attention
blocks) that can be used (see <code>past_key_values</code> input) to speed up sequential decoding.</p>
<p>If <code>past_key_values</code> are used, the user can optionally input only the last <code>decoder_input_ids</code> (those that
don&#x2019;t have their past key value states given to this model) of shape <code>(batch_size, 1)</code> instead of all
<code>decoder_input_ids</code> of shape <code>(batch_size, sequence_length)</code>.`,name:"past_key_values"},{anchor:"transformers.PaliGemmaForConditionalGeneration.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.PaliGemmaForConditionalGeneration.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.PaliGemmaForConditionalGeneration.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.PaliGemmaForConditionalGeneration.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.PaliGemmaForConditionalGeneration.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/pr_22105/ko/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.PaliGemmaForConditionalGeneration.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.PaliGemmaForConditionalGeneration.forward.Args",description:`<strong>Args</strong> &#x2014;
labels (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>):
Labels for computing the masked language modeling loss. Indices should either be in <code>[0, ..., config.text_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.text_config.vocab_size]</code>.</p>
<p>num_logits_to_keep (<code>int</code>, <em>optional</em>):
Calculate logits for the last <code>num_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.`,name:"Args"}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/models/paligemma/modeling_paligemma.py#L411",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.paligemma.modeling_paligemma.PaliGemmaCausalLMOutputWithPast</code> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/pr_22105/ko/model_doc/paligemma#transformers.PaliGemmaConfig"
>PaliGemmaConfig</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.text_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 <code>(batch_size, num_images, sequence_length, hidden_size)</code>.
image_hidden_states of the model produced by the vision encoder after projecting last hidden state.</p>
</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.paligemma.modeling_paligemma.PaliGemmaCausalLMOutputWithPast</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),F=new Ft({props:{$$slots:{default:[Rt]},$$scope:{ctx:j}}}),W=new Ct({props:{anchor:"transformers.PaliGemmaForConditionalGeneration.forward.example",$$slots:{default:[Vt]},$$scope:{ctx:j}}}),ie=new Wt({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/ko/model_doc/paligemma.md"}}),{c(){i=l("meta"),w=a(),p=l("p"),d=a(),g(G.$$.fragment),r=a(),g(v.$$.fragment),Me=a(),B=l("p"),B.innerHTML=mt,Te=a(),H=l("p"),H.textContent=ct,we=a(),z=l("img"),ke=a(),N=l("small"),N.innerHTML=pt,Pe=a(),L=l("p"),L.innerHTML=gt,$e=a(),g(X.$$.fragment),Ce=a(),S=l("p"),S.textContent=ht,Ue=a(),g(E.$$.fragment),je=a(),q=l("ul"),q.innerHTML=ft,ze=a(),g(Y.$$.fragment),xe=a(),g(Q.$$.fragment),Je=a(),A=l("p"),A.textContent=ut,Ze=a(),D=l("ul"),D.innerHTML=_t,Fe=a(),g(O.$$.fragment),We=a(),M=l("div"),g(K.$$.fragment),Ee=a(),ce=l("p"),ce.innerHTML=bt,qe=a(),de=l("p"),de.innerHTML=yt,Ye=a(),pe=l("p"),pe.innerHTML=Gt,Qe=a(),g(x.$$.fragment),Ie=a(),g(ee.$$.fragment),Re=a(),T=l("div"),g(te.$$.fragment),Ae=a(),ge=l("p"),ge.textContent=vt,De=a(),he=l("p"),he.innerHTML=Mt,Oe=a(),J=l("div"),g(oe.$$.fragment),Ke=a(),fe=l("p"),fe.innerHTML=Tt,et=a(),Z=l("div"),g(ne.$$.fragment),tt=a(),ue=l("p"),ue.innerHTML=wt,Ve=a(),g(ae.$$.fragment),Be=a(),k=l("div"),g(se.$$.fragment),ot=a(),_e=l("p"),_e.innerHTML=kt,nt=a(),be=l("p"),be.innerHTML=Pt,at=a(),C=l("div"),g(re.$$.fragment),st=a(),ye=l("p"),ye.innerHTML=$t,rt=a(),g(F.$$.fragment),it=a(),g(W.$$.fragment),He=a(),g(ie.$$.fragment),Ne=a(),ve=l("p"),this.h()},l(e){const t=Zt("svelte-u9bgzb",document.head);i=m(t,"META",{name:!0,content:!0}),t.forEach(o),w=s(e),p=m(e,"P",{}),V(p).forEach(o),d=s(e),h(G.$$.fragment,e),r=s(e),h(v.$$.fragment,e),Me=s(e),B=m(e,"P",{"data-svelte-h":!0}),y(B)!=="svelte-cztzc3"&&(B.innerHTML=mt),Te=s(e),H=m(e,"P",{"data-svelte-h":!0}),y(H)!=="svelte-1z10jir"&&(H.textContent=ct),we=s(e),z=m(e,"IMG",{src:!0,alt:!0,width:!0}),ke=s(e),N=m(e,"SMALL",{"data-svelte-h":!0}),y(N)!=="svelte-z1gavz"&&(N.innerHTML=pt),Pe=s(e),L=m(e,"P",{"data-svelte-h":!0}),y(L)!=="svelte-15885uy"&&(L.innerHTML=gt),$e=s(e),h(X.$$.fragment,e),Ce=s(e),S=m(e,"P",{"data-svelte-h":!0}),y(S)!=="svelte-18sdoed"&&(S.textContent=ht),Ue=s(e),h(E.$$.fragment,e),je=s(e),q=m(e,"UL",{"data-svelte-h":!0}),y(q)!=="svelte-wj6wmc"&&(q.innerHTML=ft),ze=s(e),h(Y.$$.fragment,e),xe=s(e),h(Q.$$.fragment,e),Je=s(e),A=m(e,"P",{"data-svelte-h":!0}),y(A)!=="svelte-1ohhzrt"&&(A.textContent=ut),Ze=s(e),D=m(e,"UL",{"data-svelte-h":!0}),y(D)!=="svelte-1h59g52"&&(D.innerHTML=_t),Fe=s(e),h(O.$$.fragment,e),We=s(e),M=m(e,"DIV",{class:!0});var P=V(M);h(K.$$.fragment,P),Ee=s(P),ce=m(P,"P",{"data-svelte-h":!0}),y(ce)!=="svelte-1fpvhke"&&(ce.innerHTML=bt),qe=s(P),de=m(P,"P",{"data-svelte-h":!0}),y(de)!=="svelte-4qnv67"&&(de.innerHTML=yt),Ye=s(P),pe=m(P,"P",{"data-svelte-h":!0}),y(pe)!=="svelte-3joicb"&&(pe.innerHTML=Gt),Qe=s(P),h(x.$$.fragment,P),P.forEach(o),Ie=s(e),h(ee.$$.fragment,e),Re=s(e),T=m(e,"DIV",{class:!0});var $=V(T);h(te.$$.fragment,$),Ae=s($),ge=m($,"P",{"data-svelte-h":!0}),y(ge)!=="svelte-8qftvs"&&(ge.textContent=vt),De=s($),he=m($,"P",{"data-svelte-h":!0}),y(he)!=="svelte-i5flbo"&&(he.innerHTML=Mt),Oe=s($),J=m($,"DIV",{class:!0});var le=V(J);h(oe.$$.fragment,le),Ke=s(le),fe=m(le,"P",{"data-svelte-h":!0}),y(fe)!=="svelte-1tgpwht"&&(fe.innerHTML=Tt),le.forEach(o),et=s($),Z=m($,"DIV",{class:!0});var Xe=V(Z);h(ne.$$.fragment,Xe),tt=s(Xe),ue=m(Xe,"P",{"data-svelte-h":!0}),y(ue)!=="svelte-1ww054f"&&(ue.innerHTML=wt),Xe.forEach(o),$.forEach(o),Ve=s(e),h(ae.$$.fragment,e),Be=s(e),k=m(e,"DIV",{class:!0});var I=V(k);h(se.$$.fragment,I),ot=s(I),_e=m(I,"P",{"data-svelte-h":!0}),y(_e)!=="svelte-1mhf52t"&&(_e.innerHTML=kt),nt=s(I),be=m(I,"P",{"data-svelte-h":!0}),y(be)!=="svelte-hswkmf"&&(be.innerHTML=Pt),at=s(I),C=m(I,"DIV",{class:!0});var R=V(C);h(re.$$.fragment,R),st=s(R),ye=m(R,"P",{"data-svelte-h":!0}),y(ye)!=="svelte-14j87vb"&&(ye.innerHTML=$t),rt=s(R),h(F.$$.fragment,R),it=s(R),h(W.$$.fragment,R),R.forEach(o),I.forEach(o),He=s(e),h(ie.$$.fragment,e),Ne=s(e),ve=m(e,"P",{}),V(ve).forEach(o),this.h()},h(){U(i,"name","hf:doc:metadata"),U(i,"content",Ht),jt(z.src,dt="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/blog/paligemma/paligemma_arch.png")||U(z,"src",dt),U(z,"alt","drawing"),U(z,"width","600"),U(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(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){c(document.head,i),n(e,w,t),n(e,p,t),n(e,d,t),f(G,e,t),n(e,r,t),f(v,e,t),n(e,Me,t),n(e,B,t),n(e,Te,t),n(e,H,t),n(e,we,t),n(e,z,t),n(e,ke,t),n(e,N,t),n(e,Pe,t),n(e,L,t),n(e,$e,t),f(X,e,t),n(e,Ce,t),n(e,S,t),n(e,Ue,t),f(E,e,t),n(e,je,t),n(e,q,t),n(e,ze,t),f(Y,e,t),n(e,xe,t),f(Q,e,t),n(e,Je,t),n(e,A,t),n(e,Ze,t),n(e,D,t),n(e,Fe,t),f(O,e,t),n(e,We,t),n(e,M,t),f(K,M,null),c(M,Ee),c(M,ce),c(M,qe),c(M,de),c(M,Ye),c(M,pe),c(M,Qe),f(x,M,null),n(e,Ie,t),f(ee,e,t),n(e,Re,t),n(e,T,t),f(te,T,null),c(T,Ae),c(T,ge),c(T,De),c(T,he),c(T,Oe),c(T,J),f(oe,J,null),c(J,Ke),c(J,fe),c(T,et),c(T,Z),f(ne,Z,null),c(Z,tt),c(Z,ue),n(e,Ve,t),f(ae,e,t),n(e,Be,t),n(e,k,t),f(se,k,null),c(k,ot),c(k,_e),c(k,nt),c(k,be),c(k,at),c(k,C),f(re,C,null),c(C,st),c(C,ye),c(C,rt),f(F,C,null),c(C,it),f(W,C,null),n(e,He,t),f(ie,e,t),n(e,Ne,t),n(e,ve,t),Le=!0},p(e,[t]){const P={};t&2&&(P.$$scope={dirty:t,ctx:e}),x.$set(P);const $={};t&2&&($.$$scope={dirty:t,ctx:e}),F.$set($);const le={};t&2&&(le.$$scope={dirty:t,ctx:e}),W.$set(le)},i(e){Le||(u(G.$$.fragment,e),u(v.$$.fragment,e),u(X.$$.fragment,e),u(E.$$.fragment,e),u(Y.$$.fragment,e),u(Q.$$.fragment,e),u(O.$$.fragment,e),u(K.$$.fragment,e),u(x.$$.fragment,e),u(ee.$$.fragment,e),u(te.$$.fragment,e),u(oe.$$.fragment,e),u(ne.$$.fragment,e),u(ae.$$.fragment,e),u(se.$$.fragment,e),u(re.$$.fragment,e),u(F.$$.fragment,e),u(W.$$.fragment,e),u(ie.$$.fragment,e),Le=!0)},o(e){_(G.$$.fragment,e),_(v.$$.fragment,e),_(X.$$.fragment,e),_(E.$$.fragment,e),_(Y.$$.fragment,e),_(Q.$$.fragment,e),_(O.$$.fragment,e),_(K.$$.fragment,e),_(x.$$.fragment,e),_(ee.$$.fragment,e),_(te.$$.fragment,e),_(oe.$$.fragment,e),_(ne.$$.fragment,e),_(ae.$$.fragment,e),_(se.$$.fragment,e),_(re.$$.fragment,e),_(F.$$.fragment,e),_(W.$$.fragment,e),_(ie.$$.fragment,e),Le=!1},d(e){e&&(o(w),o(p),o(d),o(r),o(Me),o(B),o(Te),o(H),o(we),o(z),o(ke),o(N),o(Pe),o(L),o($e),o(Ce),o(S),o(Ue),o(je),o(q),o(ze),o(xe),o(Je),o(A),o(Ze),o(D),o(Fe),o(We),o(M),o(Ie),o(Re),o(T),o(Ve),o(Be),o(k),o(He),o(Ne),o(ve)),o(i),b(G,e),b(v,e),b(X,e),b(E,e),b(Y,e),b(Q,e),b(O,e),b(K),b(x),b(ee,e),b(te),b(oe),b(ne),b(ae,e),b(se),b(re),b(F),b(W),b(ie,e)}}}const Ht='{"title":"PaliGemma","local":"paligemma","sections":[{"title":"개요","local":"overview","sections":[],"depth":2},{"title":"사용 팁","local":"usage-tips","sections":[],"depth":2},{"title":"자료","local":"resources","sections":[],"depth":2},{"title":"PaliGemmaConfig","local":"transformers.PaliGemmaConfig ][ transformers.PaliGemmaConfig","sections":[],"depth":2},{"title":"PaliGemmaProcessor","local":"transformers.PaliGemmaProcessor ][ transformers.PaliGemmaProcessor","sections":[],"depth":2},{"title":"PaliGemmaForConditionalGeneration","local":"transformers.PaliGemmaForConditionalGeneration ][ transformers.PaliGemmaForConditionalGeneration","sections":[],"depth":2}],"depth":1}';function Nt(j){return zt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class At extends xt{constructor(i){super(),Jt(this,i,Nt,Bt,Ut,{})}}export{At as component};
