import{S as So,i as Po,s as go,e as p,k as i,w as j,t,M as Do,c as o,d as e,m as M,a as n,x as f,h as a,b as d,G as l,g as c,y as J,L as xo,q as m,o as w,B as u,v as Oo}from"../chunks/vendor-hf-doc-builder.js";import{I as Se}from"../chunks/IconCopyLink-hf-doc-builder.js";import{C as V}from"../chunks/CodeBlock-hf-doc-builder.js";function Lo(bp){let N,Dl,R,F,Vs,rs,Pe,Ns,ge,xl,Y,De,Is,xe,Oe,Ol,k,Le,Rs,Ke,st,Gs,lt,et,Ll,h,tt,Ws,at,pt,Xs,ot,nt,qs,rt,ct,Kl,y,it,$s,Mt,dt,Qs,yt,jt,zs,ft,Jt,Fs,mt,wt,Ys,ut,Tt,se,cs,le,bs,ht,ee,G,Hs,_t,Ut,Ss,Et,It,te,C,Ps,bt,Ct,gs,Bt,vt,Ds,kt,Zt,ae,W,xs,At,Vt,Os,Nt,Rt,pe,B,Ls,Gt,Wt,Ks,Xt,qt,sl,$t,Qt,oe,T,ll,zt,Ft,el,Yt,Ht,tl,St,Pt,al,gt,Dt,ne,H,xt,pl,Ot,Lt,re,is,ce,_,Kt,ol,sa,la,nl,ea,ta,rl,aa,pa,ie,Ms,Me,Cs,oa,de,X,S,cl,ds,na,il,ra,ye,q,Ml,ca,ia,dl,Ma,da,je,ys,fe,Bs,ya,Je,js,me,$,P,yl,fs,ja,jl,fa,we,g,Ja,fl,ma,wa,ue,Js,Te,D,ua,Jl,Ta,ha,he,ms,_e,x,_a,ml,Ua,Ea,Ue,ws,Ee,Z,Ia,wl,ba,Ca,ul,Ba,va,Ie,us,be,U,ka,Tl,Za,Aa,hl,Va,Na,_l,Ra,Ga,Ce,Ts,Be,Q,O,Ul,hs,Wa,El,Xa,ve,A,qa,Il,$a,Qa,bl,za,Fa,ke,L,Ya,Cl,Ha,Sa,Ze,v,Bl,Pa,ga,vl,Da,xa,kl,Oa,La,Ae,E,Ka,Zl,sp,lp,Al,ep,tp,Vl,ap,pp,Ve,vs,op,Ne,I,K,Nl,np,rp,Rl,cp,ip,Mp,ss,Gl,dp,yp,Wl,jp,fp,Jp,ls,Xl,mp,wp,ql,up,Tp,hp,es,$l,_p,Up,Ql,Ep,Ip,Re;return rs=new Se({}),cs=new V({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFBpcGVsaW5lJTBBJTBBJTBBY2xhc3MlMjBNeVBpcGVsaW5lKFBpcGVsaW5lKSUzQSUwQSUyMCUyMCUyMCUyMGRlZiUyMF9zYW5pdGl6ZV9wYXJhbWV0ZXJzKHNlbGYlMkMlMjAqKmt3YXJncyklM0ElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBwcmVwcm9jZXNzX2t3YXJncyUyMCUzRCUyMCU3QiU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGlmJTIwJTIybWF5YmVfYXJnJTIyJTIwaW4lMjBrd2FyZ3MlM0ElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBwcmVwcm9jZXNzX2t3YXJncyU1QiUyMm1heWJlX2FyZyUyMiU1RCUyMCUzRCUyMGt3YXJncyU1QiUyMm1heWJlX2FyZyUyMiU1RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHJldHVybiUyMHByZXByb2Nlc3Nfa3dhcmdzJTJDJTIwJTdCJTdEJTJDJTIwJTdCJTdEJTBBJTBBJTIwJTIwJTIwJTIwZGVmJTIwcHJlcHJvY2VzcyhzZWxmJTJDJTIwaW5wdXRzJTJDJTIwbWF5YmVfYXJnJTNEMiklM0ElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBtb2RlbF9pbnB1dCUyMCUzRCUyMFRlbnNvcihpbnB1dHMlNUIlMjJpbnB1dF9pZHMlMjIlNUQpJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcmV0dXJuJTIwJTdCJTIybW9kZWxfaW5wdXQlMjIlM0ElMjBtb2RlbF9pbnB1dCU3RCUwQSUwQSUyMCUyMCUyMCUyMGRlZiUyMF9mb3J3YXJkKHNlbGYlMkMlMjBtb2RlbF9pbnB1dHMpJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIzJTIwbW9kZWxfaW5wdXRzJTIwJTNEJTNEJTIwJTdCJTIybW9kZWxfaW5wdXQlMjIlM0ElMjBtb2RlbF9pbnB1dCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMG91dHB1dHMlMjAlM0QlMjBzZWxmLm1vZGVsKCoqbW9kZWxfaW5wdXRzKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMyUyME1heWJlJTIwJTdCJTIybG9naXRzJTIyJTNBJTIwVGVuc29yKC4uLiklN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjByZXR1cm4lMjBvdXRwdXRzJTBBJTBBJTIwJTIwJTIwJTIwZGVmJTIwcG9zdHByb2Nlc3Moc2VsZiUyQyUyMG1vZGVsX291dHB1dHMpJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwYmVzdF9jbGFzcyUyMCUzRCUyMG1vZGVsX291dHB1dHMlNUIlMjJsb2dpdHMlMjIlNUQuc29mdG1heCgtMSklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjByZXR1cm4lMjBiZXN0X2NsYXNz",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> Pipeline


<span class="hljs-keyword">class</span> <span class="hljs-title class_">MyPipeline</span>(<span class="hljs-title class_ inherited__">Pipeline</span>):
    <span class="hljs-keyword">def</span> <span class="hljs-title function_">_sanitize_parameters</span>(<span class="hljs-params">self, **kwargs</span>):
        preprocess_kwargs = {}
        <span class="hljs-keyword">if</span> <span class="hljs-string">&quot;maybe_arg&quot;</span> <span class="hljs-keyword">in</span> kwargs:
            preprocess_kwargs[<span class="hljs-string">&quot;maybe_arg&quot;</span>] = kwargs[<span class="hljs-string">&quot;maybe_arg&quot;</span>]
        <span class="hljs-keyword">return</span> preprocess_kwargs, {}, {}

    <span class="hljs-keyword">def</span> <span class="hljs-title function_">preprocess</span>(<span class="hljs-params">self, inputs, maybe_arg=<span class="hljs-number">2</span></span>):
        model_input = Tensor(inputs[<span class="hljs-string">&quot;input_ids&quot;</span>])
        <span class="hljs-keyword">return</span> {<span class="hljs-string">&quot;model_input&quot;</span>: model_input}

    <span class="hljs-keyword">def</span> <span class="hljs-title function_">_forward</span>(<span class="hljs-params">self, model_inputs</span>):
        <span class="hljs-comment"># model_inputs == {&quot;model_input&quot;: model_input}</span>
        outputs = self.model(**model_inputs)
        <span class="hljs-comment"># Maybe {&quot;logits&quot;: Tensor(...)}</span>
        <span class="hljs-keyword">return</span> outputs

    <span class="hljs-keyword">def</span> <span class="hljs-title function_">postprocess</span>(<span class="hljs-params">self, model_outputs</span>):
        best_class = model_outputs[<span class="hljs-string">&quot;logits&quot;</span>].softmax(-<span class="hljs-number">1</span>)
        <span class="hljs-keyword">return</span> best_class`}}),is=new V({props:{code:"cGlwZSUyMCUzRCUyMHBpcGVsaW5lKCUyMm15LW5ldy10YXNrJTIyKSUwQXBpcGUoJTIyVGhpcyUyMGlzJTIwYSUyMHRlc3QlMjIpJTBBJTBBcGlwZSglMjJUaGlzJTIwaXMlMjBhJTIwdGVzdCUyMiUyQyUyMHRvcF9rJTNEMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(<span class="hljs-string">&quot;my-new-task&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe(<span class="hljs-string">&quot;This is a test&quot;</span>)
[{<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;1-star&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.8</span>}, {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;2-star&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.1</span>}, {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;3-star&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.05</span>}
{<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;4-star&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.025</span>}, {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;5-star&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.025</span>}]

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe(<span class="hljs-string">&quot;This is a test&quot;</span>, top_k=<span class="hljs-number">2</span>)
[{<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;1-star&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.8</span>}, {<span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;2-star&quot;</span>, <span class="hljs-string">&quot;score&quot;</span>: <span class="hljs-number">0.1</span>}]`}}),Ms=new V({props:{code:"ZGVmJTIwcG9zdHByb2Nlc3Moc2VsZiUyQyUyMG1vZGVsX291dHB1dHMlMkMlMjB0b3BfayUzRDUpJTNBJTBBJTIwJTIwJTIwJTIwYmVzdF9jbGFzcyUyMCUzRCUyMG1vZGVsX291dHB1dHMlNUIlMjJsb2dpdHMlMjIlNUQuc29mdG1heCgtMSklMEElMjAlMjAlMjAlMjAlMjMlMjB0b3BfayVFQiVBNSVCQyUyMCVFQyVCMiU5OCVFQiVBNiVBQyVFRCU5NSU5OCVFQiU4QSU5NCUyMCVFQiVBMSU5QyVFQyVBNyU4MSUyMCVFQyVCNiU5NCVFQSVCMCU4MCUwQSUyMCUyMCUyMCUyMHJldHVybiUyMGJlc3RfY2xhc3MlMEElMEElMEFkZWYlMjBfc2FuaXRpemVfcGFyYW1ldGVycyhzZWxmJTJDJTIwKiprd2FyZ3MpJTNBJTBBJTIwJTIwJTIwJTIwcHJlcHJvY2Vzc19rd2FyZ3MlMjAlM0QlMjAlN0IlN0QlMEElMjAlMjAlMjAlMjBpZiUyMCUyMm1heWJlX2FyZyUyMiUyMGluJTIwa3dhcmdzJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcHJlcHJvY2Vzc19rd2FyZ3MlNUIlMjJtYXliZV9hcmclMjIlNUQlMjAlM0QlMjBrd2FyZ3MlNUIlMjJtYXliZV9hcmclMjIlNUQlMEElMEElMjAlMjAlMjAlMjBwb3N0cHJvY2Vzc19rd2FyZ3MlMjAlM0QlMjAlN0IlN0QlMEElMjAlMjAlMjAlMjBpZiUyMCUyMnRvcF9rJTIyJTIwaW4lMjBrd2FyZ3MlM0ElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBwb3N0cHJvY2Vzc19rd2FyZ3MlNUIlMjJ0b3BfayUyMiU1RCUyMCUzRCUyMGt3YXJncyU1QiUyMnRvcF9rJTIyJTVEJTBBJTIwJTIwJTIwJTIwcmV0dXJuJTIwcHJlcHJvY2Vzc19rd2FyZ3MlMkMlMjAlN0IlN0QlMkMlMjBwb3N0cHJvY2Vzc19rd2FyZ3M=",highlighted:`<span class="hljs-keyword">def</span> <span class="hljs-title function_">postprocess</span>(<span class="hljs-params">self, model_outputs, top_k=<span class="hljs-number">5</span></span>):
    best_class = model_outputs[<span class="hljs-string">&quot;logits&quot;</span>].softmax(-<span class="hljs-number">1</span>)
    <span class="hljs-comment"># top_k\uB97C \uCC98\uB9AC\uD558\uB294 \uB85C\uC9C1 \uCD94\uAC00</span>
    <span class="hljs-keyword">return</span> best_class


<span class="hljs-keyword">def</span> <span class="hljs-title function_">_sanitize_parameters</span>(<span class="hljs-params">self, **kwargs</span>):
    preprocess_kwargs = {}
    <span class="hljs-keyword">if</span> <span class="hljs-string">&quot;maybe_arg&quot;</span> <span class="hljs-keyword">in</span> kwargs:
        preprocess_kwargs[<span class="hljs-string">&quot;maybe_arg&quot;</span>] = kwargs[<span class="hljs-string">&quot;maybe_arg&quot;</span>]

    postprocess_kwargs = {}
    <span class="hljs-keyword">if</span> <span class="hljs-string">&quot;top_k&quot;</span> <span class="hljs-keyword">in</span> kwargs:
        postprocess_kwargs[<span class="hljs-string">&quot;top_k&quot;</span>] = kwargs[<span class="hljs-string">&quot;top_k&quot;</span>]
    <span class="hljs-keyword">return</span> preprocess_kwargs, {}, postprocess_kwargs`}}),ds=new Se({}),ys=new V({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy5waXBlbGluZXMlMjBpbXBvcnQlMjBQSVBFTElORV9SRUdJU1RSWSUwQSUwQVBJUEVMSU5FX1JFR0lTVFJZLnJlZ2lzdGVyX3BpcGVsaW5lKCUwQSUyMCUyMCUyMCUyMCUyMm5ldy10YXNrJTIyJTJDJTBBJTIwJTIwJTIwJTIwcGlwZWxpbmVfY2xhc3MlM0RNeVBpcGVsaW5lJTJDJTBBJTIwJTIwJTIwJTIwcHRfbW9kZWwlM0RBdXRvTW9kZWxGb3JTZXF1ZW5jZUNsYXNzaWZpY2F0aW9uJTJDJTBBKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers.pipelines <span class="hljs-keyword">import</span> PIPELINE_REGISTRY

PIPELINE_REGISTRY.register_pipeline(
    <span class="hljs-string">&quot;new-task&quot;</span>,
    pipeline_class=MyPipeline,
    pt_model=AutoModelForSequenceClassification,
)`}}),js=new V({props:{code:"UElQRUxJTkVfUkVHSVNUUlkucmVnaXN0ZXJfcGlwZWxpbmUoJTBBJTIwJTIwJTIwJTIwJTIybmV3LXRhc2slMjIlMkMlMEElMjAlMjAlMjAlMjBwaXBlbGluZV9jbGFzcyUzRE15UGlwZWxpbmUlMkMlMEElMjAlMjAlMjAlMjBwdF9tb2RlbCUzREF1dG9Nb2RlbEZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24lMkMlMEElMjAlMjAlMjAlMjBkZWZhdWx0JTNEJTdCJTIycHQlMjIlM0ElMjAoJTIydXNlciUyRmF3ZXNvbWVfbW9kZWwlMjIlMkMlMjAlMjJhYmNkZWYlMjIpJTdEJTJDJTBBJTIwJTIwJTIwJTIwdHlwZSUzRCUyMnRleHQlMjIlMkMlMjAlMjAlMjMlMjAlRUQlOTglODQlRUMlOUUlQUMlMjAlRUMlQTclODAlRUMlOUIlOTAlMjAlRUMlOUMlQTAlRUQlOTglOTUlM0ElMjB0ZXh0JTJDJTIwYXVkaW8lMkMlMjBpbWFnZSUyQyUyMG11bHRpbW9kYWwlMEEp",highlighted:`PIPELINE_REGISTRY.register_pipeline(
    <span class="hljs-string">&quot;new-task&quot;</span>,
    pipeline_class=MyPipeline,
    pt_model=AutoModelForSequenceClassification,
    default={<span class="hljs-string">&quot;pt&quot;</span>: (<span class="hljs-string">&quot;user/awesome_model&quot;</span>, <span class="hljs-string">&quot;abcdef&quot;</span>)},
    <span class="hljs-built_in">type</span>=<span class="hljs-string">&quot;text&quot;</span>,  <span class="hljs-comment"># \uD604\uC7AC \uC9C0\uC6D0 \uC720\uD615: text, audio, image, multimodal</span>
)`}}),fs=new Se({}),Js=new V({props:{code:"aW1wb3J0JTIwbnVtcHklMjBhcyUyMG5wJTBBJTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFBpcGVsaW5lJTBBJTBBJTBBZGVmJTIwc29mdG1heChvdXRwdXRzKSUzQSUwQSUyMCUyMCUyMCUyMG1heGVzJTIwJTNEJTIwbnAubWF4KG91dHB1dHMlMkMlMjBheGlzJTNELTElMkMlMjBrZWVwZGltcyUzRFRydWUpJTBBJTIwJTIwJTIwJTIwc2hpZnRlZF9leHAlMjAlM0QlMjBucC5leHAob3V0cHV0cyUyMC0lMjBtYXhlcyklMEElMjAlMjAlMjAlMjByZXR1cm4lMjBzaGlmdGVkX2V4cCUyMCUyRiUyMHNoaWZ0ZWRfZXhwLnN1bShheGlzJTNELTElMkMlMjBrZWVwZGltcyUzRFRydWUpJTBBJTBBJTBBY2xhc3MlMjBQYWlyQ2xhc3NpZmljYXRpb25QaXBlbGluZShQaXBlbGluZSklM0ElMEElMjAlMjAlMjAlMjBkZWYlMjBfc2FuaXRpemVfcGFyYW1ldGVycyhzZWxmJTJDJTIwKiprd2FyZ3MpJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcHJlcHJvY2Vzc19rd2FyZ3MlMjAlM0QlMjAlN0IlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBpZiUyMCUyMnNlY29uZF90ZXh0JTIyJTIwaW4lMjBrd2FyZ3MlM0ElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBwcmVwcm9jZXNzX2t3YXJncyU1QiUyMnNlY29uZF90ZXh0JTIyJTVEJTIwJTNEJTIwa3dhcmdzJTVCJTIyc2Vjb25kX3RleHQlMjIlNUQlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjByZXR1cm4lMjBwcmVwcm9jZXNzX2t3YXJncyUyQyUyMCU3QiU3RCUyQyUyMCU3QiU3RCUwQSUwQSUyMCUyMCUyMCUyMGRlZiUyMHByZXByb2Nlc3Moc2VsZiUyQyUyMHRleHQlMkMlMjBzZWNvbmRfdGV4dCUzRE5vbmUpJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcmV0dXJuJTIwc2VsZi50b2tlbml6ZXIodGV4dCUyQyUyMHRleHRfcGFpciUzRHNlY29uZF90ZXh0JTJDJTIwcmV0dXJuX3RlbnNvcnMlM0RzZWxmLmZyYW1ld29yayklMEElMEElMjAlMjAlMjAlMjBkZWYlMjBfZm9yd2FyZChzZWxmJTJDJTIwbW9kZWxfaW5wdXRzKSUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHJldHVybiUyMHNlbGYubW9kZWwoKiptb2RlbF9pbnB1dHMpJTBBJTBBJTIwJTIwJTIwJTIwZGVmJTIwcG9zdHByb2Nlc3Moc2VsZiUyQyUyMG1vZGVsX291dHB1dHMpJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwbG9naXRzJTIwJTNEJTIwbW9kZWxfb3V0cHV0cy5sb2dpdHMlNUIwJTVELm51bXB5KCklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBwcm9iYWJpbGl0aWVzJTIwJTNEJTIwc29mdG1heChsb2dpdHMpJTBBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwYmVzdF9jbGFzcyUyMCUzRCUyMG5wLmFyZ21heChwcm9iYWJpbGl0aWVzKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGxhYmVsJTIwJTNEJTIwc2VsZi5tb2RlbC5jb25maWcuaWQybGFiZWwlNUJiZXN0X2NsYXNzJTVEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwc2NvcmUlMjAlM0QlMjBwcm9iYWJpbGl0aWVzJTVCYmVzdF9jbGFzcyU1RC5pdGVtKCklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBsb2dpdHMlMjAlM0QlMjBsb2dpdHMudG9saXN0KCklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjByZXR1cm4lMjAlN0IlMjJsYWJlbCUyMiUzQSUyMGxhYmVsJTJDJTIwJTIyc2NvcmUlMjIlM0ElMjBzY29yZSUyQyUyMCUyMmxvZ2l0cyUyMiUzQSUyMGxvZ2l0cyU3RA==",highlighted:`<span class="hljs-keyword">import</span> numpy <span class="hljs-keyword">as</span> np

<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> Pipeline


<span class="hljs-keyword">def</span> <span class="hljs-title function_">softmax</span>(<span class="hljs-params">outputs</span>):
    maxes = np.<span class="hljs-built_in">max</span>(outputs, axis=-<span class="hljs-number">1</span>, keepdims=<span class="hljs-literal">True</span>)
    shifted_exp = np.exp(outputs - maxes)
    <span class="hljs-keyword">return</span> shifted_exp / shifted_exp.<span class="hljs-built_in">sum</span>(axis=-<span class="hljs-number">1</span>, keepdims=<span class="hljs-literal">True</span>)


<span class="hljs-keyword">class</span> <span class="hljs-title class_">PairClassificationPipeline</span>(<span class="hljs-title class_ inherited__">Pipeline</span>):
    <span class="hljs-keyword">def</span> <span class="hljs-title function_">_sanitize_parameters</span>(<span class="hljs-params">self, **kwargs</span>):
        preprocess_kwargs = {}
        <span class="hljs-keyword">if</span> <span class="hljs-string">&quot;second_text&quot;</span> <span class="hljs-keyword">in</span> kwargs:
            preprocess_kwargs[<span class="hljs-string">&quot;second_text&quot;</span>] = kwargs[<span class="hljs-string">&quot;second_text&quot;</span>]
        <span class="hljs-keyword">return</span> preprocess_kwargs, {}, {}

    <span class="hljs-keyword">def</span> <span class="hljs-title function_">preprocess</span>(<span class="hljs-params">self, text, second_text=<span class="hljs-literal">None</span></span>):
        <span class="hljs-keyword">return</span> self.tokenizer(text, text_pair=second_text, return_tensors=self.framework)

    <span class="hljs-keyword">def</span> <span class="hljs-title function_">_forward</span>(<span class="hljs-params">self, model_inputs</span>):
        <span class="hljs-keyword">return</span> self.model(**model_inputs)

    <span class="hljs-keyword">def</span> <span class="hljs-title function_">postprocess</span>(<span class="hljs-params">self, model_outputs</span>):
        logits = model_outputs.logits[<span class="hljs-number">0</span>].numpy()
        probabilities = softmax(logits)

        best_class = np.argmax(probabilities)
        label = self.model.config.id2label[best_class]
        score = probabilities[best_class].item()
        logits = logits.tolist()
        <span class="hljs-keyword">return</span> {<span class="hljs-string">&quot;label&quot;</span>: label, <span class="hljs-string">&quot;score&quot;</span>: score, <span class="hljs-string">&quot;logits&quot;</span>: logits}`}}),ms=new V({props:{code:"ZnJvbSUyMHBhaXJfY2xhc3NpZmljYXRpb24lMjBpbXBvcnQlMjBQYWlyQ2xhc3NpZmljYXRpb25QaXBlbGluZSUwQWZyb20lMjB0cmFuc2Zvcm1lcnMucGlwZWxpbmVzJTIwaW1wb3J0JTIwUElQRUxJTkVfUkVHSVNUUlklMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b01vZGVsRm9yU2VxdWVuY2VDbGFzc2lmaWNhdGlvbiUyQyUyMFRGQXV0b01vZGVsRm9yU2VxdWVuY2VDbGFzc2lmaWNhdGlvbiUwQSUwQVBJUEVMSU5FX1JFR0lTVFJZLnJlZ2lzdGVyX3BpcGVsaW5lKCUwQSUyMCUyMCUyMCUyMCUyMnBhaXItY2xhc3NpZmljYXRpb24lMjIlMkMlMEElMjAlMjAlMjAlMjBwaXBlbGluZV9jbGFzcyUzRFBhaXJDbGFzc2lmaWNhdGlvblBpcGVsaW5lJTJDJTBBJTIwJTIwJTIwJTIwcHRfbW9kZWwlM0RBdXRvTW9kZWxGb3JTZXF1ZW5jZUNsYXNzaWZpY2F0aW9uJTJDJTBBJTIwJTIwJTIwJTIwdGZfbW9kZWwlM0RURkF1dG9Nb2RlbEZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24lMkMlMEEp",highlighted:`<span class="hljs-keyword">from</span> pair_classification <span class="hljs-keyword">import</span> PairClassificationPipeline
<span class="hljs-keyword">from</span> transformers.pipelines <span class="hljs-keyword">import</span> PIPELINE_REGISTRY
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForSequenceClassification, TFAutoModelForSequenceClassification

PIPELINE_REGISTRY.register_pipeline(
    <span class="hljs-string">&quot;pair-classification&quot;</span>,
    pipeline_class=PairClassificationPipeline,
    pt_model=AutoModelForSequenceClassification,
    tf_model=TFAutoModelForSequenceClassification,
)`}}),ws=new V({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBY2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKCUyMnBhaXItY2xhc3NpZmljYXRpb24lMjIlMkMlMjBtb2RlbCUzRCUyMnNndWdnZXIlMkZmaW5ldHVuZWQtYmVydC1tcnBjJTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

classifier = pipeline(<span class="hljs-string">&quot;pair-classification&quot;</span>, model=<span class="hljs-string">&quot;sgugger/finetuned-bert-mrpc&quot;</span>)`}}),us=new V({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMFJlcG9zaXRvcnklMEElMEFyZXBvJTIwJTNEJTIwUmVwb3NpdG9yeSglMjJ0ZXN0LWR5bmFtaWMtcGlwZWxpbmUlMjIlMkMlMjBjbG9uZV9mcm9tJTNEJTIyJTdCeW91cl91c2VybmFtZSU3RCUyRnRlc3QtZHluYW1pYy1waXBlbGluZSUyMiklMEFjbGFzc2lmaWVyLnNhdmVfcHJldHJhaW5lZCglMjJ0ZXN0LWR5bmFtaWMtcGlwZWxpbmUlMjIpJTBBcmVwby5wdXNoX3RvX2h1Yigp",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> Repository

repo = Repository(<span class="hljs-string">&quot;test-dynamic-pipeline&quot;</span>, clone_from=<span class="hljs-string">&quot;{your_username}/test-dynamic-pipeline&quot;</span>)
classifier.save_pretrained(<span class="hljs-string">&quot;test-dynamic-pipeline&quot;</span>)
repo.push_to_hub()`}}),Ts=new V({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBY2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIyJTdCeW91cl91c2VybmFtZSU3RCUyRnRlc3QtZHluYW1pYy1waXBlbGluZSUyMiUyQyUyMHRydXN0X3JlbW90ZV9jb2RlJTNEVHJ1ZSk=",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

classifier = pipeline(model=<span class="hljs-string">&quot;{your_username}/test-dynamic-pipeline&quot;</span>, trust_remote_code=<span class="hljs-literal">True</span>)`}}),hs=new Se({}),{c(){N=p("meta"),Dl=i(),R=p("h1"),F=p("a"),Vs=p("span"),j(rs.$$.fragment),Pe=i(),Ns=p("span"),ge=t("\uC5B4\uB5BB\uAC8C \uC0AC\uC6A9\uC790 \uC815\uC758 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC0DD\uC131\uD558\uB098\uC694?"),xl=i(),Y=p("p"),De=t("\uC774 \uAC00\uC774\uB4DC\uC5D0\uC11C\uB294 \uC0AC\uC6A9\uC790 \uC815\uC758 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC5B4\uB5BB\uAC8C \uC0DD\uC131\uD558\uACE0 "),Is=p("a"),xe=t("\uD5C8\uBE0C"),Oe=t("\uC5D0 \uACF5\uC720\uD558\uAC70\uB098 \u{1F917} Transformers \uB77C\uC774\uBE0C\uB7EC\uB9AC\uC5D0 \uCD94\uAC00\uD558\uB294 \uBC29\uBC95\uC744 \uC0B4\uD3B4\uBCF4\uACA0\uC2B5\uB2C8\uB2E4."),Ol=i(),k=p("p"),Le=t(`\uBA3C\uC800 \uD30C\uC774\uD504\uB77C\uC778\uC774 \uC218\uC6A9\uD560 \uC218 \uC788\uB294 \uC6D0\uC2DC \uC785\uB825\uC744 \uACB0\uC815\uD574\uC57C \uD569\uB2C8\uB2E4.
\uBB38\uC790\uC5F4, \uC6D0\uC2DC \uBC14\uC774\uD2B8, \uB515\uC154\uB108\uB9AC \uB610\uB294 \uAC00\uC7A5 \uC6D0\uD558\uB294 \uC785\uB825\uC77C \uAC00\uB2A5\uC131\uC774 \uB192\uC740 \uAC83\uC774\uBA74 \uBB34\uC5C7\uC774\uB4E0 \uAC00\uB2A5\uD569\uB2C8\uB2E4.
\uC774 \uC785\uB825\uC744 \uAC00\uB2A5\uD55C \uD55C \uC21C\uC218\uD55C Python \uD615\uC2DD\uC73C\uB85C \uC720\uC9C0\uD574\uC57C (JSON\uC744 \uD1B5\uD574 \uB2E4\uB978 \uC5B8\uC5B4\uC640\uB3C4) \uD638\uD658\uC131\uC774 \uC88B\uC544\uC9D1\uB2C8\uB2E4.
\uC774\uAC83\uC774 \uC804\uCC98\uB9AC(`),Rs=p("code"),Ke=t("preprocess"),st=t(") \uD30C\uC774\uD504\uB77C\uC778\uC758 \uC785\uB825("),Gs=p("code"),lt=t("inputs"),et=t(")\uC774 \uB420 \uAC83\uC785\uB2C8\uB2E4."),Ll=i(),h=p("p"),tt=t("\uADF8\uB7F0 \uB2E4\uC74C "),Ws=p("code"),at=t("outputs"),pt=t(`\uB97C \uC815\uC758\uD558\uC138\uC694.
`),Xs=p("code"),ot=t("inputs"),nt=t(`\uC640 \uAC19\uC740 \uC815\uCC45\uC744 \uB530\uB974\uACE0, \uAC04\uB2E8\uD560\uC218\uB85D \uC88B\uC2B5\uB2C8\uB2E4.
\uC774\uAC83\uC774 \uD6C4\uCC98\uB9AC(`),qs=p("code"),rt=t("postprocess"),ct=t(") \uBA54\uC18C\uB4DC\uC758 \uCD9C\uB825\uC774 \uB420 \uAC83\uC785\uB2C8\uB2E4."),Kl=i(),y=p("p"),it=t("\uBA3C\uC800 4\uAC1C\uC758 \uBA54\uC18C\uB4DC("),$s=p("code"),Mt=t("preprocess"),dt=t(", "),Qs=p("code"),yt=t("_forward"),jt=t(", "),zs=p("code"),ft=t("postprocess"),Jt=t(" \uBC0F "),Fs=p("code"),mt=t("_sanitize_parameters"),wt=t(")\uB97C \uAD6C\uD604\uD558\uAE30 \uC704\uD574 \uAE30\uBCF8 \uD074\uB798\uC2A4 "),Ys=p("code"),ut=t("Pipeline"),Tt=t("\uC744 \uC0C1\uC18D\uD558\uC5EC \uC2DC\uC791\uD569\uB2C8\uB2E4."),se=i(),j(cs.$$.fragment),le=i(),bs=p("p"),ht=t("\uC774 \uBD84\uD560 \uAD6C\uC870\uB294 CPU/GPU\uC5D0 \uB300\uD55C \uBE44\uAD50\uC801 \uC6D0\uD65C\uD55C \uC9C0\uC6D0\uC744 \uC81C\uACF5\uD558\uB294 \uB3D9\uC2DC\uC5D0, \uB2E4\uB978 \uC2A4\uB808\uB4DC\uC5D0\uC11C CPU\uC5D0 \uB300\uD55C \uC0AC\uC804/\uC0AC\uD6C4 \uCC98\uB9AC\uB97C \uC218\uD589\uD560 \uC218 \uC788\uAC8C \uC9C0\uC6D0\uD558\uB294 \uAC83\uC785\uB2C8\uB2E4."),ee=i(),G=p("p"),Hs=p("code"),_t=t("preprocess"),Ut=t(`\uB294 \uC6D0\uB798 \uC815\uC758\uB41C \uC785\uB825\uC744 \uAC00\uC838\uC640 \uBAA8\uB378\uC5D0 \uACF5\uAE09\uD560 \uC218 \uC788\uB294 \uD615\uC2DD\uC73C\uB85C \uBCC0\uD658\uD569\uB2C8\uB2E4.
\uB354 \uB9CE\uC740 \uC815\uBCF4\uB97C \uD3EC\uD568\uD560 \uC218 \uC788\uC73C\uBA70 \uC77C\uBC18\uC801\uC73C\uB85C `),Ss=p("code"),Et=t("Dict"),It=t(" \uD615\uD0DC\uC785\uB2C8\uB2E4."),te=i(),C=p("p"),Ps=p("code"),bt=t("_forward"),Ct=t(`\uB294 \uAD6C\uD604 \uC138\uBD80 \uC0AC\uD56D\uC774\uBA70 \uC9C1\uC811 \uD638\uCD9C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
`),gs=p("code"),Bt=t("forward"),vt=t(`\uB294 \uC608\uC0C1 \uC7A5\uCE58\uC5D0\uC11C \uBAA8\uB4E0 \uAC83\uC774 \uC791\uB3D9\uD558\uB294\uC9C0 \uD655\uC778\uD558\uAE30 \uC704\uD55C \uC548\uC804\uC7A5\uCE58\uAC00 \uD3EC\uD568\uB418\uC5B4 \uC788\uC5B4 \uC120\uD638\uB418\uB294 \uD638\uCD9C \uBA54\uC18C\uB4DC\uC785\uB2C8\uB2E4.
\uC2E4\uC81C \uBAA8\uB378\uACFC \uAD00\uB828\uB41C \uAC83\uC740 `),Ds=p("code"),kt=t("_forward"),Zt=t(" \uBA54\uC18C\uB4DC\uC5D0 \uC18D\uD558\uBA70, \uB098\uBA38\uC9C0\uB294 \uC804\uCC98\uB9AC/\uD6C4\uCC98\uB9AC \uACFC\uC815\uC5D0 \uC788\uC2B5\uB2C8\uB2E4."),ae=i(),W=p("p"),xs=p("code"),At=t("postprocess"),Vt=t(" \uBA54\uC18C\uB4DC\uB294 "),Os=p("code"),Nt=t("_forward"),Rt=t("\uC758 \uCD9C\uB825\uC744 \uAC00\uC838\uC640 \uC774\uC804\uC5D0 \uACB0\uC815\uD55C \uCD5C\uC885 \uCD9C\uB825 \uD615\uC2DD\uC73C\uB85C \uBCC0\uD658\uD569\uB2C8\uB2E4."),pe=i(),B=p("p"),Ls=p("code"),Gt=t("_sanitize_parameters"),Wt=t("\uB294 \uCD08\uAE30\uD654 \uC2DC\uAC04\uC5D0 "),Ks=p("code"),Xt=t("pipeline(...., maybe_arg=4)"),qt=t("\uC774\uB098 \uD638\uCD9C \uC2DC\uAC04\uC5D0 "),sl=p("code"),$t=t("pipe = pipeline(...); output = pipe(...., maybe_arg=4)"),Qt=t("\uACFC \uAC19\uC774, \uC0AC\uC6A9\uC790\uAC00 \uC6D0\uD558\uB294 \uACBD\uC6B0 \uC5B8\uC81C\uB4E0\uC9C0 \uB9E4\uAC1C\uBCC0\uC218\uB97C \uC804\uB2EC\uD560 \uC218 \uC788\uB3C4\uB85D \uD5C8\uC6A9\uD569\uB2C8\uB2E4."),oe=i(),T=p("p"),ll=p("code"),zt=t("_sanitize_parameters"),Ft=t("\uC758 \uBC18\uD658 \uAC12\uC740 "),el=p("code"),Yt=t("preprocess"),Ht=t(", "),tl=p("code"),St=t("_forward"),Pt=t(", "),al=p("code"),gt=t("postprocess"),Dt=t(`\uC5D0 \uC9C1\uC811 \uC804\uB2EC\uB418\uB294 3\uAC1C\uC758 kwargs \uB515\uC154\uB108\uB9AC\uC785\uB2C8\uB2E4.
\uD638\uCD9C\uC790\uAC00 \uCD94\uAC00 \uB9E4\uAC1C\uBCC0\uC218\uB85C \uD638\uCD9C\uD558\uC9C0 \uC54A\uC558\uB2E4\uBA74 \uC544\uBB34\uAC83\uB3C4 \uCC44\uC6B0\uC9C0 \uB9C8\uC2ED\uC2DC\uC624.
\uC774\uB807\uAC8C \uD558\uBA74 \uD56D\uC0C1 \uB354 \u201C\uC790\uC5F0\uC2A4\uB7EC\uC6B4\u201D \uD568\uC218 \uC815\uC758\uC758 \uAE30\uBCF8 \uC778\uC218\uB97C \uC720\uC9C0\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`),ne=i(),H=p("p"),xt=t("\uBD84\uB958 \uC791\uC5C5\uC5D0\uC11C "),pl=p("code"),Ot=t("top_k"),Lt=t(" \uB9E4\uAC1C\uBCC0\uC218\uAC00 \uB300\uD45C\uC801\uC778 \uC608\uC785\uB2C8\uB2E4."),re=i(),j(is.$$.fragment),ce=i(),_=p("p"),Kt=t("\uC774\uB97C \uB2EC\uC131\uD558\uAE30 \uC704\uD574 \uC6B0\uB9AC\uB294 "),ol=p("code"),sa=t("postprocess"),la=t(" \uBA54\uC18C\uB4DC\uB97C \uAE30\uBCF8 \uB9E4\uAC1C\uBCC0\uC218\uC778 "),nl=p("code"),ea=t("5"),ta=t("\uB85C \uC5C5\uB370\uC774\uD2B8\uD558\uACE0 "),rl=p("code"),aa=t("_sanitize_parameters"),pa=t("\uB97C \uC218\uC815\uD558\uC5EC \uC774 \uC0C8 \uB9E4\uAC1C\uBCC0\uC218\uB97C \uD5C8\uC6A9\uD569\uB2C8\uB2E4."),ie=i(),j(Ms.$$.fragment),Me=i(),Cs=p("p"),oa=t(`\uC785/\uCD9C\uB825\uC744 \uAC00\uB2A5\uD55C \uD55C \uAC04\uB2E8\uD558\uACE0 \uC644\uC804\uD788 JSON \uC9C1\uB82C\uD654 \uAC00\uB2A5\uD55C \uD615\uC2DD\uC73C\uB85C \uC720\uC9C0\uD558\uB824\uACE0 \uB178\uB825\uD558\uC2ED\uC2DC\uC624.
\uC774\uB807\uAC8C \uD558\uBA74 \uC0AC\uC6A9\uC790\uAC00 \uC0C8\uB85C\uC6B4 \uC885\uB958\uC758 \uAC1C\uCCB4\uB97C \uC774\uD574\uD558\uC9C0 \uC54A\uACE0\uB3C4 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC27D\uAC8C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uB610\uD55C \uC0AC\uC6A9 \uC6A9\uC774\uC131\uC744 \uC704\uD574 \uC5EC\uB7EC \uAC00\uC9C0 \uC720\uD615\uC758 \uC778\uC218(\uC624\uB514\uC624 \uD30C\uC77C\uC740 \uD30C\uC77C \uC774\uB984, URL \uB610\uB294 \uC21C\uC218\uD55C \uBC14\uC774\uD2B8\uC77C \uC218 \uC788\uC74C)\uB97C \uC9C0\uC6D0\uD558\uB294 \uAC83\uC774 \uBE44\uAD50\uC801 \uC77C\uBC18\uC801\uC785\uB2C8\uB2E4.`),de=i(),X=p("h2"),S=p("a"),cl=p("span"),j(ds.$$.fragment),na=i(),il=p("span"),ra=t("\uC9C0\uC6D0\uB418\uB294 \uC791\uC5C5 \uBAA9\uB85D\uC5D0 \uCD94\uAC00\uD558\uAE30"),ye=i(),q=p("p"),Ml=p("code"),ca=t("new-task"),ia=t("\uB97C \uC9C0\uC6D0\uB418\uB294 \uC791\uC5C5 \uBAA9\uB85D\uC5D0 \uB4F1\uB85D\uD558\uB824\uBA74 "),dl=p("code"),Ma=t("PIPELINE_REGISTRY"),da=t("\uC5D0 \uCD94\uAC00\uD574\uC57C \uD569\uB2C8\uB2E4:"),je=i(),j(ys.$$.fragment),fe=i(),Bs=p("p"),ya=t("\uC6D0\uD558\uB294 \uACBD\uC6B0 \uAE30\uBCF8 \uBAA8\uB378\uC744 \uC9C0\uC815\uD560 \uC218 \uC788\uC73C\uBA70, \uC774 \uACBD\uC6B0 \uD2B9\uC815 \uAC1C\uC815(\uBD84\uAE30 \uC774\uB984 \uB610\uB294 \uCEE4\uBC0B \uD574\uC2DC\uC77C \uC218 \uC788\uC74C, \uC5EC\uAE30\uC11C\uB294 \u201Cabcdef\u201D)\uACFC \uD0C0\uC785\uC744 \uD568\uAED8 \uAC00\uC838\uC640\uC57C \uD569\uB2C8\uB2E4:"),Je=i(),j(js.$$.fragment),me=i(),$=p("h2"),P=p("a"),yl=p("span"),j(fs.$$.fragment),ja=i(),jl=p("span"),fa=t("Hub\uC5D0 \uD30C\uC774\uD504\uB77C\uC778 \uACF5\uC720\uD558\uAE30"),we=i(),g=p("p"),Ja=t("Hub\uC5D0 \uC0AC\uC6A9\uC790 \uC815\uC758 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uACF5\uC720\uD558\uB824\uBA74 "),fl=p("code"),ma=t("Pipeline"),wa=t(` \uD558\uC704 \uD074\uB798\uC2A4\uC758 \uC0AC\uC6A9\uC790 \uC815\uC758 \uCF54\uB4DC\uB97C Python \uD30C\uC77C\uC5D0 \uC800\uC7A5\uD558\uAE30\uB9CC \uD558\uBA74 \uB429\uB2C8\uB2E4.
\uC608\uB97C \uB4E4\uC5B4, \uB2E4\uC74C\uACFC \uAC19\uC774 \uBB38\uC7A5 \uC30D \uBD84\uB958\uB97C \uC704\uD55C \uC0AC\uC6A9\uC790 \uC815\uC758 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC0AC\uC6A9\uD55C\uB2E4\uACE0 \uAC00\uC815\uD574 \uBCF4\uACA0\uC2B5\uB2C8\uB2E4:`),ue=i(),j(Js.$$.fragment),Te=i(),D=p("p"),ua=t(`\uAD6C\uD604\uC740 \uD504\uB808\uC784\uC6CC\uD06C\uC5D0 \uAD6C\uC560\uBC1B\uC9C0 \uC54A\uC73C\uBA70, PyTorch\uC640 TensorFlow \uBAA8\uB378\uC5D0 \uB300\uD574 \uC791\uB3D9\uD569\uB2C8\uB2E4.
\uC774\uB97C `),Jl=p("code"),Ta=t("pair_classification.py"),ha=t("\uB77C\uB294 \uD30C\uC77C\uC5D0 \uC800\uC7A5\uD55C \uACBD\uC6B0, \uB2E4\uC74C\uACFC \uAC19\uC774 \uAC00\uC838\uC624\uACE0 \uB4F1\uB85D\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:"),he=i(),j(ms.$$.fragment),_e=i(),x=p("p"),_a=t(`\uC774 \uC791\uC5C5\uC774 \uC644\uB8CC\uB418\uBA74 \uC0AC\uC804\uD6C8\uB828\uB41C \uBAA8\uB378\uACFC \uD568\uAED8 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uC608\uB97C \uB4E4\uC5B4, `),ml=p("code"),Ua=t("sgugger/finetuned-bert-mrpc"),Ea=t("\uC740 MRPC \uB370\uC774\uD130 \uC138\uD2B8\uC5D0\uC11C \uBBF8\uC138 \uC870\uC815\uB418\uC5B4 \uBB38\uC7A5 \uC30D\uC744 \uD328\uB7EC\uD504\uB808\uC774\uC988\uC778\uC9C0 \uC544\uB2CC\uC9C0\uB97C \uBD84\uB958\uD569\uB2C8\uB2E4."),Ue=i(),j(ws.$$.fragment),Ee=i(),Z=p("p"),Ia=t("\uADF8\uB7F0 \uB2E4\uC74C "),wl=p("code"),ba=t("Repository"),Ca=t("\uC758 "),ul=p("code"),Ba=t("save_pretrained"),va=t(" \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC5EC \uD5C8\uBE0C\uC5D0 \uACF5\uC720\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:"),Ie=i(),j(us.$$.fragment),be=i(),U=p("p"),ka=t("\uC774\uB807\uAC8C \uD558\uBA74 \u201Ctest-dynamic-pipeline\u201D \uD3F4\uB354 \uB0B4\uC5D0 "),Tl=p("code"),Za=t("PairClassificationPipeline"),Aa=t("\uC744 \uC815\uC758\uD55C \uD30C\uC77C\uC774 \uBCF5\uC0AC\uB418\uBA70, \uD30C\uC774\uD504\uB77C\uC778\uC758 \uBAA8\uB378\uACFC \uD1A0\uD06C\uB098\uC774\uC800\uB3C4 \uC800\uC7A5\uD55C \uD6C4, "),hl=p("code"),Va=t("{your_username}/test-dynamic-pipeline"),Na=t(` \uC800\uC7A5\uC18C\uC5D0 \uC788\uB294 \uBAA8\uB4E0 \uAC83\uC744 \uD478\uC2DC\uD569\uB2C8\uB2E4.
\uC774\uD6C4\uC5D0\uB294 `),_l=p("code"),Ra=t("trust_remote_code=True"),Ga=t(" \uC635\uC158\uB9CC \uC81C\uACF5\uD558\uBA74 \uB204\uAD6C\uB098 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),Ce=i(),j(Ts.$$.fragment),Be=i(),Q=p("h2"),O=p("a"),Ul=p("span"),j(hs.$$.fragment),Wa=i(),El=p("span"),Xa=t("\u{1F917} Transformers\uC5D0 \uD30C\uC774\uD504\uB77C\uC778 \uCD94\uAC00\uD558\uAE30"),ve=i(),A=p("p"),qa=t("\u{1F917} Transformers\uC5D0 \uC0AC\uC6A9\uC790 \uC815\uC758 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uAE30\uC5EC\uD558\uB824\uBA74, "),Il=p("code"),$a=t("pipelines"),Qa=t(" \uD558\uC704 \uBAA8\uB4C8\uC5D0 \uC0AC\uC6A9\uC790 \uC815\uC758 \uD30C\uC774\uD504\uB77C\uC778 \uCF54\uB4DC\uC640 \uD568\uAED8 \uC0C8 \uBAA8\uB4C8\uC744 \uCD94\uAC00\uD55C \uB2E4\uC74C, "),bl=p("code"),za=t("pipelines/__init__.py"),Fa=t("\uC5D0\uC11C \uC815\uC758\uB41C \uC791\uC5C5 \uBAA9\uB85D\uC5D0 \uCD94\uAC00\uD574\uC57C \uD569\uB2C8\uB2E4."),ke=i(),L=p("p"),Ya=t(`\uADF8\uB7F0 \uB2E4\uC74C \uD14C\uC2A4\uD2B8\uB97C \uCD94\uAC00\uD574\uC57C \uD569\uB2C8\uB2E4.
`),Cl=p("code"),Ha=t("tests/test_pipelines_MY_PIPELINE.py"),Sa=t("\uB77C\uB294 \uC0C8 \uD30C\uC77C\uC744 \uB9CC\uB4E4\uACE0 \uB2E4\uB978 \uD14C\uC2A4\uD2B8\uC640 \uC608\uC81C\uB97C \uD568\uAED8 \uC791\uC131\uD569\uB2C8\uB2E4."),Ze=i(),v=p("p"),Bl=p("code"),Pa=t("run_pipeline_test"),ga=t(" \uD568\uC218\uB294 \uB9E4\uC6B0 \uC77C\uBC18\uC801\uC774\uBA70, "),vl=p("code"),Da=t("model_mapping"),xa=t(" \uBC0F "),kl=p("code"),Oa=t("tf_model_mapping"),La=t("\uC5D0\uC11C \uC815\uC758\uB41C \uAC00\uB2A5\uD55C \uBAA8\uB4E0 \uC544\uD0A4\uD14D\uCC98\uC758 \uC791\uC740 \uBB34\uC791\uC704 \uBAA8\uB378\uC5D0\uC11C \uC2E4\uD589\uB429\uB2C8\uB2E4."),Ae=i(),E=p("p"),Ka=t("\uC774\uB294 \uD5A5\uD6C4 \uD638\uD658\uC131\uC744 \uD14C\uC2A4\uD2B8\uD558\uB294 \uB370 \uB9E4\uC6B0 \uC911\uC694\uD558\uBA70, \uB204\uAD70\uAC00 "),Zl=p("code"),sp=t("XXXForQuestionAnswering"),lp=t(`\uC744 \uC704\uD55C \uC0C8 \uBAA8\uB378\uC744 \uCD94\uAC00\uD558\uBA74 \uD30C\uC774\uD504\uB77C\uC778 \uD14C\uC2A4\uD2B8\uAC00 \uD574\uB2F9 \uBAA8\uB378\uC5D0\uC11C \uC2E4\uD589\uC744 \uC2DC\uB3C4\uD55C\uB2E4\uB294 \uC758\uBBF8\uC785\uB2C8\uB2E4.
\uBAA8\uB378\uC774 \uBB34\uC791\uC704\uC774\uAE30 \uB54C\uBB38\uC5D0 \uC2E4\uC81C \uAC12\uC744 \uD655\uC778\uD558\uB294 \uAC83\uC740 \uBD88\uAC00\uB2A5\uD558\uBBC0\uB85C, \uB2E8\uC21C\uD788 \uD30C\uC774\uD504\uB77C\uC778 \uCD9C\uB825 `),Al=p("code"),ep=t("TYPE"),tp=t("\uACFC \uC77C\uCE58\uC2DC\uD0A4\uAE30 \uC704\uD55C \uB3C4\uC6B0\uBBF8 "),Vl=p("code"),ap=t("ANY"),pp=t("\uAC00 \uC788\uC2B5\uB2C8\uB2E4."),Ve=i(),vs=p("p"),op=t("\uB610\uD55C 2\uAC1C(\uC774\uC0C1\uC801\uC73C\uB85C\uB294 4\uAC1C)\uC758 \uD14C\uC2A4\uD2B8\uB97C \uAD6C\uD604\uD574\uC57C \uD569\uB2C8\uB2E4."),Ne=i(),I=p("ul"),K=p("li"),Nl=p("code"),np=t("test_small_model_pt"),rp=t(`: \uC774 \uD30C\uC774\uD504\uB77C\uC778\uC5D0 \uB300\uD55C \uC791\uC740 \uBAA8\uB378 1\uAC1C\uB97C \uC815\uC758(\uACB0\uACFC\uAC00 \uC758\uBBF8 \uC5C6\uC5B4\uB3C4 \uC0C1\uAD00\uC5C6\uC74C)\uD558\uACE0 \uD30C\uC774\uD504\uB77C\uC778 \uCD9C\uB825\uC744 \uD14C\uC2A4\uD2B8\uD569\uB2C8\uB2E4.
\uACB0\uACFC\uB294 `),Rl=p("code"),cp=t("test_small_model_tf"),ip=t("\uC640 \uB3D9\uC77C\uD574\uC57C \uD569\uB2C8\uB2E4."),Mp=i(),ss=p("li"),Gl=p("code"),dp=t("test_small_model_tf"),yp=t(`: \uC774 \uD30C\uC774\uD504\uB77C\uC778\uC5D0 \uB300\uD55C \uC791\uC740 \uBAA8\uB378 1\uAC1C\uB97C \uC815\uC758(\uACB0\uACFC\uAC00 \uC758\uBBF8 \uC5C6\uC5B4\uB3C4 \uC0C1\uAD00\uC5C6\uC74C)\uD558\uACE0 \uD30C\uC774\uD504\uB77C\uC778 \uCD9C\uB825\uC744 \uD14C\uC2A4\uD2B8\uD569\uB2C8\uB2E4.
\uACB0\uACFC\uB294 `),Wl=p("code"),jp=t("test_small_model_pt"),fp=t("\uC640 \uB3D9\uC77C\uD574\uC57C \uD569\uB2C8\uB2E4."),Jp=i(),ls=p("li"),Xl=p("code"),mp=t("test_large_model_pt"),wp=t("("),ql=p("code"),up=t("\uC120\uD0DD\uC0AC\uD56D"),Tp=t(`): \uACB0\uACFC\uAC00 \uC758\uBBF8 \uC788\uC744 \uAC83\uC73C\uB85C \uC608\uC0C1\uB418\uB294 \uC2E4\uC81C \uD30C\uC774\uD504\uB77C\uC778\uC5D0\uC11C \uD30C\uC774\uD504\uB77C\uC778\uC744 \uD14C\uC2A4\uD2B8\uD569\uB2C8\uB2E4.
\uC774\uB7EC\uD55C \uD14C\uC2A4\uD2B8\uB294 \uC18D\uB3C4\uAC00 \uB290\uB9AC\uBBC0\uB85C \uC774\uB97C \uD45C\uC2DC\uD574\uC57C \uD569\uB2C8\uB2E4.
\uC5EC\uAE30\uC11C\uC758 \uBAA9\uD45C\uB294 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uBCF4\uC5EC\uC8FC\uACE0 \uD5A5\uD6C4 \uB9B4\uB9AC\uC988\uC5D0\uC11C\uC758 \uBCC0\uD654\uAC00 \uC5C6\uB294\uC9C0 \uD655\uC778\uD558\uB294 \uAC83\uC785\uB2C8\uB2E4.`),hp=i(),es=p("li"),$l=p("code"),_p=t("test_large_model_tf"),Up=t("("),Ql=p("code"),Ep=t("\uC120\uD0DD\uC0AC\uD56D"),Ip=t(`): \uACB0\uACFC\uAC00 \uC758\uBBF8 \uC788\uC744 \uAC83\uC73C\uB85C \uC608\uC0C1\uB418\uB294 \uC2E4\uC81C \uD30C\uC774\uD504\uB77C\uC778\uC5D0\uC11C \uD30C\uC774\uD504\uB77C\uC778\uC744 \uD14C\uC2A4\uD2B8\uD569\uB2C8\uB2E4.
\uC774\uB7EC\uD55C \uD14C\uC2A4\uD2B8\uB294 \uC18D\uB3C4\uAC00 \uB290\uB9AC\uBBC0\uB85C \uC774\uB97C \uD45C\uC2DC\uD574\uC57C \uD569\uB2C8\uB2E4.
\uC5EC\uAE30\uC11C\uC758 \uBAA9\uD45C\uB294 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uBCF4\uC5EC\uC8FC\uACE0 \uD5A5\uD6C4 \uB9B4\uB9AC\uC988\uC5D0\uC11C\uC758 \uBCC0\uD654\uAC00 \uC5C6\uB294\uC9C0 \uD655\uC778\uD558\uB294 \uAC83\uC785\uB2C8\uB2E4.`),this.h()},l(s){const r=Do('[data-svelte="svelte-1phssyn"]',document.head);N=o(r,"META",{name:!0,content:!0}),r.forEach(e),Dl=M(s),R=o(s,"H1",{class:!0});var Ge=n(R);F=o(Ge,"A",{id:!0,class:!0,href:!0});var Cp=n(F);Vs=o(Cp,"SPAN",{});var Bp=n(Vs);f(rs.$$.fragment,Bp),Bp.forEach(e),Cp.forEach(e),Pe=M(Ge),Ns=o(Ge,"SPAN",{});var vp=n(Ns);ge=a(vp,"\uC5B4\uB5BB\uAC8C \uC0AC\uC6A9\uC790 \uC815\uC758 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC0DD\uC131\uD558\uB098\uC694?"),vp.forEach(e),Ge.forEach(e),xl=M(s),Y=o(s,"P",{});var We=n(Y);De=a(We,"\uC774 \uAC00\uC774\uB4DC\uC5D0\uC11C\uB294 \uC0AC\uC6A9\uC790 \uC815\uC758 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC5B4\uB5BB\uAC8C \uC0DD\uC131\uD558\uACE0 "),Is=o(We,"A",{href:!0});var kp=n(Is);xe=a(kp,"\uD5C8\uBE0C"),kp.forEach(e),Oe=a(We,"\uC5D0 \uACF5\uC720\uD558\uAC70\uB098 \u{1F917} Transformers \uB77C\uC774\uBE0C\uB7EC\uB9AC\uC5D0 \uCD94\uAC00\uD558\uB294 \uBC29\uBC95\uC744 \uC0B4\uD3B4\uBCF4\uACA0\uC2B5\uB2C8\uB2E4."),We.forEach(e),Ol=M(s),k=o(s,"P",{});var ks=n(k);Le=a(ks,`\uBA3C\uC800 \uD30C\uC774\uD504\uB77C\uC778\uC774 \uC218\uC6A9\uD560 \uC218 \uC788\uB294 \uC6D0\uC2DC \uC785\uB825\uC744 \uACB0\uC815\uD574\uC57C \uD569\uB2C8\uB2E4.
\uBB38\uC790\uC5F4, \uC6D0\uC2DC \uBC14\uC774\uD2B8, \uB515\uC154\uB108\uB9AC \uB610\uB294 \uAC00\uC7A5 \uC6D0\uD558\uB294 \uC785\uB825\uC77C \uAC00\uB2A5\uC131\uC774 \uB192\uC740 \uAC83\uC774\uBA74 \uBB34\uC5C7\uC774\uB4E0 \uAC00\uB2A5\uD569\uB2C8\uB2E4.
\uC774 \uC785\uB825\uC744 \uAC00\uB2A5\uD55C \uD55C \uC21C\uC218\uD55C Python \uD615\uC2DD\uC73C\uB85C \uC720\uC9C0\uD574\uC57C (JSON\uC744 \uD1B5\uD574 \uB2E4\uB978 \uC5B8\uC5B4\uC640\uB3C4) \uD638\uD658\uC131\uC774 \uC88B\uC544\uC9D1\uB2C8\uB2E4.
\uC774\uAC83\uC774 \uC804\uCC98\uB9AC(`),Rs=o(ks,"CODE",{});var Zp=n(Rs);Ke=a(Zp,"preprocess"),Zp.forEach(e),st=a(ks,") \uD30C\uC774\uD504\uB77C\uC778\uC758 \uC785\uB825("),Gs=o(ks,"CODE",{});var Ap=n(Gs);lt=a(Ap,"inputs"),Ap.forEach(e),et=a(ks,")\uC774 \uB420 \uAC83\uC785\uB2C8\uB2E4."),ks.forEach(e),Ll=M(s),h=o(s,"P",{});var ts=n(h);tt=a(ts,"\uADF8\uB7F0 \uB2E4\uC74C "),Ws=o(ts,"CODE",{});var Vp=n(Ws);at=a(Vp,"outputs"),Vp.forEach(e),pt=a(ts,`\uB97C \uC815\uC758\uD558\uC138\uC694.
`),Xs=o(ts,"CODE",{});var Np=n(Xs);ot=a(Np,"inputs"),Np.forEach(e),nt=a(ts,`\uC640 \uAC19\uC740 \uC815\uCC45\uC744 \uB530\uB974\uACE0, \uAC04\uB2E8\uD560\uC218\uB85D \uC88B\uC2B5\uB2C8\uB2E4.
\uC774\uAC83\uC774 \uD6C4\uCC98\uB9AC(`),qs=o(ts,"CODE",{});var Rp=n(qs);rt=a(Rp,"postprocess"),Rp.forEach(e),ct=a(ts,") \uBA54\uC18C\uB4DC\uC758 \uCD9C\uB825\uC774 \uB420 \uAC83\uC785\uB2C8\uB2E4."),ts.forEach(e),Kl=M(s),y=o(s,"P",{});var b=n(y);it=a(b,"\uBA3C\uC800 4\uAC1C\uC758 \uBA54\uC18C\uB4DC("),$s=o(b,"CODE",{});var Gp=n($s);Mt=a(Gp,"preprocess"),Gp.forEach(e),dt=a(b,", "),Qs=o(b,"CODE",{});var Wp=n(Qs);yt=a(Wp,"_forward"),Wp.forEach(e),jt=a(b,", "),zs=o(b,"CODE",{});var Xp=n(zs);ft=a(Xp,"postprocess"),Xp.forEach(e),Jt=a(b," \uBC0F "),Fs=o(b,"CODE",{});var qp=n(Fs);mt=a(qp,"_sanitize_parameters"),qp.forEach(e),wt=a(b,")\uB97C \uAD6C\uD604\uD558\uAE30 \uC704\uD574 \uAE30\uBCF8 \uD074\uB798\uC2A4 "),Ys=o(b,"CODE",{});var $p=n(Ys);ut=a($p,"Pipeline"),$p.forEach(e),Tt=a(b,"\uC744 \uC0C1\uC18D\uD558\uC5EC \uC2DC\uC791\uD569\uB2C8\uB2E4."),b.forEach(e),se=M(s),f(cs.$$.fragment,s),le=M(s),bs=o(s,"P",{});var Qp=n(bs);ht=a(Qp,"\uC774 \uBD84\uD560 \uAD6C\uC870\uB294 CPU/GPU\uC5D0 \uB300\uD55C \uBE44\uAD50\uC801 \uC6D0\uD65C\uD55C \uC9C0\uC6D0\uC744 \uC81C\uACF5\uD558\uB294 \uB3D9\uC2DC\uC5D0, \uB2E4\uB978 \uC2A4\uB808\uB4DC\uC5D0\uC11C CPU\uC5D0 \uB300\uD55C \uC0AC\uC804/\uC0AC\uD6C4 \uCC98\uB9AC\uB97C \uC218\uD589\uD560 \uC218 \uC788\uAC8C \uC9C0\uC6D0\uD558\uB294 \uAC83\uC785\uB2C8\uB2E4."),Qp.forEach(e),ee=M(s),G=o(s,"P",{});var zl=n(G);Hs=o(zl,"CODE",{});var zp=n(Hs);_t=a(zp,"preprocess"),zp.forEach(e),Ut=a(zl,`\uB294 \uC6D0\uB798 \uC815\uC758\uB41C \uC785\uB825\uC744 \uAC00\uC838\uC640 \uBAA8\uB378\uC5D0 \uACF5\uAE09\uD560 \uC218 \uC788\uB294 \uD615\uC2DD\uC73C\uB85C \uBCC0\uD658\uD569\uB2C8\uB2E4.
\uB354 \uB9CE\uC740 \uC815\uBCF4\uB97C \uD3EC\uD568\uD560 \uC218 \uC788\uC73C\uBA70 \uC77C\uBC18\uC801\uC73C\uB85C `),Ss=o(zl,"CODE",{});var Fp=n(Ss);Et=a(Fp,"Dict"),Fp.forEach(e),It=a(zl," \uD615\uD0DC\uC785\uB2C8\uB2E4."),zl.forEach(e),te=M(s),C=o(s,"P",{});var _s=n(C);Ps=o(_s,"CODE",{});var Yp=n(Ps);bt=a(Yp,"_forward"),Yp.forEach(e),Ct=a(_s,`\uB294 \uAD6C\uD604 \uC138\uBD80 \uC0AC\uD56D\uC774\uBA70 \uC9C1\uC811 \uD638\uCD9C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
`),gs=o(_s,"CODE",{});var Hp=n(gs);Bt=a(Hp,"forward"),Hp.forEach(e),vt=a(_s,`\uB294 \uC608\uC0C1 \uC7A5\uCE58\uC5D0\uC11C \uBAA8\uB4E0 \uAC83\uC774 \uC791\uB3D9\uD558\uB294\uC9C0 \uD655\uC778\uD558\uAE30 \uC704\uD55C \uC548\uC804\uC7A5\uCE58\uAC00 \uD3EC\uD568\uB418\uC5B4 \uC788\uC5B4 \uC120\uD638\uB418\uB294 \uD638\uCD9C \uBA54\uC18C\uB4DC\uC785\uB2C8\uB2E4.
\uC2E4\uC81C \uBAA8\uB378\uACFC \uAD00\uB828\uB41C \uAC83\uC740 `),Ds=o(_s,"CODE",{});var Sp=n(Ds);kt=a(Sp,"_forward"),Sp.forEach(e),Zt=a(_s," \uBA54\uC18C\uB4DC\uC5D0 \uC18D\uD558\uBA70, \uB098\uBA38\uC9C0\uB294 \uC804\uCC98\uB9AC/\uD6C4\uCC98\uB9AC \uACFC\uC815\uC5D0 \uC788\uC2B5\uB2C8\uB2E4."),_s.forEach(e),ae=M(s),W=o(s,"P",{});var Fl=n(W);xs=o(Fl,"CODE",{});var Pp=n(xs);At=a(Pp,"postprocess"),Pp.forEach(e),Vt=a(Fl," \uBA54\uC18C\uB4DC\uB294 "),Os=o(Fl,"CODE",{});var gp=n(Os);Nt=a(gp,"_forward"),gp.forEach(e),Rt=a(Fl,"\uC758 \uCD9C\uB825\uC744 \uAC00\uC838\uC640 \uC774\uC804\uC5D0 \uACB0\uC815\uD55C \uCD5C\uC885 \uCD9C\uB825 \uD615\uC2DD\uC73C\uB85C \uBCC0\uD658\uD569\uB2C8\uB2E4."),Fl.forEach(e),pe=M(s),B=o(s,"P",{});var Us=n(B);Ls=o(Us,"CODE",{});var Dp=n(Ls);Gt=a(Dp,"_sanitize_parameters"),Dp.forEach(e),Wt=a(Us,"\uB294 \uCD08\uAE30\uD654 \uC2DC\uAC04\uC5D0 "),Ks=o(Us,"CODE",{});var xp=n(Ks);Xt=a(xp,"pipeline(...., maybe_arg=4)"),xp.forEach(e),qt=a(Us,"\uC774\uB098 \uD638\uCD9C \uC2DC\uAC04\uC5D0 "),sl=o(Us,"CODE",{});var Op=n(sl);$t=a(Op,"pipe = pipeline(...); output = pipe(...., maybe_arg=4)"),Op.forEach(e),Qt=a(Us,"\uACFC \uAC19\uC774, \uC0AC\uC6A9\uC790\uAC00 \uC6D0\uD558\uB294 \uACBD\uC6B0 \uC5B8\uC81C\uB4E0\uC9C0 \uB9E4\uAC1C\uBCC0\uC218\uB97C \uC804\uB2EC\uD560 \uC218 \uC788\uB3C4\uB85D \uD5C8\uC6A9\uD569\uB2C8\uB2E4."),Us.forEach(e),oe=M(s),T=o(s,"P",{});var z=n(T);ll=o(z,"CODE",{});var Lp=n(ll);zt=a(Lp,"_sanitize_parameters"),Lp.forEach(e),Ft=a(z,"\uC758 \uBC18\uD658 \uAC12\uC740 "),el=o(z,"CODE",{});var Kp=n(el);Yt=a(Kp,"preprocess"),Kp.forEach(e),Ht=a(z,", "),tl=o(z,"CODE",{});var so=n(tl);St=a(so,"_forward"),so.forEach(e),Pt=a(z,", "),al=o(z,"CODE",{});var lo=n(al);gt=a(lo,"postprocess"),lo.forEach(e),Dt=a(z,`\uC5D0 \uC9C1\uC811 \uC804\uB2EC\uB418\uB294 3\uAC1C\uC758 kwargs \uB515\uC154\uB108\uB9AC\uC785\uB2C8\uB2E4.
\uD638\uCD9C\uC790\uAC00 \uCD94\uAC00 \uB9E4\uAC1C\uBCC0\uC218\uB85C \uD638\uCD9C\uD558\uC9C0 \uC54A\uC558\uB2E4\uBA74 \uC544\uBB34\uAC83\uB3C4 \uCC44\uC6B0\uC9C0 \uB9C8\uC2ED\uC2DC\uC624.
\uC774\uB807\uAC8C \uD558\uBA74 \uD56D\uC0C1 \uB354 \u201C\uC790\uC5F0\uC2A4\uB7EC\uC6B4\u201D \uD568\uC218 \uC815\uC758\uC758 \uAE30\uBCF8 \uC778\uC218\uB97C \uC720\uC9C0\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`),z.forEach(e),ne=M(s),H=o(s,"P",{});var Xe=n(H);xt=a(Xe,"\uBD84\uB958 \uC791\uC5C5\uC5D0\uC11C "),pl=o(Xe,"CODE",{});var eo=n(pl);Ot=a(eo,"top_k"),eo.forEach(e),Lt=a(Xe," \uB9E4\uAC1C\uBCC0\uC218\uAC00 \uB300\uD45C\uC801\uC778 \uC608\uC785\uB2C8\uB2E4."),Xe.forEach(e),re=M(s),f(is.$$.fragment,s),ce=M(s),_=o(s,"P",{});var as=n(_);Kt=a(as,"\uC774\uB97C \uB2EC\uC131\uD558\uAE30 \uC704\uD574 \uC6B0\uB9AC\uB294 "),ol=o(as,"CODE",{});var to=n(ol);sa=a(to,"postprocess"),to.forEach(e),la=a(as," \uBA54\uC18C\uB4DC\uB97C \uAE30\uBCF8 \uB9E4\uAC1C\uBCC0\uC218\uC778 "),nl=o(as,"CODE",{});var ao=n(nl);ea=a(ao,"5"),ao.forEach(e),ta=a(as,"\uB85C \uC5C5\uB370\uC774\uD2B8\uD558\uACE0 "),rl=o(as,"CODE",{});var po=n(rl);aa=a(po,"_sanitize_parameters"),po.forEach(e),pa=a(as,"\uB97C \uC218\uC815\uD558\uC5EC \uC774 \uC0C8 \uB9E4\uAC1C\uBCC0\uC218\uB97C \uD5C8\uC6A9\uD569\uB2C8\uB2E4."),as.forEach(e),ie=M(s),f(Ms.$$.fragment,s),Me=M(s),Cs=o(s,"P",{});var oo=n(Cs);oa=a(oo,`\uC785/\uCD9C\uB825\uC744 \uAC00\uB2A5\uD55C \uD55C \uAC04\uB2E8\uD558\uACE0 \uC644\uC804\uD788 JSON \uC9C1\uB82C\uD654 \uAC00\uB2A5\uD55C \uD615\uC2DD\uC73C\uB85C \uC720\uC9C0\uD558\uB824\uACE0 \uB178\uB825\uD558\uC2ED\uC2DC\uC624.
\uC774\uB807\uAC8C \uD558\uBA74 \uC0AC\uC6A9\uC790\uAC00 \uC0C8\uB85C\uC6B4 \uC885\uB958\uC758 \uAC1C\uCCB4\uB97C \uC774\uD574\uD558\uC9C0 \uC54A\uACE0\uB3C4 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC27D\uAC8C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uB610\uD55C \uC0AC\uC6A9 \uC6A9\uC774\uC131\uC744 \uC704\uD574 \uC5EC\uB7EC \uAC00\uC9C0 \uC720\uD615\uC758 \uC778\uC218(\uC624\uB514\uC624 \uD30C\uC77C\uC740 \uD30C\uC77C \uC774\uB984, URL \uB610\uB294 \uC21C\uC218\uD55C \uBC14\uC774\uD2B8\uC77C \uC218 \uC788\uC74C)\uB97C \uC9C0\uC6D0\uD558\uB294 \uAC83\uC774 \uBE44\uAD50\uC801 \uC77C\uBC18\uC801\uC785\uB2C8\uB2E4.`),oo.forEach(e),de=M(s),X=o(s,"H2",{class:!0});var qe=n(X);S=o(qe,"A",{id:!0,class:!0,href:!0});var no=n(S);cl=o(no,"SPAN",{});var ro=n(cl);f(ds.$$.fragment,ro),ro.forEach(e),no.forEach(e),na=M(qe),il=o(qe,"SPAN",{});var co=n(il);ra=a(co,"\uC9C0\uC6D0\uB418\uB294 \uC791\uC5C5 \uBAA9\uB85D\uC5D0 \uCD94\uAC00\uD558\uAE30"),co.forEach(e),qe.forEach(e),ye=M(s),q=o(s,"P",{});var Yl=n(q);Ml=o(Yl,"CODE",{});var io=n(Ml);ca=a(io,"new-task"),io.forEach(e),ia=a(Yl,"\uB97C \uC9C0\uC6D0\uB418\uB294 \uC791\uC5C5 \uBAA9\uB85D\uC5D0 \uB4F1\uB85D\uD558\uB824\uBA74 "),dl=o(Yl,"CODE",{});var Mo=n(dl);Ma=a(Mo,"PIPELINE_REGISTRY"),Mo.forEach(e),da=a(Yl,"\uC5D0 \uCD94\uAC00\uD574\uC57C \uD569\uB2C8\uB2E4:"),Yl.forEach(e),je=M(s),f(ys.$$.fragment,s),fe=M(s),Bs=o(s,"P",{});var yo=n(Bs);ya=a(yo,"\uC6D0\uD558\uB294 \uACBD\uC6B0 \uAE30\uBCF8 \uBAA8\uB378\uC744 \uC9C0\uC815\uD560 \uC218 \uC788\uC73C\uBA70, \uC774 \uACBD\uC6B0 \uD2B9\uC815 \uAC1C\uC815(\uBD84\uAE30 \uC774\uB984 \uB610\uB294 \uCEE4\uBC0B \uD574\uC2DC\uC77C \uC218 \uC788\uC74C, \uC5EC\uAE30\uC11C\uB294 \u201Cabcdef\u201D)\uACFC \uD0C0\uC785\uC744 \uD568\uAED8 \uAC00\uC838\uC640\uC57C \uD569\uB2C8\uB2E4:"),yo.forEach(e),Je=M(s),f(js.$$.fragment,s),me=M(s),$=o(s,"H2",{class:!0});var $e=n($);P=o($e,"A",{id:!0,class:!0,href:!0});var jo=n(P);yl=o(jo,"SPAN",{});var fo=n(yl);f(fs.$$.fragment,fo),fo.forEach(e),jo.forEach(e),ja=M($e),jl=o($e,"SPAN",{});var Jo=n(jl);fa=a(Jo,"Hub\uC5D0 \uD30C\uC774\uD504\uB77C\uC778 \uACF5\uC720\uD558\uAE30"),Jo.forEach(e),$e.forEach(e),we=M(s),g=o(s,"P",{});var Qe=n(g);Ja=a(Qe,"Hub\uC5D0 \uC0AC\uC6A9\uC790 \uC815\uC758 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uACF5\uC720\uD558\uB824\uBA74 "),fl=o(Qe,"CODE",{});var mo=n(fl);ma=a(mo,"Pipeline"),mo.forEach(e),wa=a(Qe,` \uD558\uC704 \uD074\uB798\uC2A4\uC758 \uC0AC\uC6A9\uC790 \uC815\uC758 \uCF54\uB4DC\uB97C Python \uD30C\uC77C\uC5D0 \uC800\uC7A5\uD558\uAE30\uB9CC \uD558\uBA74 \uB429\uB2C8\uB2E4.
\uC608\uB97C \uB4E4\uC5B4, \uB2E4\uC74C\uACFC \uAC19\uC774 \uBB38\uC7A5 \uC30D \uBD84\uB958\uB97C \uC704\uD55C \uC0AC\uC6A9\uC790 \uC815\uC758 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC0AC\uC6A9\uD55C\uB2E4\uACE0 \uAC00\uC815\uD574 \uBCF4\uACA0\uC2B5\uB2C8\uB2E4:`),Qe.forEach(e),ue=M(s),f(Js.$$.fragment,s),Te=M(s),D=o(s,"P",{});var ze=n(D);ua=a(ze,`\uAD6C\uD604\uC740 \uD504\uB808\uC784\uC6CC\uD06C\uC5D0 \uAD6C\uC560\uBC1B\uC9C0 \uC54A\uC73C\uBA70, PyTorch\uC640 TensorFlow \uBAA8\uB378\uC5D0 \uB300\uD574 \uC791\uB3D9\uD569\uB2C8\uB2E4.
\uC774\uB97C `),Jl=o(ze,"CODE",{});var wo=n(Jl);Ta=a(wo,"pair_classification.py"),wo.forEach(e),ha=a(ze,"\uB77C\uB294 \uD30C\uC77C\uC5D0 \uC800\uC7A5\uD55C \uACBD\uC6B0, \uB2E4\uC74C\uACFC \uAC19\uC774 \uAC00\uC838\uC624\uACE0 \uB4F1\uB85D\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:"),ze.forEach(e),he=M(s),f(ms.$$.fragment,s),_e=M(s),x=o(s,"P",{});var Fe=n(x);_a=a(Fe,`\uC774 \uC791\uC5C5\uC774 \uC644\uB8CC\uB418\uBA74 \uC0AC\uC804\uD6C8\uB828\uB41C \uBAA8\uB378\uACFC \uD568\uAED8 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uC608\uB97C \uB4E4\uC5B4, `),ml=o(Fe,"CODE",{});var uo=n(ml);Ua=a(uo,"sgugger/finetuned-bert-mrpc"),uo.forEach(e),Ea=a(Fe,"\uC740 MRPC \uB370\uC774\uD130 \uC138\uD2B8\uC5D0\uC11C \uBBF8\uC138 \uC870\uC815\uB418\uC5B4 \uBB38\uC7A5 \uC30D\uC744 \uD328\uB7EC\uD504\uB808\uC774\uC988\uC778\uC9C0 \uC544\uB2CC\uC9C0\uB97C \uBD84\uB958\uD569\uB2C8\uB2E4."),Fe.forEach(e),Ue=M(s),f(ws.$$.fragment,s),Ee=M(s),Z=o(s,"P",{});var Zs=n(Z);Ia=a(Zs,"\uADF8\uB7F0 \uB2E4\uC74C "),wl=o(Zs,"CODE",{});var To=n(wl);ba=a(To,"Repository"),To.forEach(e),Ca=a(Zs,"\uC758 "),ul=o(Zs,"CODE",{});var ho=n(ul);Ba=a(ho,"save_pretrained"),ho.forEach(e),va=a(Zs," \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC5EC \uD5C8\uBE0C\uC5D0 \uACF5\uC720\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:"),Zs.forEach(e),Ie=M(s),f(us.$$.fragment,s),be=M(s),U=o(s,"P",{});var ps=n(U);ka=a(ps,"\uC774\uB807\uAC8C \uD558\uBA74 \u201Ctest-dynamic-pipeline\u201D \uD3F4\uB354 \uB0B4\uC5D0 "),Tl=o(ps,"CODE",{});var _o=n(Tl);Za=a(_o,"PairClassificationPipeline"),_o.forEach(e),Aa=a(ps,"\uC744 \uC815\uC758\uD55C \uD30C\uC77C\uC774 \uBCF5\uC0AC\uB418\uBA70, \uD30C\uC774\uD504\uB77C\uC778\uC758 \uBAA8\uB378\uACFC \uD1A0\uD06C\uB098\uC774\uC800\uB3C4 \uC800\uC7A5\uD55C \uD6C4, "),hl=o(ps,"CODE",{});var Uo=n(hl);Va=a(Uo,"{your_username}/test-dynamic-pipeline"),Uo.forEach(e),Na=a(ps,` \uC800\uC7A5\uC18C\uC5D0 \uC788\uB294 \uBAA8\uB4E0 \uAC83\uC744 \uD478\uC2DC\uD569\uB2C8\uB2E4.
\uC774\uD6C4\uC5D0\uB294 `),_l=o(ps,"CODE",{});var Eo=n(_l);Ra=a(Eo,"trust_remote_code=True"),Eo.forEach(e),Ga=a(ps," \uC635\uC158\uB9CC \uC81C\uACF5\uD558\uBA74 \uB204\uAD6C\uB098 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),ps.forEach(e),Ce=M(s),f(Ts.$$.fragment,s),Be=M(s),Q=o(s,"H2",{class:!0});var Ye=n(Q);O=o(Ye,"A",{id:!0,class:!0,href:!0});var Io=n(O);Ul=o(Io,"SPAN",{});var bo=n(Ul);f(hs.$$.fragment,bo),bo.forEach(e),Io.forEach(e),Wa=M(Ye),El=o(Ye,"SPAN",{});var Co=n(El);Xa=a(Co,"\u{1F917} Transformers\uC5D0 \uD30C\uC774\uD504\uB77C\uC778 \uCD94\uAC00\uD558\uAE30"),Co.forEach(e),Ye.forEach(e),ve=M(s),A=o(s,"P",{});var As=n(A);qa=a(As,"\u{1F917} Transformers\uC5D0 \uC0AC\uC6A9\uC790 \uC815\uC758 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uAE30\uC5EC\uD558\uB824\uBA74, "),Il=o(As,"CODE",{});var Bo=n(Il);$a=a(Bo,"pipelines"),Bo.forEach(e),Qa=a(As," \uD558\uC704 \uBAA8\uB4C8\uC5D0 \uC0AC\uC6A9\uC790 \uC815\uC758 \uD30C\uC774\uD504\uB77C\uC778 \uCF54\uB4DC\uC640 \uD568\uAED8 \uC0C8 \uBAA8\uB4C8\uC744 \uCD94\uAC00\uD55C \uB2E4\uC74C, "),bl=o(As,"CODE",{});var vo=n(bl);za=a(vo,"pipelines/__init__.py"),vo.forEach(e),Fa=a(As,"\uC5D0\uC11C \uC815\uC758\uB41C \uC791\uC5C5 \uBAA9\uB85D\uC5D0 \uCD94\uAC00\uD574\uC57C \uD569\uB2C8\uB2E4."),As.forEach(e),ke=M(s),L=o(s,"P",{});var He=n(L);Ya=a(He,`\uADF8\uB7F0 \uB2E4\uC74C \uD14C\uC2A4\uD2B8\uB97C \uCD94\uAC00\uD574\uC57C \uD569\uB2C8\uB2E4.
`),Cl=o(He,"CODE",{});var ko=n(Cl);Ha=a(ko,"tests/test_pipelines_MY_PIPELINE.py"),ko.forEach(e),Sa=a(He,"\uB77C\uB294 \uC0C8 \uD30C\uC77C\uC744 \uB9CC\uB4E4\uACE0 \uB2E4\uB978 \uD14C\uC2A4\uD2B8\uC640 \uC608\uC81C\uB97C \uD568\uAED8 \uC791\uC131\uD569\uB2C8\uB2E4."),He.forEach(e),Ze=M(s),v=o(s,"P",{});var Es=n(v);Bl=o(Es,"CODE",{});var Zo=n(Bl);Pa=a(Zo,"run_pipeline_test"),Zo.forEach(e),ga=a(Es," \uD568\uC218\uB294 \uB9E4\uC6B0 \uC77C\uBC18\uC801\uC774\uBA70, "),vl=o(Es,"CODE",{});var Ao=n(vl);Da=a(Ao,"model_mapping"),Ao.forEach(e),xa=a(Es," \uBC0F "),kl=o(Es,"CODE",{});var Vo=n(kl);Oa=a(Vo,"tf_model_mapping"),Vo.forEach(e),La=a(Es,"\uC5D0\uC11C \uC815\uC758\uB41C \uAC00\uB2A5\uD55C \uBAA8\uB4E0 \uC544\uD0A4\uD14D\uCC98\uC758 \uC791\uC740 \uBB34\uC791\uC704 \uBAA8\uB378\uC5D0\uC11C \uC2E4\uD589\uB429\uB2C8\uB2E4."),Es.forEach(e),Ae=M(s),E=o(s,"P",{});var os=n(E);Ka=a(os,"\uC774\uB294 \uD5A5\uD6C4 \uD638\uD658\uC131\uC744 \uD14C\uC2A4\uD2B8\uD558\uB294 \uB370 \uB9E4\uC6B0 \uC911\uC694\uD558\uBA70, \uB204\uAD70\uAC00 "),Zl=o(os,"CODE",{});var No=n(Zl);sp=a(No,"XXXForQuestionAnswering"),No.forEach(e),lp=a(os,`\uC744 \uC704\uD55C \uC0C8 \uBAA8\uB378\uC744 \uCD94\uAC00\uD558\uBA74 \uD30C\uC774\uD504\uB77C\uC778 \uD14C\uC2A4\uD2B8\uAC00 \uD574\uB2F9 \uBAA8\uB378\uC5D0\uC11C \uC2E4\uD589\uC744 \uC2DC\uB3C4\uD55C\uB2E4\uB294 \uC758\uBBF8\uC785\uB2C8\uB2E4.
\uBAA8\uB378\uC774 \uBB34\uC791\uC704\uC774\uAE30 \uB54C\uBB38\uC5D0 \uC2E4\uC81C \uAC12\uC744 \uD655\uC778\uD558\uB294 \uAC83\uC740 \uBD88\uAC00\uB2A5\uD558\uBBC0\uB85C, \uB2E8\uC21C\uD788 \uD30C\uC774\uD504\uB77C\uC778 \uCD9C\uB825 `),Al=o(os,"CODE",{});var Ro=n(Al);ep=a(Ro,"TYPE"),Ro.forEach(e),tp=a(os,"\uACFC \uC77C\uCE58\uC2DC\uD0A4\uAE30 \uC704\uD55C \uB3C4\uC6B0\uBBF8 "),Vl=o(os,"CODE",{});var Go=n(Vl);ap=a(Go,"ANY"),Go.forEach(e),pp=a(os,"\uAC00 \uC788\uC2B5\uB2C8\uB2E4."),os.forEach(e),Ve=M(s),vs=o(s,"P",{});var Wo=n(vs);op=a(Wo,"\uB610\uD55C 2\uAC1C(\uC774\uC0C1\uC801\uC73C\uB85C\uB294 4\uAC1C)\uC758 \uD14C\uC2A4\uD2B8\uB97C \uAD6C\uD604\uD574\uC57C \uD569\uB2C8\uB2E4."),Wo.forEach(e),Ne=M(s),I=o(s,"UL",{});var ns=n(I);K=o(ns,"LI",{});var Hl=n(K);Nl=o(Hl,"CODE",{});var Xo=n(Nl);np=a(Xo,"test_small_model_pt"),Xo.forEach(e),rp=a(Hl,`: \uC774 \uD30C\uC774\uD504\uB77C\uC778\uC5D0 \uB300\uD55C \uC791\uC740 \uBAA8\uB378 1\uAC1C\uB97C \uC815\uC758(\uACB0\uACFC\uAC00 \uC758\uBBF8 \uC5C6\uC5B4\uB3C4 \uC0C1\uAD00\uC5C6\uC74C)\uD558\uACE0 \uD30C\uC774\uD504\uB77C\uC778 \uCD9C\uB825\uC744 \uD14C\uC2A4\uD2B8\uD569\uB2C8\uB2E4.
\uACB0\uACFC\uB294 `),Rl=o(Hl,"CODE",{});var qo=n(Rl);cp=a(qo,"test_small_model_tf"),qo.forEach(e),ip=a(Hl,"\uC640 \uB3D9\uC77C\uD574\uC57C \uD569\uB2C8\uB2E4."),Hl.forEach(e),Mp=M(ns),ss=o(ns,"LI",{});var Sl=n(ss);Gl=o(Sl,"CODE",{});var $o=n(Gl);dp=a($o,"test_small_model_tf"),$o.forEach(e),yp=a(Sl,`: \uC774 \uD30C\uC774\uD504\uB77C\uC778\uC5D0 \uB300\uD55C \uC791\uC740 \uBAA8\uB378 1\uAC1C\uB97C \uC815\uC758(\uACB0\uACFC\uAC00 \uC758\uBBF8 \uC5C6\uC5B4\uB3C4 \uC0C1\uAD00\uC5C6\uC74C)\uD558\uACE0 \uD30C\uC774\uD504\uB77C\uC778 \uCD9C\uB825\uC744 \uD14C\uC2A4\uD2B8\uD569\uB2C8\uB2E4.
\uACB0\uACFC\uB294 `),Wl=o(Sl,"CODE",{});var Qo=n(Wl);jp=a(Qo,"test_small_model_pt"),Qo.forEach(e),fp=a(Sl,"\uC640 \uB3D9\uC77C\uD574\uC57C \uD569\uB2C8\uB2E4."),Sl.forEach(e),Jp=M(ns),ls=o(ns,"LI",{});var Pl=n(ls);Xl=o(Pl,"CODE",{});var zo=n(Xl);mp=a(zo,"test_large_model_pt"),zo.forEach(e),wp=a(Pl,"("),ql=o(Pl,"CODE",{});var Fo=n(ql);up=a(Fo,"\uC120\uD0DD\uC0AC\uD56D"),Fo.forEach(e),Tp=a(Pl,`): \uACB0\uACFC\uAC00 \uC758\uBBF8 \uC788\uC744 \uAC83\uC73C\uB85C \uC608\uC0C1\uB418\uB294 \uC2E4\uC81C \uD30C\uC774\uD504\uB77C\uC778\uC5D0\uC11C \uD30C\uC774\uD504\uB77C\uC778\uC744 \uD14C\uC2A4\uD2B8\uD569\uB2C8\uB2E4.
\uC774\uB7EC\uD55C \uD14C\uC2A4\uD2B8\uB294 \uC18D\uB3C4\uAC00 \uB290\uB9AC\uBBC0\uB85C \uC774\uB97C \uD45C\uC2DC\uD574\uC57C \uD569\uB2C8\uB2E4.
\uC5EC\uAE30\uC11C\uC758 \uBAA9\uD45C\uB294 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uBCF4\uC5EC\uC8FC\uACE0 \uD5A5\uD6C4 \uB9B4\uB9AC\uC988\uC5D0\uC11C\uC758 \uBCC0\uD654\uAC00 \uC5C6\uB294\uC9C0 \uD655\uC778\uD558\uB294 \uAC83\uC785\uB2C8\uB2E4.`),Pl.forEach(e),hp=M(ns),es=o(ns,"LI",{});var gl=n(es);$l=o(gl,"CODE",{});var Yo=n($l);_p=a(Yo,"test_large_model_tf"),Yo.forEach(e),Up=a(gl,"("),Ql=o(gl,"CODE",{});var Ho=n(Ql);Ep=a(Ho,"\uC120\uD0DD\uC0AC\uD56D"),Ho.forEach(e),Ip=a(gl,`): \uACB0\uACFC\uAC00 \uC758\uBBF8 \uC788\uC744 \uAC83\uC73C\uB85C \uC608\uC0C1\uB418\uB294 \uC2E4\uC81C \uD30C\uC774\uD504\uB77C\uC778\uC5D0\uC11C \uD30C\uC774\uD504\uB77C\uC778\uC744 \uD14C\uC2A4\uD2B8\uD569\uB2C8\uB2E4.
\uC774\uB7EC\uD55C \uD14C\uC2A4\uD2B8\uB294 \uC18D\uB3C4\uAC00 \uB290\uB9AC\uBBC0\uB85C \uC774\uB97C \uD45C\uC2DC\uD574\uC57C \uD569\uB2C8\uB2E4.
\uC5EC\uAE30\uC11C\uC758 \uBAA9\uD45C\uB294 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uBCF4\uC5EC\uC8FC\uACE0 \uD5A5\uD6C4 \uB9B4\uB9AC\uC988\uC5D0\uC11C\uC758 \uBCC0\uD654\uAC00 \uC5C6\uB294\uC9C0 \uD655\uC778\uD558\uB294 \uAC83\uC785\uB2C8\uB2E4.`),gl.forEach(e),ns.forEach(e),this.h()},h(){d(N,"name","hf:doc:metadata"),d(N,"content",JSON.stringify(Ko)),d(F,"id","how-to-create-a-custom-pipeline"),d(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"),d(F,"href","#how-to-create-a-custom-pipeline"),d(R,"class","relative group"),d(Is,"href","hf.co/models"),d(S,"id","adding-it-to-the-list-of-supported-tasks"),d(S,"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"),d(S,"href","#adding-it-to-the-list-of-supported-tasks"),d(X,"class","relative group"),d(P,"id","share-your-pipeline-on-the-hub"),d(P,"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"),d(P,"href","#share-your-pipeline-on-the-hub"),d($,"class","relative group"),d(O,"id","add-the-pipeline-to-transformers"),d(O,"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"),d(O,"href","#add-the-pipeline-to-transformers"),d(Q,"class","relative group")},m(s,r){l(document.head,N),c(s,Dl,r),c(s,R,r),l(R,F),l(F,Vs),J(rs,Vs,null),l(R,Pe),l(R,Ns),l(Ns,ge),c(s,xl,r),c(s,Y,r),l(Y,De),l(Y,Is),l(Is,xe),l(Y,Oe),c(s,Ol,r),c(s,k,r),l(k,Le),l(k,Rs),l(Rs,Ke),l(k,st),l(k,Gs),l(Gs,lt),l(k,et),c(s,Ll,r),c(s,h,r),l(h,tt),l(h,Ws),l(Ws,at),l(h,pt),l(h,Xs),l(Xs,ot),l(h,nt),l(h,qs),l(qs,rt),l(h,ct),c(s,Kl,r),c(s,y,r),l(y,it),l(y,$s),l($s,Mt),l(y,dt),l(y,Qs),l(Qs,yt),l(y,jt),l(y,zs),l(zs,ft),l(y,Jt),l(y,Fs),l(Fs,mt),l(y,wt),l(y,Ys),l(Ys,ut),l(y,Tt),c(s,se,r),J(cs,s,r),c(s,le,r),c(s,bs,r),l(bs,ht),c(s,ee,r),c(s,G,r),l(G,Hs),l(Hs,_t),l(G,Ut),l(G,Ss),l(Ss,Et),l(G,It),c(s,te,r),c(s,C,r),l(C,Ps),l(Ps,bt),l(C,Ct),l(C,gs),l(gs,Bt),l(C,vt),l(C,Ds),l(Ds,kt),l(C,Zt),c(s,ae,r),c(s,W,r),l(W,xs),l(xs,At),l(W,Vt),l(W,Os),l(Os,Nt),l(W,Rt),c(s,pe,r),c(s,B,r),l(B,Ls),l(Ls,Gt),l(B,Wt),l(B,Ks),l(Ks,Xt),l(B,qt),l(B,sl),l(sl,$t),l(B,Qt),c(s,oe,r),c(s,T,r),l(T,ll),l(ll,zt),l(T,Ft),l(T,el),l(el,Yt),l(T,Ht),l(T,tl),l(tl,St),l(T,Pt),l(T,al),l(al,gt),l(T,Dt),c(s,ne,r),c(s,H,r),l(H,xt),l(H,pl),l(pl,Ot),l(H,Lt),c(s,re,r),J(is,s,r),c(s,ce,r),c(s,_,r),l(_,Kt),l(_,ol),l(ol,sa),l(_,la),l(_,nl),l(nl,ea),l(_,ta),l(_,rl),l(rl,aa),l(_,pa),c(s,ie,r),J(Ms,s,r),c(s,Me,r),c(s,Cs,r),l(Cs,oa),c(s,de,r),c(s,X,r),l(X,S),l(S,cl),J(ds,cl,null),l(X,na),l(X,il),l(il,ra),c(s,ye,r),c(s,q,r),l(q,Ml),l(Ml,ca),l(q,ia),l(q,dl),l(dl,Ma),l(q,da),c(s,je,r),J(ys,s,r),c(s,fe,r),c(s,Bs,r),l(Bs,ya),c(s,Je,r),J(js,s,r),c(s,me,r),c(s,$,r),l($,P),l(P,yl),J(fs,yl,null),l($,ja),l($,jl),l(jl,fa),c(s,we,r),c(s,g,r),l(g,Ja),l(g,fl),l(fl,ma),l(g,wa),c(s,ue,r),J(Js,s,r),c(s,Te,r),c(s,D,r),l(D,ua),l(D,Jl),l(Jl,Ta),l(D,ha),c(s,he,r),J(ms,s,r),c(s,_e,r),c(s,x,r),l(x,_a),l(x,ml),l(ml,Ua),l(x,Ea),c(s,Ue,r),J(ws,s,r),c(s,Ee,r),c(s,Z,r),l(Z,Ia),l(Z,wl),l(wl,ba),l(Z,Ca),l(Z,ul),l(ul,Ba),l(Z,va),c(s,Ie,r),J(us,s,r),c(s,be,r),c(s,U,r),l(U,ka),l(U,Tl),l(Tl,Za),l(U,Aa),l(U,hl),l(hl,Va),l(U,Na),l(U,_l),l(_l,Ra),l(U,Ga),c(s,Ce,r),J(Ts,s,r),c(s,Be,r),c(s,Q,r),l(Q,O),l(O,Ul),J(hs,Ul,null),l(Q,Wa),l(Q,El),l(El,Xa),c(s,ve,r),c(s,A,r),l(A,qa),l(A,Il),l(Il,$a),l(A,Qa),l(A,bl),l(bl,za),l(A,Fa),c(s,ke,r),c(s,L,r),l(L,Ya),l(L,Cl),l(Cl,Ha),l(L,Sa),c(s,Ze,r),c(s,v,r),l(v,Bl),l(Bl,Pa),l(v,ga),l(v,vl),l(vl,Da),l(v,xa),l(v,kl),l(kl,Oa),l(v,La),c(s,Ae,r),c(s,E,r),l(E,Ka),l(E,Zl),l(Zl,sp),l(E,lp),l(E,Al),l(Al,ep),l(E,tp),l(E,Vl),l(Vl,ap),l(E,pp),c(s,Ve,r),c(s,vs,r),l(vs,op),c(s,Ne,r),c(s,I,r),l(I,K),l(K,Nl),l(Nl,np),l(K,rp),l(K,Rl),l(Rl,cp),l(K,ip),l(I,Mp),l(I,ss),l(ss,Gl),l(Gl,dp),l(ss,yp),l(ss,Wl),l(Wl,jp),l(ss,fp),l(I,Jp),l(I,ls),l(ls,Xl),l(Xl,mp),l(ls,wp),l(ls,ql),l(ql,up),l(ls,Tp),l(I,hp),l(I,es),l(es,$l),l($l,_p),l(es,Up),l(es,Ql),l(Ql,Ep),l(es,Ip),Re=!0},p:xo,i(s){Re||(m(rs.$$.fragment,s),m(cs.$$.fragment,s),m(is.$$.fragment,s),m(Ms.$$.fragment,s),m(ds.$$.fragment,s),m(ys.$$.fragment,s),m(js.$$.fragment,s),m(fs.$$.fragment,s),m(Js.$$.fragment,s),m(ms.$$.fragment,s),m(ws.$$.fragment,s),m(us.$$.fragment,s),m(Ts.$$.fragment,s),m(hs.$$.fragment,s),Re=!0)},o(s){w(rs.$$.fragment,s),w(cs.$$.fragment,s),w(is.$$.fragment,s),w(Ms.$$.fragment,s),w(ds.$$.fragment,s),w(ys.$$.fragment,s),w(js.$$.fragment,s),w(fs.$$.fragment,s),w(Js.$$.fragment,s),w(ms.$$.fragment,s),w(ws.$$.fragment,s),w(us.$$.fragment,s),w(Ts.$$.fragment,s),w(hs.$$.fragment,s),Re=!1},d(s){e(N),s&&e(Dl),s&&e(R),u(rs),s&&e(xl),s&&e(Y),s&&e(Ol),s&&e(k),s&&e(Ll),s&&e(h),s&&e(Kl),s&&e(y),s&&e(se),u(cs,s),s&&e(le),s&&e(bs),s&&e(ee),s&&e(G),s&&e(te),s&&e(C),s&&e(ae),s&&e(W),s&&e(pe),s&&e(B),s&&e(oe),s&&e(T),s&&e(ne),s&&e(H),s&&e(re),u(is,s),s&&e(ce),s&&e(_),s&&e(ie),u(Ms,s),s&&e(Me),s&&e(Cs),s&&e(de),s&&e(X),u(ds),s&&e(ye),s&&e(q),s&&e(je),u(ys,s),s&&e(fe),s&&e(Bs),s&&e(Je),u(js,s),s&&e(me),s&&e($),u(fs),s&&e(we),s&&e(g),s&&e(ue),u(Js,s),s&&e(Te),s&&e(D),s&&e(he),u(ms,s),s&&e(_e),s&&e(x),s&&e(Ue),u(ws,s),s&&e(Ee),s&&e(Z),s&&e(Ie),u(us,s),s&&e(be),s&&e(U),s&&e(Ce),u(Ts,s),s&&e(Be),s&&e(Q),u(hs),s&&e(ve),s&&e(A),s&&e(ke),s&&e(L),s&&e(Ze),s&&e(v),s&&e(Ae),s&&e(E),s&&e(Ve),s&&e(vs),s&&e(Ne),s&&e(I)}}}const Ko={local:"how-to-create-a-custom-pipeline",sections:[{local:"adding-it-to-the-list-of-supported-tasks",title:"\uC9C0\uC6D0\uB418\uB294 \uC791\uC5C5 \uBAA9\uB85D\uC5D0 \uCD94\uAC00\uD558\uAE30 "},{local:"share-your-pipeline-on-the-hub",title:"Hub\uC5D0 \uD30C\uC774\uD504\uB77C\uC778 \uACF5\uC720\uD558\uAE30 "},{local:"add-the-pipeline-to-transformers",title:"\u{1F917} Transformers\uC5D0 \uD30C\uC774\uD504\uB77C\uC778 \uCD94\uAC00\uD558\uAE30 "}],title:"\uC5B4\uB5BB\uAC8C \uC0AC\uC6A9\uC790 \uC815\uC758 \uD30C\uC774\uD504\uB77C\uC778\uC744 \uC0DD\uC131\uD558\uB098\uC694? "};function sn(bp){return Oo(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class an extends So{constructor(N){super();Po(this,N,sn,Lo,go,{})}}export{an as default,Ko as metadata};
