import{S as Gr,i as Mr,s as Vr,e as l,k as c,w as m,t as r,M as zr,c as n,d as e,m as h,a as p,x as u,h as i,b as f,N as Kr,G as a,g as o,y as g,q as v,o as j,B as d,v as Br}from"../chunks/vendor-hf-doc-builder.js";import{T as Rr}from"../chunks/Tip-hf-doc-builder.js";import{I as k}from"../chunks/IconCopyLink-hf-doc-builder.js";import{C as b}from"../chunks/CodeBlock-hf-doc-builder.js";function Wr(le){let x,_,$,w,T;return{c(){x=l("p"),_=r("\uC9C0\uC6D0\uD558\uB294 \uBAA8\uB4E0 \uD0DC\uC2A4\uD06C\uC640 \uC4F8 \uC218 \uC788\uB294 \uB9E4\uAC1C\uBCC0\uC218\uB97C \uB2F4\uC740 \uBAA9\uB85D\uC740 "),$=l("code"),w=r("pipeline()"),T=r(" \uC124\uBA85\uC11C\uB97C \uCC38\uACE0\uD574\uC8FC\uC138\uC694.")},l(E){x=n(E,"P",{});var q=p(x);_=i(q,"\uC9C0\uC6D0\uD558\uB294 \uBAA8\uB4E0 \uD0DC\uC2A4\uD06C\uC640 \uC4F8 \uC218 \uC788\uB294 \uB9E4\uAC1C\uBCC0\uC218\uB97C \uB2F4\uC740 \uBAA9\uB85D\uC740 "),$=n(q,"CODE",{});var B=p($);w=i(B,"pipeline()"),B.forEach(e),T=i(q," \uC124\uBA85\uC11C\uB97C \uCC38\uACE0\uD574\uC8FC\uC138\uC694."),q.forEach(e)},m(E,q){o(E,x,q),a(x,_),a(x,$),a($,w),a(x,T)},d(E){E&&e(x)}}}function Fr(le){let x;return{c(){x=r("\uCD94\uB860 \uC5D4\uC9C4\uC744 \uB9CC\uB4DC\uB294 \uACFC\uC815\uC740 \uB530\uB85C \uD398\uC774\uC9C0\uB97C \uC791\uC131\uD560\uB9CC\uD55C \uBCF5\uC7A1\uD55C \uC8FC\uC81C\uC785\uB2C8\uB2E4.")},l(_){x=i(_,"\uCD94\uB860 \uC5D4\uC9C4\uC744 \uB9CC\uB4DC\uB294 \uACFC\uC815\uC740 \uB530\uB85C \uD398\uC774\uC9C0\uB97C \uC791\uC131\uD560\uB9CC\uD55C \uBCF5\uC7A1\uD55C \uC8FC\uC81C\uC785\uB2C8\uB2E4.")},m(_,$){o(_,x,$)},d(_){_&&e(x)}}}function Qr(le){let x,_,$,w,T,E,q,B,Yt,$a,P,Ne,Jt,Xt,gs,Zt,sl,De,el,al,_a,A,vs,tl,Ie,ll,nl,pl,Se,rl,il,js,ol,Oe,cl,hl,ba,W,Ea,C,F,Te,ds,fl,Ce,ml,wa,y,ul,He,gl,vl,Le,jl,dl,Ue,xl,$l,ya,ne,xs,_l,Re,bl,El,Pa,$s,ka,_s,bs,wl,Ge,yl,Pl,qa,Es,Aa,N,kl,ws,ql,Al,ys,Nl,Dl,Na,Ps,Da,Q,Il,pe,Sl,Ol,Ia,re,Tl,Sa,ks,Oa,ie,Cl,Ta,oe,ce,Hl,Ca,he,fe,Ll,Ha,H,Y,Me,qs,Ul,Ve,Rl,La,As,ze,Gl,Ml,Ua,Ns,Ra,me,Vl,Ga,L,J,Ke,Ds,zl,Be,Kl,Ma,Is,We,Bl,Wl,Va,Ss,za,D,Fl,Fe,Ql,Yl,Os,Jl,Xl,Ka,Ts,Ba,U,X,Qe,Cs,Zl,Ye,sn,Wa,Z,en,Hs,an,tn,Fa,ue,ln,Qa,Ls,Ya,ge,nn,Ja,ss,pn,ve,Je,rn,on,Xa,R,es,Xe,Us,cn,Ze,hn,Za,I,fn,sa,mn,un,ea,gn,vn,st,Rs,et,je,jn,at,S,dn,aa,xn,$n,ta,_n,bn,tt,as,En,Gs,wn,yn,lt,G,ts,la,Ms,Pn,na,kn,nt,de,qn,pt,Vs,rt,O,An,pa,Nn,Dn,zs,In,Sn,it,ls,On,ra,Tn,Cn,ot,ns,Hn,Ks,Ln,Un,ct,Bs,ht,M,ps,ia,Ws,Rn,oa,Gn,ft,rs,mt,xe,$e,Mn,ut,V,is,ca,Fs,Vn,ha,zn,gt,os,Kn,fa,Bn,Wn,vt,_e,Fn,jt,be,Ee,cp,dt,Qs,xt,z,cs,ma,Ys,Qn,ua,Yn,$t,hs,Jn,ga,Xn,Zn,_t,Js,bt,K,fs,va,Xs,sp,ja,ep,Et,Zs,da,ap,tp,wt,ms,lp,se,np,pp,yt,ee,Pt;return E=new k({}),W=new Rr({props:{$$slots:{default:[Wr]},$$scope:{ctx:le}}}),ds=new k({}),$s=new b({props:{code:`from transformers import pipeline

generator = pipeline(task="automatic-speech-recognition")`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>generator = pipeline(task=<span class="hljs-string">&quot;automatic-speech-recognition&quot;</span>)`}}),Es=new b({props:{code:'generator("https://huggingface.co/datasets/Narsil/asr_dummy/resolve/main/mlk.flac")',highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>generator(<span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/asr_dummy/resolve/main/mlk.flac&quot;</span>)
{<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;I HAVE A DREAM BUT ONE DAY THIS NATION WILL RISE UP LIVE UP THE TRUE MEANING OF ITS TREES&#x27;</span>}`}}),Ps=new b({props:{code:`generator = pipeline(model="openai/whisper-large")
generator("https://huggingface.co/datasets/Narsil/asr_dummy/resolve/main/mlk.flac")`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>generator = pipeline(model=<span class="hljs-string">&quot;openai/whisper-large&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>generator(<span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/asr_dummy/resolve/main/mlk.flac&quot;</span>)
{<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27; I have a dream that one day this nation will rise up and live out the true meaning of its creed.&#x27;</span>}`}}),ks=new b({props:{code:`generator(
    [
        "https://huggingface.co/datasets/Narsil/asr_dummy/resolve/main/mlk.flac",
        "https://huggingface.co/datasets/Narsil/asr_dummy/resolve/main/1.flac",
    ]
)`,highlighted:`generator(
    [
        <span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/asr_dummy/resolve/main/mlk.flac&quot;</span>,
        <span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/asr_dummy/resolve/main/1.flac&quot;</span>,
    ]
)`}}),qs=new k({}),Ns=new b({props:{code:'generator(model="openai/whisper-large", my_parameter=1)\nout = generate(...)  # This will use `my_parameter=1`.\nout = generate(..., my_parameter=2)  # This will override and use `my_parameter=2`.\nout = generate(...)  # This will go back to using `my_parameter=1`.',highlighted:'generator(model=<span class="hljs-string">&quot;openai/whisper-large&quot;</span>, my_parameter=<span class="hljs-number">1</span>)\nout = generate(...)  <span class="hljs-comment"># This will use `my_parameter=1`.</span>\nout = generate(..., my_parameter=<span class="hljs-number">2</span>)  <span class="hljs-comment"># This will override and use `my_parameter=2`.</span>\nout = generate(...)  <span class="hljs-comment"># This will go back to using `my_parameter=1`.</span>'}}),Ds=new k({}),Ss=new b({props:{code:'generator(model="openai/whisper-large", device=0)',highlighted:'generator(model=<span class="hljs-string">&quot;openai/whisper-large&quot;</span>, device=<span class="hljs-number">0</span>)'}}),Ts=new b({props:{code:`#!pip install accelerate
generator(model="openai/whisper-large", device_map="auto")`,highlighted:`<span class="hljs-comment">#!pip install accelerate</span>
generator(model=<span class="hljs-string">&quot;openai/whisper-large&quot;</span>, device_map=<span class="hljs-string">&quot;auto&quot;</span>)`}}),Cs=new k({}),Ls=new b({props:{code:`generator(model="openai/whisper-large", device=0, batch_size=2)
audio_filenames = [f"audio_{i}.flac" for i in range(10)]
texts = generator(audio_filenames)`,highlighted:`generator(model=<span class="hljs-string">&quot;openai/whisper-large&quot;</span>, device=<span class="hljs-number">0</span>, batch_size=<span class="hljs-number">2</span>)
audio_filenames = [<span class="hljs-string">f&quot;audio_<span class="hljs-subst">{i}</span>.flac&quot;</span> <span class="hljs-keyword">for</span> i <span class="hljs-keyword">in</span> <span class="hljs-built_in">range</span>(<span class="hljs-number">10</span>)]
texts = generator(audio_filenames)`}}),Us=new k({}),Rs=new b({props:{code:`# Not using whisper, as it cannot provide timestamps.
generator = pipeline(model="facebook/wav2vec2-large-960h-lv60-self", return_timestamps="word")
generator("https://huggingface.co/datasets/Narsil/asr_dummy/resolve/main/mlk.flac")`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Not using whisper, as it cannot provide timestamps.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>generator = pipeline(model=<span class="hljs-string">&quot;facebook/wav2vec2-large-960h-lv60-self&quot;</span>, return_timestamps=<span class="hljs-string">&quot;word&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>generator(<span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/asr_dummy/resolve/main/mlk.flac&quot;</span>)
{<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;I HAVE A DREAM BUT ONE DAY THIS NATION WILL RISE UP AND LIVE OUT THE TRUE MEANING OF ITS CREED&#x27;</span>, <span class="hljs-string">&#x27;chunks&#x27;</span>: [{<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;I&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">1.22</span>, <span class="hljs-number">1.24</span>)}, {<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;HAVE&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">1.42</span>, <span class="hljs-number">1.58</span>)}, {<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;A&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">1.66</span>, <span class="hljs-number">1.68</span>)}, {<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;DREAM&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">1.76</span>, <span class="hljs-number">2.14</span>)}, {<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;BUT&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">3.68</span>, <span class="hljs-number">3.8</span>)}, {<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;ONE&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">3.94</span>, <span class="hljs-number">4.06</span>)}, {<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;DAY&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">4.16</span>, <span class="hljs-number">4.3</span>)}, {<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;THIS&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">6.36</span>, <span class="hljs-number">6.54</span>)}, {<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;NATION&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">6.68</span>, <span class="hljs-number">7.1</span>)}, {<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;WILL&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">7.32</span>, <span class="hljs-number">7.56</span>)}, {<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;RISE&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">7.8</span>, <span class="hljs-number">8.26</span>)}, {<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;UP&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">8.38</span>, <span class="hljs-number">8.48</span>)}, {<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;AND&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">10.08</span>, <span class="hljs-number">10.18</span>)}, {<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;LIVE&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">10.26</span>, <span class="hljs-number">10.48</span>)}, {<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;OUT&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">10.58</span>, <span class="hljs-number">10.7</span>)}, {<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;THE&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">10.82</span>, <span class="hljs-number">10.9</span>)}, {<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;TRUE&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">10.98</span>, <span class="hljs-number">11.18</span>)}, {<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;MEANING&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">11.26</span>, <span class="hljs-number">11.58</span>)}, {<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;OF&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">11.66</span>, <span class="hljs-number">11.7</span>)}, {<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;ITS&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">11.76</span>, <span class="hljs-number">11.88</span>)}, {<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;CREED&#x27;</span>, <span class="hljs-string">&#x27;timestamp&#x27;</span>: (<span class="hljs-number">12.0</span>, <span class="hljs-number">12.38</span>)}]}`}}),Ms=new k({}),Vs=new b({props:{code:`def data():
    for i in range(1000):
        yield f"My example {i}"


pipe = pipe(model="gpt2", device=0)
generated_characters = 0
for out in pipe(data()):
    generated_characters += len(out["generated_text"])`,highlighted:`<span class="hljs-keyword">def</span> <span class="hljs-title function_">data</span>():
    <span class="hljs-keyword">for</span> i <span class="hljs-keyword">in</span> <span class="hljs-built_in">range</span>(<span class="hljs-number">1000</span>):
        <span class="hljs-keyword">yield</span> <span class="hljs-string">f&quot;My example <span class="hljs-subst">{i}</span>&quot;</span>


pipe = pipe(model=<span class="hljs-string">&quot;gpt2&quot;</span>, device=<span class="hljs-number">0</span>)
generated_characters = <span class="hljs-number">0</span>
<span class="hljs-keyword">for</span> out <span class="hljs-keyword">in</span> pipe(data()):
    generated_characters += <span class="hljs-built_in">len</span>(out[<span class="hljs-string">&quot;generated_text&quot;</span>])`}}),Bs=new b({props:{code:`# KeyDataset is a util that will just output the item we're interested in.
from transformers.pipelines.pt_utils import KeyDataset

pipe = pipeline(model="hf-internal-testing/tiny-random-wav2vec2", device=0)
dataset = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation[:10]")

for out in pipe(KeyDataset(dataset["audio"])):
    print(out)`,highlighted:`<span class="hljs-comment"># KeyDataset is a util that will just output the item we&#x27;re interested in.</span>
<span class="hljs-keyword">from</span> transformers.pipelines.pt_utils <span class="hljs-keyword">import</span> KeyDataset

pipe = pipeline(model=<span class="hljs-string">&quot;hf-internal-testing/tiny-random-wav2vec2&quot;</span>, device=<span class="hljs-number">0</span>)
dataset = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/librispeech_asr_dummy&quot;</span>, <span class="hljs-string">&quot;clean&quot;</span>, split=<span class="hljs-string">&quot;validation[:10]&quot;</span>)

<span class="hljs-keyword">for</span> out <span class="hljs-keyword">in</span> pipe(KeyDataset(dataset[<span class="hljs-string">&quot;audio&quot;</span>])):
    <span class="hljs-built_in">print</span>(out)`}}),Ws=new k({}),rs=new Rr({props:{$$slots:{default:[Fr]},$$scope:{ctx:le}}}),Fs=new k({}),Qs=new b({props:{code:`from transformers import pipeline

vision_classifier = pipeline(model="google/vit-base-patch16-224")
preds = vision_classifier(
    images="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/pipeline-cat-chonk.jpeg"
)
preds = [{"score": round(pred["score"], 4), "label": pred["label"]} for pred in preds]
preds`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>vision_classifier = pipeline(model=<span class="hljs-string">&quot;google/vit-base-patch16-224&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>preds = vision_classifier(
<span class="hljs-meta">... </span>    images=<span class="hljs-string">&quot;https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/pipeline-cat-chonk.jpeg&quot;</span>
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>preds = [{<span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-built_in">round</span>(pred[<span class="hljs-string">&quot;score&quot;</span>], <span class="hljs-number">4</span>), <span class="hljs-string">&quot;label&quot;</span>: pred[<span class="hljs-string">&quot;label&quot;</span>]} <span class="hljs-keyword">for</span> pred <span class="hljs-keyword">in</span> preds]
<span class="hljs-meta">&gt;&gt;&gt; </span>preds
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.4335</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;lynx, catamount&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.0348</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;cougar, puma, catamount, mountain lion, painter, panther, Felis concolor&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.0324</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;snow leopard, ounce, Panthera uncia&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.0239</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;Egyptian cat&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.0229</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;tiger cat&#x27;</span>}]`}}),Ys=new k({}),Js=new b({props:{code:`from transformers import pipeline

# This model is a \`zero-shot-classification\` model.
# It will classify text, except you are free to choose any label you might imagine
classifier = pipeline(model="facebook/bart-large-mnli")
classifier(
    "I have a problem with my iphone that needs to be resolved asap!!",
    candidate_labels=["urgent", "not urgent", "phone", "tablet", "computer"],
)`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># This model is a \`zero-shot-classification\` model.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># It will classify text, except you are free to choose any label you might imagine</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>classifier = pipeline(model=<span class="hljs-string">&quot;facebook/bart-large-mnli&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>classifier(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;I have a problem with my iphone that needs to be resolved asap!!&quot;</span>,
<span class="hljs-meta">... </span>    candidate_labels=[<span class="hljs-string">&quot;urgent&quot;</span>, <span class="hljs-string">&quot;not urgent&quot;</span>, <span class="hljs-string">&quot;phone&quot;</span>, <span class="hljs-string">&quot;tablet&quot;</span>, <span class="hljs-string">&quot;computer&quot;</span>],
<span class="hljs-meta">... </span>)
{<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;I have a problem with my iphone that needs to be resolved asap!!&#x27;</span>, <span class="hljs-string">&#x27;labels&#x27;</span>: [<span class="hljs-string">&#x27;urgent&#x27;</span>, <span class="hljs-string">&#x27;phone&#x27;</span>, <span class="hljs-string">&#x27;computer&#x27;</span>, <span class="hljs-string">&#x27;not urgent&#x27;</span>, <span class="hljs-string">&#x27;tablet&#x27;</span>], <span class="hljs-string">&#x27;scores&#x27;</span>: [<span class="hljs-number">0.504</span>, <span class="hljs-number">0.479</span>, <span class="hljs-number">0.013</span>, <span class="hljs-number">0.003</span>, <span class="hljs-number">0.002</span>]}`}}),Xs=new k({}),ee=new b({props:{code:`from transformers import pipeline

vqa = pipeline(model="impira/layoutlm-document-qa")
vqa(
    image="https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/invoice.png",
    question="What is the invoice number?",
)`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>vqa = pipeline(model=<span class="hljs-string">&quot;impira/layoutlm-document-qa&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>vqa(
<span class="hljs-meta">... </span>    image=<span class="hljs-string">&quot;https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/invoice.png&quot;</span>,
<span class="hljs-meta">... </span>    question=<span class="hljs-string">&quot;What is the invoice number?&quot;</span>,
<span class="hljs-meta">... </span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.42514941096305847</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;us-001&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">16</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">16</span>}]`}}),{c(){x=l("meta"),_=c(),$=l("h1"),w=l("a"),T=l("span"),m(E.$$.fragment),q=c(),B=l("span"),Yt=r("\uCD94\uB860\uC744 \uC704\uD55C Pipeline"),$a=c(),P=l("p"),Ne=l("code"),Jt=r("pipeline()"),Xt=r("\uC744 \uC0AC\uC6A9\uD558\uBA74 \uC5B8\uC5B4, \uCEF4\uD4E8\uD130 \uBE44\uC804, \uC624\uB514\uC624 \uBC0F \uBA40\uD2F0\uBAA8\uB2EC \uD0DC\uC2A4\uD06C\uC5D0 \uB300\uD55C \uCD94\uB860\uC744 \uC704\uD574 "),gs=l("a"),Zt=r("Hub"),sl=r("\uC758 \uC5B4\uB5A4 \uBAA8\uB378\uC774\uB4E0 \uC27D\uAC8C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uD2B9\uC815 \uBD84\uC57C\uC5D0 \uB300\uD55C \uACBD\uD5D8\uC774 \uC5C6\uAC70\uB098, \uBAA8\uB378\uC744 \uC774\uB8E8\uB294 \uCF54\uB4DC\uAC00 \uC775\uC219\uD558\uC9C0 \uC54A\uC740 \uACBD\uC6B0\uC5D0\uB3C4 "),De=l("code"),el=r("pipeline()"),al=r("\uC744 \uC0AC\uC6A9\uD574\uC11C \uCD94\uB860\uD560 \uC218 \uC788\uC5B4\uC694! \uC774 \uD29C\uD1A0\uB9AC\uC5BC\uC5D0\uC11C\uB294 \uB2E4\uC74C\uC744 \uBC30\uC6CC\uBCF4\uACA0\uC2B5\uB2C8\uB2E4."),_a=c(),A=l("ul"),vs=l("li"),tl=r("\uCD94\uB860\uC744 \uC704\uD574 "),Ie=l("code"),ll=r("pipeline()"),nl=r("\uC744 \uC0AC\uC6A9\uD558\uB294 \uBC29\uBC95"),pl=c(),Se=l("li"),rl=r("\uD2B9\uC815 \uD1A0\uD06C\uB098\uC774\uC800 \uB610\uB294 \uBAA8\uB378\uC744 \uC0AC\uC6A9\uD558\uB294 \uBC29\uBC95"),il=c(),js=l("li"),ol=r("\uC5B8\uC5B4, \uCEF4\uD4E8\uD130 \uBE44\uC804, \uC624\uB514\uC624 \uBC0F \uBA40\uD2F0\uBAA8\uB2EC \uD0DC\uC2A4\uD06C\uC5D0\uC11C "),Oe=l("code"),cl=r("pipeline()"),hl=r("\uC744 \uC0AC\uC6A9\uD558\uB294 \uBC29\uBC95"),ba=c(),m(W.$$.fragment),Ea=c(),C=l("h2"),F=l("a"),Te=l("span"),m(ds.$$.fragment),fl=c(),Ce=l("span"),ml=r("Pipeline \uC0AC\uC6A9\uD558\uAE30"),wa=c(),y=l("p"),ul=r("\uAC01 \uD0DC\uC2A4\uD06C\uB9C8\uB2E4 \uACE0\uC720\uC758 "),He=l("code"),gl=r("pipeline()"),vl=r("\uC774 \uC788\uC9C0\uB9CC, \uAC1C\uBCC4 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uB2F4\uACE0\uC788\uB294 \uCD94\uC0C1\uD654\uB41C "),Le=l("code"),jl=r("pipeline()"),dl=r("\uB97C \uC0AC\uC6A9\uD558\uB294 \uAC83\uC774 \uC77C\uBC18\uC801\uC73C\uB85C \uB354 \uAC04\uB2E8\uD569\uB2C8\uB2E4. "),Ue=l("code"),xl=r("pipeline()"),$l=r("\uC740 \uD0DC\uC2A4\uD06C\uC5D0 \uC54C\uB9DE\uAC8C \uCD94\uB860\uC774 \uAC00\uB2A5\uD55C \uAE30\uBCF8 \uBAA8\uB378\uACFC \uC804\uCC98\uB9AC \uD074\uB798\uC2A4\uB97C \uC790\uB3D9\uC73C\uB85C \uB85C\uB4DC\uD569\uB2C8\uB2E4."),ya=c(),ne=l("ol"),xs=l("li"),_l=r("\uBA3C\uC800 "),Re=l("code"),bl=r("pipeline()"),El=r("\uC744 \uC0DD\uC131\uD558\uACE0 \uD0DC\uC2A4\uD06C\uB97C \uC9C0\uC815\uD558\uC138\uC694."),Pa=c(),m($s.$$.fragment),ka=c(),_s=l("ol"),bs=l("li"),wl=r("\uADF8\uB9AC\uACE0 "),Ge=l("code"),yl=r("pipeline()"),Pl=r("\uC5D0 \uC785\uB825\uC744 \uB123\uC5B4\uC8FC\uC138\uC694."),qa=c(),m(Es.$$.fragment),Aa=c(),N=l("p"),kl=r("\uAE30\uB300\uD588\uB358 \uACB0\uACFC\uAC00 \uC544\uB2CC\uAC00\uC694? Hub\uC5D0\uC11C "),ws=l("a"),ql=r("\uAC00\uC7A5 \uB9CE\uC774 \uB2E4\uC6B4\uB85C\uB4DC\uB41C \uC790\uB3D9 \uC74C\uC131 \uC778\uC2DD \uBAA8\uB378"),Al=r(`\uB85C \uB354 \uB098\uC740 \uACB0\uACFC\uB97C \uC5BB\uC744 \uC218 \uC788\uB294\uC9C0 \uD655\uC778\uD574\uBCF4\uC138\uC694.
\uB2E4\uC74C\uC740 `),ys=l("a"),Nl=r("openai/whisper-large"),Dl=r("\uB85C \uC2DC\uB3C4\uD574\uBCF4\uACA0\uC2B5\uB2C8\uB2E4."),Na=c(),m(Ps.$$.fragment),Da=c(),Q=l("p"),Il=r(`\uD6E8\uC52C \uB354 \uB098\uC544\uC84C\uAD70\uC694!
Hub\uC758 \uBAA8\uB378\uB4E4\uC740 \uC5EC\uB7EC \uB2E4\uC591\uD55C \uC5B8\uC5B4\uC640 \uC804\uBB38\uBD84\uC57C\uB97C \uC544\uC6B0\uB974\uAE30 \uB54C\uBB38\uC5D0 \uAF2D \uC790\uC2E0\uC758 \uC5B8\uC5B4\uB098 \uBD84\uC57C\uC5D0 \uD2B9\uD654\uB41C \uBAA8\uB378\uC744 \uCC3E\uC544\uBCF4\uC2DC\uAE30 \uBC14\uB78D\uB2C8\uB2E4.
\uBE0C\uB77C\uC6B0\uC800\uB97C \uBC97\uC5B4\uB0A0 \uD544\uC694\uC5C6\uC774 Hub\uC5D0\uC11C \uC9C1\uC811 \uBAA8\uB378\uC758 \uCD9C\uB825\uC744 \uD655\uC778\uD558\uACE0 \uB2E4\uB978 \uBAA8\uB378\uACFC \uBE44\uAD50\uD574\uC11C \uC790\uC2E0\uC758 \uC0C1\uD669\uC5D0 \uB354 \uC801\uD569\uD55C\uC9C0, \uC560\uB9E4\uD55C \uC785\uB825\uC744 \uB354 \uC798 \uCC98\uB9AC\uD558\uB294\uC9C0\uB3C4 \uD655\uC778\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uB9CC\uC57D \uC0C1\uD669\uC5D0 \uC54C\uB9DE\uB294 \uBAA8\uB378\uC744 \uC5C6\uB2E4\uBA74 \uC5B8\uC81C\uB098 \uC9C1\uC811 `),pe=l("a"),Sl=r("\uD6C8\uB828"),Ol=r("\uC2DC\uD0AC \uC218 \uC788\uC2B5\uB2C8\uB2E4!"),Ia=c(),re=l("p"),Tl=r("\uC785\uB825\uC774 \uC5EC\uB7EC \uAC1C \uC788\uB294 \uACBD\uC6B0, \uB9AC\uC2A4\uD2B8 \uD615\uD0DC\uB85C \uC804\uB2EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),Sa=c(),m(ks.$$.fragment),Oa=c(),ie=l("p"),Cl=r("\uC804\uCCB4 \uB370\uC774\uD130\uC138\uD2B8\uC744 \uC21C\uD68C\uD558\uAC70\uB098 \uC6F9\uC11C\uBC84\uC5D0 \uC62C\uB824\uB450\uC5B4 \uCD94\uB860\uC5D0 \uC0AC\uC6A9\uD558\uACE0 \uC2F6\uB2E4\uBA74, \uAC01 \uC0C1\uC138 \uD398\uC774\uC9C0\uB97C \uCC38\uC870\uD558\uC138\uC694."),Ta=c(),oe=l("p"),ce=l("a"),Hl=r("\uB370\uC774\uD130\uC138\uD2B8\uC5D0\uC11C Pipeline \uC0AC\uC6A9\uD558\uAE30"),Ca=c(),he=l("p"),fe=l("a"),Ll=r("\uC6F9\uC11C\uBC84\uC5D0\uC11C Pipeline \uC0AC\uC6A9\uD558\uAE30"),Ha=c(),H=l("h2"),Y=l("a"),Me=l("span"),m(qs.$$.fragment),Ul=c(),Ve=l("span"),Rl=r("\uB9E4\uAC1C\uBCC0\uC218"),La=c(),As=l("p"),ze=l("code"),Gl=r("pipeline()"),Ml=r(`\uC740 \uB9CE\uC740 \uB9E4\uAC1C\uBCC0\uC218\uB97C \uC9C0\uC6D0\uD569\uB2C8\uB2E4. \uD2B9\uC815 \uD0DC\uC2A4\uD06C\uC6A9\uC778 \uAC83\uB3C4 \uC788\uACE0, \uBC94\uC6A9\uC778 \uAC83\uB3C4 \uC788\uC2B5\uB2C8\uB2E4.
\uC77C\uBC18\uC801\uC73C\uB85C \uC6D0\uD558\uB294 \uC704\uCE58\uC5D0 \uC5B4\uB514\uB4E0 \uB9E4\uAC1C\uBCC0\uC218\uB97C \uB123\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`),Ua=c(),m(Ns.$$.fragment),Ra=c(),me=l("p"),Vl=r("\uC911\uC694\uD55C 3\uAC00\uC9C0 \uB9E4\uAC1C\uBCC0\uC218\uB97C \uC0B4\uD3B4\uBCF4\uACA0\uC2B5\uB2C8\uB2E4."),Ga=c(),L=l("h3"),J=l("a"),Ke=l("span"),m(Ds.$$.fragment),zl=c(),Be=l("span"),Kl=r("\uAE30\uAE30(device)"),Ma=c(),Is=l("p"),We=l("code"),Bl=r("device=n"),Wl=r(`\uCC98\uB7FC \uAE30\uAE30\uB97C \uC9C0\uC815\uD558\uBA74 \uD30C\uC774\uD504\uB77C\uC778\uC774 \uC790\uB3D9\uC73C\uB85C \uD574\uB2F9 \uAE30\uAE30\uC5D0 \uBAA8\uB378\uC744 \uBC30\uCE58\uD569\uB2C8\uB2E4.
\uD30C\uC774\uD1A0\uCE58\uC5D0\uC11C\uB098 \uD150\uC11C\uD50C\uB85C\uC6B0\uC5D0\uC11C\uB3C4 \uBAA8\uB450 \uC791\uB3D9\uD569\uB2C8\uB2E4.`),Va=c(),m(Ss.$$.fragment),za=c(),D=l("p"),Fl=r("\uBAA8\uB378\uC774 GPU \uD558\uB098\uC5D0 \uB3CC\uC544\uAC00\uAE30 \uBC84\uAC81\uB2E4\uBA74, "),Fe=l("code"),Ql=r('device_map="auto"'),Yl=r("\uB97C \uC9C0\uC815\uD574\uC11C \u{1F917} "),Os=l("a"),Jl=r("Accelerate"),Xl=r("\uAC00 \uBAA8\uB378 \uAC00\uC911\uCE58\uB97C \uC5B4\uB5BB\uAC8C \uB85C\uB4DC\uD558\uACE0 \uC800\uC7A5\uD560\uC9C0 \uC790\uB3D9\uC73C\uB85C \uACB0\uC815\uD558\uB3C4\uB85D \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),Ka=c(),m(Ts.$$.fragment),Ba=c(),U=l("h3"),X=l("a"),Qe=l("span"),m(Cs.$$.fragment),Zl=c(),Ye=l("span"),sn=r("\uBC30\uCE58 \uC0AC\uC774\uC988"),Wa=c(),Z=l("p"),en=r("\uAE30\uBCF8\uC801\uC73C\uB85C \uD30C\uC774\uD504\uB77C\uC778\uC740 "),Hs=l("a"),an=r("\uC5EC\uAE30"),tn=r("\uC5D0 \uB098\uC628 \uC774\uC720\uB85C \uCD94\uB860\uC744 \uC77C\uAD04 \uCC98\uB9AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uAC04\uB2E8\uD788 \uC124\uBA85\uD558\uC790\uBA74 \uC77C\uAD04 \uCC98\uB9AC\uAC00 \uBC18\uB4DC\uC2DC \uB354 \uBE60\uB974\uC9C0 \uC54A\uACE0 \uC624\uD788\uB824 \uB354 \uB290\uB824\uC9C8 \uC218\uB3C4 \uC788\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4."),Fa=c(),ue=l("p"),ln=r("\uD558\uC9C0\uB9CC \uC790\uC2E0\uC758 \uC0C1\uD669\uC5D0 \uC801\uD569\uD558\uB2E4\uBA74, \uC774\uB807\uAC8C \uC0AC\uC6A9\uD558\uC138\uC694."),Qa=c(),m(Ls.$$.fragment),Ya=c(),ge=l("p"),nn=r(`\uD30C\uC774\uD504\uB77C\uC778 \uC704 \uC81C\uACF5\uB41C 10\uAC1C\uC758 \uC624\uB514\uC624 \uD30C\uC77C\uC744 \uCD94\uAC00\uB85C \uCC98\uB9AC\uD558\uB294 \uCF54\uB4DC \uC5C6\uC774 (\uC77C\uAD04 \uCC98\uB9AC\uC5D0 \uBCF4\uB2E4 \uD6A8\uACFC\uC801\uC778 GPU \uC704) \uBAA8\uB378\uC5D0 2\uAC1C\uC529 \uC804\uB2EC\uD569\uB2C8\uB2E4.
\uCD9C\uB825\uC740 \uC77C\uAD04 \uCC98\uB9AC\uD558\uC9C0 \uC54A\uC558\uC744 \uB54C\uC640 \uB611\uAC19\uC544\uC57C \uD569\uB2C8\uB2E4. \uD30C\uC774\uD504\uB77C\uC778\uC5D0\uC11C \uC18D\uB3C4\uB97C \uB354 \uB0BC \uC218\uB3C4 \uC788\uB294 \uBC29\uBC95 \uC911 \uD558\uB098\uC77C \uBFD0\uC785\uB2C8\uB2E4.`),Ja=c(),ss=l("p"),pn=r("\uD30C\uC774\uD504\uB77C\uC778\uC740 \uC77C\uAD04 \uCC98\uB9AC\uC758 \uBCF5\uC7A1\uD55C \uBD80\uBD84\uC744 \uC904\uC5EC\uC8FC\uAE30\uB3C4 \uD569\uB2C8\uB2E4. (\uC608\uB97C \uB4E4\uC5B4 \uAE34 \uC624\uB514\uC624 \uD30C\uC77C\uCC98\uB7FC) \uC5EC\uB7EC \uBD80\uBD84\uC73C\uB85C \uB098\uB220\uC57C \uBAA8\uB378\uC774 \uCC98\uB9AC\uD560 \uC218 \uC788\uB294 \uAC83\uC744 "),ve=l("a"),Je=l("em"),rn=r("chunk batching"),on=r("\uC774\uB77C\uACE0 \uD558\uB294\uB370, \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC0AC\uC6A9\uD558\uBA74 \uC790\uB3D9\uC73C\uB85C \uB098\uB220\uC90D\uB2C8\uB2E4."),Xa=c(),R=l("h3"),es=l("a"),Xe=l("span"),m(Us.$$.fragment),cn=c(),Ze=l("span"),hn=r("\uD2B9\uC815 \uD0DC\uC2A4\uD06C\uC6A9 \uB9E4\uAC1C\uBCC0\uC218"),Za=c(),I=l("p"),fn=r(`\uAC01 \uD0DC\uC2A4\uD06C\uB9C8\uB2E4 \uAD6C\uD604\uD560 \uB54C \uC720\uC5F0\uC131\uACFC \uC635\uC158\uC744 \uC81C\uACF5\uD558\uAE30 \uC704\uD574 \uD0DC\uC2A4\uD06C\uC6A9 \uB9E4\uAC1C\uBCC0\uC218\uAC00 \uC788\uC2B5\uB2C8\uB2E4.
\uC608\uB97C \uB4E4\uC5B4 `),sa=l("code"),mn=r("transformers.AutomaticSpeechRecognitionPipeline.__call__()"),un=r(" \uBA54\uC11C\uB4DC\uC5D0\uB294 \uB3D9\uC601\uC0C1\uC758 \uC790\uB9C9\uC744 \uB123\uC744 \uB54C \uC720\uC6A9\uD560 \uAC83 \uAC19\uC740 "),ea=l("code"),gn=r("return_timestamps"),vn=r(" \uB9E4\uAC1C\uBCC0\uC218\uAC00 \uC788\uC2B5\uB2C8\uB2E4."),st=c(),m(Rs.$$.fragment),et=c(),je=l("p"),jn=r("\uBCF4\uC2DC\uB2E4\uC2DC\uD53C \uBAA8\uB378\uC774 \uD14D\uC2A4\uD2B8\uB97C \uCD94\uB860\uD560 \uBFD0\uB9CC \uC544\uB2C8\uB77C \uAC01 \uB2E8\uC5B4\uB97C \uB9D0\uD55C \uC2DC\uC810\uAE4C\uC9C0\uB3C4 \uCD9C\uB825\uD588\uC2B5\uB2C8\uB2E4."),at=c(),S=l("p"),dn=r(`\uD0DC\uC2A4\uD06C\uB9C8\uB2E4 \uB2E4\uC591\uD55C \uB9E4\uAC1C\uBCC0\uC218\uB97C \uAC00\uC9C0\uACE0 \uC788\uB294\uB370\uC694. \uC6D0\uD558\uB294 \uD0DC\uC2A4\uD06C\uC758 API\uB97C \uCC38\uC870\uD574\uC11C \uBC14\uAFD4\uBCFC \uC218 \uC788\uB294 \uC5EC\uB7EC \uB9E4\uAC1C\uBCC0\uC218\uB97C \uC0B4\uD3B4\uBCF4\uC138\uC694!
\uC9C0\uAE08\uAE4C\uC9C0 \uB2E4\uB904\uBCF8 `),aa=l("code"),xn=r("AutomaticSpeechRecognitionPipeline"),$n=r("\uC5D0\uB294 "),ta=l("code"),_n=r("chunk_length_s"),bn=r(" \uB9E4\uAC1C\uBCC0\uC218\uAC00 \uC788\uC2B5\uB2C8\uB2E4. \uC601\uD654\uB098 1\uC2DC\uAC04 \uBD84\uB7C9\uC758 \uB3D9\uC601\uC0C1\uC758 \uC790\uB9C9 \uC791\uC5C5\uC744 \uD560 \uB54C\uCC98\uB7FC, \uC77C\uBC18\uC801\uC73C\uB85C \uBAA8\uB378\uC774 \uC790\uCCB4\uC801\uC73C\uB85C \uCC98\uB9AC\uD560 \uC218 \uC5C6\uB294 \uB9E4\uC6B0 \uAE34 \uC624\uB514\uC624 \uD30C\uC77C\uC744 \uCC98\uB9AC\uD560 \uB54C \uC720\uC6A9\uD558\uC8E0."),tt=c(),as=l("p"),En=r("\uB3C4\uC6C0\uC774 \uB420 \uB9CC\uD55C \uB9E4\uAC1C\uBCC0\uC218\uB97C \uCC3E\uC9C0 \uBABB\uD588\uB2E4\uBA74 \uC5B8\uC81C\uB4E0\uC9C0 "),Gs=l("a"),wn=r("\uC694\uCCAD"),yn=r("\uD574\uC8FC\uC138\uC694!"),lt=c(),G=l("h2"),ts=l("a"),la=l("span"),m(Ms.$$.fragment),Pn=c(),na=l("span"),kn=r("\uB370\uC774\uD130\uC138\uD2B8\uC5D0\uC11C Pipeline \uC0AC\uC6A9\uD558\uAE30"),nt=c(),de=l("p"),qn=r("\uD30C\uC774\uD504\uB77C\uC778\uC740 \uB300\uADDC\uBAA8 \uB370\uC774\uD130\uC138\uD2B8\uC5D0\uC11C\uB3C4 \uCD94\uB860 \uC791\uC5C5\uC744 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uC774\uB54C \uC774\uD130\uB808\uC774\uD130\uB97C \uC0AC\uC6A9\uD558\uB294 \uAC78 \uCD94\uCC9C\uB4DC\uB9BD\uB2C8\uB2E4."),pt=c(),m(Vs.$$.fragment),rt=c(),O=l("p"),An=r("\uC774\uD130\uB808\uC774\uD130 "),pa=l("code"),Nn=r("data()"),Dn=r("\uB294 \uAC01 \uACB0\uACFC\uB97C \uD638\uCD9C\uB9C8\uB2E4 \uC0DD\uC131\uD558\uACE0, \uD30C\uC774\uD504\uB77C\uC778\uC740 \uC785\uB825\uC774 \uC21C\uD68C\uD560 \uC218 \uC788\uB294 \uC790\uB8CC\uAD6C\uC870\uC784\uC744 \uC790\uB3D9\uC73C\uB85C \uC778\uC2DD\uD558\uC5EC GPU\uC5D0\uC11C \uAE30\uC874 \uB370\uC774\uD130\uAC00 \uCC98\uB9AC\uB418\uB294 \uB3D9\uC548 \uC0C8\uB85C\uC6B4 \uB370\uC774\uD130\uB97C \uAC00\uC838\uC624\uAE30 \uC2DC\uC791\uD569\uB2C8\uB2E4.(\uC774\uB54C \uB0B4\uBD80\uC801\uC73C\uB85C "),zs=l("a"),In=r("DataLoader"),Sn=r("\uB97C \uC0AC\uC6A9\uD574\uC694.) \uC774 \uACFC\uC815\uC740 \uC804\uCCB4 \uB370\uC774\uD130\uC138\uD2B8\uB97C \uBA54\uBAA8\uB9AC\uC5D0 \uC801\uC7AC\uD558\uC9C0 \uC54A\uACE0\uB3C4 GPU\uC5D0 \uCD5C\uB300\uD55C \uBE60\uB974\uAC8C \uC0C8\uB85C\uC6B4 \uC791\uC5C5\uC744 \uACF5\uAE09\uD560 \uC218 \uC788\uAE30 \uB54C\uBB38\uC5D0 \uC911\uC694\uD569\uB2C8\uB2E4."),it=c(),ls=l("p"),On=r("\uADF8\uB9AC\uACE0 \uC77C\uAD04 \uCC98\uB9AC\uAC00 \uB354 \uBE60\uB97C \uC218 \uC788\uAE30 \uB54C\uBB38\uC5D0, "),ra=l("code"),Tn=r("batch_size"),Cn=r(" \uB9E4\uAC1C\uBCC0\uC218\uB97C \uC870\uC815\uD574\uBD10\uB3C4 \uC88B\uC544\uC694."),ot=c(),ns=l("p"),Hn=r("\uB370\uC774\uD130\uC138\uD2B8\uB97C \uC21C\uD68C\uD558\uB294 \uAC00\uC7A5 \uAC04\uB2E8\uD55C \uBC29\uBC95\uC740 \u{1F917} "),Ks=l("a"),Ln=r("Datasets"),Un=r("\uB97C \uD65C\uC6A9\uD558\uB294 \uAC83\uC778\uB370\uC694."),ct=c(),m(Bs.$$.fragment),ht=c(),M=l("h2"),ps=l("a"),ia=l("span"),m(Ws.$$.fragment),Rn=c(),oa=l("span"),Gn=r("\uC6F9\uC11C\uBC84\uC5D0\uC11C Pipeline \uC0AC\uC6A9\uD558\uAE30"),ft=c(),m(rs.$$.fragment),mt=c(),xe=l("p"),$e=l("a"),Mn=r("Link"),ut=c(),V=l("h2"),is=l("a"),ca=l("span"),m(Fs.$$.fragment),Vn=c(),ha=l("span"),zn=r("\uBE44\uC804 Pipeline"),gt=c(),os=l("p"),Kn=r("\uBE44\uC804 \uD0DC\uC2A4\uD06C\uB97C \uC704\uD574 "),fa=l("code"),Bn=r("pipeline()"),Wn=r("\uC744 \uC0AC\uC6A9\uD558\uB294 \uC77C\uC740 \uAC70\uC758 \uB3D9\uC77C\uD569\uB2C8\uB2E4."),vt=c(),_e=l("p"),Fn=r("\uD0DC\uC2A4\uD06C\uB97C \uC9C0\uC815\uD558\uACE0 \uC774\uBBF8\uC9C0\uB97C \uBD84\uB958\uAE30\uC5D0 \uC804\uB2EC\uD558\uBA74 \uB429\uB2C8\uB2E4. \uC774\uBBF8\uC9C0\uB294 \uC778\uD130\uB137 \uB9C1\uD06C \uB610\uB294 \uB85C\uCEEC \uACBD\uB85C\uC758 \uD615\uD0DC\uB85C \uC804\uB2EC\uD574\uC8FC\uC138\uC694. \uC608\uB97C \uB4E4\uC5B4 \uC544\uB798\uC5D0 \uD45C\uC2DC\uB41C \uACE0\uC591\uC774\uB294 \uC5B4\uB5A4 \uC885\uC778\uAC00\uC694?"),jt=c(),be=l("p"),Ee=l("img"),dt=c(),m(Qs.$$.fragment),xt=c(),z=l("h3"),cs=l("a"),ma=l("span"),m(Ys.$$.fragment),Qn=c(),ua=l("span"),Yn=r("\uD14D\uC2A4\uD2B8 Pipeline"),$t=c(),hs=l("p"),Jn=r("NLP \uD0DC\uC2A4\uD06C\uB97C \uC704\uD574 "),ga=l("code"),Xn=r("pipeline()"),Zn=r("\uC744 \uC0AC\uC6A9\uD558\uB294 \uC77C\uB3C4 \uAC70\uC758 \uB3D9\uC77C\uD569\uB2C8\uB2E4."),_t=c(),m(Js.$$.fragment),bt=c(),K=l("h3"),fs=l("a"),va=l("span"),m(Xs.$$.fragment),sp=c(),ja=l("span"),ep=r("\uBA40\uD2F0\uBAA8\uB2EC Pipeline"),Et=c(),Zs=l("p"),da=l("code"),ap=r("pipeline()"),tp=r("\uC740 \uC5EC\uB7EC \uBAA8\uB2EC\uB9AC\uD2F0(\uC5ED\uC8FC: \uC624\uB514\uC624, \uBE44\uB514\uC624, \uD14D\uC2A4\uD2B8\uC640 \uAC19\uC740 \uB370\uC774\uD130 \uD615\uD0DC)\uB97C \uC9C0\uC6D0\uD569\uB2C8\uB2E4. \uC608\uC2DC\uB85C \uC2DC\uAC01\uC801 \uC9C8\uC758\uC751\uB2F5(VQA; Visual Question Answering) \uD0DC\uC2A4\uD06C\uB294 \uD14D\uC2A4\uD2B8\uC640 \uC774\uBBF8\uC9C0\uB97C \uBAA8\uB450 \uC0AC\uC6A9\uD569\uB2C8\uB2E4. \uADF8 \uC5B4\uB5A4 \uC774\uBBF8\uC9C0 \uB9C1\uD06C\uB098 \uBB3B\uACE0 \uC2F6\uC740 \uC9C8\uBB38\uB3C4 \uC790\uC720\uB86D\uAC8C \uC804\uB2EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uC774\uBBF8\uC9C0\uB294 URL \uB610\uB294 \uB85C\uCEEC \uACBD\uB85C\uC758 \uD615\uD0DC\uB85C \uC804\uB2EC\uD574\uC8FC\uC138\uC694."),wt=c(),ms=l("p"),lp=r("\uC608\uB97C \uB4E4\uC5B4 \uC774 "),se=l("a"),np=r("\uAC70\uB798\uBA85\uC138\uC11C \uC0AC\uC9C4"),pp=r("\uC5D0\uC11C \uAC70\uB798\uBA85\uC138\uC11C \uBC88\uD638\uB97C \uBB3B\uACE0 \uC2F6\uB2E4\uBA74,"),yt=c(),m(ee.$$.fragment),this.h()},l(s){const t=zr('[data-svelte="svelte-1phssyn"]',document.head);x=n(t,"META",{name:!0,content:!0}),t.forEach(e),_=h(s),$=n(s,"H1",{class:!0});var ae=p($);w=n(ae,"A",{id:!0,class:!0,href:!0});var xa=p(w);T=n(xa,"SPAN",{});var hp=p(T);u(E.$$.fragment,hp),hp.forEach(e),xa.forEach(e),q=h(ae),B=n(ae,"SPAN",{});var fp=p(B);Yt=i(fp,"\uCD94\uB860\uC744 \uC704\uD55C Pipeline"),fp.forEach(e),ae.forEach(e),$a=h(s),P=n(s,"P",{});var te=p(P);Ne=n(te,"CODE",{});var mp=p(Ne);Jt=i(mp,"pipeline()"),mp.forEach(e),Xt=i(te,"\uC744 \uC0AC\uC6A9\uD558\uBA74 \uC5B8\uC5B4, \uCEF4\uD4E8\uD130 \uBE44\uC804, \uC624\uB514\uC624 \uBC0F \uBA40\uD2F0\uBAA8\uB2EC \uD0DC\uC2A4\uD06C\uC5D0 \uB300\uD55C \uCD94\uB860\uC744 \uC704\uD574 "),gs=n(te,"A",{href:!0,rel:!0});var up=p(gs);Zt=i(up,"Hub"),up.forEach(e),sl=i(te,"\uC758 \uC5B4\uB5A4 \uBAA8\uB378\uC774\uB4E0 \uC27D\uAC8C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uD2B9\uC815 \uBD84\uC57C\uC5D0 \uB300\uD55C \uACBD\uD5D8\uC774 \uC5C6\uAC70\uB098, \uBAA8\uB378\uC744 \uC774\uB8E8\uB294 \uCF54\uB4DC\uAC00 \uC775\uC219\uD558\uC9C0 \uC54A\uC740 \uACBD\uC6B0\uC5D0\uB3C4 "),De=n(te,"CODE",{});var gp=p(De);el=i(gp,"pipeline()"),gp.forEach(e),al=i(te,"\uC744 \uC0AC\uC6A9\uD574\uC11C \uCD94\uB860\uD560 \uC218 \uC788\uC5B4\uC694! \uC774 \uD29C\uD1A0\uB9AC\uC5BC\uC5D0\uC11C\uB294 \uB2E4\uC74C\uC744 \uBC30\uC6CC\uBCF4\uACA0\uC2B5\uB2C8\uB2E4."),te.forEach(e),_a=h(s),A=n(s,"UL",{});var we=p(A);vs=n(we,"LI",{});var kt=p(vs);tl=i(kt,"\uCD94\uB860\uC744 \uC704\uD574 "),Ie=n(kt,"CODE",{});var vp=p(Ie);ll=i(vp,"pipeline()"),vp.forEach(e),nl=i(kt,"\uC744 \uC0AC\uC6A9\uD558\uB294 \uBC29\uBC95"),kt.forEach(e),pl=h(we),Se=n(we,"LI",{});var jp=p(Se);rl=i(jp,"\uD2B9\uC815 \uD1A0\uD06C\uB098\uC774\uC800 \uB610\uB294 \uBAA8\uB378\uC744 \uC0AC\uC6A9\uD558\uB294 \uBC29\uBC95"),jp.forEach(e),il=h(we),js=n(we,"LI",{});var qt=p(js);ol=i(qt,"\uC5B8\uC5B4, \uCEF4\uD4E8\uD130 \uBE44\uC804, \uC624\uB514\uC624 \uBC0F \uBA40\uD2F0\uBAA8\uB2EC \uD0DC\uC2A4\uD06C\uC5D0\uC11C "),Oe=n(qt,"CODE",{});var dp=p(Oe);cl=i(dp,"pipeline()"),dp.forEach(e),hl=i(qt,"\uC744 \uC0AC\uC6A9\uD558\uB294 \uBC29\uBC95"),qt.forEach(e),we.forEach(e),ba=h(s),u(W.$$.fragment,s),Ea=h(s),C=n(s,"H2",{class:!0});var At=p(C);F=n(At,"A",{id:!0,class:!0,href:!0});var xp=p(F);Te=n(xp,"SPAN",{});var $p=p(Te);u(ds.$$.fragment,$p),$p.forEach(e),xp.forEach(e),fl=h(At),Ce=n(At,"SPAN",{});var _p=p(Ce);ml=i(_p,"Pipeline \uC0AC\uC6A9\uD558\uAE30"),_p.forEach(e),At.forEach(e),wa=h(s),y=n(s,"P",{});var us=p(y);ul=i(us,"\uAC01 \uD0DC\uC2A4\uD06C\uB9C8\uB2E4 \uACE0\uC720\uC758 "),He=n(us,"CODE",{});var bp=p(He);gl=i(bp,"pipeline()"),bp.forEach(e),vl=i(us,"\uC774 \uC788\uC9C0\uB9CC, \uAC1C\uBCC4 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uB2F4\uACE0\uC788\uB294 \uCD94\uC0C1\uD654\uB41C "),Le=n(us,"CODE",{});var Ep=p(Le);jl=i(Ep,"pipeline()"),Ep.forEach(e),dl=i(us,"\uB97C \uC0AC\uC6A9\uD558\uB294 \uAC83\uC774 \uC77C\uBC18\uC801\uC73C\uB85C \uB354 \uAC04\uB2E8\uD569\uB2C8\uB2E4. "),Ue=n(us,"CODE",{});var wp=p(Ue);xl=i(wp,"pipeline()"),wp.forEach(e),$l=i(us,"\uC740 \uD0DC\uC2A4\uD06C\uC5D0 \uC54C\uB9DE\uAC8C \uCD94\uB860\uC774 \uAC00\uB2A5\uD55C \uAE30\uBCF8 \uBAA8\uB378\uACFC \uC804\uCC98\uB9AC \uD074\uB798\uC2A4\uB97C \uC790\uB3D9\uC73C\uB85C \uB85C\uB4DC\uD569\uB2C8\uB2E4."),us.forEach(e),ya=h(s),ne=n(s,"OL",{});var yp=p(ne);xs=n(yp,"LI",{});var Nt=p(xs);_l=i(Nt,"\uBA3C\uC800 "),Re=n(Nt,"CODE",{});var Pp=p(Re);bl=i(Pp,"pipeline()"),Pp.forEach(e),El=i(Nt,"\uC744 \uC0DD\uC131\uD558\uACE0 \uD0DC\uC2A4\uD06C\uB97C \uC9C0\uC815\uD558\uC138\uC694."),Nt.forEach(e),yp.forEach(e),Pa=h(s),u($s.$$.fragment,s),ka=h(s),_s=n(s,"OL",{start:!0});var kp=p(_s);bs=n(kp,"LI",{});var Dt=p(bs);wl=i(Dt,"\uADF8\uB9AC\uACE0 "),Ge=n(Dt,"CODE",{});var qp=p(Ge);yl=i(qp,"pipeline()"),qp.forEach(e),Pl=i(Dt,"\uC5D0 \uC785\uB825\uC744 \uB123\uC5B4\uC8FC\uC138\uC694."),Dt.forEach(e),kp.forEach(e),qa=h(s),u(Es.$$.fragment,s),Aa=h(s),N=n(s,"P",{});var ye=p(N);kl=i(ye,"\uAE30\uB300\uD588\uB358 \uACB0\uACFC\uAC00 \uC544\uB2CC\uAC00\uC694? Hub\uC5D0\uC11C "),ws=n(ye,"A",{href:!0,rel:!0});var Ap=p(ws);ql=i(Ap,"\uAC00\uC7A5 \uB9CE\uC774 \uB2E4\uC6B4\uB85C\uB4DC\uB41C \uC790\uB3D9 \uC74C\uC131 \uC778\uC2DD \uBAA8\uB378"),Ap.forEach(e),Al=i(ye,`\uB85C \uB354 \uB098\uC740 \uACB0\uACFC\uB97C \uC5BB\uC744 \uC218 \uC788\uB294\uC9C0 \uD655\uC778\uD574\uBCF4\uC138\uC694.
\uB2E4\uC74C\uC740 `),ys=n(ye,"A",{href:!0,rel:!0});var Np=p(ys);Nl=i(Np,"openai/whisper-large"),Np.forEach(e),Dl=i(ye,"\uB85C \uC2DC\uB3C4\uD574\uBCF4\uACA0\uC2B5\uB2C8\uB2E4."),ye.forEach(e),Na=h(s),u(Ps.$$.fragment,s),Da=h(s),Q=n(s,"P",{});var It=p(Q);Il=i(It,`\uD6E8\uC52C \uB354 \uB098\uC544\uC84C\uAD70\uC694!
Hub\uC758 \uBAA8\uB378\uB4E4\uC740 \uC5EC\uB7EC \uB2E4\uC591\uD55C \uC5B8\uC5B4\uC640 \uC804\uBB38\uBD84\uC57C\uB97C \uC544\uC6B0\uB974\uAE30 \uB54C\uBB38\uC5D0 \uAF2D \uC790\uC2E0\uC758 \uC5B8\uC5B4\uB098 \uBD84\uC57C\uC5D0 \uD2B9\uD654\uB41C \uBAA8\uB378\uC744 \uCC3E\uC544\uBCF4\uC2DC\uAE30 \uBC14\uB78D\uB2C8\uB2E4.
\uBE0C\uB77C\uC6B0\uC800\uB97C \uBC97\uC5B4\uB0A0 \uD544\uC694\uC5C6\uC774 Hub\uC5D0\uC11C \uC9C1\uC811 \uBAA8\uB378\uC758 \uCD9C\uB825\uC744 \uD655\uC778\uD558\uACE0 \uB2E4\uB978 \uBAA8\uB378\uACFC \uBE44\uAD50\uD574\uC11C \uC790\uC2E0\uC758 \uC0C1\uD669\uC5D0 \uB354 \uC801\uD569\uD55C\uC9C0, \uC560\uB9E4\uD55C \uC785\uB825\uC744 \uB354 \uC798 \uCC98\uB9AC\uD558\uB294\uC9C0\uB3C4 \uD655\uC778\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uB9CC\uC57D \uC0C1\uD669\uC5D0 \uC54C\uB9DE\uB294 \uBAA8\uB378\uC744 \uC5C6\uB2E4\uBA74 \uC5B8\uC81C\uB098 \uC9C1\uC811 `),pe=n(It,"A",{href:!0});var Dp=p(pe);Sl=i(Dp,"\uD6C8\uB828"),Dp.forEach(e),Ol=i(It,"\uC2DC\uD0AC \uC218 \uC788\uC2B5\uB2C8\uB2E4!"),It.forEach(e),Ia=h(s),re=n(s,"P",{});var Ip=p(re);Tl=i(Ip,"\uC785\uB825\uC774 \uC5EC\uB7EC \uAC1C \uC788\uB294 \uACBD\uC6B0, \uB9AC\uC2A4\uD2B8 \uD615\uD0DC\uB85C \uC804\uB2EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),Ip.forEach(e),Sa=h(s),u(ks.$$.fragment,s),Oa=h(s),ie=n(s,"P",{});var Sp=p(ie);Cl=i(Sp,"\uC804\uCCB4 \uB370\uC774\uD130\uC138\uD2B8\uC744 \uC21C\uD68C\uD558\uAC70\uB098 \uC6F9\uC11C\uBC84\uC5D0 \uC62C\uB824\uB450\uC5B4 \uCD94\uB860\uC5D0 \uC0AC\uC6A9\uD558\uACE0 \uC2F6\uB2E4\uBA74, \uAC01 \uC0C1\uC138 \uD398\uC774\uC9C0\uB97C \uCC38\uC870\uD558\uC138\uC694."),Sp.forEach(e),Ta=h(s),oe=n(s,"P",{});var Op=p(oe);ce=n(Op,"A",{href:!0});var Tp=p(ce);Hl=i(Tp,"\uB370\uC774\uD130\uC138\uD2B8\uC5D0\uC11C Pipeline \uC0AC\uC6A9\uD558\uAE30"),Tp.forEach(e),Op.forEach(e),Ca=h(s),he=n(s,"P",{});var Cp=p(he);fe=n(Cp,"A",{href:!0});var Hp=p(fe);Ll=i(Hp,"\uC6F9\uC11C\uBC84\uC5D0\uC11C Pipeline \uC0AC\uC6A9\uD558\uAE30"),Hp.forEach(e),Cp.forEach(e),Ha=h(s),H=n(s,"H2",{class:!0});var St=p(H);Y=n(St,"A",{id:!0,class:!0,href:!0});var Lp=p(Y);Me=n(Lp,"SPAN",{});var Up=p(Me);u(qs.$$.fragment,Up),Up.forEach(e),Lp.forEach(e),Ul=h(St),Ve=n(St,"SPAN",{});var Rp=p(Ve);Rl=i(Rp,"\uB9E4\uAC1C\uBCC0\uC218"),Rp.forEach(e),St.forEach(e),La=h(s),As=n(s,"P",{});var rp=p(As);ze=n(rp,"CODE",{});var Gp=p(ze);Gl=i(Gp,"pipeline()"),Gp.forEach(e),Ml=i(rp,`\uC740 \uB9CE\uC740 \uB9E4\uAC1C\uBCC0\uC218\uB97C \uC9C0\uC6D0\uD569\uB2C8\uB2E4. \uD2B9\uC815 \uD0DC\uC2A4\uD06C\uC6A9\uC778 \uAC83\uB3C4 \uC788\uACE0, \uBC94\uC6A9\uC778 \uAC83\uB3C4 \uC788\uC2B5\uB2C8\uB2E4.
\uC77C\uBC18\uC801\uC73C\uB85C \uC6D0\uD558\uB294 \uC704\uCE58\uC5D0 \uC5B4\uB514\uB4E0 \uB9E4\uAC1C\uBCC0\uC218\uB97C \uB123\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`),rp.forEach(e),Ua=h(s),u(Ns.$$.fragment,s),Ra=h(s),me=n(s,"P",{});var Mp=p(me);Vl=i(Mp,"\uC911\uC694\uD55C 3\uAC00\uC9C0 \uB9E4\uAC1C\uBCC0\uC218\uB97C \uC0B4\uD3B4\uBCF4\uACA0\uC2B5\uB2C8\uB2E4."),Mp.forEach(e),Ga=h(s),L=n(s,"H3",{class:!0});var Ot=p(L);J=n(Ot,"A",{id:!0,class:!0,href:!0});var Vp=p(J);Ke=n(Vp,"SPAN",{});var zp=p(Ke);u(Ds.$$.fragment,zp),zp.forEach(e),Vp.forEach(e),zl=h(Ot),Be=n(Ot,"SPAN",{});var Kp=p(Be);Kl=i(Kp,"\uAE30\uAE30(device)"),Kp.forEach(e),Ot.forEach(e),Ma=h(s),Is=n(s,"P",{});var ip=p(Is);We=n(ip,"CODE",{});var Bp=p(We);Bl=i(Bp,"device=n"),Bp.forEach(e),Wl=i(ip,`\uCC98\uB7FC \uAE30\uAE30\uB97C \uC9C0\uC815\uD558\uBA74 \uD30C\uC774\uD504\uB77C\uC778\uC774 \uC790\uB3D9\uC73C\uB85C \uD574\uB2F9 \uAE30\uAE30\uC5D0 \uBAA8\uB378\uC744 \uBC30\uCE58\uD569\uB2C8\uB2E4.
\uD30C\uC774\uD1A0\uCE58\uC5D0\uC11C\uB098 \uD150\uC11C\uD50C\uB85C\uC6B0\uC5D0\uC11C\uB3C4 \uBAA8\uB450 \uC791\uB3D9\uD569\uB2C8\uB2E4.`),ip.forEach(e),Va=h(s),u(Ss.$$.fragment,s),za=h(s),D=n(s,"P",{});var Pe=p(D);Fl=i(Pe,"\uBAA8\uB378\uC774 GPU \uD558\uB098\uC5D0 \uB3CC\uC544\uAC00\uAE30 \uBC84\uAC81\uB2E4\uBA74, "),Fe=n(Pe,"CODE",{});var Wp=p(Fe);Ql=i(Wp,'device_map="auto"'),Wp.forEach(e),Yl=i(Pe,"\uB97C \uC9C0\uC815\uD574\uC11C \u{1F917} "),Os=n(Pe,"A",{href:!0,rel:!0});var Fp=p(Os);Jl=i(Fp,"Accelerate"),Fp.forEach(e),Xl=i(Pe,"\uAC00 \uBAA8\uB378 \uAC00\uC911\uCE58\uB97C \uC5B4\uB5BB\uAC8C \uB85C\uB4DC\uD558\uACE0 \uC800\uC7A5\uD560\uC9C0 \uC790\uB3D9\uC73C\uB85C \uACB0\uC815\uD558\uB3C4\uB85D \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),Pe.forEach(e),Ka=h(s),u(Ts.$$.fragment,s),Ba=h(s),U=n(s,"H3",{class:!0});var Tt=p(U);X=n(Tt,"A",{id:!0,class:!0,href:!0});var Qp=p(X);Qe=n(Qp,"SPAN",{});var Yp=p(Qe);u(Cs.$$.fragment,Yp),Yp.forEach(e),Qp.forEach(e),Zl=h(Tt),Ye=n(Tt,"SPAN",{});var Jp=p(Ye);sn=i(Jp,"\uBC30\uCE58 \uC0AC\uC774\uC988"),Jp.forEach(e),Tt.forEach(e),Wa=h(s),Z=n(s,"P",{});var Ct=p(Z);en=i(Ct,"\uAE30\uBCF8\uC801\uC73C\uB85C \uD30C\uC774\uD504\uB77C\uC778\uC740 "),Hs=n(Ct,"A",{href:!0,rel:!0});var Xp=p(Hs);an=i(Xp,"\uC5EC\uAE30"),Xp.forEach(e),tn=i(Ct,"\uC5D0 \uB098\uC628 \uC774\uC720\uB85C \uCD94\uB860\uC744 \uC77C\uAD04 \uCC98\uB9AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uAC04\uB2E8\uD788 \uC124\uBA85\uD558\uC790\uBA74 \uC77C\uAD04 \uCC98\uB9AC\uAC00 \uBC18\uB4DC\uC2DC \uB354 \uBE60\uB974\uC9C0 \uC54A\uACE0 \uC624\uD788\uB824 \uB354 \uB290\uB824\uC9C8 \uC218\uB3C4 \uC788\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4."),Ct.forEach(e),Fa=h(s),ue=n(s,"P",{});var Zp=p(ue);ln=i(Zp,"\uD558\uC9C0\uB9CC \uC790\uC2E0\uC758 \uC0C1\uD669\uC5D0 \uC801\uD569\uD558\uB2E4\uBA74, \uC774\uB807\uAC8C \uC0AC\uC6A9\uD558\uC138\uC694."),Zp.forEach(e),Qa=h(s),u(Ls.$$.fragment,s),Ya=h(s),ge=n(s,"P",{});var sr=p(ge);nn=i(sr,`\uD30C\uC774\uD504\uB77C\uC778 \uC704 \uC81C\uACF5\uB41C 10\uAC1C\uC758 \uC624\uB514\uC624 \uD30C\uC77C\uC744 \uCD94\uAC00\uB85C \uCC98\uB9AC\uD558\uB294 \uCF54\uB4DC \uC5C6\uC774 (\uC77C\uAD04 \uCC98\uB9AC\uC5D0 \uBCF4\uB2E4 \uD6A8\uACFC\uC801\uC778 GPU \uC704) \uBAA8\uB378\uC5D0 2\uAC1C\uC529 \uC804\uB2EC\uD569\uB2C8\uB2E4.
\uCD9C\uB825\uC740 \uC77C\uAD04 \uCC98\uB9AC\uD558\uC9C0 \uC54A\uC558\uC744 \uB54C\uC640 \uB611\uAC19\uC544\uC57C \uD569\uB2C8\uB2E4. \uD30C\uC774\uD504\uB77C\uC778\uC5D0\uC11C \uC18D\uB3C4\uB97C \uB354 \uB0BC \uC218\uB3C4 \uC788\uB294 \uBC29\uBC95 \uC911 \uD558\uB098\uC77C \uBFD0\uC785\uB2C8\uB2E4.`),sr.forEach(e),Ja=h(s),ss=n(s,"P",{});var Ht=p(ss);pn=i(Ht,"\uD30C\uC774\uD504\uB77C\uC778\uC740 \uC77C\uAD04 \uCC98\uB9AC\uC758 \uBCF5\uC7A1\uD55C \uBD80\uBD84\uC744 \uC904\uC5EC\uC8FC\uAE30\uB3C4 \uD569\uB2C8\uB2E4. (\uC608\uB97C \uB4E4\uC5B4 \uAE34 \uC624\uB514\uC624 \uD30C\uC77C\uCC98\uB7FC) \uC5EC\uB7EC \uBD80\uBD84\uC73C\uB85C \uB098\uB220\uC57C \uBAA8\uB378\uC774 \uCC98\uB9AC\uD560 \uC218 \uC788\uB294 \uAC83\uC744 "),ve=n(Ht,"A",{href:!0});var er=p(ve);Je=n(er,"EM",{});var ar=p(Je);rn=i(ar,"chunk batching"),ar.forEach(e),er.forEach(e),on=i(Ht,"\uC774\uB77C\uACE0 \uD558\uB294\uB370, \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC0AC\uC6A9\uD558\uBA74 \uC790\uB3D9\uC73C\uB85C \uB098\uB220\uC90D\uB2C8\uB2E4."),Ht.forEach(e),Xa=h(s),R=n(s,"H3",{class:!0});var Lt=p(R);es=n(Lt,"A",{id:!0,class:!0,href:!0});var tr=p(es);Xe=n(tr,"SPAN",{});var lr=p(Xe);u(Us.$$.fragment,lr),lr.forEach(e),tr.forEach(e),cn=h(Lt),Ze=n(Lt,"SPAN",{});var nr=p(Ze);hn=i(nr,"\uD2B9\uC815 \uD0DC\uC2A4\uD06C\uC6A9 \uB9E4\uAC1C\uBCC0\uC218"),nr.forEach(e),Lt.forEach(e),Za=h(s),I=n(s,"P",{});var ke=p(I);fn=i(ke,`\uAC01 \uD0DC\uC2A4\uD06C\uB9C8\uB2E4 \uAD6C\uD604\uD560 \uB54C \uC720\uC5F0\uC131\uACFC \uC635\uC158\uC744 \uC81C\uACF5\uD558\uAE30 \uC704\uD574 \uD0DC\uC2A4\uD06C\uC6A9 \uB9E4\uAC1C\uBCC0\uC218\uAC00 \uC788\uC2B5\uB2C8\uB2E4.
\uC608\uB97C \uB4E4\uC5B4 `),sa=n(ke,"CODE",{});var pr=p(sa);mn=i(pr,"transformers.AutomaticSpeechRecognitionPipeline.__call__()"),pr.forEach(e),un=i(ke," \uBA54\uC11C\uB4DC\uC5D0\uB294 \uB3D9\uC601\uC0C1\uC758 \uC790\uB9C9\uC744 \uB123\uC744 \uB54C \uC720\uC6A9\uD560 \uAC83 \uAC19\uC740 "),ea=n(ke,"CODE",{});var rr=p(ea);gn=i(rr,"return_timestamps"),rr.forEach(e),vn=i(ke," \uB9E4\uAC1C\uBCC0\uC218\uAC00 \uC788\uC2B5\uB2C8\uB2E4."),ke.forEach(e),st=h(s),u(Rs.$$.fragment,s),et=h(s),je=n(s,"P",{});var ir=p(je);jn=i(ir,"\uBCF4\uC2DC\uB2E4\uC2DC\uD53C \uBAA8\uB378\uC774 \uD14D\uC2A4\uD2B8\uB97C \uCD94\uB860\uD560 \uBFD0\uB9CC \uC544\uB2C8\uB77C \uAC01 \uB2E8\uC5B4\uB97C \uB9D0\uD55C \uC2DC\uC810\uAE4C\uC9C0\uB3C4 \uCD9C\uB825\uD588\uC2B5\uB2C8\uB2E4."),ir.forEach(e),at=h(s),S=n(s,"P",{});var qe=p(S);dn=i(qe,`\uD0DC\uC2A4\uD06C\uB9C8\uB2E4 \uB2E4\uC591\uD55C \uB9E4\uAC1C\uBCC0\uC218\uB97C \uAC00\uC9C0\uACE0 \uC788\uB294\uB370\uC694. \uC6D0\uD558\uB294 \uD0DC\uC2A4\uD06C\uC758 API\uB97C \uCC38\uC870\uD574\uC11C \uBC14\uAFD4\uBCFC \uC218 \uC788\uB294 \uC5EC\uB7EC \uB9E4\uAC1C\uBCC0\uC218\uB97C \uC0B4\uD3B4\uBCF4\uC138\uC694!
\uC9C0\uAE08\uAE4C\uC9C0 \uB2E4\uB904\uBCF8 `),aa=n(qe,"CODE",{});var or=p(aa);xn=i(or,"AutomaticSpeechRecognitionPipeline"),or.forEach(e),$n=i(qe,"\uC5D0\uB294 "),ta=n(qe,"CODE",{});var cr=p(ta);_n=i(cr,"chunk_length_s"),cr.forEach(e),bn=i(qe," \uB9E4\uAC1C\uBCC0\uC218\uAC00 \uC788\uC2B5\uB2C8\uB2E4. \uC601\uD654\uB098 1\uC2DC\uAC04 \uBD84\uB7C9\uC758 \uB3D9\uC601\uC0C1\uC758 \uC790\uB9C9 \uC791\uC5C5\uC744 \uD560 \uB54C\uCC98\uB7FC, \uC77C\uBC18\uC801\uC73C\uB85C \uBAA8\uB378\uC774 \uC790\uCCB4\uC801\uC73C\uB85C \uCC98\uB9AC\uD560 \uC218 \uC5C6\uB294 \uB9E4\uC6B0 \uAE34 \uC624\uB514\uC624 \uD30C\uC77C\uC744 \uCC98\uB9AC\uD560 \uB54C \uC720\uC6A9\uD558\uC8E0."),qe.forEach(e),tt=h(s),as=n(s,"P",{});var Ut=p(as);En=i(Ut,"\uB3C4\uC6C0\uC774 \uB420 \uB9CC\uD55C \uB9E4\uAC1C\uBCC0\uC218\uB97C \uCC3E\uC9C0 \uBABB\uD588\uB2E4\uBA74 \uC5B8\uC81C\uB4E0\uC9C0 "),Gs=n(Ut,"A",{href:!0,rel:!0});var hr=p(Gs);wn=i(hr,"\uC694\uCCAD"),hr.forEach(e),yn=i(Ut,"\uD574\uC8FC\uC138\uC694!"),Ut.forEach(e),lt=h(s),G=n(s,"H2",{class:!0});var Rt=p(G);ts=n(Rt,"A",{id:!0,class:!0,href:!0});var fr=p(ts);la=n(fr,"SPAN",{});var mr=p(la);u(Ms.$$.fragment,mr),mr.forEach(e),fr.forEach(e),Pn=h(Rt),na=n(Rt,"SPAN",{});var ur=p(na);kn=i(ur,"\uB370\uC774\uD130\uC138\uD2B8\uC5D0\uC11C Pipeline \uC0AC\uC6A9\uD558\uAE30"),ur.forEach(e),Rt.forEach(e),nt=h(s),de=n(s,"P",{});var gr=p(de);qn=i(gr,"\uD30C\uC774\uD504\uB77C\uC778\uC740 \uB300\uADDC\uBAA8 \uB370\uC774\uD130\uC138\uD2B8\uC5D0\uC11C\uB3C4 \uCD94\uB860 \uC791\uC5C5\uC744 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uC774\uB54C \uC774\uD130\uB808\uC774\uD130\uB97C \uC0AC\uC6A9\uD558\uB294 \uAC78 \uCD94\uCC9C\uB4DC\uB9BD\uB2C8\uB2E4."),gr.forEach(e),pt=h(s),u(Vs.$$.fragment,s),rt=h(s),O=n(s,"P",{});var Ae=p(O);An=i(Ae,"\uC774\uD130\uB808\uC774\uD130 "),pa=n(Ae,"CODE",{});var vr=p(pa);Nn=i(vr,"data()"),vr.forEach(e),Dn=i(Ae,"\uB294 \uAC01 \uACB0\uACFC\uB97C \uD638\uCD9C\uB9C8\uB2E4 \uC0DD\uC131\uD558\uACE0, \uD30C\uC774\uD504\uB77C\uC778\uC740 \uC785\uB825\uC774 \uC21C\uD68C\uD560 \uC218 \uC788\uB294 \uC790\uB8CC\uAD6C\uC870\uC784\uC744 \uC790\uB3D9\uC73C\uB85C \uC778\uC2DD\uD558\uC5EC GPU\uC5D0\uC11C \uAE30\uC874 \uB370\uC774\uD130\uAC00 \uCC98\uB9AC\uB418\uB294 \uB3D9\uC548 \uC0C8\uB85C\uC6B4 \uB370\uC774\uD130\uB97C \uAC00\uC838\uC624\uAE30 \uC2DC\uC791\uD569\uB2C8\uB2E4.(\uC774\uB54C \uB0B4\uBD80\uC801\uC73C\uB85C "),zs=n(Ae,"A",{href:!0,rel:!0});var jr=p(zs);In=i(jr,"DataLoader"),jr.forEach(e),Sn=i(Ae,"\uB97C \uC0AC\uC6A9\uD574\uC694.) \uC774 \uACFC\uC815\uC740 \uC804\uCCB4 \uB370\uC774\uD130\uC138\uD2B8\uB97C \uBA54\uBAA8\uB9AC\uC5D0 \uC801\uC7AC\uD558\uC9C0 \uC54A\uACE0\uB3C4 GPU\uC5D0 \uCD5C\uB300\uD55C \uBE60\uB974\uAC8C \uC0C8\uB85C\uC6B4 \uC791\uC5C5\uC744 \uACF5\uAE09\uD560 \uC218 \uC788\uAE30 \uB54C\uBB38\uC5D0 \uC911\uC694\uD569\uB2C8\uB2E4."),Ae.forEach(e),it=h(s),ls=n(s,"P",{});var Gt=p(ls);On=i(Gt,"\uADF8\uB9AC\uACE0 \uC77C\uAD04 \uCC98\uB9AC\uAC00 \uB354 \uBE60\uB97C \uC218 \uC788\uAE30 \uB54C\uBB38\uC5D0, "),ra=n(Gt,"CODE",{});var dr=p(ra);Tn=i(dr,"batch_size"),dr.forEach(e),Cn=i(Gt," \uB9E4\uAC1C\uBCC0\uC218\uB97C \uC870\uC815\uD574\uBD10\uB3C4 \uC88B\uC544\uC694."),Gt.forEach(e),ot=h(s),ns=n(s,"P",{});var Mt=p(ns);Hn=i(Mt,"\uB370\uC774\uD130\uC138\uD2B8\uB97C \uC21C\uD68C\uD558\uB294 \uAC00\uC7A5 \uAC04\uB2E8\uD55C \uBC29\uBC95\uC740 \u{1F917} "),Ks=n(Mt,"A",{href:!0,rel:!0});var xr=p(Ks);Ln=i(xr,"Datasets"),xr.forEach(e),Un=i(Mt,"\uB97C \uD65C\uC6A9\uD558\uB294 \uAC83\uC778\uB370\uC694."),Mt.forEach(e),ct=h(s),u(Bs.$$.fragment,s),ht=h(s),M=n(s,"H2",{class:!0});var Vt=p(M);ps=n(Vt,"A",{id:!0,class:!0,href:!0});var $r=p(ps);ia=n($r,"SPAN",{});var _r=p(ia);u(Ws.$$.fragment,_r),_r.forEach(e),$r.forEach(e),Rn=h(Vt),oa=n(Vt,"SPAN",{});var br=p(oa);Gn=i(br,"\uC6F9\uC11C\uBC84\uC5D0\uC11C Pipeline \uC0AC\uC6A9\uD558\uAE30"),br.forEach(e),Vt.forEach(e),ft=h(s),u(rs.$$.fragment,s),mt=h(s),xe=n(s,"P",{});var Er=p(xe);$e=n(Er,"A",{href:!0});var wr=p($e);Mn=i(wr,"Link"),wr.forEach(e),Er.forEach(e),ut=h(s),V=n(s,"H2",{class:!0});var zt=p(V);is=n(zt,"A",{id:!0,class:!0,href:!0});var yr=p(is);ca=n(yr,"SPAN",{});var Pr=p(ca);u(Fs.$$.fragment,Pr),Pr.forEach(e),yr.forEach(e),Vn=h(zt),ha=n(zt,"SPAN",{});var kr=p(ha);zn=i(kr,"\uBE44\uC804 Pipeline"),kr.forEach(e),zt.forEach(e),gt=h(s),os=n(s,"P",{});var Kt=p(os);Kn=i(Kt,"\uBE44\uC804 \uD0DC\uC2A4\uD06C\uB97C \uC704\uD574 "),fa=n(Kt,"CODE",{});var qr=p(fa);Bn=i(qr,"pipeline()"),qr.forEach(e),Wn=i(Kt,"\uC744 \uC0AC\uC6A9\uD558\uB294 \uC77C\uC740 \uAC70\uC758 \uB3D9\uC77C\uD569\uB2C8\uB2E4."),Kt.forEach(e),vt=h(s),_e=n(s,"P",{});var Ar=p(_e);Fn=i(Ar,"\uD0DC\uC2A4\uD06C\uB97C \uC9C0\uC815\uD558\uACE0 \uC774\uBBF8\uC9C0\uB97C \uBD84\uB958\uAE30\uC5D0 \uC804\uB2EC\uD558\uBA74 \uB429\uB2C8\uB2E4. \uC774\uBBF8\uC9C0\uB294 \uC778\uD130\uB137 \uB9C1\uD06C \uB610\uB294 \uB85C\uCEEC \uACBD\uB85C\uC758 \uD615\uD0DC\uB85C \uC804\uB2EC\uD574\uC8FC\uC138\uC694. \uC608\uB97C \uB4E4\uC5B4 \uC544\uB798\uC5D0 \uD45C\uC2DC\uB41C \uACE0\uC591\uC774\uB294 \uC5B4\uB5A4 \uC885\uC778\uAC00\uC694?"),Ar.forEach(e),jt=h(s),be=n(s,"P",{});var Nr=p(be);Ee=n(Nr,"IMG",{src:!0,alt:!0}),Nr.forEach(e),dt=h(s),u(Qs.$$.fragment,s),xt=h(s),z=n(s,"H3",{class:!0});var Bt=p(z);cs=n(Bt,"A",{id:!0,class:!0,href:!0});var Dr=p(cs);ma=n(Dr,"SPAN",{});var Ir=p(ma);u(Ys.$$.fragment,Ir),Ir.forEach(e),Dr.forEach(e),Qn=h(Bt),ua=n(Bt,"SPAN",{});var Sr=p(ua);Yn=i(Sr,"\uD14D\uC2A4\uD2B8 Pipeline"),Sr.forEach(e),Bt.forEach(e),$t=h(s),hs=n(s,"P",{});var Wt=p(hs);Jn=i(Wt,"NLP \uD0DC\uC2A4\uD06C\uB97C \uC704\uD574 "),ga=n(Wt,"CODE",{});var Or=p(ga);Xn=i(Or,"pipeline()"),Or.forEach(e),Zn=i(Wt,"\uC744 \uC0AC\uC6A9\uD558\uB294 \uC77C\uB3C4 \uAC70\uC758 \uB3D9\uC77C\uD569\uB2C8\uB2E4."),Wt.forEach(e),_t=h(s),u(Js.$$.fragment,s),bt=h(s),K=n(s,"H3",{class:!0});var Ft=p(K);fs=n(Ft,"A",{id:!0,class:!0,href:!0});var Tr=p(fs);va=n(Tr,"SPAN",{});var Cr=p(va);u(Xs.$$.fragment,Cr),Cr.forEach(e),Tr.forEach(e),sp=h(Ft),ja=n(Ft,"SPAN",{});var Hr=p(ja);ep=i(Hr,"\uBA40\uD2F0\uBAA8\uB2EC Pipeline"),Hr.forEach(e),Ft.forEach(e),Et=h(s),Zs=n(s,"P",{});var op=p(Zs);da=n(op,"CODE",{});var Lr=p(da);ap=i(Lr,"pipeline()"),Lr.forEach(e),tp=i(op,"\uC740 \uC5EC\uB7EC \uBAA8\uB2EC\uB9AC\uD2F0(\uC5ED\uC8FC: \uC624\uB514\uC624, \uBE44\uB514\uC624, \uD14D\uC2A4\uD2B8\uC640 \uAC19\uC740 \uB370\uC774\uD130 \uD615\uD0DC)\uB97C \uC9C0\uC6D0\uD569\uB2C8\uB2E4. \uC608\uC2DC\uB85C \uC2DC\uAC01\uC801 \uC9C8\uC758\uC751\uB2F5(VQA; Visual Question Answering) \uD0DC\uC2A4\uD06C\uB294 \uD14D\uC2A4\uD2B8\uC640 \uC774\uBBF8\uC9C0\uB97C \uBAA8\uB450 \uC0AC\uC6A9\uD569\uB2C8\uB2E4. \uADF8 \uC5B4\uB5A4 \uC774\uBBF8\uC9C0 \uB9C1\uD06C\uB098 \uBB3B\uACE0 \uC2F6\uC740 \uC9C8\uBB38\uB3C4 \uC790\uC720\uB86D\uAC8C \uC804\uB2EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uC774\uBBF8\uC9C0\uB294 URL \uB610\uB294 \uB85C\uCEEC \uACBD\uB85C\uC758 \uD615\uD0DC\uB85C \uC804\uB2EC\uD574\uC8FC\uC138\uC694."),op.forEach(e),wt=h(s),ms=n(s,"P",{});var Qt=p(ms);lp=i(Qt,"\uC608\uB97C \uB4E4\uC5B4 \uC774 "),se=n(Qt,"A",{href:!0,rel:!0});var Ur=p(se);np=i(Ur,"\uAC70\uB798\uBA85\uC138\uC11C \uC0AC\uC9C4"),Ur.forEach(e),pp=i(Qt,"\uC5D0\uC11C \uAC70\uB798\uBA85\uC138\uC11C \uBC88\uD638\uB97C \uBB3B\uACE0 \uC2F6\uB2E4\uBA74,"),Qt.forEach(e),yt=h(s),u(ee.$$.fragment,s),this.h()},h(){f(x,"name","hf:doc:metadata"),f(x,"content",JSON.stringify(Yr)),f(w,"id","pipelines-for-inference"),f(w,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),f(w,"href","#pipelines-for-inference"),f($,"class","relative group"),f(gs,"href","https://huggingface.co/models"),f(gs,"rel","nofollow"),f(F,"id","pipeline-usage"),f(F,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),f(F,"href","#pipeline-usage"),f(C,"class","relative group"),f(_s,"start","2"),f(ws,"href","https://huggingface.co/models?pipeline_tag=automatic-speech-recognition&sort=downloads"),f(ws,"rel","nofollow"),f(ys,"href","https://huggingface.co/openai/whisper-large"),f(ys,"rel","nofollow"),f(pe,"href","training"),f(ce,"href","#using-pipelines-on-a-dataset"),f(fe,"href","./pipeline_webserver"),f(Y,"id","parameters"),f(Y,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),f(Y,"href","#parameters"),f(H,"class","relative group"),f(J,"id","device"),f(J,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),f(J,"href","#device"),f(L,"class","relative group"),f(Os,"href","https://huggingface.co/docs/accelerate"),f(Os,"rel","nofollow"),f(X,"id","batch-size"),f(X,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),f(X,"href","#batch-size"),f(U,"class","relative group"),f(Hs,"href","https://huggingface.co/docs/transformers/main_classes/pipelines#pipeline-batching"),f(Hs,"rel","nofollow"),f(ve,"href","./main_classes/pipelines#pipeline-chunk-batching"),f(es,"id","task-specific-parameters"),f(es,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),f(es,"href","#task-specific-parameters"),f(R,"class","relative group"),f(Gs,"href","https://github.com/huggingface/transformers/issues/new?assignees=&labels=feature&template=feature-request.yml"),f(Gs,"rel","nofollow"),f(ts,"id","using-pipelines-on-a-dataset"),f(ts,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),f(ts,"href","#using-pipelines-on-a-dataset"),f(G,"class","relative group"),f(zs,"href","https://pytorch.org/docs/stable/data.html#torch.utils.data.DataLoader"),f(zs,"rel","nofollow"),f(Ks,"href","https://github.com/huggingface/datasets/"),f(Ks,"rel","nofollow"),f(ps,"id","using-pipelines-for-a-webserver"),f(ps,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),f(ps,"href","#using-pipelines-for-a-webserver"),f(M,"class","relative group"),f($e,"href","./pipeline_webserver"),f(is,"id","vision-pipeline"),f(is,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),f(is,"href","#vision-pipeline"),f(V,"class","relative group"),Kr(Ee.src,cp="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/pipeline-cat-chonk.jpeg")||f(Ee,"src",cp),f(Ee,"alt","pipeline-cat-chonk"),f(cs,"id","text-pipeline"),f(cs,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),f(cs,"href","#text-pipeline"),f(z,"class","relative group"),f(fs,"id","multimodal-pipeline"),f(fs,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),f(fs,"href","#multimodal-pipeline"),f(K,"class","relative group"),f(se,"href","https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/invoice.png"),f(se,"rel","nofollow")},m(s,t){a(document.head,x),o(s,_,t),o(s,$,t),a($,w),a(w,T),g(E,T,null),a($,q),a($,B),a(B,Yt),o(s,$a,t),o(s,P,t),a(P,Ne),a(Ne,Jt),a(P,Xt),a(P,gs),a(gs,Zt),a(P,sl),a(P,De),a(De,el),a(P,al),o(s,_a,t),o(s,A,t),a(A,vs),a(vs,tl),a(vs,Ie),a(Ie,ll),a(vs,nl),a(A,pl),a(A,Se),a(Se,rl),a(A,il),a(A,js),a(js,ol),a(js,Oe),a(Oe,cl),a(js,hl),o(s,ba,t),g(W,s,t),o(s,Ea,t),o(s,C,t),a(C,F),a(F,Te),g(ds,Te,null),a(C,fl),a(C,Ce),a(Ce,ml),o(s,wa,t),o(s,y,t),a(y,ul),a(y,He),a(He,gl),a(y,vl),a(y,Le),a(Le,jl),a(y,dl),a(y,Ue),a(Ue,xl),a(y,$l),o(s,ya,t),o(s,ne,t),a(ne,xs),a(xs,_l),a(xs,Re),a(Re,bl),a(xs,El),o(s,Pa,t),g($s,s,t),o(s,ka,t),o(s,_s,t),a(_s,bs),a(bs,wl),a(bs,Ge),a(Ge,yl),a(bs,Pl),o(s,qa,t),g(Es,s,t),o(s,Aa,t),o(s,N,t),a(N,kl),a(N,ws),a(ws,ql),a(N,Al),a(N,ys),a(ys,Nl),a(N,Dl),o(s,Na,t),g(Ps,s,t),o(s,Da,t),o(s,Q,t),a(Q,Il),a(Q,pe),a(pe,Sl),a(Q,Ol),o(s,Ia,t),o(s,re,t),a(re,Tl),o(s,Sa,t),g(ks,s,t),o(s,Oa,t),o(s,ie,t),a(ie,Cl),o(s,Ta,t),o(s,oe,t),a(oe,ce),a(ce,Hl),o(s,Ca,t),o(s,he,t),a(he,fe),a(fe,Ll),o(s,Ha,t),o(s,H,t),a(H,Y),a(Y,Me),g(qs,Me,null),a(H,Ul),a(H,Ve),a(Ve,Rl),o(s,La,t),o(s,As,t),a(As,ze),a(ze,Gl),a(As,Ml),o(s,Ua,t),g(Ns,s,t),o(s,Ra,t),o(s,me,t),a(me,Vl),o(s,Ga,t),o(s,L,t),a(L,J),a(J,Ke),g(Ds,Ke,null),a(L,zl),a(L,Be),a(Be,Kl),o(s,Ma,t),o(s,Is,t),a(Is,We),a(We,Bl),a(Is,Wl),o(s,Va,t),g(Ss,s,t),o(s,za,t),o(s,D,t),a(D,Fl),a(D,Fe),a(Fe,Ql),a(D,Yl),a(D,Os),a(Os,Jl),a(D,Xl),o(s,Ka,t),g(Ts,s,t),o(s,Ba,t),o(s,U,t),a(U,X),a(X,Qe),g(Cs,Qe,null),a(U,Zl),a(U,Ye),a(Ye,sn),o(s,Wa,t),o(s,Z,t),a(Z,en),a(Z,Hs),a(Hs,an),a(Z,tn),o(s,Fa,t),o(s,ue,t),a(ue,ln),o(s,Qa,t),g(Ls,s,t),o(s,Ya,t),o(s,ge,t),a(ge,nn),o(s,Ja,t),o(s,ss,t),a(ss,pn),a(ss,ve),a(ve,Je),a(Je,rn),a(ss,on),o(s,Xa,t),o(s,R,t),a(R,es),a(es,Xe),g(Us,Xe,null),a(R,cn),a(R,Ze),a(Ze,hn),o(s,Za,t),o(s,I,t),a(I,fn),a(I,sa),a(sa,mn),a(I,un),a(I,ea),a(ea,gn),a(I,vn),o(s,st,t),g(Rs,s,t),o(s,et,t),o(s,je,t),a(je,jn),o(s,at,t),o(s,S,t),a(S,dn),a(S,aa),a(aa,xn),a(S,$n),a(S,ta),a(ta,_n),a(S,bn),o(s,tt,t),o(s,as,t),a(as,En),a(as,Gs),a(Gs,wn),a(as,yn),o(s,lt,t),o(s,G,t),a(G,ts),a(ts,la),g(Ms,la,null),a(G,Pn),a(G,na),a(na,kn),o(s,nt,t),o(s,de,t),a(de,qn),o(s,pt,t),g(Vs,s,t),o(s,rt,t),o(s,O,t),a(O,An),a(O,pa),a(pa,Nn),a(O,Dn),a(O,zs),a(zs,In),a(O,Sn),o(s,it,t),o(s,ls,t),a(ls,On),a(ls,ra),a(ra,Tn),a(ls,Cn),o(s,ot,t),o(s,ns,t),a(ns,Hn),a(ns,Ks),a(Ks,Ln),a(ns,Un),o(s,ct,t),g(Bs,s,t),o(s,ht,t),o(s,M,t),a(M,ps),a(ps,ia),g(Ws,ia,null),a(M,Rn),a(M,oa),a(oa,Gn),o(s,ft,t),g(rs,s,t),o(s,mt,t),o(s,xe,t),a(xe,$e),a($e,Mn),o(s,ut,t),o(s,V,t),a(V,is),a(is,ca),g(Fs,ca,null),a(V,Vn),a(V,ha),a(ha,zn),o(s,gt,t),o(s,os,t),a(os,Kn),a(os,fa),a(fa,Bn),a(os,Wn),o(s,vt,t),o(s,_e,t),a(_e,Fn),o(s,jt,t),o(s,be,t),a(be,Ee),o(s,dt,t),g(Qs,s,t),o(s,xt,t),o(s,z,t),a(z,cs),a(cs,ma),g(Ys,ma,null),a(z,Qn),a(z,ua),a(ua,Yn),o(s,$t,t),o(s,hs,t),a(hs,Jn),a(hs,ga),a(ga,Xn),a(hs,Zn),o(s,_t,t),g(Js,s,t),o(s,bt,t),o(s,K,t),a(K,fs),a(fs,va),g(Xs,va,null),a(K,sp),a(K,ja),a(ja,ep),o(s,Et,t),o(s,Zs,t),a(Zs,da),a(da,ap),a(Zs,tp),o(s,wt,t),o(s,ms,t),a(ms,lp),a(ms,se),a(se,np),a(ms,pp),o(s,yt,t),g(ee,s,t),Pt=!0},p(s,[t]){const ae={};t&2&&(ae.$$scope={dirty:t,ctx:s}),W.$set(ae);const xa={};t&2&&(xa.$$scope={dirty:t,ctx:s}),rs.$set(xa)},i(s){Pt||(v(E.$$.fragment,s),v(W.$$.fragment,s),v(ds.$$.fragment,s),v($s.$$.fragment,s),v(Es.$$.fragment,s),v(Ps.$$.fragment,s),v(ks.$$.fragment,s),v(qs.$$.fragment,s),v(Ns.$$.fragment,s),v(Ds.$$.fragment,s),v(Ss.$$.fragment,s),v(Ts.$$.fragment,s),v(Cs.$$.fragment,s),v(Ls.$$.fragment,s),v(Us.$$.fragment,s),v(Rs.$$.fragment,s),v(Ms.$$.fragment,s),v(Vs.$$.fragment,s),v(Bs.$$.fragment,s),v(Ws.$$.fragment,s),v(rs.$$.fragment,s),v(Fs.$$.fragment,s),v(Qs.$$.fragment,s),v(Ys.$$.fragment,s),v(Js.$$.fragment,s),v(Xs.$$.fragment,s),v(ee.$$.fragment,s),Pt=!0)},o(s){j(E.$$.fragment,s),j(W.$$.fragment,s),j(ds.$$.fragment,s),j($s.$$.fragment,s),j(Es.$$.fragment,s),j(Ps.$$.fragment,s),j(ks.$$.fragment,s),j(qs.$$.fragment,s),j(Ns.$$.fragment,s),j(Ds.$$.fragment,s),j(Ss.$$.fragment,s),j(Ts.$$.fragment,s),j(Cs.$$.fragment,s),j(Ls.$$.fragment,s),j(Us.$$.fragment,s),j(Rs.$$.fragment,s),j(Ms.$$.fragment,s),j(Vs.$$.fragment,s),j(Bs.$$.fragment,s),j(Ws.$$.fragment,s),j(rs.$$.fragment,s),j(Fs.$$.fragment,s),j(Qs.$$.fragment,s),j(Ys.$$.fragment,s),j(Js.$$.fragment,s),j(Xs.$$.fragment,s),j(ee.$$.fragment,s),Pt=!1},d(s){e(x),s&&e(_),s&&e($),d(E),s&&e($a),s&&e(P),s&&e(_a),s&&e(A),s&&e(ba),d(W,s),s&&e(Ea),s&&e(C),d(ds),s&&e(wa),s&&e(y),s&&e(ya),s&&e(ne),s&&e(Pa),d($s,s),s&&e(ka),s&&e(_s),s&&e(qa),d(Es,s),s&&e(Aa),s&&e(N),s&&e(Na),d(Ps,s),s&&e(Da),s&&e(Q),s&&e(Ia),s&&e(re),s&&e(Sa),d(ks,s),s&&e(Oa),s&&e(ie),s&&e(Ta),s&&e(oe),s&&e(Ca),s&&e(he),s&&e(Ha),s&&e(H),d(qs),s&&e(La),s&&e(As),s&&e(Ua),d(Ns,s),s&&e(Ra),s&&e(me),s&&e(Ga),s&&e(L),d(Ds),s&&e(Ma),s&&e(Is),s&&e(Va),d(Ss,s),s&&e(za),s&&e(D),s&&e(Ka),d(Ts,s),s&&e(Ba),s&&e(U),d(Cs),s&&e(Wa),s&&e(Z),s&&e(Fa),s&&e(ue),s&&e(Qa),d(Ls,s),s&&e(Ya),s&&e(ge),s&&e(Ja),s&&e(ss),s&&e(Xa),s&&e(R),d(Us),s&&e(Za),s&&e(I),s&&e(st),d(Rs,s),s&&e(et),s&&e(je),s&&e(at),s&&e(S),s&&e(tt),s&&e(as),s&&e(lt),s&&e(G),d(Ms),s&&e(nt),s&&e(de),s&&e(pt),d(Vs,s),s&&e(rt),s&&e(O),s&&e(it),s&&e(ls),s&&e(ot),s&&e(ns),s&&e(ct),d(Bs,s),s&&e(ht),s&&e(M),d(Ws),s&&e(ft),d(rs,s),s&&e(mt),s&&e(xe),s&&e(ut),s&&e(V),d(Fs),s&&e(gt),s&&e(os),s&&e(vt),s&&e(_e),s&&e(jt),s&&e(be),s&&e(dt),d(Qs,s),s&&e(xt),s&&e(z),d(Ys),s&&e($t),s&&e(hs),s&&e(_t),d(Js,s),s&&e(bt),s&&e(K),d(Xs),s&&e(Et),s&&e(Zs),s&&e(wt),s&&e(ms),s&&e(yt),d(ee,s)}}}const Yr={local:"pipelines-for-inference",sections:[{local:"pipeline-usage",title:"Pipeline \uC0AC\uC6A9\uD558\uAE30"},{local:"parameters",sections:[{local:"device",title:"\uAE30\uAE30(device)"},{local:"batch-size",title:"\uBC30\uCE58 \uC0AC\uC774\uC988"},{local:"task-specific-parameters",title:"\uD2B9\uC815 \uD0DC\uC2A4\uD06C\uC6A9 \uB9E4\uAC1C\uBCC0\uC218"}],title:"\uB9E4\uAC1C\uBCC0\uC218"},{local:"using-pipelines-on-a-dataset",title:"\uB370\uC774\uD130\uC138\uD2B8\uC5D0\uC11C Pipeline \uC0AC\uC6A9\uD558\uAE30"},{local:"using-pipelines-for-a-webserver",title:"\uC6F9\uC11C\uBC84\uC5D0\uC11C Pipeline \uC0AC\uC6A9\uD558\uAE30"},{local:"vision-pipeline",sections:[{local:"text-pipeline",title:"\uD14D\uC2A4\uD2B8 Pipeline"},{local:"multimodal-pipeline",title:"\uBA40\uD2F0\uBAA8\uB2EC Pipeline"}],title:"\uBE44\uC804 Pipeline"}],title:"\uCD94\uB860\uC744 \uC704\uD55C Pipeline"};function Jr(le){return Br(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ai extends Gr{constructor(x){super();Mr(this,x,Jr,Qr,Vr,{})}}export{ai as default,Yr as metadata};
