import{s as jt,f as xt,o as zt,n as ct}from"../chunks/scheduler.bdbef820.js";import{S as Ft,i as Wt,g as m,s as n,r as h,A as It,h as c,f as o,c as a,j as H,u as f,x as p,k as J,y as l,a as s,v as u,d as _,t as b,w as y}from"../chunks/index.33f81d56.js";import{T as Bt}from"../chunks/Tip.34194030.js";import{D as Te}from"../chunks/Docstring.662771b3.js";import{C as Ye}from"../chunks/CodeBlock.3bad7fc9.js";import{E as Zt}from"../chunks/ExampleCodeBlock.32707fc1.js";import{H as me,E as Ht}from"../chunks/index.e01163b6.js";function Rt(Z){let i,k="Example:",g,d,G;return d=new Ye({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=m("p"),i.textContent=k,g=n(),h(d.$$.fragment)},l(r){i=c(r,"P",{"data-svelte-h":!0}),p(i)!=="svelte-11lpom8"&&(i.textContent=k),g=a(r),f(d.$$.fragment,r)},m(r,T){s(r,i,T),s(r,g,T),u(d,r,T),G=!0},p:ct,i(r){G||(_(d.$$.fragment,r),G=!0)},o(r){b(d.$$.fragment,r),G=!1},d(r){r&&(o(i),o(g)),y(d,r)}}}function Vt(Z){let i,k=`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=m("p"),i.innerHTML=k},l(g){i=c(g,"P",{"data-svelte-h":!0}),p(i)!=="svelte-fincs2"&&(i.innerHTML=k)},m(g,d){s(g,i,d)},p:ct,d(g){g&&o(i)}}}function Nt(Z){let i,k="Example:",g,d,G;return d=new Ye({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Byb2Nlc3NvciUyQyUyMFBhbGlHZW1tYUZvckNvbmRpdGlvbmFsR2VuZXJhdGlvbiUwQSUwQW1vZGVsJTIwJTNEJTIwUGFsaUdlbW1hRm9yQ29uZGl0aW9uYWxHZW5lcmF0aW9uLmZyb21fcHJldHJhaW5lZCglMjJnb29nbGUlMkZwYWxpZ2VtbWEyLTNiLW1peC0yMjQlMjIpJTBBcHJvY2Vzc29yJTIwJTNEJTIwQXV0b1Byb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyZ29vZ2xlJTJGcGFsaWdlbW1hMi0zYi1taXgtMjI0JTIyKSUwQSUwQXByb21wdCUyMCUzRCUyMCUyMldoZXJlJTIwaXMlMjB0aGUlMjBjYXQlMjBzdGFuZGluZyUzRiUyMiUwQXVybCUyMCUzRCUyMCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZkYXRhc2V0cyUyRmh1Z2dpbmdmYWNlJTJGZG9jdW1lbnRhdGlvbi1pbWFnZXMlMkZyZXNvbHZlJTJGbWFpbiUyRnBpcGVsaW5lLWNhdC1jaG9uay5qcGVnJTIyJTBBaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCh1cmwlMkMlMjBzdHJlYW0lM0RUcnVlKS5yYXcpJTBBJTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKGltYWdlcyUzRGltYWdlJTJDJTIwdGV4dCUzRHByb21wdCUyQyUyMCUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTBBJTIzJTIwR2VuZXJhdGUlMEFnZW5lcmF0ZV9pZHMlMjAlM0QlMjBtb2RlbC5nZW5lcmF0ZSgqKmlucHV0cyUyQyklMEFwcm9jZXNzb3IuYmF0Y2hfZGVjb2RlKGdlbmVyYXRlX2lkcyUyQyUyMHNraXBfc3BlY2lhbF90b2tlbnMlM0RUcnVlJTJDJTIwY2xlYW5fdXBfdG9rZW5pemF0aW9uX3NwYWNlcyUzREZhbHNlKSU1QjAlNUQ=",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/paligemma2-3b-mix-224&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;google/paligemma2-3b-mix-224&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;Where is the cat standing?&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>url = <span class="hljs-string">&quot;https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/pipeline-cat-chonk.jpeg&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,)
<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;Where is the cat standing?\\nsnow&quot;</span>`,wrap:!1}}),{c(){i=m("p"),i.textContent=k,g=n(),h(d.$$.fragment)},l(r){i=c(r,"P",{"data-svelte-h":!0}),p(i)!=="svelte-11lpom8"&&(i.textContent=k),g=a(r),f(d.$$.fragment,r)},m(r,T){s(r,i,T),s(r,g,T),u(d,r,T),G=!0},p:ct,i(r){G||(_(d.$$.fragment,r),G=!0)},o(r){b(d.$$.fragment,r),G=!1},d(r){r&&(o(i),o(g)),y(d,r)}}}function qt(Z){let i,k,g,d,G,r,T,we,R,dt='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토큰으로 분할하고 이를 선택적 프롬프트 앞에 추가 하며, 모든 이미지 토큰과 입력 텍스트 토큰에 대해 전체 블록 어텐션을 사용하는 특징을 가지고 있습니다.',Me,V,pt="PaliGemma는 224x224, 448x448, 896x896의 3가지 해상도로 제공되며, 3개의 기본 모델과 55개의 다양한 작업에 대해 미세 조정된 버전, 그리고 2개의 혼합 모델이 있습니다.",ke,j,gt,$e,N,ht='PaliGemma 아키텍처 <a href="https://huggingface.co/blog/paligemma">블로그 포스트.</a>',Ce,q,ft='이 모델은 <a href="https://huggingface.co/Molbap" rel="nofollow">Molbap</a>에 의해 기여 되었습니다.',Pe,L,Je,X,ut="PaliGemma의 추론은 다음처럼 수행됩니다:",Ue,Y,Ze,S,_t="<li>PaliGemma는 대화용으로 설계되지 않았으며, 특정 사용 사례에 대해 미세 조정할 때 가장 잘 작동합니다. PaliGemma를 미세 조정할 수 있는 몇 가지 하위 작업에는 이미지 캡셔닝, 시각적 질문 답변(VQA), 오브젝트 디텍션, 참조 표현 분할 및 문서 이해가 포함됩니다.</li> <li>모델에 필요한 이미지, 텍스트 및 선택적 레이블을 준비하는데 <code>PaliGemmaProcessor</code>를 사용할 수 있습니다. PaliGemma 모델을 미세 조정할 때는, 프로세서에 <code>suffix</code>인자를 전달하여 다음 처럼 모델의 <code>labels</code>를 생성할 수 있습니다:</li>",je,Q,xe,E,ze,A,bt="PaliGemma를 시작하는 데 도움이 되는 Hugging Face와 community 자료 목록(🌎로 표시됨) 입니다.여기에 포함될 자료를 제출하고 싶으시다면 PR(Pull Request)를 열어주세요. 리뷰 해드리겠습니다! 자료는 기존 자료를 복제하는 대신 새로운 내용을 담고 있어야 합니다.",Fe,D,yt='<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>',We,K,Ie,v,O,Se,ce,Gt=`This is the configuration class to store the configuration of a <a href="/docs/transformers/main/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,Tt='e.g. <a href="https://huggingface.co/paligemma-hf/paligemma-2b" rel="nofollow">paligemma-hf/paligemma-2b</a>',Ee,pe,vt=`Configuration objects inherit from <a href="/docs/transformers/main/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/main/ko/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Ae,x,Be,ee,He,w,te,De,ge,wt="Constructs a PaliGemma processor which wraps a PaliGemma image processor and a PaliGemma tokenizer into a single processor.",Ke,he,Mt=`<a href="/docs/transformers/main/ko/model_doc/paligemma#transformers.PaliGemmaProcessor">PaliGemmaProcessor</a> offers all the functionalities of <a href="/docs/transformers/main/ko/model_doc/siglip#transformers.SiglipImageProcessor">SiglipImageProcessor</a> and <a href="/docs/transformers/main/ko/model_doc/gemma#transformers.GemmaTokenizerFast">GemmaTokenizerFast</a>. See the
<code>__call__()</code> and <a href="/docs/transformers/main/ko/model_doc/paligemma#transformers.PaliGemmaProcessor.decode">decode()</a> for more information.`,Oe,z,oe,et,fe,kt=`This method forwards all its arguments to GemmaTokenizerFast’s <a href="/docs/transformers/main/ko/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.batch_decode">batch_decode()</a>. Please
refer to the docstring of this method for more information.`,tt,F,ne,ot,ue,$t=`This method forwards all its arguments to GemmaTokenizerFast’s <a href="/docs/transformers/main/ko/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.decode">decode()</a>. Please refer to
the docstring of this method for more information.`,Re,ae,Ve,M,se,nt,_e,Ct="The Base Paligemma model which consists of a vision backbone and a language model without language modeling head.,",at,be,Pt=`This model inherits from <a href="/docs/transformers/main/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.)`,st,ye,Jt=`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.`,rt,P,re,it,Ge,Ut='The <a href="/docs/transformers/main/ko/model_doc/paligemma#transformers.PaliGemmaForConditionalGeneration">PaliGemmaForConditionalGeneration</a> forward method, overrides the <code>__call__</code> special method.',lt,W,mt,I,Ne,ie,qe,ve,Le;return G=new me({props:{title:"PaliGemma",local:"paligemma",headingTag:"h1"}}),T=new me({props:{title:"개요",local:"overview",headingTag:"h2"}}),L=new me({props:{title:"사용 팁",local:"usage-tips",headingTag:"h2"}}),Y=new Ye({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}}),Q=new Ye({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}}),E=new me({props:{title:"자료",local:"resources",headingTag:"h2"}}),K=new me({props:{title:"PaliGemmaConfig",local:"transformers.PaliGemmaConfig ][ transformers.PaliGemmaConfig",headingTag:"h2"}}),O=new Te({props:{name:"class transformers.PaliGemmaConfig",anchor:"transformers.PaliGemmaConfig",parameters:[{name:"vision_config",val:" = None"},{name:"text_config",val:" = None"},{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.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/main/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/main/src/transformers/models/paligemma/configuration_paligemma.py#L24"}}),x=new Zt({props:{anchor:"transformers.PaliGemmaConfig.example",$$slots:{default:[Rt]},$$scope:{ctx:Z}}}),ee=new me({props:{title:"PaliGemmaProcessor",local:"transformers.PaliGemmaProcessor ][ transformers.PaliGemmaProcessor",headingTag:"h2"}}),te=new Te({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> (<a href="/docs/transformers/main/ko/model_doc/siglip#transformers.SiglipImageProcessor">SiglipImageProcessor</a>, <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/main/ko/model_doc/gemma#transformers.GemmaTokenizerFast">GemmaTokenizerFast</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/main/src/transformers/models/paligemma/processing_paligemma.py#L102"}}),oe=new Te({props:{name:"batch_decode",anchor:"transformers.PaliGemmaProcessor.batch_decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/paligemma/processing_paligemma.py#L318"}}),ne=new Te({props:{name:"decode",anchor:"transformers.PaliGemmaProcessor.decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/paligemma/processing_paligemma.py#L326"}}),ae=new me({props:{title:"PaliGemmaForConditionalGeneration",local:"transformers.PaliGemmaForConditionalGeneration ][ transformers.PaliGemmaForConditionalGeneration",headingTag:"h2"}}),se=new Te({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/main/ko/model_doc/paligemma#transformers.PaliGemmaConfig">PaliGemmaConfig</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/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/main/src/transformers/models/paligemma/modeling_paligemma.py#L387"}}),re=new Te({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:"logits_to_keep",val:": typing.Union[int, torch.Tensor] = 0"},{name:"**kwargs",val:": typing_extensions.Unpack[transformers.models.paligemma.modeling_paligemma.KwargsForCausalLM]"}],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.</p>
<p>Indices can be obtained using <a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/ko/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/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)</code>) &#x2014;
The tensors corresponding to the input images. Pixel values can be obtained using
<code>{image_processor_class}</code>. See <code>{image_processor_class}.__call__</code> for details (<code>{processor_class}</code> uses
<code>{image_processor_class}</code> 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>`,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>.</p>
<p><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>Union[List[torch.FloatTensor], ~cache_utils.Cache, NoneType]</code>) &#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/ko/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.PaliGemmaForConditionalGeneration.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.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.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.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.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>.`,name:"labels"},{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/main/ko/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.PaliGemmaForConditionalGeneration.forward.logits_to_keep",description:`<strong>logits_to_keep</strong> (<code>Union[int, torch.Tensor]</code>, defaults to <code>0</code>) &#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/paligemma/modeling_paligemma.py#L432",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/main/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>
`}}),W=new Bt({props:{$$slots:{default:[Vt]},$$scope:{ctx:Z}}}),I=new Zt({props:{anchor:"transformers.PaliGemmaForConditionalGeneration.forward.example",$$slots:{default:[Nt]},$$scope:{ctx:Z}}}),ie=new Ht({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/ko/model_doc/paligemma.md"}}),{c(){i=m("meta"),k=n(),g=m("p"),d=n(),h(G.$$.fragment),r=n(),h(T.$$.fragment),we=n(),R=m("p"),R.innerHTML=dt,Me=n(),V=m("p"),V.textContent=pt,ke=n(),j=m("img"),$e=n(),N=m("small"),N.innerHTML=ht,Ce=n(),q=m("p"),q.innerHTML=ft,Pe=n(),h(L.$$.fragment),Je=n(),X=m("p"),X.textContent=ut,Ue=n(),h(Y.$$.fragment),Ze=n(),S=m("ul"),S.innerHTML=_t,je=n(),h(Q.$$.fragment),xe=n(),h(E.$$.fragment),ze=n(),A=m("p"),A.textContent=bt,Fe=n(),D=m("ul"),D.innerHTML=yt,We=n(),h(K.$$.fragment),Ie=n(),v=m("div"),h(O.$$.fragment),Se=n(),ce=m("p"),ce.innerHTML=Gt,Qe=n(),de=m("p"),de.innerHTML=Tt,Ee=n(),pe=m("p"),pe.innerHTML=vt,Ae=n(),h(x.$$.fragment),Be=n(),h(ee.$$.fragment),He=n(),w=m("div"),h(te.$$.fragment),De=n(),ge=m("p"),ge.textContent=wt,Ke=n(),he=m("p"),he.innerHTML=Mt,Oe=n(),z=m("div"),h(oe.$$.fragment),et=n(),fe=m("p"),fe.innerHTML=kt,tt=n(),F=m("div"),h(ne.$$.fragment),ot=n(),ue=m("p"),ue.innerHTML=$t,Re=n(),h(ae.$$.fragment),Ve=n(),M=m("div"),h(se.$$.fragment),nt=n(),_e=m("p"),_e.textContent=Ct,at=n(),be=m("p"),be.innerHTML=Pt,st=n(),ye=m("p"),ye.innerHTML=Jt,rt=n(),P=m("div"),h(re.$$.fragment),it=n(),Ge=m("p"),Ge.innerHTML=Ut,lt=n(),h(W.$$.fragment),mt=n(),h(I.$$.fragment),Ne=n(),h(ie.$$.fragment),qe=n(),ve=m("p"),this.h()},l(e){const t=It("svelte-u9bgzb",document.head);i=c(t,"META",{name:!0,content:!0}),t.forEach(o),k=a(e),g=c(e,"P",{}),H(g).forEach(o),d=a(e),f(G.$$.fragment,e),r=a(e),f(T.$$.fragment,e),we=a(e),R=c(e,"P",{"data-svelte-h":!0}),p(R)!=="svelte-cztzc3"&&(R.innerHTML=dt),Me=a(e),V=c(e,"P",{"data-svelte-h":!0}),p(V)!=="svelte-1z10jir"&&(V.textContent=pt),ke=a(e),j=c(e,"IMG",{src:!0,alt:!0,width:!0}),$e=a(e),N=c(e,"SMALL",{"data-svelte-h":!0}),p(N)!=="svelte-z1gavz"&&(N.innerHTML=ht),Ce=a(e),q=c(e,"P",{"data-svelte-h":!0}),p(q)!=="svelte-15885uy"&&(q.innerHTML=ft),Pe=a(e),f(L.$$.fragment,e),Je=a(e),X=c(e,"P",{"data-svelte-h":!0}),p(X)!=="svelte-18sdoed"&&(X.textContent=ut),Ue=a(e),f(Y.$$.fragment,e),Ze=a(e),S=c(e,"UL",{"data-svelte-h":!0}),p(S)!=="svelte-wj6wmc"&&(S.innerHTML=_t),je=a(e),f(Q.$$.fragment,e),xe=a(e),f(E.$$.fragment,e),ze=a(e),A=c(e,"P",{"data-svelte-h":!0}),p(A)!=="svelte-1ohhzrt"&&(A.textContent=bt),Fe=a(e),D=c(e,"UL",{"data-svelte-h":!0}),p(D)!=="svelte-1h59g52"&&(D.innerHTML=yt),We=a(e),f(K.$$.fragment,e),Ie=a(e),v=c(e,"DIV",{class:!0});var $=H(v);f(O.$$.fragment,$),Se=a($),ce=c($,"P",{"data-svelte-h":!0}),p(ce)!=="svelte-ofc2qe"&&(ce.innerHTML=Gt),Qe=a($),de=c($,"P",{"data-svelte-h":!0}),p(de)!=="svelte-4qnv67"&&(de.innerHTML=Tt),Ee=a($),pe=c($,"P",{"data-svelte-h":!0}),p(pe)!=="svelte-qr3t5r"&&(pe.innerHTML=vt),Ae=a($),f(x.$$.fragment,$),$.forEach(o),Be=a(e),f(ee.$$.fragment,e),He=a(e),w=c(e,"DIV",{class:!0});var C=H(w);f(te.$$.fragment,C),De=a(C),ge=c(C,"P",{"data-svelte-h":!0}),p(ge)!=="svelte-8qftvs"&&(ge.textContent=wt),Ke=a(C),he=c(C,"P",{"data-svelte-h":!0}),p(he)!=="svelte-1gqotg4"&&(he.innerHTML=Mt),Oe=a(C),z=c(C,"DIV",{class:!0});var le=H(z);f(oe.$$.fragment,le),et=a(le),fe=c(le,"P",{"data-svelte-h":!0}),p(fe)!=="svelte-1drlktp"&&(fe.innerHTML=kt),le.forEach(o),tt=a(C),F=c(C,"DIV",{class:!0});var Xe=H(F);f(ne.$$.fragment,Xe),ot=a(Xe),ue=c(Xe,"P",{"data-svelte-h":!0}),p(ue)!=="svelte-1j25klj"&&(ue.innerHTML=$t),Xe.forEach(o),C.forEach(o),Re=a(e),f(ae.$$.fragment,e),Ve=a(e),M=c(e,"DIV",{class:!0});var U=H(M);f(se.$$.fragment,U),nt=a(U),_e=c(U,"P",{"data-svelte-h":!0}),p(_e)!=="svelte-1f5487a"&&(_e.textContent=Ct),at=a(U),be=c(U,"P",{"data-svelte-h":!0}),p(be)!=="svelte-u3dlub"&&(be.innerHTML=Pt),st=a(U),ye=c(U,"P",{"data-svelte-h":!0}),p(ye)!=="svelte-hswkmf"&&(ye.innerHTML=Jt),rt=a(U),P=c(U,"DIV",{class:!0});var B=H(P);f(re.$$.fragment,B),it=a(B),Ge=c(B,"P",{"data-svelte-h":!0}),p(Ge)!=="svelte-4f3qgb"&&(Ge.innerHTML=Ut),lt=a(B),f(W.$$.fragment,B),mt=a(B),f(I.$$.fragment,B),B.forEach(o),U.forEach(o),Ne=a(e),f(ie.$$.fragment,e),qe=a(e),ve=c(e,"P",{}),H(ve).forEach(o),this.h()},h(){J(i,"name","hf:doc:metadata"),J(i,"content",Lt),xt(j.src,gt="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/blog/paligemma/paligemma_arch.png")||J(j,"src",gt),J(j,"alt","drawing"),J(j,"width","600"),J(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(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){l(document.head,i),s(e,k,t),s(e,g,t),s(e,d,t),u(G,e,t),s(e,r,t),u(T,e,t),s(e,we,t),s(e,R,t),s(e,Me,t),s(e,V,t),s(e,ke,t),s(e,j,t),s(e,$e,t),s(e,N,t),s(e,Ce,t),s(e,q,t),s(e,Pe,t),u(L,e,t),s(e,Je,t),s(e,X,t),s(e,Ue,t),u(Y,e,t),s(e,Ze,t),s(e,S,t),s(e,je,t),u(Q,e,t),s(e,xe,t),u(E,e,t),s(e,ze,t),s(e,A,t),s(e,Fe,t),s(e,D,t),s(e,We,t),u(K,e,t),s(e,Ie,t),s(e,v,t),u(O,v,null),l(v,Se),l(v,ce),l(v,Qe),l(v,de),l(v,Ee),l(v,pe),l(v,Ae),u(x,v,null),s(e,Be,t),u(ee,e,t),s(e,He,t),s(e,w,t),u(te,w,null),l(w,De),l(w,ge),l(w,Ke),l(w,he),l(w,Oe),l(w,z),u(oe,z,null),l(z,et),l(z,fe),l(w,tt),l(w,F),u(ne,F,null),l(F,ot),l(F,ue),s(e,Re,t),u(ae,e,t),s(e,Ve,t),s(e,M,t),u(se,M,null),l(M,nt),l(M,_e),l(M,at),l(M,be),l(M,st),l(M,ye),l(M,rt),l(M,P),u(re,P,null),l(P,it),l(P,Ge),l(P,lt),u(W,P,null),l(P,mt),u(I,P,null),s(e,Ne,t),u(ie,e,t),s(e,qe,t),s(e,ve,t),Le=!0},p(e,[t]){const $={};t&2&&($.$$scope={dirty:t,ctx:e}),x.$set($);const C={};t&2&&(C.$$scope={dirty:t,ctx:e}),W.$set(C);const le={};t&2&&(le.$$scope={dirty:t,ctx:e}),I.$set(le)},i(e){Le||(_(G.$$.fragment,e),_(T.$$.fragment,e),_(L.$$.fragment,e),_(Y.$$.fragment,e),_(Q.$$.fragment,e),_(E.$$.fragment,e),_(K.$$.fragment,e),_(O.$$.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),_(W.$$.fragment,e),_(I.$$.fragment,e),_(ie.$$.fragment,e),Le=!0)},o(e){b(G.$$.fragment,e),b(T.$$.fragment,e),b(L.$$.fragment,e),b(Y.$$.fragment,e),b(Q.$$.fragment,e),b(E.$$.fragment,e),b(K.$$.fragment,e),b(O.$$.fragment,e),b(x.$$.fragment,e),b(ee.$$.fragment,e),b(te.$$.fragment,e),b(oe.$$.fragment,e),b(ne.$$.fragment,e),b(ae.$$.fragment,e),b(se.$$.fragment,e),b(re.$$.fragment,e),b(W.$$.fragment,e),b(I.$$.fragment,e),b(ie.$$.fragment,e),Le=!1},d(e){e&&(o(k),o(g),o(d),o(r),o(we),o(R),o(Me),o(V),o(ke),o(j),o($e),o(N),o(Ce),o(q),o(Pe),o(Je),o(X),o(Ue),o(Ze),o(S),o(je),o(xe),o(ze),o(A),o(Fe),o(D),o(We),o(Ie),o(v),o(Be),o(He),o(w),o(Re),o(Ve),o(M),o(Ne),o(qe),o(ve)),o(i),y(G,e),y(T,e),y(L,e),y(Y,e),y(Q,e),y(E,e),y(K,e),y(O),y(x),y(ee,e),y(te),y(oe),y(ne),y(ae,e),y(se),y(re),y(W),y(I),y(ie,e)}}}const Lt='{"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 Xt(Z){return zt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ot extends Ft{constructor(i){super(),Wt(this,i,Xt,qt,jt,{})}}export{Ot as component};
