import{S as Al,i as Hl,s as Il,e as h,k as o,w as y,t as a,M as Sl,c as i,d as t,m as p,a as c,x as _,h as r,b as g,N as Ol,G as e,g as l,y as x,q as k,o as w,B as E,v as Nl}from"../../chunks/vendor-hf-doc-builder.js";import{T as Bn}from"../../chunks/Tip-hf-doc-builder.js";import{Y as Dl}from"../../chunks/Youtube-hf-doc-builder.js";import{I as M}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as H}from"../../chunks/CodeBlock-hf-doc-builder.js";import{C as Ll}from"../../chunks/CourseFloatingBanner-hf-doc-builder.js";import"../../chunks/DocNotebookDropdown-hf-doc-builder.js";function Ml(S){let m,$,f,b,v,u,d,T,I;return{c(){m=a("B\u1EA1n c\xF3 th\u1EA5y n\xFAt "),$=h("em"),f=a("M\u1EDF trong Colab"),b=a(` \u1EDF tr\xEAn c\xF9ng b\xEAn ph\u1EA3i kh\xF4ng? B\u1EA5m v\xE0o n\xF3 \u0111\u1EC3 m\u1EDF s\u1ED5 ghi ch\xE9p Google Colab v\u1EDBi t\u1EA5t c\u1EA3 c\xE1c \u0111o\u1EA1n m\xE3 c\u1EE7a ph\u1EA7n n\xE0y. N\xFAt n\xE0y s\u1EBD xu\u1EA5t hi\u1EC7n trong b\u1EA5t k\u1EF3 ph\u1EA7n n\xE0o c\xF3 ch\u1EE9a c\xE1c m\xE3 v\xED d\u1EE5.
`),v=h("p"),u=a("N\u1EBFu b\u1EA1n mu\u1ED1n ch\u1EA1y c\xE1c v\xED d\u1EE5 \u1EDF m\xE1y c\xE1 nh\xE2n, c\xE1c b\u1EA1n c\xF3 th\u1EC3 tham kh\u1EA3o ph\u1EA7n "),d=h("a"),T=a("c\xE0i \u0111\u1EB7t"),I=a("."),this.h()},l(q){m=r(q,"B\u1EA1n c\xF3 th\u1EA5y n\xFAt "),$=i(q,"EM",{});var P=c($);f=r(P,"M\u1EDF trong Colab"),P.forEach(t),b=r(q,` \u1EDF tr\xEAn c\xF9ng b\xEAn ph\u1EA3i kh\xF4ng? B\u1EA5m v\xE0o n\xF3 \u0111\u1EC3 m\u1EDF s\u1ED5 ghi ch\xE9p Google Colab v\u1EDBi t\u1EA5t c\u1EA3 c\xE1c \u0111o\u1EA1n m\xE3 c\u1EE7a ph\u1EA7n n\xE0y. N\xFAt n\xE0y s\u1EBD xu\u1EA5t hi\u1EC7n trong b\u1EA5t k\u1EF3 ph\u1EA7n n\xE0o c\xF3 ch\u1EE9a c\xE1c m\xE3 v\xED d\u1EE5.
`),v=i(q,"P",{});var A=c(v);u=r(A,"N\u1EBFu b\u1EA1n mu\u1ED1n ch\u1EA1y c\xE1c v\xED d\u1EE5 \u1EDF m\xE1y c\xE1 nh\xE2n, c\xE1c b\u1EA1n c\xF3 th\u1EC3 tham kh\u1EA3o ph\u1EA7n "),d=i(A,"A",{href:!0});var j=c(d);T=r(j,"c\xE0i \u0111\u1EB7t"),j.forEach(t),I=r(A,"."),A.forEach(t),this.h()},h(){g(d,"href","/course/chapter0")},m(q,P){l(q,m,P),l(q,$,P),e($,f),l(q,b,P),l(q,v,P),e(v,u),e(v,d),e(d,T),e(v,I)},d(q){q&&t(m),q&&t($),q&&t(b),q&&t(v)}}}function Bl(S){let m,$,f,b;return{c(){m=a("\u26A0\uFE0F Hugging Face Hub kh\xF4ng gi\u1EDBi h\u1EA1n \u1EDF c\xE1c m\xF4 h\xECnh Transformer. B\u1EA5t k\u1EF3 ai c\u0169ng c\xF3 th\u1EC3 chia s\u1EBB b\u1EA5t k\u1EF3 lo\u1EA1i m\xF4 h\xECnh ho\u1EB7c b\u1ED9 d\u1EEF li\u1EC7u n\xE0o h\u1ECD mu\u1ED1n! "),$=h("a"),f=a("T\u1EA1o t\xE0i kho\u1EA3n huggingface.co"),b=a(" \u0111\u1EC3 h\u01B0\u1EDFng l\u1EE3i t\u1EEB t\u1EA5t c\u1EA3 c\xE1c t\xEDnh n\u0103ng c\xF3 s\u1EB5n n\xE0y!"),this.h()},l(v){m=r(v,"\u26A0\uFE0F Hugging Face Hub kh\xF4ng gi\u1EDBi h\u1EA1n \u1EDF c\xE1c m\xF4 h\xECnh Transformer. B\u1EA5t k\u1EF3 ai c\u0169ng c\xF3 th\u1EC3 chia s\u1EBB b\u1EA5t k\u1EF3 lo\u1EA1i m\xF4 h\xECnh ho\u1EB7c b\u1ED9 d\u1EEF li\u1EC7u n\xE0o h\u1ECD mu\u1ED1n! "),$=i(v,"A",{href:!0});var u=c($);f=r(u,"T\u1EA1o t\xE0i kho\u1EA3n huggingface.co"),u.forEach(t),b=r(v," \u0111\u1EC3 h\u01B0\u1EDFng l\u1EE3i t\u1EEB t\u1EA5t c\u1EA3 c\xE1c t\xEDnh n\u0103ng c\xF3 s\u1EB5n n\xE0y!"),this.h()},h(){g($,"href","https://huggingface.co/join")},m(v,u){l(v,m,u),l(v,$,u),e($,f),l(v,b,u)},d(v){v&&t(m),v&&t($),v&&t(b)}}}function Fl(S){let m,$,f,b,v;return{c(){m=h("p"),$=a("\u270F\uFE0F "),f=h("strong"),b=a("Th\u1EED nghi\u1EC7m th\xF4i!"),v=a(" C\xF9ng th\u1EED c\xE1c chu\u1ED7i v\u0103n b\u1EA3n v\xE0 c\xE1c nh\xE3n ri\xEAng c\u1EE7a b\u1EA1n \u0111\u1EC3 xem m\xF4 h\xECnh ho\u1EA1t \u0111\u1ED9ng nh\u01B0 th\u1EBF n\xE0o.")},l(u){m=i(u,"P",{});var d=c(m);$=r(d,"\u270F\uFE0F "),f=i(d,"STRONG",{});var T=c(f);b=r(T,"Th\u1EED nghi\u1EC7m th\xF4i!"),T.forEach(t),v=r(d," C\xF9ng th\u1EED c\xE1c chu\u1ED7i v\u0103n b\u1EA3n v\xE0 c\xE1c nh\xE3n ri\xEAng c\u1EE7a b\u1EA1n \u0111\u1EC3 xem m\xF4 h\xECnh ho\u1EA1t \u0111\u1ED9ng nh\u01B0 th\u1EBF n\xE0o."),d.forEach(t)},m(u,d){l(u,m,d),e(m,$),e(m,f),e(f,b),e(m,v)},d(u){u&&t(m)}}}function Gl(S){let m,$,f,b,v,u,d,T,I,q,P;return{c(){m=h("p"),$=a("\u270F\uFE0F "),f=h("strong"),b=a("Th\u1EED nghi\u1EC7m th\xF4i!"),v=a(" S\u1EED d\u1EE5ng "),u=h("code"),d=a("num_return_sequences"),T=a(" v\xE0 "),I=h("code"),q=a("max_length"),P=a(" \u0111\u1EC3 t\u1EA1o ra hai c\xE2u, m\u1ED7i c\xE2u ch\u1EE9a 15 t\u1EEB.")},l(A){m=i(A,"P",{});var j=c(m);$=r(j,"\u270F\uFE0F "),f=i(j,"STRONG",{});var Z=c(f);b=r(Z,"Th\u1EED nghi\u1EC7m th\xF4i!"),Z.forEach(t),v=r(j," S\u1EED d\u1EE5ng "),u=i(j,"CODE",{});var B=c(u);d=r(B,"num_return_sequences"),B.forEach(t),T=r(j," v\xE0 "),I=i(j,"CODE",{});var Q=c(I);q=r(Q,"max_length"),Q.forEach(t),P=r(j," \u0111\u1EC3 t\u1EA1o ra hai c\xE2u, m\u1ED7i c\xE2u ch\u1EE9a 15 t\u1EEB."),j.forEach(t)},m(A,j){l(A,m,j),e(m,$),e(m,f),e(f,b),e(m,v),e(m,u),e(u,d),e(m,T),e(m,I),e(I,q),e(m,P)},d(A){A&&t(m)}}}function Rl(S){let m,$,f,b,v;return{c(){m=h("p"),$=a("\u270F\uFE0F "),f=h("strong"),b=a("Th\u1EED nghi\u1EC7m th\xF4i!"),v=a(" S\u1EED d\u1EE5ng b\u1ED9 l\u1ECDc \u0111\u1EC3 t\xECm m\xF4 h\xECnh t\u1EA1o v\u0103n b\u1EA3n cho ng\xF4n ng\u1EEF kh\xE1c. H\xE3y tho\u1EA3i m\xE1i ch\u01A1i v\u1EDBi ti\u1EC7n \xEDch n\xE0y v\xE0 s\u1EED d\u1EE5ng n\xF3 theo m\u1ED9t pipeline!")},l(u){m=i(u,"P",{});var d=c(m);$=r(d,"\u270F\uFE0F "),f=i(d,"STRONG",{});var T=c(f);b=r(T,"Th\u1EED nghi\u1EC7m th\xF4i!"),T.forEach(t),v=r(d," S\u1EED d\u1EE5ng b\u1ED9 l\u1ECDc \u0111\u1EC3 t\xECm m\xF4 h\xECnh t\u1EA1o v\u0103n b\u1EA3n cho ng\xF4n ng\u1EEF kh\xE1c. H\xE3y tho\u1EA3i m\xE1i ch\u01A1i v\u1EDBi ti\u1EC7n \xEDch n\xE0y v\xE0 s\u1EED d\u1EE5ng n\xF3 theo m\u1ED9t pipeline!"),d.forEach(t)},m(u,d){l(u,m,d),e(m,$),e(m,f),e(f,b),e(m,v)},d(u){u&&t(m)}}}function zl(S){let m,$,f,b,v,u,d,T,I,q,P;return{c(){m=h("p"),$=a("\u270F\uFE0F "),f=h("strong"),b=a("Th\u1EED nghi\u1EC7m th\xF4i!"),v=a(" T\xECm ki\u1EBFm m\xF4 h\xECnh "),u=h("code"),d=a("bert-base-cased"),T=a(" tr\xEAn Hub v\xE0 x\xE1c \u0111\u1ECBnh t\u1EEB b\u1ECB che c\u1EE7a n\xF3 trong ti\u1EC7n \xEDch Inference API. M\xF4 h\xECnh n\xE0y d\u1EF1 \u0111o\xE1n \u0111i\u1EC1u g\xEC cho c\xE2u trong v\xED d\u1EE5 v\u1EC1 "),I=h("code"),q=a("pipeline"),P=a(" c\u1EE7a ch\xFAng ta \u1EDF tr\xEAn?")},l(A){m=i(A,"P",{});var j=c(m);$=r(j,"\u270F\uFE0F "),f=i(j,"STRONG",{});var Z=c(f);b=r(Z,"Th\u1EED nghi\u1EC7m th\xF4i!"),Z.forEach(t),v=r(j," T\xECm ki\u1EBFm m\xF4 h\xECnh "),u=i(j,"CODE",{});var B=c(u);d=r(B,"bert-base-cased"),B.forEach(t),T=r(j," tr\xEAn Hub v\xE0 x\xE1c \u0111\u1ECBnh t\u1EEB b\u1ECB che c\u1EE7a n\xF3 trong ti\u1EC7n \xEDch Inference API. M\xF4 h\xECnh n\xE0y d\u1EF1 \u0111o\xE1n \u0111i\u1EC1u g\xEC cho c\xE2u trong v\xED d\u1EE5 v\u1EC1 "),I=i(j,"CODE",{});var Q=c(I);q=r(Q,"pipeline"),Q.forEach(t),P=r(j," c\u1EE7a ch\xFAng ta \u1EDF tr\xEAn?"),j.forEach(t)},m(A,j){l(A,m,j),e(m,$),e(m,f),e(f,b),e(m,v),e(m,u),e(u,d),e(m,T),e(m,I),e(I,q),e(m,P)},d(A){A&&t(m)}}}function Vl(S){let m,$,f,b,v;return{c(){m=h("p"),$=a("\u270F\uFE0F "),f=h("strong"),b=a("Th\u1EED nghi\u1EC7m th\xF4i!"),v=a(" T\xECm ki\u1EBFm tr\xEAn Model Hub \u0111\u1EC3 t\xECm m\u1ED9t m\xF4 h\xECnh c\xF3 th\u1EC3 th\u1EF1c hi\u1EC7n g\xE1n nh\xE3n t\u1EEB lo\u1EA1i (th\u01B0\u1EDDng \u0111\u01B0\u1EE3c vi\u1EBFt t\u1EAFt l\xE0 POS) b\u1EB1ng ti\u1EBFng Anh. M\xF4 h\xECnh n\xE0y d\u1EF1 \u0111o\xE1n \u0111i\u1EC1u g\xEC cho c\xE2u trong v\xED d\u1EE5 tr\xEAn?")},l(u){m=i(u,"P",{});var d=c(m);$=r(d,"\u270F\uFE0F "),f=i(d,"STRONG",{});var T=c(f);b=r(T,"Th\u1EED nghi\u1EC7m th\xF4i!"),T.forEach(t),v=r(d," T\xECm ki\u1EBFm tr\xEAn Model Hub \u0111\u1EC3 t\xECm m\u1ED9t m\xF4 h\xECnh c\xF3 th\u1EC3 th\u1EF1c hi\u1EC7n g\xE1n nh\xE3n t\u1EEB lo\u1EA1i (th\u01B0\u1EDDng \u0111\u01B0\u1EE3c vi\u1EBFt t\u1EAFt l\xE0 POS) b\u1EB1ng ti\u1EBFng Anh. M\xF4 h\xECnh n\xE0y d\u1EF1 \u0111o\xE1n \u0111i\u1EC1u g\xEC cho c\xE2u trong v\xED d\u1EE5 tr\xEAn?"),d.forEach(t)},m(u,d){l(u,m,d),e(m,$),e(m,f),e(f,b),e(m,v)},d(u){u&&t(m)}}}function Ul(S){let m,$,f,b,v;return{c(){m=h("p"),$=a("\u270F\uFE0F "),f=h("strong"),b=a("Th\u1EED nghi\u1EC7m th\xF4i!"),v=a(" T\xECm ki\u1EBFm c\xE1c m\xF4 h\xECnh d\u1ECBch \u1EDF c\xE1c ng\xF4n ng\u1EEF kh\xE1c v\xE0 c\u1ED1 g\u1EAFng d\u1ECBch c\xE2u tr\u01B0\u1EDBc \u0111\xF3 sang m\u1ED9t v\xE0i ng\xF4n ng\u1EEF kh\xE1c nhau.")},l(u){m=i(u,"P",{});var d=c(m);$=r(d,"\u270F\uFE0F "),f=i(d,"STRONG",{});var T=c(f);b=r(T,"Th\u1EED nghi\u1EC7m th\xF4i!"),T.forEach(t),v=r(d," T\xECm ki\u1EBFm c\xE1c m\xF4 h\xECnh d\u1ECBch \u1EDF c\xE1c ng\xF4n ng\u1EEF kh\xE1c v\xE0 c\u1ED1 g\u1EAFng d\u1ECBch c\xE2u tr\u01B0\u1EDBc \u0111\xF3 sang m\u1ED9t v\xE0i ng\xF4n ng\u1EEF kh\xE1c nhau."),d.forEach(t)},m(u,d){l(u,m,d),e(m,$),e(m,f),e(f,b),e(m,v)},d(u){u&&t(m)}}}function Wl(S){let m,$,f,b,v,u,d,T,I,q,P,A,j,Z,B,Q,hi,fs,cn,vs,X,ln,Kt,Fn,ii,ne,ai,ds,At,ri,$s,on,Fr,bs,F,ci,Gn,li,oi,Rn,pi,mi,ys,pn,_s,Ht,gi,xs,Y,mn,te,zn,ui,ee,fi,ks,Vn,ws,gn,vi,se,di,$i,Es,Un,js,Wn,Ts,It,bi,qs,Zn,Ps,Qn,Cs,un,yi,he,_i,xi,As,St,ki,Hs,G,ie,wi,Ei,ae,ji,Ti,re,qi,Is,fn,Pi,Xn,Ci,Ai,Ss,C,Ot,ce,Hi,Ii,Si,le,oe,Oi,Ni,Nt,pe,Di,Li,Mi,me,ge,Bi,Fi,ue,fe,Gi,Ri,ve,de,zi,Vi,$e,be,Ui,Wi,ye,_e,Zi,Qi,xe,ke,Xi,Os,Dt,Yi,Ns,J,vn,we,Yn,Ji,Ee,Ki,Ds,dn,na,je,ta,ea,Ls,Lt,sa,Ms,Jn,Bs,Kn,Fs,$n,ha,Te,ia,aa,Gs,bn,Rs,K,yn,qe,nt,ra,Pe,ca,zs,Mt,la,Vs,tt,Us,et,Ws,R,oa,Ce,pa,ma,Ae,ga,ua,Zs,_n,Qs,nn,xn,He,st,fa,Ie,va,Xs,z,da,ht,$a,ba,it,ya,_a,Ys,kn,xa,at,Se,ka,wa,Js,rt,Ks,ct,nh,Bt,Ea,th,Ft,ja,eh,wn,sh,tn,En,Oe,lt,Ta,Ne,qa,hh,jn,Pa,ot,Ca,Aa,ih,Tn,Ha,pt,Ia,Sa,ah,en,qn,De,mt,Oa,Le,Na,rh,Pn,Da,Me,La,Ma,ch,gt,lh,ut,oh,L,Ba,Be,Fa,Ga,Fe,Ra,za,Ge,Va,Ua,ph,Cn,mh,sn,An,Re,ft,Wa,ze,Za,gh,Gt,Qa,uh,vt,fh,dt,vh,Rt,Xa,dh,O,Ya,Ve,Ja,Ka,Ue,nr,tr,We,er,sr,Ze,hr,ir,Qe,ar,rr,Xe,cr,lr,$h,Hn,bh,hn,In,Ye,$t,or,Je,pr,yh,Sn,mr,Ke,gr,ur,_h,bt,xh,yt,kh,zt,fr,wh,an,On,ns,_t,vr,ts,dr,Eh,Vt,$r,jh,xt,Th,kt,qh,V,br,es,yr,_r,ss,xr,kr,Ph,rn,Nn,hs,wt,wr,is,Er,Ch,U,jr,as,Tr,qr,Et,Pr,Cr,Ah,jt,Hh,Tt,Ih,W,Ar,rs,Hr,Ir,cs,Sr,Or,Sh,Dn,Oh,Ln,Nr,ls,Dr,Lr,Nh;return u=new M({}),P=new Ll({props:{chapter:1,classNames:"absolute z-10 right-0 top-0",notebooks:[{label:"Google Colab",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/vi/chapter1/section3.ipynb"},{label:"Aws Studio",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/master/course/vi/chapter1/section3.ipynb"}]}}),cn=new Bn({props:{$$slots:{default:[Ml]},$$scope:{ctx:S}}}),Fn=new M({}),pn=new Bn({props:{$$slots:{default:[Bl]},$$scope:{ctx:S}}}),zn=new M({}),Vn=new Dl({props:{id:"tiZFewofSLM"}}),Un=new H({props:{code:`from transformers import pipeline

classifier = pipeline("sentiment-analysis")
classifier("I've been waiting for a HuggingFace course my whole life.")`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

classifier = pipeline(<span class="hljs-string">&quot;sentiment-analysis&quot;</span>)
classifier(<span class="hljs-string">&quot;I&#x27;ve been waiting for a HuggingFace course my whole life.&quot;</span>)`}}),Wn=new H({props:{code:"[{'label': 'POSITIVE', 'score': 0.9598047137260437}]",highlighted:'[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;POSITIVE&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9598047137260437</span>}]'}}),Zn=new H({props:{code:`classifier(
    ["I've been waiting for a HuggingFace course my whole life.", "I hate this so much!"]
)`,highlighted:`classifier(
    [<span class="hljs-string">&quot;I&#x27;ve been waiting for a HuggingFace course my whole life.&quot;</span>, <span class="hljs-string">&quot;I hate this so much!&quot;</span>]
)`}}),Qn=new H({props:{code:`[{'label': 'POSITIVE', 'score': 0.9598047137260437},
 {'label': 'NEGATIVE', 'score': 0.9994558095932007}]`,highlighted:`[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;POSITIVE&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9598047137260437</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;NEGATIVE&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9994558095932007</span>}]`}}),Yn=new M({}),Jn=new H({props:{code:`from transformers import pipeline

classifier = pipeline("zero-shot-classification")
classifier(
    "This is a course about the Transformers library",
    candidate_labels=["education", "politics", "business"],
)`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

classifier = pipeline(<span class="hljs-string">&quot;zero-shot-classification&quot;</span>)
classifier(
    <span class="hljs-string">&quot;This is a course about the Transformers library&quot;</span>,
    candidate_labels=[<span class="hljs-string">&quot;education&quot;</span>, <span class="hljs-string">&quot;politics&quot;</span>, <span class="hljs-string">&quot;business&quot;</span>],
)`}}),Kn=new H({props:{code:`{'sequence': 'This is a course about the Transformers library',
 'labels': ['education', 'business', 'politics'],
 'scores': [0.8445963859558105, 0.111976258456707, 0.043427448719739914]}`,highlighted:`{<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;This is a course about the Transformers library&#x27;</span>,
 <span class="hljs-string">&#x27;labels&#x27;</span>: [<span class="hljs-string">&#x27;education&#x27;</span>, <span class="hljs-string">&#x27;business&#x27;</span>, <span class="hljs-string">&#x27;politics&#x27;</span>],
 <span class="hljs-string">&#x27;scores&#x27;</span>: [<span class="hljs-number">0.8445963859558105</span>, <span class="hljs-number">0.111976258456707</span>, <span class="hljs-number">0.043427448719739914</span>]}`}}),bn=new Bn({props:{$$slots:{default:[Fl]},$$scope:{ctx:S}}}),nt=new M({}),tt=new H({props:{code:`from transformers import pipeline

generator = pipeline("text-generation")
generator("In this course, we will teach you how to")`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

generator = pipeline(<span class="hljs-string">&quot;text-generation&quot;</span>)
generator(<span class="hljs-string">&quot;In this course, we will teach you how to&quot;</span>)`}}),et=new H({props:{code:`[{'generated_text': 'In this course, we will teach you how to understand and use '
                    'data flow and data interchange when handling user data. We '
                    'will be working with one or more of the most commonly used '
                    'data flows \u2014 data flows of various types, as seen by the '
                    'HTTP'}]`,highlighted:`[{<span class="hljs-string">&#x27;generated_text&#x27;</span>: <span class="hljs-string">&#x27;In this course, we will teach you how to understand and use &#x27;</span>
                    <span class="hljs-string">&#x27;data flow and data interchange when handling user data. We &#x27;</span>
                    <span class="hljs-string">&#x27;will be working with one or more of the most commonly used &#x27;</span>
                    <span class="hljs-string">&#x27;data flows \u2014 data flows of various types, as seen by the &#x27;</span>
                    <span class="hljs-string">&#x27;HTTP&#x27;</span>}]`}}),_n=new Bn({props:{$$slots:{default:[Gl]},$$scope:{ctx:S}}}),st=new M({}),rt=new H({props:{code:`from transformers import pipeline

generator = pipeline("text-generation", model="distilgpt2")
generator(
    "In this course, we will teach you how to",
    max_length=30,
    num_return_sequences=2,
)`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

generator = pipeline(<span class="hljs-string">&quot;text-generation&quot;</span>, model=<span class="hljs-string">&quot;distilgpt2&quot;</span>)
generator(
    <span class="hljs-string">&quot;In this course, we will teach you how to&quot;</span>,
    max_length=<span class="hljs-number">30</span>,
    num_return_sequences=<span class="hljs-number">2</span>,
)`}}),ct=new H({props:{code:`[{'generated_text': 'In this course, we will teach you how to manipulate the world and '
                    'move your mental and physical capabilities to your advantage.'},
 {'generated_text': 'In this course, we will teach you how to become an expert and '
                    'practice realtime, and with a hands on experience on both real '
                    'time and real'}]`,highlighted:`[{<span class="hljs-string">&#x27;generated_text&#x27;</span>: <span class="hljs-string">&#x27;In this course, we will teach you how to manipulate the world and &#x27;</span>
                    <span class="hljs-string">&#x27;move your mental and physical capabilities to your advantage.&#x27;</span>},
 {<span class="hljs-string">&#x27;generated_text&#x27;</span>: <span class="hljs-string">&#x27;In this course, we will teach you how to become an expert and &#x27;</span>
                    <span class="hljs-string">&#x27;practice realtime, and with a hands on experience on both real &#x27;</span>
                    <span class="hljs-string">&#x27;time and real&#x27;</span>}]`}}),wn=new Bn({props:{$$slots:{default:[Rl]},$$scope:{ctx:S}}}),lt=new M({}),mt=new M({}),gt=new H({props:{code:`from transformers import pipeline

unmasker = pipeline("fill-mask")
unmasker("This course will teach you all about <mask> models.", top_k=2)`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

unmasker = pipeline(<span class="hljs-string">&quot;fill-mask&quot;</span>)
unmasker(<span class="hljs-string">&quot;This course will teach you all about &lt;mask&gt; models.&quot;</span>, top_k=<span class="hljs-number">2</span>)`}}),ut=new H({props:{code:`[{'sequence': 'This course will teach you all about mathematical models.',
  'score': 0.19619831442832947,
  'token': 30412,
  'token_str': ' mathematical'},
 {'sequence': 'This course will teach you all about computational models.',
  'score': 0.04052725434303284,
  'token': 38163,
  'token_str': ' computational'}]`,highlighted:`[{<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;This course will teach you all about mathematical models.&#x27;</span>,
  <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.19619831442832947</span>,
  <span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">30412</span>,
  <span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27; mathematical&#x27;</span>},
 {<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;This course will teach you all about computational models.&#x27;</span>,
  <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.04052725434303284</span>,
  <span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">38163</span>,
  <span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27; computational&#x27;</span>}]`}}),Cn=new Bn({props:{$$slots:{default:[zl]},$$scope:{ctx:S}}}),ft=new M({}),vt=new H({props:{code:`from transformers import pipeline

ner = pipeline("ner", grouped_entities=True)
ner("My name is Sylvain and I work at Hugging Face in Brooklyn.")`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

ner = pipeline(<span class="hljs-string">&quot;ner&quot;</span>, grouped_entities=<span class="hljs-literal">True</span>)
ner(<span class="hljs-string">&quot;My name is Sylvain and I work at Hugging Face in Brooklyn.&quot;</span>)`}}),dt=new H({props:{code:`[{'entity_group': 'PER', 'score': 0.99816, 'word': 'Sylvain', 'start': 11, 'end': 18}, 
 {'entity_group': 'ORG', 'score': 0.97960, 'word': 'Hugging Face', 'start': 33, 'end': 45}, 
 {'entity_group': 'LOC', 'score': 0.99321, 'word': 'Brooklyn', 'start': 49, 'end': 57}
]`,highlighted:`[{<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;PER&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.99816</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;Sylvain&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">11</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">18</span>}, 
 {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;ORG&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.97960</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;Hugging Face&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">33</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">45</span>}, 
 {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;LOC&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.99321</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;Brooklyn&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">49</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">57</span>}
]`}}),Hn=new Bn({props:{$$slots:{default:[Vl]},$$scope:{ctx:S}}}),$t=new M({}),bt=new H({props:{code:`from transformers import pipeline

question_answerer = pipeline("question-answering")
question_answerer(
    question="Where do I work?",
    context="My name is Sylvain and I work at Hugging Face in Brooklyn",
)`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

question_answerer = pipeline(<span class="hljs-string">&quot;question-answering&quot;</span>)
question_answerer(
    question=<span class="hljs-string">&quot;Where do I work?&quot;</span>,
    context=<span class="hljs-string">&quot;My name is Sylvain and I work at Hugging Face in Brooklyn&quot;</span>,
)`}}),yt=new H({props:{code:"{'score': 0.6385916471481323, 'start': 33, 'end': 45, 'answer': 'Hugging Face'}",highlighted:'{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.6385916471481323</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">33</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">45</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;Hugging Face&#x27;</span>}'}}),_t=new M({}),xt=new H({props:{code:`from transformers import pipeline

summarizer = pipeline("summarization")
summarizer(
    """
    America has changed dramatically during recent years. Not only has the number of 
    graduates in traditional engineering disciplines such as mechanical, civil, 
    electrical, chemical, and aeronautical engineering declined, but in most of 
    the premier American universities engineering curricula now concentrate on 
    and encourage largely the study of engineering science. As a result, there 
    are declining offerings in engineering subjects dealing with infrastructure, 
    the environment, and related issues, and greater concentration on high 
    technology subjects, largely supporting increasingly complex scientific 
    developments. While the latter is important, it should not be at the expense 
    of more traditional engineering.

    Rapidly developing economies such as China and India, as well as other 
    industrial countries in Europe and Asia, continue to encourage and advance 
    the teaching of engineering. Both China and India, respectively, graduate 
    six and eight times as many traditional engineers as does the United States. 
    Other industrial countries at minimum maintain their output, while America 
    suffers an increasingly serious decline in the number of engineering graduates 
    and a lack of well-educated engineers.
"""
)`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

summarizer = pipeline(<span class="hljs-string">&quot;summarization&quot;</span>)
summarizer(
    <span class="hljs-string">&quot;&quot;&quot;
    America has changed dramatically during recent years. Not only has the number of 
    graduates in traditional engineering disciplines such as mechanical, civil, 
    electrical, chemical, and aeronautical engineering declined, but in most of 
    the premier American universities engineering curricula now concentrate on 
    and encourage largely the study of engineering science. As a result, there 
    are declining offerings in engineering subjects dealing with infrastructure, 
    the environment, and related issues, and greater concentration on high 
    technology subjects, largely supporting increasingly complex scientific 
    developments. While the latter is important, it should not be at the expense 
    of more traditional engineering.

    Rapidly developing economies such as China and India, as well as other 
    industrial countries in Europe and Asia, continue to encourage and advance 
    the teaching of engineering. Both China and India, respectively, graduate 
    six and eight times as many traditional engineers as does the United States. 
    Other industrial countries at minimum maintain their output, while America 
    suffers an increasingly serious decline in the number of engineering graduates 
    and a lack of well-educated engineers.
&quot;&quot;&quot;</span>
)`}}),kt=new H({props:{code:`[{'summary_text': ' America has changed dramatically during recent years . The '
                  'number of engineering graduates in the U.S. has declined in '
                  'traditional engineering disciplines such as mechanical, civil '
                  ', electrical, chemical, and aeronautical engineering . Rapidly '
                  'developing economies such as China and India, as well as other '
                  'industrial countries in Europe and Asia, continue to encourage '
                  'and advance engineering .'}]`,highlighted:`[{<span class="hljs-string">&#x27;summary_text&#x27;</span>: <span class="hljs-string">&#x27; America has changed dramatically during recent years . The &#x27;</span>
                  <span class="hljs-string">&#x27;number of engineering graduates in the U.S. has declined in &#x27;</span>
                  <span class="hljs-string">&#x27;traditional engineering disciplines such as mechanical, civil &#x27;</span>
                  <span class="hljs-string">&#x27;, electrical, chemical, and aeronautical engineering . Rapidly &#x27;</span>
                  <span class="hljs-string">&#x27;developing economies such as China and India, as well as other &#x27;</span>
                  <span class="hljs-string">&#x27;industrial countries in Europe and Asia, continue to encourage &#x27;</span>
                  <span class="hljs-string">&#x27;and advance engineering .&#x27;</span>}]`}}),wt=new M({}),jt=new H({props:{code:`from transformers import pipeline

translator = pipeline("translation", model="Helsinki-NLP/opus-mt-fr-en")
translator("Ce cours est produit par Hugging Face.")`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

translator = pipeline(<span class="hljs-string">&quot;translation&quot;</span>, model=<span class="hljs-string">&quot;Helsinki-NLP/opus-mt-fr-en&quot;</span>)
translator(<span class="hljs-string">&quot;Ce cours est produit par Hugging Face.&quot;</span>)`}}),Tt=new H({props:{code:"[{'translation_text': 'This course is produced by Hugging Face.'}]",highlighted:'[{<span class="hljs-string">&#x27;translation_text&#x27;</span>: <span class="hljs-string">&#x27;This course is produced by Hugging Face.&#x27;</span>}]'}}),Dn=new Bn({props:{$$slots:{default:[Ul]},$$scope:{ctx:S}}}),{c(){m=h("meta"),$=o(),f=h("h1"),b=h("a"),v=h("span"),y(u.$$.fragment),d=o(),T=h("span"),I=a("Transformers c\xF3 th\u1EC3 l\xE0m nh\u1EEFng g\xEC?"),q=o(),y(P.$$.fragment),A=o(),j=h("p"),Z=a("Trong ph\u1EA7n n\xE0y, ch\xFAng ta s\u1EBD xem c\xE1c m\xF4 h\xECnh Transformer c\xF3 th\u1EC3 l\xE0m \u0111\u01B0\u1EE3c nh\u1EEFng g\xEC v\xE0 s\u1EED d\u1EE5ng c\xF4ng c\u1EE5 \u0111\u1EA7u ti\xEAn t\u1EEB th\u01B0 vi\u1EC7n \u{1F917} Transformers: h\xE0m "),B=h("code"),Q=a("pipeline()"),hi=a("."),fs=o(),y(cn.$$.fragment),vs=o(),X=h("h2"),ln=h("a"),Kt=h("span"),y(Fn.$$.fragment),ii=o(),ne=h("span"),ai=a("Transformers \u1EDF mu\xF4n n\u01A1i!"),ds=o(),At=h("p"),ri=a("C\xE1c m\xF4 h\xECnh Transformers \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng \u0111\u1EC3 gi\u1EA3i quy\u1EBFt t\u1EA5t c\u1EA3 c\xE1c ki\u1EC3u t\xE1c v\u1EE5 NLP, gi\u1ED1ng nh\u01B0 c\xE1c m\xF4 h\xECnh \u0111\u1EC1 c\u1EADp trong ph\u1EA7n tr\u01B0\u1EDBc. D\u01B0\u1EDBi \u0111\xE2y l\xE0 m\u1ED9t s\u1ED1 c\xF4ng ty v\xE0 t\u1ED5 ch\u1EE9c s\u1EED d\u1EE5ng Hugging Face v\xE0 c\xE1c m\xF4 h\xECnh Transformer, \u0111\u1ED3ng th\u1EDDi \u0111\xF3ng g\xF3p l\u1EA1i cho c\u1ED9ng \u0111\u1ED3ng b\u1EB1ng c\xE1ch chia s\u1EBB c\xE1c m\xF4 h\xECnh c\u1EE7a h\u1ECD:"),$s=o(),on=h("img"),bs=o(),F=h("p"),ci=a("Th\u01B0 vi\u1EC7n "),Gn=h("a"),li=a("\u{1F917} Transformers"),oi=a(" cung c\u1EA5p t\xEDnh n\u0103ng t\u1EA1o v\xE0 s\u1EED d\u1EE5ng c\xE1c m\xF4 h\xECnh \u0111\u01B0\u1EE3c chia s\u1EBB \u0111\xF3. "),Rn=h("a"),pi=a("Model Hub"),mi=a(" ch\u1EE9a h\xE0ng ngh\xECn m\xF4 h\xECnh \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc m\xE0 b\u1EA5t k\u1EF3 ai c\u0169ng c\xF3 th\u1EC3 t\u1EA3i xu\u1ED1ng v\xE0 s\u1EED d\u1EE5ng. B\u1EA1n c\u0169ng c\xF3 th\u1EC3 t\u1EA3i c\xE1c m\xF4 h\xECnh c\u1EE7a ri\xEAng m\xECnh l\xEAn Hub!"),ys=o(),y(pn.$$.fragment),_s=o(),Ht=h("p"),gi=a("Tr\u01B0\u1EDBc khi \u0111i s\xE2u v\xE0o c\xE1ch ho\u1EA1t \u0111\u1ED9ng c\u1EE7a c\xE1c m\xF4 h\xECnh Transformer, h\xE3y c\xF9ng xem m\u1ED9t v\xE0i v\xED d\u1EE5 v\u1EC1 c\xE1ch s\u1EED d\u1EE5ng ch\xFAng \u0111\u1EC3 gi\u1EA3i quy\u1EBFt m\u1ED9t s\u1ED1 v\u1EA5n \u0111\u1EC1 NLP th\xFA v\u1ECB."),xs=o(),Y=h("h2"),mn=h("a"),te=h("span"),y(zn.$$.fragment),ui=o(),ee=h("span"),fi=a("L\xE0m vi\u1EC7c v\u1EDBi pipelines"),ks=o(),y(Vn.$$.fragment),ws=o(),gn=h("p"),vi=a("\u0110\u1ED1i t\u01B0\u1EE3ng c\u01A1 b\u1EA3n nh\u1EA5t trong th\u01B0 vi\u1EC7n \u{1F917} Transformers l\xE0 h\xE0m "),se=h("code"),di=a("pipeline()"),$i=a(". H\xE0m k\u1EBFt n\u1ED1i m\u1ED9t m\xF4 h\xECnh v\u1EDBi c\xE1c b\u01B0\u1EDBc ti\u1EC1n x\u1EED l\xFD v\xE0 h\u1EADu x\u1EED l\xFD c\u1EA7n thi\u1EBFt, cho ph\xE9p ch\xFAng ta nh\u1EADp tr\u1EF1c ti\u1EBFp b\u1EA5t k\u1EF3 v\u0103n b\u1EA3n n\xE0o v\xE0 nh\u1EADn \u0111\u01B0\u1EE3c c\xE2u tr\u1EA3 l\u1EDDi d\u1EC5 hi\u1EC3u:"),Es=o(),y(Un.$$.fragment),js=o(),y(Wn.$$.fragment),Ts=o(),It=h("p"),bi=a("Ch\xFAng t\xF4i th\u1EADm ch\xED c\xF3 th\u1EC3 truy\u1EC1n v\xE0o nhi\u1EC1u c\xE2u!"),qs=o(),y(Zn.$$.fragment),Ps=o(),y(Qn.$$.fragment),Cs=o(),un=h("p"),yi=a("Theo m\u1EB7c \u0111\u1ECBnh, quy tr\xECnh n\xE0y ch\u1ECDn m\u1ED9t m\xF4 h\xECnh c\u1EE5 th\u1EC3 \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc v\xE0 \u0111\xE3 \u0111\u01B0\u1EE3c tinh ch\u1EC9nh \u0111\u1EC3 ph\xE2n t\xEDch c\u1EA3m x\xFAc v\u0103n b\u1EA3n ti\u1EBFng Anh. M\xF4 h\xECnh \u0111\u01B0\u1EE3c t\u1EA3i xu\u1ED1ng v\xE0 l\u01B0u v\xE0o b\u1ED9 nh\u1EDB cache khi b\u1EA1n t\u1EA1o \u0111\u1ED1i t\u01B0\u1EE3ng "),he=h("code"),_i=a("classifier"),xi=a(". N\u1EBFu b\u1EA1n ch\u1EA1y l\u1EA1i l\u1EC7nh, m\xF4 h\xECnh \u0111\xE3 l\u01B0u trong b\u1ED9 nh\u1EDB cache s\u1EBD \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng thay th\u1EBF v\xE0 kh\xF4ng c\u1EA7n t\u1EA3i l\u1EA1i m\xF4 h\xECnh m\u1ED9t l\u1EA7n n\u1EEFa."),As=o(),St=h("p"),ki=a("C\xF3 ba b\u01B0\u1EDBc ch\xEDnh khi b\u1EA1n chuy\u1EC3n m\u1ED9t s\u1ED1 v\u0103n b\u1EA3n v\xE0o m\u1ED9t pipeline:"),Hs=o(),G=h("ol"),ie=h("li"),wi=a("V\u0103n b\u1EA3n \u0111\u01B0\u1EE3c ti\u1EC1n x\u1EED l\xFD th\xE0nh m\u1ED9t \u0111\u1ECBnh d\u1EA1ng m\xE0 m\xF4 h\xECnh c\xF3 th\u1EC3 hi\u1EC3u \u0111\u01B0\u1EE3c."),Ei=o(),ae=h("li"),ji=a("C\xE1c \u0111\u1EA7u v\xE0o \u0111\xE3 ti\u1EC1n x\u1EED l\xFD \u0111\u01B0\u1EE3c \u0111\u01B0a v\xE0o m\xF4 h\xECnh."),Ti=o(),re=h("li"),qi=a("C\xE1c d\u1EF1 \u0111o\xE1n c\u1EE7a m\xF4 h\xECnh \u0111\u01B0\u1EE3c h\u1EADu x\u1EED l\xFD \u0111\u1EC3 b\u1EA1n c\xF3 th\u1EC3 hi\u1EC3u \u0111\u01B0\u1EE3c ch\xFAng."),Is=o(),fn=h("p"),Pi=a("M\u1ED9t s\u1ED1 "),Xn=h("a"),Ci=a("pipeline"),Ai=a(" hi\u1EC7n c\xF3 c\xF3 th\u1EC3 k\u1EC3 \u0111\u1EBFn:"),Ss=o(),C=h("ul"),Ot=h("li"),ce=h("code"),Hi=a("feature-extraction"),Ii=a(" (tr\xEDch xu\u1EA5t bi\u1EC3u di\u1EC5n vect\u01A1 c\u1EE7a m\u1ED9t v\u0103n b\u1EA3n)"),Si=o(),le=h("li"),oe=h("code"),Oi=a("fill-mask"),Ni=o(),Nt=h("li"),pe=h("code"),Di=a("ner"),Li=a(" (nh\u1EADn d\u1EA1ng th\u1EF1c th\u1EC3)"),Mi=o(),me=h("li"),ge=h("code"),Bi=a("question-answering"),Fi=o(),ue=h("li"),fe=h("code"),Gi=a("sentiment-analysis"),Ri=o(),ve=h("li"),de=h("code"),zi=a("summarization"),Vi=o(),$e=h("li"),be=h("code"),Ui=a("text-generation"),Wi=o(),ye=h("li"),_e=h("code"),Zi=a("translation"),Qi=o(),xe=h("li"),ke=h("code"),Xi=a("zero-shot-classification"),Os=o(),Dt=h("p"),Yi=a("Ch\xFAng ta h\xE3y c\xF9ng xem m\u1ED9t v\xE0i v\xED d\u1EE5 trong s\u1ED1 k\u1EC3 tr\xEAn!"),Ns=o(),J=h("h2"),vn=h("a"),we=h("span"),y(Yn.$$.fragment),Ji=o(),Ee=h("span"),Ki=a("Ph\xE2n lo\u1EA1i kh\xF4ng m\u1EABu (Zero-shot)"),Ds=o(),dn=h("p"),na=a("Ch\xFAng ta s\u1EBD b\u1EAFt \u0111\u1EA7u v\u1EDBi vi\u1EC7c gi\u1EA3i quy\u1EBFt m\u1ED9t t\xE1c v\u1EE5 kh\xF3 nh\u1EB1n h\u01A1n: ch\xFAng ta c\u1EA7n ph\xE2n lo\u1EA1i c\xE1c v\u0103n b\u1EA3n ch\u01B0a \u0111\u01B0\u1EE3c d\xE1n nh\xE3n. \u0110\xE2y l\xE0 m\u1ED9t t\xECnh hu\u1ED1ng ph\u1ED5 bi\u1EBFn trong c\xE1c d\u1EF1 \xE1n th\u1EF1c t\u1EBF v\xEC vi\u1EC7c \u0111\xE1nh nh\xE3n v\u0103n b\u1EA3n th\u01B0\u1EDDng t\u1ED1n nhi\u1EC1u th\u1EDDi gian v\xE0 y\xEAu c\u1EA7u ki\u1EBFn th\u1EE9c chuy\xEAn m\xF4n. \u0110\u1ED1i v\u1EDBi tr\u01B0\u1EDDng h\u1EE3p n\xE0y, "),je=h("code"),ta=a("zero-shot-classification"),ea=a(" l\xE0 m\u1ED9t ph\u01B0\u01A1ng \xE1n m\u1EA1nh m\u1EBD: n\xF3 cho ph\xE9p b\u1EA1n ch\u1EC9 \u0111\u1ECBnh nh\xE3n n\xE0o s\u1EBD s\u1EED d\u1EE5ng \u0111\u1EC3 ph\xE2n lo\u1EA1i, v\xEC v\u1EADy b\u1EA1n kh\xF4ng c\u1EA7n ph\u1EA3i d\u1EF1a v\xE0o c\xE1c nh\xE3n c\u1EE7a m\xF4 h\xECnh \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc."),Ls=o(),Lt=h("p"),sa=a("B\u1EA1n \u0111\xE3 th\u1EA5y c\xE1ch m\xF4 h\xECnh c\xF3 th\u1EC3 ph\xE2n lo\u1EA1i m\u1ED9t c\xE2u l\xE0 t\xEDch c\u1EF1c hay ti\xEAu c\u1EF1c b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng hai nh\xE3n \u0111\xF3 - nh\u01B0ng n\xF3 c\u0169ng c\xF3 th\u1EC3 ph\xE2n lo\u1EA1i v\u0103n b\u1EA3n b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng b\u1EA5t k\u1EF3 b\u1ED9 nh\xE3n n\xE0o kh\xE1c m\xE0 b\u1EA1n th\xEDch."),Ms=o(),y(Jn.$$.fragment),Bs=o(),y(Kn.$$.fragment),Fs=o(),$n=h("p"),ha=a("Quy tr\xECnh n\xE0y \u0111\u01B0\u1EE3c g\u1ECDi l\xE0 "),Te=h("em"),ia=a("zero-shot"),aa=a(" (kh\xF4ng m\u1EABu) v\xEC b\u1EA1n kh\xF4ng c\u1EA7n tinh ch\u1EC9nh m\xF4 h\xECnh tr\xEAn d\u1EEF li\u1EC7u c\u1EE7a b\u1EA1n \u0111\u1EC3 s\u1EED d\u1EE5ng. N\xF3 c\xF3 th\u1EC3 tr\u1EF1c ti\u1EBFp tr\u1EA3 v\u1EC1 x\xE1c su\u1EA5t cho b\u1EA5t k\u1EF3 danh s\xE1ch nh\xE3n n\xE0o b\u1EA1n mu\u1ED1n!"),Gs=o(),y(bn.$$.fragment),Rs=o(),K=h("h2"),yn=h("a"),qe=h("span"),y(nt.$$.fragment),ra=o(),Pe=h("span"),ca=a("T\u1EA1o v\u0103n b\u1EA3n"),zs=o(),Mt=h("p"),la=a("Gi\u1EDD ch\xFAng ta h\xE3y c\xF9ng xem c\xE1ch s\u1EED d\u1EE5ng m\u1ED9t pipeline \u0111\u1EC3 t\u1EA1o ra v\u0103n b\u1EA3n. \xDD t\u01B0\u1EDFng ch\xEDnh \u1EDF \u0111\xE2y l\xE0 b\u1EA1n cung c\u1EA5p m\u1ED9t l\u1EDDi g\u1EE3i \xFD v\xE0 m\xF4 h\xECnh s\u1EBD t\u1EF1 \u0111\u1ED9ng ho\xE0n th\xE0nh n\xF3 b\u1EB1ng c\xE1ch t\u1EA1o ra ph\u1EA7n v\u0103n b\u1EA3n c\xF2n l\u1EA1i. \u0110i\u1EC1u n\xE0y t\u01B0\u01A1ng t\u1EF1 nh\u01B0 t\xEDnh n\u0103ng g\u1EE3i \xFD v\u0103n b\u1EA3n \u0111\u01B0\u1EE3c t\xECm th\u1EA5y tr\xEAn \u0111i\u1EC7n tho\u1EA1i. Vi\u1EC7c t\u1EA1o v\u0103n b\u1EA3n li\xEAn quan \u0111\u1EBFn s\u1EF1 ng\u1EABu nhi\xEAn, v\xEC v\u1EADy n\u1EBFu b\u1EA1n kh\xF4ng nh\u1EADn \u0111\u01B0\u1EE3c k\u1EBFt qu\u1EA3 nh\u01B0 h\xECnh d\u01B0\u1EDBi \u0111\xE2y c\u0169ng l\xE0 \u0111i\u1EC1u d\u1EC5 hi\u1EC3u."),Vs=o(),y(tt.$$.fragment),Us=o(),y(et.$$.fragment),Ws=o(),R=h("p"),oa=a("B\u1EA1n c\xF3 th\u1EC3 ki\u1EC3m so\xE1t s\u1ED1 l\u01B0\u1EE3ng chu\u1ED7i kh\xE1c nhau \u0111\u01B0\u1EE3c t\u1EA1o v\u1EDBi tham s\u1ED1 "),Ce=h("code"),pa=a("num_return_sequences"),ma=a(" v\xE0 t\u1ED5ng \u0111\u1ED9 d\xE0i c\u1EE7a v\u0103n b\u1EA3n \u0111\u1EA7u ra v\u1EDBi tham s\u1ED1 "),Ae=h("code"),ga=a("max_length"),ua=a("."),Zs=o(),y(_n.$$.fragment),Qs=o(),nn=h("h2"),xn=h("a"),He=h("span"),y(st.$$.fragment),fa=o(),Ie=h("span"),va=a("S\u1EED d\u1EE5ng m\u1ED9t m\xF4 h\xECnh b\u1EA5t k\u1EF3 t\u1EEB Hub trong pipeline"),Xs=o(),z=h("p"),da=a("C\xE1c v\xED d\u1EE5 tr\u01B0\u1EDBc \u0111\xE3 s\u1EED d\u1EE5ng m\xF4 h\xECnh m\u1EB7c \u0111\u1ECBnh cho c\xE1c t\xE1c v\u1EE5, nh\u01B0ng b\u1EA1n c\u0169ng c\xF3 th\u1EC3 ch\u1ECDn m\u1ED9t m\xF4 h\xECnh c\u1EE5 th\u1EC3 t\u1EEB Hub \u0111\u1EC3 s\u1EED d\u1EE5ng trong pipeline cho m\u1ED9t t\xE1c v\u1EE5 c\u1EE5 th\u1EC3 - v\xED d\u1EE5, t\u1EA1o v\u0103n b\u1EA3n. Truy c\u1EADp "),ht=h("a"),$a=a("Model Hub"),ba=a(" v\xE0 b\u1EA5m v\xE0o th\u1EBB t\u01B0\u01A1ng \u1EE9ng \u1EDF b\xEAn tr\xE1i \u0111\u1EC3 ch\u1EC9 hi\u1EC3n th\u1ECB c\xE1c m\xF4 h\xECnh \u0111\u01B0\u1EE3c h\u1ED7 tr\u1EE3 cho t\xE1c v\u1EE5 \u0111\xF3. B\u1EA1n s\u1EBD \u0111\u1EBFn m\u1ED9t trang nh\u01B0 "),it=h("a"),ya=a("trang n\xE0y"),_a=a("."),Ys=o(),kn=h("p"),xa=a("H\xE3y th\u1EED m\xF4 h\xECnh "),at=h("a"),Se=h("code"),ka=a("distilgpt2"),wa=a("! \u0110\xE2y l\xE0 c\xE1ch t\u1EA3i n\xF3 v\xE0o c\xF9ng m\u1ED9t pipeline nh\u01B0 ph\u1EA7n tr\u01B0\u1EDBc:"),Js=o(),y(rt.$$.fragment),Ks=o(),y(ct.$$.fragment),nh=o(),Bt=h("p"),Ea=a("B\u1EA1n c\xF3 th\u1EC3 tinh ch\u1EC9nh vi\u1EC7c t\xECm ki\u1EBFm cho m\u1ED9t m\xF4 h\xECnh c\u1EE7a m\xECnh b\u1EB1ng c\xE1ch nh\u1EA5p v\xE0o c\xE1c th\u1EBB ng\xF4n ng\u1EEF v\xE0 ch\u1ECDn m\u1ED9t m\xF4 h\xECnh s\u1EBD t\u1EA1o v\u0103n b\u1EA3n b\u1EB1ng ng\xF4n ng\u1EEF kh\xE1c. Model Hub th\u1EADm ch\xED c\xF2n ch\u1EE9a c\xE1c checkpoints cho c\xE1c m\xF4 h\xECnh \u0111a ng\xF4n ng\u1EEF h\u1ED7 tr\u1EE3 m\u1ED9t s\u1ED1 ng\xF4n ng\u1EEF kh\xE1c nhau."),th=o(),Ft=h("p"),ja=a("Sau khi b\u1EA1n ch\u1ECDn m\u1ED9t m\xF4 h\xECnh b\u1EB1ng c\xE1ch b\u1EA5m v\xE0o n\xF3, b\u1EA1n s\u1EBD th\u1EA5y r\u1EB1ng c\xF3 m\u1ED9t ti\u1EC7n \xEDch cho ph\xE9p b\u1EA1n d\xF9ng th\u1EED tr\u1EF1c tuy\u1EBFn. B\u1EB1ng c\xE1ch n\xE0y, b\u1EA1n c\xF3 th\u1EC3 nhanh ch\xF3ng ki\u1EC3m tra kh\u1EA3 n\u0103ng c\u1EE7a m\xF4 h\xECnh tr\u01B0\u1EDBc khi t\u1EA3i xu\u1ED1ng."),eh=o(),y(wn.$$.fragment),sh=o(),tn=h("h3"),En=h("a"),Oe=h("span"),y(lt.$$.fragment),Ta=o(),Ne=h("span"),qa=a("Inference API"),hh=o(),jn=h("p"),Pa=a("T\u1EA5t c\u1EA3 c\xE1c m\xF4 h\xECnh c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c ki\u1EC3m tra tr\u1EF1c ti\u1EBFp th\xF4ng qua tr\xECnh duy\u1EC7t c\u1EE7a b\u1EA1n b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng Inference API, c\xF3 s\u1EB5n tr\xEAn "),ot=h("a"),Ca=a("trang web Hugging Face"),Aa=a(". B\u1EA1n c\xF3 th\u1EC3 ch\u01A1i v\u1EDBi m\xF4 h\xECnh tr\u1EF1c ti\u1EBFp tr\xEAn trang n\xE0y b\u1EB1ng c\xE1ch nh\u1EADp v\u0103n b\u1EA3n t\xF9y ch\u1EC9nh v\xE0 xem m\xF4 h\xECnh x\u1EED l\xFD d\u1EEF li\u1EC7u \u0111\u1EA7u v\xE0o."),ih=o(),Tn=h("p"),Ha=a("Inference API h\u1ED7 tr\u1EE3 ti\u1EC7n \xEDch n\xE0y c\u0169ng c\xF3 s\u1EB5n d\u01B0\u1EDBi d\u1EA1ng s\u1EA3n ph\u1EA9m tr\u1EA3 ph\xED, r\u1EA5t h\u1EEFu \xEDch n\u1EBFu b\u1EA1n c\u1EA7n n\xF3 cho quy tr\xECnh c\xF4ng vi\u1EC7c c\u1EE7a m\xECnh. Xem "),pt=h("a"),Ia=a("trang gi\xE1"),Sa=a(" \u0111\u1EC3 bi\u1EBFt th\xEAm chi ti\u1EBFt."),ah=o(),en=h("h2"),qn=h("a"),De=h("span"),y(mt.$$.fragment),Oa=o(),Le=h("span"),Na=a("\u0110i\u1EC1n v\xE0o ch\u1ED7 tr\u1ED1ng"),rh=o(),Pn=h("p"),Da=a("Pipeline ti\u1EBFp theo b\u1EA1n s\u1EBD th\u1EED nghi\u1EC7m, \u0111\xF3 l\xE0 "),Me=h("code"),La=a("fill-mask"),Ma=a(". \xDD t\u01B0\u1EDFng c\u1EE7a t\xE1c v\u1EE5 n\xE0y l\xE0 \u0111i\u1EC1n v\xE0o ch\u1ED7 tr\u1ED1ng trong m\u1ED9t v\u0103n b\u1EA3n nh\u1EA5t \u0111\u1ECBnh:"),ch=o(),y(gt.$$.fragment),lh=o(),y(ut.$$.fragment),oh=o(),L=h("p"),Ba=a("Tham s\u1ED1 "),Be=h("code"),Fa=a("top_k"),Ga=a(" ki\u1EC3m so\xE1t s\u1ED1 l\u01B0\u1EE3ng kh\u1EA3 n\u0103ng b\u1EA1n mu\u1ED1n \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB. L\u01B0u \xFD r\u1EB1ng \u1EDF \u0111\xE2y m\xF4 h\xECnh \u0111i\u1EC1n t\u1EEB v\xE0o v\u1ECB tr\xED b\u1ECB che b\u1EDFi t\u1EEB "),Fe=h("code"),Ra=a("<mask>"),za=a(", th\u01B0\u1EDDng \u0111\u01B0\u1EE3c g\u1ECDi l\xE0 "),Ge=h("em"),Va=a("mask token"),Ua=a(". C\xE1c m\xF4 h\xECnh \u0111i\u1EC1n kh\xE1c c\xF3 th\u1EC3 c\xF3 c\xE1c ki\u1EC3u che t\u1EEB kh\xE1c nhau, v\xEC v\u1EADy, t\u1ED1t nh\u1EA5t n\xEAn x\xE1c minh t\u1EEB b\u1ECB che ph\xF9 h\u1EE3p khi kh\xE1m ph\xE1 c\xE1c m\xF4 h\xECnh kh\xE1c. M\u1ED9t c\xE1ch \u0111\u1EC3 ki\u1EC3m tra \u0111\xF3 l\xE0 xem t\u1EEB b\u1ECB che \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng trong ti\u1EC7n \xEDch con."),ph=o(),y(Cn.$$.fragment),mh=o(),sn=h("h2"),An=h("a"),Re=h("span"),y(ft.$$.fragment),Wa=o(),ze=h("span"),Za=a("Nh\u1EADn d\u1EA1ng th\u1EF1c th\u1EC3"),gh=o(),Gt=h("p"),Qa=a("Nh\u1EADn d\u1EA1ng th\u1EF1c th\u1EC3 \u0111\u01B0\u1EE3c \u0111\u1EB7t t\xEAn (NER) l\xE0 m\u1ED9t t\xE1c v\u1EE5 trong \u0111\xF3 m\xF4 h\xECnh ph\u1EA3i t\xECm ra nh\u1EEFng ph\u1EA7n c\u1EE7a v\u0103n b\u1EA3n \u0111\u1EA7u v\xE0o t\u01B0\u01A1ng \u1EE9ng v\u1EDBi c\xE1c th\u1EF1c th\u1EC3 nh\u01B0 ng\u01B0\u1EDDi, \u0111\u1ECBa \u0111i\u1EC3m, ho\u1EB7c t\u1ED5 ch\u1EE9c. H\xE3y xem m\u1ED9t v\xED d\u1EE5:"),uh=o(),y(vt.$$.fragment),fh=o(),y(dt.$$.fragment),vh=o(),Rt=h("p"),Xa=a("\u1EDE \u0111\xE2y, m\xF4 h\xECnh \u0111\xE3 x\xE1c \u0111\u1ECBnh ch\xEDnh x\xE1c r\u1EB1ng Sylvain l\xE0 m\u1ED9t ng\u01B0\u1EDDi (PER), Hugging Face l\xE0 m\u1ED9t t\u1ED5 ch\u1EE9c (ORG) v\xE0 Brooklyn l\xE0 m\u1ED9t \u0111\u1ECBa \u0111i\u1EC3m (LOC)."),dh=o(),O=h("p"),Ya=a("Ch\xFAng ta truy\u1EC1n "),Ve=h("code"),Ja=a("grouped_entities = True"),Ka=a(" v\xE0o trong h\xE0m pipeline \u0111\u1EC3 y\xEAu c\u1EA7u pipeline nh\xF3m l\u1EA1i c\xE1c ph\u1EA7n thu\u1ED9c c\xF9ng m\u1ED9t th\u1EF1c th\u1EC3 trong c\xE2u v\u1EDBi nhau: \u1EDF \u0111\xE2y m\xF4 h\xECnh \u0111\xE3 nh\xF3m ch\xEDnh x\xE1c \u201CHugging\u201D v\xE0 \u201CFace\u201D th\xE0nh m\u1ED9t t\u1ED5 ch\u1EE9c duy nh\u1EA5t, m\u1EB7c d\xF9 t\xEAn bao g\u1ED3m nhi\u1EC1u t\u1EEB. Tr\xEAn th\u1EF1c t\u1EBF, nh\u01B0 ch\xFAng ta s\u1EBD th\u1EA5y trong ch\u01B0\u01A1ng ti\u1EBFp theo, qu\xE1 tr\xECnh ti\u1EC1n x\u1EED l\xFD th\u1EADm ch\xED c\xF2n chia m\u1ED9t s\u1ED1 t\u1EEB th\xE0nh c\xE1c ph\u1EA7n nh\u1ECF h\u01A1n. V\xED d\u1EE5: "),Ue=h("code"),nr=a("Sylvain"),tr=a(" \u0111\u01B0\u1EE3c chia th\xE0nh b\u1ED1n ph\u1EA7n: "),We=h("code"),er=a("S"),sr=a(", "),Ze=h("code"),hr=a("##yl"),ir=a(", "),Qe=h("code"),ar=a("##va"),rr=a(", v\xE0 "),Xe=h("code"),cr=a("##in"),lr=a(". Trong b\u01B0\u1EDBc h\u1EADu x\u1EED l\xFD, pipeline \u0111\xE3 t\u1EADp h\u1EE3p l\u1EA1i th\xE0nh c\xF4ng c\xE1c ph\u1EA7n \u0111\xF3."),$h=o(),y(Hn.$$.fragment),bh=o(),hn=h("h2"),In=h("a"),Ye=h("span"),y($t.$$.fragment),or=o(),Je=h("span"),pr=a("H\u1ECFi \u0111\xE1p"),yh=o(),Sn=h("p"),mr=a("Pipeline "),Ke=h("code"),gr=a("question-answering"),ur=a(" tr\u1EA3 l\u1EDDi c\xE1c c\xE2u h\u1ECFi s\u1EED d\u1EE5ng th\xF4ng tin ng\u1EEF c\u1EA3nh cho tr\u01B0\u1EDBc:"),_h=o(),y(bt.$$.fragment),xh=o(),y(yt.$$.fragment),kh=o(),zt=h("p"),fr=a("L\u01B0u \xFD r\u1EB1ng pipeline n\xE0y ho\u1EA1t \u0111\u1ED9ng b\u1EB1ng c\xE1ch tr\xEDch xu\u1EA5t th\xF4ng tin t\u1EEB ng\u1EEF c\u1EA3nh \u0111\u01B0\u1EE3c cung c\u1EA5p; n\xF3 kh\xF4ng t\u1EA1o ra c\xE2u tr\u1EA3 l\u1EDDi."),wh=o(),an=h("h2"),On=h("a"),ns=h("span"),y(_t.$$.fragment),vr=o(),ts=h("span"),dr=a("T\xF3m t\u1EAFt"),Eh=o(),Vt=h("p"),$r=a("T\xF3m t\u1EAFt l\xE0 t\xE1c v\u1EE5 thu g\u1ECDn m\u1ED9t v\u0103n b\u1EA3n th\xE0nh m\u1ED9t v\u0103n b\u1EA3n ng\u1EAFn h\u01A1n trong khi v\u1EABn gi\u1EEF t\u1EA5t c\u1EA3 (ho\u1EB7c h\u1EA7u h\u1EBFt) c\xE1c \xFD quan tr\u1ECDng \u0111\u01B0\u1EE3c \u0111\u1EC1 c\u1EADp trong v\u0103n b\u1EA3n. D\u01B0\u1EDBi \u0111\xE2y l\xE0 m\u1ED9t v\xED d\u1EE5:"),jh=o(),y(xt.$$.fragment),Th=o(),y(kt.$$.fragment),qh=o(),V=h("p"),br=a("T\u01B0\u01A1ng t\u1EF1 nh\u01B0 t\u1EA1o v\u0103n b\u1EA3n, b\u1EA1n c\xF3 th\u1EC3 tu\u1EF3 ch\u1EC9nh "),es=h("code"),yr=a("max_length"),_r=a(" v\xE0 "),ss=h("code"),xr=a("min_length"),kr=a(" cho k\u1EBFt qu\u1EA3 tr\u1EA3 v\u1EC1."),Ph=o(),rn=h("h2"),Nn=h("a"),hs=h("span"),y(wt.$$.fragment),wr=o(),is=h("span"),Er=a("D\u1ECBch m\xE1y"),Ch=o(),U=h("p"),jr=a("\u0110\u1ED1i v\u1EDBi d\u1ECBch m\xE1y, b\u1EA1n c\xF3 th\u1EC3 s\u1EED d\u1EE5ng m\xF4 h\xECnh m\u1EB7c \u0111\u1ECBnh n\u1EBFu b\u1EA1n cung c\u1EA5p m\u1ED9t c\u1EB7p ng\xF4n ng\u1EEF trong t\xEAn t\xE1c v\u1EE5 (ch\u1EB3ng h\u1EA1n nh\u01B0 "),as=h("code"),Tr=a('"translation_en_to_fr"'),qr=a("), nh\u01B0ng c\xE1ch d\u1EC5 nh\u1EA5t l\xE0 ch\u1ECDn m\xF4 h\xECnh b\u1EA1n mu\u1ED1n s\u1EED d\u1EE5ng tr\xEAn "),Et=h("a"),Pr=a("Model Hub"),Cr=a(". T\u1EA1i \u0111\xE2y, ch\xFAng ta s\u1EBD th\u1EED d\u1ECBch t\u1EEB ti\u1EBFng Ph\xE1p sang ti\u1EBFng Anh:"),Ah=o(),y(jt.$$.fragment),Hh=o(),y(Tt.$$.fragment),Ih=o(),W=h("p"),Ar=a("Gi\u1ED1ng nh\u01B0 t\u1EA1o v\xE0 t\xF3m t\u1EAFt v\u0103n b\u1EA3n, b\u1EA1n c\xF3 th\u1EC3 ch\u1EC9 \u0111\u1ECBnh gi\xE1 tr\u1ECB "),rs=h("code"),Hr=a("max_length"),Ir=a(" ho\u1EB7c "),cs=h("code"),Sr=a("min_length"),Or=a(" cho k\u1EBFt qu\u1EA3 tr\u1EA3 v\u1EC1."),Sh=o(),y(Dn.$$.fragment),Oh=o(),Ln=h("p"),Nr=a("C\xE1c pipeline \u1EDF tr\xEAn h\u1EA7u h\u1EBFt ph\u1EE5c v\u1EE5 m\u1EE5c \u0111\xEDch tr\xECnh di\u1EC5n. Ch\xFAng \u0111\u01B0\u1EE3c l\u1EADp tr\xECnh cho c\xE1c t\xE1c v\u1EE5 c\u1EE5 th\u1EC3 v\xE0 kh\xF4ng th\u1EC3 th\u1EF1c hi\u1EC7n c\xE1c bi\u1EBFn th\u1EC3 c\u1EE7a ch\xFAng. Trong ch\u01B0\u01A1ng ti\u1EBFp theo, b\u1EA1n s\u1EBD t\xECm hi\u1EC3u nh\u1EEFng g\xEC b\xEAn trong m\u1ED9t h\xE0m  "),ls=h("code"),Dr=a("pipeline()"),Lr=a("  v\xE0 c\xE1ch tinh ch\u1EC9nh h\xE0nh vi c\u1EE7a n\xF3."),this.h()},l(n){const s=Sl('[data-svelte="svelte-1phssyn"]',document.head);m=i(s,"META",{name:!0,content:!0}),s.forEach(t),$=p(n),f=i(n,"H1",{class:!0});var qt=c(f);b=i(qt,"A",{id:!0,class:!0,href:!0});var os=c(b);v=i(os,"SPAN",{});var ps=c(v);_(u.$$.fragment,ps),ps.forEach(t),os.forEach(t),d=p(qt),T=i(qt,"SPAN",{});var ms=c(T);I=r(ms,"Transformers c\xF3 th\u1EC3 l\xE0m nh\u1EEFng g\xEC?"),ms.forEach(t),qt.forEach(t),q=p(n),_(P.$$.fragment,n),A=p(n),j=i(n,"P",{});var Pt=c(j);Z=r(Pt,"Trong ph\u1EA7n n\xE0y, ch\xFAng ta s\u1EBD xem c\xE1c m\xF4 h\xECnh Transformer c\xF3 th\u1EC3 l\xE0m \u0111\u01B0\u1EE3c nh\u1EEFng g\xEC v\xE0 s\u1EED d\u1EE5ng c\xF4ng c\u1EE5 \u0111\u1EA7u ti\xEAn t\u1EEB th\u01B0 vi\u1EC7n \u{1F917} Transformers: h\xE0m "),B=i(Pt,"CODE",{});var gs=c(B);Q=r(gs,"pipeline()"),gs.forEach(t),hi=r(Pt,"."),Pt.forEach(t),fs=p(n),_(cn.$$.fragment,n),vs=p(n),X=i(n,"H2",{class:!0});var Ct=c(X);ln=i(Ct,"A",{id:!0,class:!0,href:!0});var us=c(ln);Kt=i(us,"SPAN",{});var Gr=c(Kt);_(Fn.$$.fragment,Gr),Gr.forEach(t),us.forEach(t),ii=p(Ct),ne=i(Ct,"SPAN",{});var Rr=c(ne);ai=r(Rr,"Transformers \u1EDF mu\xF4n n\u01A1i!"),Rr.forEach(t),Ct.forEach(t),ds=p(n),At=i(n,"P",{});var zr=c(At);ri=r(zr,"C\xE1c m\xF4 h\xECnh Transformers \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng \u0111\u1EC3 gi\u1EA3i quy\u1EBFt t\u1EA5t c\u1EA3 c\xE1c ki\u1EC3u t\xE1c v\u1EE5 NLP, gi\u1ED1ng nh\u01B0 c\xE1c m\xF4 h\xECnh \u0111\u1EC1 c\u1EADp trong ph\u1EA7n tr\u01B0\u1EDBc. D\u01B0\u1EDBi \u0111\xE2y l\xE0 m\u1ED9t s\u1ED1 c\xF4ng ty v\xE0 t\u1ED5 ch\u1EE9c s\u1EED d\u1EE5ng Hugging Face v\xE0 c\xE1c m\xF4 h\xECnh Transformer, \u0111\u1ED3ng th\u1EDDi \u0111\xF3ng g\xF3p l\u1EA1i cho c\u1ED9ng \u0111\u1ED3ng b\u1EB1ng c\xE1ch chia s\u1EBB c\xE1c m\xF4 h\xECnh c\u1EE7a h\u1ECD:"),zr.forEach(t),$s=p(n),on=i(n,"IMG",{src:!0,alt:!0,width:!0}),bs=p(n),F=i(n,"P",{});var Ut=c(F);ci=r(Ut,"Th\u01B0 vi\u1EC7n "),Gn=i(Ut,"A",{href:!0,rel:!0});var Vr=c(Gn);li=r(Vr,"\u{1F917} Transformers"),Vr.forEach(t),oi=r(Ut," cung c\u1EA5p t\xEDnh n\u0103ng t\u1EA1o v\xE0 s\u1EED d\u1EE5ng c\xE1c m\xF4 h\xECnh \u0111\u01B0\u1EE3c chia s\u1EBB \u0111\xF3. "),Rn=i(Ut,"A",{href:!0,rel:!0});var Ur=c(Rn);pi=r(Ur,"Model Hub"),Ur.forEach(t),mi=r(Ut," ch\u1EE9a h\xE0ng ngh\xECn m\xF4 h\xECnh \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc m\xE0 b\u1EA5t k\u1EF3 ai c\u0169ng c\xF3 th\u1EC3 t\u1EA3i xu\u1ED1ng v\xE0 s\u1EED d\u1EE5ng. B\u1EA1n c\u0169ng c\xF3 th\u1EC3 t\u1EA3i c\xE1c m\xF4 h\xECnh c\u1EE7a ri\xEAng m\xECnh l\xEAn Hub!"),Ut.forEach(t),ys=p(n),_(pn.$$.fragment,n),_s=p(n),Ht=i(n,"P",{});var Wr=c(Ht);gi=r(Wr,"Tr\u01B0\u1EDBc khi \u0111i s\xE2u v\xE0o c\xE1ch ho\u1EA1t \u0111\u1ED9ng c\u1EE7a c\xE1c m\xF4 h\xECnh Transformer, h\xE3y c\xF9ng xem m\u1ED9t v\xE0i v\xED d\u1EE5 v\u1EC1 c\xE1ch s\u1EED d\u1EE5ng ch\xFAng \u0111\u1EC3 gi\u1EA3i quy\u1EBFt m\u1ED9t s\u1ED1 v\u1EA5n \u0111\u1EC1 NLP th\xFA v\u1ECB."),Wr.forEach(t),xs=p(n),Y=i(n,"H2",{class:!0});var Dh=c(Y);mn=i(Dh,"A",{id:!0,class:!0,href:!0});var Zr=c(mn);te=i(Zr,"SPAN",{});var Qr=c(te);_(zn.$$.fragment,Qr),Qr.forEach(t),Zr.forEach(t),ui=p(Dh),ee=i(Dh,"SPAN",{});var Xr=c(ee);fi=r(Xr,"L\xE0m vi\u1EC7c v\u1EDBi pipelines"),Xr.forEach(t),Dh.forEach(t),ks=p(n),_(Vn.$$.fragment,n),ws=p(n),gn=i(n,"P",{});var Lh=c(gn);vi=r(Lh,"\u0110\u1ED1i t\u01B0\u1EE3ng c\u01A1 b\u1EA3n nh\u1EA5t trong th\u01B0 vi\u1EC7n \u{1F917} Transformers l\xE0 h\xE0m "),se=i(Lh,"CODE",{});var Yr=c(se);di=r(Yr,"pipeline()"),Yr.forEach(t),$i=r(Lh,". H\xE0m k\u1EBFt n\u1ED1i m\u1ED9t m\xF4 h\xECnh v\u1EDBi c\xE1c b\u01B0\u1EDBc ti\u1EC1n x\u1EED l\xFD v\xE0 h\u1EADu x\u1EED l\xFD c\u1EA7n thi\u1EBFt, cho ph\xE9p ch\xFAng ta nh\u1EADp tr\u1EF1c ti\u1EBFp b\u1EA5t k\u1EF3 v\u0103n b\u1EA3n n\xE0o v\xE0 nh\u1EADn \u0111\u01B0\u1EE3c c\xE2u tr\u1EA3 l\u1EDDi d\u1EC5 hi\u1EC3u:"),Lh.forEach(t),Es=p(n),_(Un.$$.fragment,n),js=p(n),_(Wn.$$.fragment,n),Ts=p(n),It=i(n,"P",{});var Jr=c(It);bi=r(Jr,"Ch\xFAng t\xF4i th\u1EADm ch\xED c\xF3 th\u1EC3 truy\u1EC1n v\xE0o nhi\u1EC1u c\xE2u!"),Jr.forEach(t),qs=p(n),_(Zn.$$.fragment,n),Ps=p(n),_(Qn.$$.fragment,n),Cs=p(n),un=i(n,"P",{});var Mh=c(un);yi=r(Mh,"Theo m\u1EB7c \u0111\u1ECBnh, quy tr\xECnh n\xE0y ch\u1ECDn m\u1ED9t m\xF4 h\xECnh c\u1EE5 th\u1EC3 \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc v\xE0 \u0111\xE3 \u0111\u01B0\u1EE3c tinh ch\u1EC9nh \u0111\u1EC3 ph\xE2n t\xEDch c\u1EA3m x\xFAc v\u0103n b\u1EA3n ti\u1EBFng Anh. M\xF4 h\xECnh \u0111\u01B0\u1EE3c t\u1EA3i xu\u1ED1ng v\xE0 l\u01B0u v\xE0o b\u1ED9 nh\u1EDB cache khi b\u1EA1n t\u1EA1o \u0111\u1ED1i t\u01B0\u1EE3ng "),he=i(Mh,"CODE",{});var Kr=c(he);_i=r(Kr,"classifier"),Kr.forEach(t),xi=r(Mh,". N\u1EBFu b\u1EA1n ch\u1EA1y l\u1EA1i l\u1EC7nh, m\xF4 h\xECnh \u0111\xE3 l\u01B0u trong b\u1ED9 nh\u1EDB cache s\u1EBD \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng thay th\u1EBF v\xE0 kh\xF4ng c\u1EA7n t\u1EA3i l\u1EA1i m\xF4 h\xECnh m\u1ED9t l\u1EA7n n\u1EEFa."),Mh.forEach(t),As=p(n),St=i(n,"P",{});var nc=c(St);ki=r(nc,"C\xF3 ba b\u01B0\u1EDBc ch\xEDnh khi b\u1EA1n chuy\u1EC3n m\u1ED9t s\u1ED1 v\u0103n b\u1EA3n v\xE0o m\u1ED9t pipeline:"),nc.forEach(t),Hs=p(n),G=i(n,"OL",{});var Wt=c(G);ie=i(Wt,"LI",{});var tc=c(ie);wi=r(tc,"V\u0103n b\u1EA3n \u0111\u01B0\u1EE3c ti\u1EC1n x\u1EED l\xFD th\xE0nh m\u1ED9t \u0111\u1ECBnh d\u1EA1ng m\xE0 m\xF4 h\xECnh c\xF3 th\u1EC3 hi\u1EC3u \u0111\u01B0\u1EE3c."),tc.forEach(t),Ei=p(Wt),ae=i(Wt,"LI",{});var ec=c(ae);ji=r(ec,"C\xE1c \u0111\u1EA7u v\xE0o \u0111\xE3 ti\u1EC1n x\u1EED l\xFD \u0111\u01B0\u1EE3c \u0111\u01B0a v\xE0o m\xF4 h\xECnh."),ec.forEach(t),Ti=p(Wt),re=i(Wt,"LI",{});var sc=c(re);qi=r(sc,"C\xE1c d\u1EF1 \u0111o\xE1n c\u1EE7a m\xF4 h\xECnh \u0111\u01B0\u1EE3c h\u1EADu x\u1EED l\xFD \u0111\u1EC3 b\u1EA1n c\xF3 th\u1EC3 hi\u1EC3u \u0111\u01B0\u1EE3c ch\xFAng."),sc.forEach(t),Wt.forEach(t),Is=p(n),fn=i(n,"P",{});var Bh=c(fn);Pi=r(Bh,"M\u1ED9t s\u1ED1 "),Xn=i(Bh,"A",{href:!0,rel:!0});var hc=c(Xn);Ci=r(hc,"pipeline"),hc.forEach(t),Ai=r(Bh," hi\u1EC7n c\xF3 c\xF3 th\u1EC3 k\u1EC3 \u0111\u1EBFn:"),Bh.forEach(t),Ss=p(n),C=i(n,"UL",{});var N=c(C);Ot=i(N,"LI",{});var Mr=c(Ot);ce=i(Mr,"CODE",{});var ic=c(ce);Hi=r(ic,"feature-extraction"),ic.forEach(t),Ii=r(Mr," (tr\xEDch xu\u1EA5t bi\u1EC3u di\u1EC5n vect\u01A1 c\u1EE7a m\u1ED9t v\u0103n b\u1EA3n)"),Mr.forEach(t),Si=p(N),le=i(N,"LI",{});var ac=c(le);oe=i(ac,"CODE",{});var rc=c(oe);Oi=r(rc,"fill-mask"),rc.forEach(t),ac.forEach(t),Ni=p(N),Nt=i(N,"LI",{});var Br=c(Nt);pe=i(Br,"CODE",{});var cc=c(pe);Di=r(cc,"ner"),cc.forEach(t),Li=r(Br," (nh\u1EADn d\u1EA1ng th\u1EF1c th\u1EC3)"),Br.forEach(t),Mi=p(N),me=i(N,"LI",{});var lc=c(me);ge=i(lc,"CODE",{});var oc=c(ge);Bi=r(oc,"question-answering"),oc.forEach(t),lc.forEach(t),Fi=p(N),ue=i(N,"LI",{});var pc=c(ue);fe=i(pc,"CODE",{});var mc=c(fe);Gi=r(mc,"sentiment-analysis"),mc.forEach(t),pc.forEach(t),Ri=p(N),ve=i(N,"LI",{});var gc=c(ve);de=i(gc,"CODE",{});var uc=c(de);zi=r(uc,"summarization"),uc.forEach(t),gc.forEach(t),Vi=p(N),$e=i(N,"LI",{});var fc=c($e);be=i(fc,"CODE",{});var vc=c(be);Ui=r(vc,"text-generation"),vc.forEach(t),fc.forEach(t),Wi=p(N),ye=i(N,"LI",{});var dc=c(ye);_e=i(dc,"CODE",{});var $c=c(_e);Zi=r($c,"translation"),$c.forEach(t),dc.forEach(t),Qi=p(N),xe=i(N,"LI",{});var bc=c(xe);ke=i(bc,"CODE",{});var yc=c(ke);Xi=r(yc,"zero-shot-classification"),yc.forEach(t),bc.forEach(t),N.forEach(t),Os=p(n),Dt=i(n,"P",{});var _c=c(Dt);Yi=r(_c,"Ch\xFAng ta h\xE3y c\xF9ng xem m\u1ED9t v\xE0i v\xED d\u1EE5 trong s\u1ED1 k\u1EC3 tr\xEAn!"),_c.forEach(t),Ns=p(n),J=i(n,"H2",{class:!0});var Fh=c(J);vn=i(Fh,"A",{id:!0,class:!0,href:!0});var xc=c(vn);we=i(xc,"SPAN",{});var kc=c(we);_(Yn.$$.fragment,kc),kc.forEach(t),xc.forEach(t),Ji=p(Fh),Ee=i(Fh,"SPAN",{});var wc=c(Ee);Ki=r(wc,"Ph\xE2n lo\u1EA1i kh\xF4ng m\u1EABu (Zero-shot)"),wc.forEach(t),Fh.forEach(t),Ds=p(n),dn=i(n,"P",{});var Gh=c(dn);na=r(Gh,"Ch\xFAng ta s\u1EBD b\u1EAFt \u0111\u1EA7u v\u1EDBi vi\u1EC7c gi\u1EA3i quy\u1EBFt m\u1ED9t t\xE1c v\u1EE5 kh\xF3 nh\u1EB1n h\u01A1n: ch\xFAng ta c\u1EA7n ph\xE2n lo\u1EA1i c\xE1c v\u0103n b\u1EA3n ch\u01B0a \u0111\u01B0\u1EE3c d\xE1n nh\xE3n. \u0110\xE2y l\xE0 m\u1ED9t t\xECnh hu\u1ED1ng ph\u1ED5 bi\u1EBFn trong c\xE1c d\u1EF1 \xE1n th\u1EF1c t\u1EBF v\xEC vi\u1EC7c \u0111\xE1nh nh\xE3n v\u0103n b\u1EA3n th\u01B0\u1EDDng t\u1ED1n nhi\u1EC1u th\u1EDDi gian v\xE0 y\xEAu c\u1EA7u ki\u1EBFn th\u1EE9c chuy\xEAn m\xF4n. \u0110\u1ED1i v\u1EDBi tr\u01B0\u1EDDng h\u1EE3p n\xE0y, "),je=i(Gh,"CODE",{});var Ec=c(je);ta=r(Ec,"zero-shot-classification"),Ec.forEach(t),ea=r(Gh," l\xE0 m\u1ED9t ph\u01B0\u01A1ng \xE1n m\u1EA1nh m\u1EBD: n\xF3 cho ph\xE9p b\u1EA1n ch\u1EC9 \u0111\u1ECBnh nh\xE3n n\xE0o s\u1EBD s\u1EED d\u1EE5ng \u0111\u1EC3 ph\xE2n lo\u1EA1i, v\xEC v\u1EADy b\u1EA1n kh\xF4ng c\u1EA7n ph\u1EA3i d\u1EF1a v\xE0o c\xE1c nh\xE3n c\u1EE7a m\xF4 h\xECnh \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc."),Gh.forEach(t),Ls=p(n),Lt=i(n,"P",{});var jc=c(Lt);sa=r(jc,"B\u1EA1n \u0111\xE3 th\u1EA5y c\xE1ch m\xF4 h\xECnh c\xF3 th\u1EC3 ph\xE2n lo\u1EA1i m\u1ED9t c\xE2u l\xE0 t\xEDch c\u1EF1c hay ti\xEAu c\u1EF1c b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng hai nh\xE3n \u0111\xF3 - nh\u01B0ng n\xF3 c\u0169ng c\xF3 th\u1EC3 ph\xE2n lo\u1EA1i v\u0103n b\u1EA3n b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng b\u1EA5t k\u1EF3 b\u1ED9 nh\xE3n n\xE0o kh\xE1c m\xE0 b\u1EA1n th\xEDch."),jc.forEach(t),Ms=p(n),_(Jn.$$.fragment,n),Bs=p(n),_(Kn.$$.fragment,n),Fs=p(n),$n=i(n,"P",{});var Rh=c($n);ha=r(Rh,"Quy tr\xECnh n\xE0y \u0111\u01B0\u1EE3c g\u1ECDi l\xE0 "),Te=i(Rh,"EM",{});var Tc=c(Te);ia=r(Tc,"zero-shot"),Tc.forEach(t),aa=r(Rh," (kh\xF4ng m\u1EABu) v\xEC b\u1EA1n kh\xF4ng c\u1EA7n tinh ch\u1EC9nh m\xF4 h\xECnh tr\xEAn d\u1EEF li\u1EC7u c\u1EE7a b\u1EA1n \u0111\u1EC3 s\u1EED d\u1EE5ng. N\xF3 c\xF3 th\u1EC3 tr\u1EF1c ti\u1EBFp tr\u1EA3 v\u1EC1 x\xE1c su\u1EA5t cho b\u1EA5t k\u1EF3 danh s\xE1ch nh\xE3n n\xE0o b\u1EA1n mu\u1ED1n!"),Rh.forEach(t),Gs=p(n),_(bn.$$.fragment,n),Rs=p(n),K=i(n,"H2",{class:!0});var zh=c(K);yn=i(zh,"A",{id:!0,class:!0,href:!0});var qc=c(yn);qe=i(qc,"SPAN",{});var Pc=c(qe);_(nt.$$.fragment,Pc),Pc.forEach(t),qc.forEach(t),ra=p(zh),Pe=i(zh,"SPAN",{});var Cc=c(Pe);ca=r(Cc,"T\u1EA1o v\u0103n b\u1EA3n"),Cc.forEach(t),zh.forEach(t),zs=p(n),Mt=i(n,"P",{});var Ac=c(Mt);la=r(Ac,"Gi\u1EDD ch\xFAng ta h\xE3y c\xF9ng xem c\xE1ch s\u1EED d\u1EE5ng m\u1ED9t pipeline \u0111\u1EC3 t\u1EA1o ra v\u0103n b\u1EA3n. \xDD t\u01B0\u1EDFng ch\xEDnh \u1EDF \u0111\xE2y l\xE0 b\u1EA1n cung c\u1EA5p m\u1ED9t l\u1EDDi g\u1EE3i \xFD v\xE0 m\xF4 h\xECnh s\u1EBD t\u1EF1 \u0111\u1ED9ng ho\xE0n th\xE0nh n\xF3 b\u1EB1ng c\xE1ch t\u1EA1o ra ph\u1EA7n v\u0103n b\u1EA3n c\xF2n l\u1EA1i. \u0110i\u1EC1u n\xE0y t\u01B0\u01A1ng t\u1EF1 nh\u01B0 t\xEDnh n\u0103ng g\u1EE3i \xFD v\u0103n b\u1EA3n \u0111\u01B0\u1EE3c t\xECm th\u1EA5y tr\xEAn \u0111i\u1EC7n tho\u1EA1i. Vi\u1EC7c t\u1EA1o v\u0103n b\u1EA3n li\xEAn quan \u0111\u1EBFn s\u1EF1 ng\u1EABu nhi\xEAn, v\xEC v\u1EADy n\u1EBFu b\u1EA1n kh\xF4ng nh\u1EADn \u0111\u01B0\u1EE3c k\u1EBFt qu\u1EA3 nh\u01B0 h\xECnh d\u01B0\u1EDBi \u0111\xE2y c\u0169ng l\xE0 \u0111i\u1EC1u d\u1EC5 hi\u1EC3u."),Ac.forEach(t),Vs=p(n),_(tt.$$.fragment,n),Us=p(n),_(et.$$.fragment,n),Ws=p(n),R=i(n,"P",{});var Zt=c(R);oa=r(Zt,"B\u1EA1n c\xF3 th\u1EC3 ki\u1EC3m so\xE1t s\u1ED1 l\u01B0\u1EE3ng chu\u1ED7i kh\xE1c nhau \u0111\u01B0\u1EE3c t\u1EA1o v\u1EDBi tham s\u1ED1 "),Ce=i(Zt,"CODE",{});var Hc=c(Ce);pa=r(Hc,"num_return_sequences"),Hc.forEach(t),ma=r(Zt," v\xE0 t\u1ED5ng \u0111\u1ED9 d\xE0i c\u1EE7a v\u0103n b\u1EA3n \u0111\u1EA7u ra v\u1EDBi tham s\u1ED1 "),Ae=i(Zt,"CODE",{});var Ic=c(Ae);ga=r(Ic,"max_length"),Ic.forEach(t),ua=r(Zt,"."),Zt.forEach(t),Zs=p(n),_(_n.$$.fragment,n),Qs=p(n),nn=i(n,"H2",{class:!0});var Vh=c(nn);xn=i(Vh,"A",{id:!0,class:!0,href:!0});var Sc=c(xn);He=i(Sc,"SPAN",{});var Oc=c(He);_(st.$$.fragment,Oc),Oc.forEach(t),Sc.forEach(t),fa=p(Vh),Ie=i(Vh,"SPAN",{});var Nc=c(Ie);va=r(Nc,"S\u1EED d\u1EE5ng m\u1ED9t m\xF4 h\xECnh b\u1EA5t k\u1EF3 t\u1EEB Hub trong pipeline"),Nc.forEach(t),Vh.forEach(t),Xs=p(n),z=i(n,"P",{});var Qt=c(z);da=r(Qt,"C\xE1c v\xED d\u1EE5 tr\u01B0\u1EDBc \u0111\xE3 s\u1EED d\u1EE5ng m\xF4 h\xECnh m\u1EB7c \u0111\u1ECBnh cho c\xE1c t\xE1c v\u1EE5, nh\u01B0ng b\u1EA1n c\u0169ng c\xF3 th\u1EC3 ch\u1ECDn m\u1ED9t m\xF4 h\xECnh c\u1EE5 th\u1EC3 t\u1EEB Hub \u0111\u1EC3 s\u1EED d\u1EE5ng trong pipeline cho m\u1ED9t t\xE1c v\u1EE5 c\u1EE5 th\u1EC3 - v\xED d\u1EE5, t\u1EA1o v\u0103n b\u1EA3n. Truy c\u1EADp "),ht=i(Qt,"A",{href:!0,rel:!0});var Dc=c(ht);$a=r(Dc,"Model Hub"),Dc.forEach(t),ba=r(Qt," v\xE0 b\u1EA5m v\xE0o th\u1EBB t\u01B0\u01A1ng \u1EE9ng \u1EDF b\xEAn tr\xE1i \u0111\u1EC3 ch\u1EC9 hi\u1EC3n th\u1ECB c\xE1c m\xF4 h\xECnh \u0111\u01B0\u1EE3c h\u1ED7 tr\u1EE3 cho t\xE1c v\u1EE5 \u0111\xF3. B\u1EA1n s\u1EBD \u0111\u1EBFn m\u1ED9t trang nh\u01B0 "),it=i(Qt,"A",{href:!0,rel:!0});var Lc=c(it);ya=r(Lc,"trang n\xE0y"),Lc.forEach(t),_a=r(Qt,"."),Qt.forEach(t),Ys=p(n),kn=i(n,"P",{});var Uh=c(kn);xa=r(Uh,"H\xE3y th\u1EED m\xF4 h\xECnh "),at=i(Uh,"A",{href:!0,rel:!0});var Mc=c(at);Se=i(Mc,"CODE",{});var Bc=c(Se);ka=r(Bc,"distilgpt2"),Bc.forEach(t),Mc.forEach(t),wa=r(Uh,"! \u0110\xE2y l\xE0 c\xE1ch t\u1EA3i n\xF3 v\xE0o c\xF9ng m\u1ED9t pipeline nh\u01B0 ph\u1EA7n tr\u01B0\u1EDBc:"),Uh.forEach(t),Js=p(n),_(rt.$$.fragment,n),Ks=p(n),_(ct.$$.fragment,n),nh=p(n),Bt=i(n,"P",{});var Fc=c(Bt);Ea=r(Fc,"B\u1EA1n c\xF3 th\u1EC3 tinh ch\u1EC9nh vi\u1EC7c t\xECm ki\u1EBFm cho m\u1ED9t m\xF4 h\xECnh c\u1EE7a m\xECnh b\u1EB1ng c\xE1ch nh\u1EA5p v\xE0o c\xE1c th\u1EBB ng\xF4n ng\u1EEF v\xE0 ch\u1ECDn m\u1ED9t m\xF4 h\xECnh s\u1EBD t\u1EA1o v\u0103n b\u1EA3n b\u1EB1ng ng\xF4n ng\u1EEF kh\xE1c. Model Hub th\u1EADm ch\xED c\xF2n ch\u1EE9a c\xE1c checkpoints cho c\xE1c m\xF4 h\xECnh \u0111a ng\xF4n ng\u1EEF h\u1ED7 tr\u1EE3 m\u1ED9t s\u1ED1 ng\xF4n ng\u1EEF kh\xE1c nhau."),Fc.forEach(t),th=p(n),Ft=i(n,"P",{});var Gc=c(Ft);ja=r(Gc,"Sau khi b\u1EA1n ch\u1ECDn m\u1ED9t m\xF4 h\xECnh b\u1EB1ng c\xE1ch b\u1EA5m v\xE0o n\xF3, b\u1EA1n s\u1EBD th\u1EA5y r\u1EB1ng c\xF3 m\u1ED9t ti\u1EC7n \xEDch cho ph\xE9p b\u1EA1n d\xF9ng th\u1EED tr\u1EF1c tuy\u1EBFn. B\u1EB1ng c\xE1ch n\xE0y, b\u1EA1n c\xF3 th\u1EC3 nhanh ch\xF3ng ki\u1EC3m tra kh\u1EA3 n\u0103ng c\u1EE7a m\xF4 h\xECnh tr\u01B0\u1EDBc khi t\u1EA3i xu\u1ED1ng."),Gc.forEach(t),eh=p(n),_(wn.$$.fragment,n),sh=p(n),tn=i(n,"H3",{class:!0});var Wh=c(tn);En=i(Wh,"A",{id:!0,class:!0,href:!0});var Rc=c(En);Oe=i(Rc,"SPAN",{});var zc=c(Oe);_(lt.$$.fragment,zc),zc.forEach(t),Rc.forEach(t),Ta=p(Wh),Ne=i(Wh,"SPAN",{});var Vc=c(Ne);qa=r(Vc,"Inference API"),Vc.forEach(t),Wh.forEach(t),hh=p(n),jn=i(n,"P",{});var Zh=c(jn);Pa=r(Zh,"T\u1EA5t c\u1EA3 c\xE1c m\xF4 h\xECnh c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c ki\u1EC3m tra tr\u1EF1c ti\u1EBFp th\xF4ng qua tr\xECnh duy\u1EC7t c\u1EE7a b\u1EA1n b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng Inference API, c\xF3 s\u1EB5n tr\xEAn "),ot=i(Zh,"A",{href:!0,rel:!0});var Uc=c(ot);Ca=r(Uc,"trang web Hugging Face"),Uc.forEach(t),Aa=r(Zh,". B\u1EA1n c\xF3 th\u1EC3 ch\u01A1i v\u1EDBi m\xF4 h\xECnh tr\u1EF1c ti\u1EBFp tr\xEAn trang n\xE0y b\u1EB1ng c\xE1ch nh\u1EADp v\u0103n b\u1EA3n t\xF9y ch\u1EC9nh v\xE0 xem m\xF4 h\xECnh x\u1EED l\xFD d\u1EEF li\u1EC7u \u0111\u1EA7u v\xE0o."),Zh.forEach(t),ih=p(n),Tn=i(n,"P",{});var Qh=c(Tn);Ha=r(Qh,"Inference API h\u1ED7 tr\u1EE3 ti\u1EC7n \xEDch n\xE0y c\u0169ng c\xF3 s\u1EB5n d\u01B0\u1EDBi d\u1EA1ng s\u1EA3n ph\u1EA9m tr\u1EA3 ph\xED, r\u1EA5t h\u1EEFu \xEDch n\u1EBFu b\u1EA1n c\u1EA7n n\xF3 cho quy tr\xECnh c\xF4ng vi\u1EC7c c\u1EE7a m\xECnh. Xem "),pt=i(Qh,"A",{href:!0,rel:!0});var Wc=c(pt);Ia=r(Wc,"trang gi\xE1"),Wc.forEach(t),Sa=r(Qh," \u0111\u1EC3 bi\u1EBFt th\xEAm chi ti\u1EBFt."),Qh.forEach(t),ah=p(n),en=i(n,"H2",{class:!0});var Xh=c(en);qn=i(Xh,"A",{id:!0,class:!0,href:!0});var Zc=c(qn);De=i(Zc,"SPAN",{});var Qc=c(De);_(mt.$$.fragment,Qc),Qc.forEach(t),Zc.forEach(t),Oa=p(Xh),Le=i(Xh,"SPAN",{});var Xc=c(Le);Na=r(Xc,"\u0110i\u1EC1n v\xE0o ch\u1ED7 tr\u1ED1ng"),Xc.forEach(t),Xh.forEach(t),rh=p(n),Pn=i(n,"P",{});var Yh=c(Pn);Da=r(Yh,"Pipeline ti\u1EBFp theo b\u1EA1n s\u1EBD th\u1EED nghi\u1EC7m, \u0111\xF3 l\xE0 "),Me=i(Yh,"CODE",{});var Yc=c(Me);La=r(Yc,"fill-mask"),Yc.forEach(t),Ma=r(Yh,". \xDD t\u01B0\u1EDFng c\u1EE7a t\xE1c v\u1EE5 n\xE0y l\xE0 \u0111i\u1EC1n v\xE0o ch\u1ED7 tr\u1ED1ng trong m\u1ED9t v\u0103n b\u1EA3n nh\u1EA5t \u0111\u1ECBnh:"),Yh.forEach(t),ch=p(n),_(gt.$$.fragment,n),lh=p(n),_(ut.$$.fragment,n),oh=p(n),L=i(n,"P",{});var Mn=c(L);Ba=r(Mn,"Tham s\u1ED1 "),Be=i(Mn,"CODE",{});var Jc=c(Be);Fa=r(Jc,"top_k"),Jc.forEach(t),Ga=r(Mn," ki\u1EC3m so\xE1t s\u1ED1 l\u01B0\u1EE3ng kh\u1EA3 n\u0103ng b\u1EA1n mu\u1ED1n \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB. L\u01B0u \xFD r\u1EB1ng \u1EDF \u0111\xE2y m\xF4 h\xECnh \u0111i\u1EC1n t\u1EEB v\xE0o v\u1ECB tr\xED b\u1ECB che b\u1EDFi t\u1EEB "),Fe=i(Mn,"CODE",{});var Kc=c(Fe);Ra=r(Kc,"<mask>"),Kc.forEach(t),za=r(Mn,", th\u01B0\u1EDDng \u0111\u01B0\u1EE3c g\u1ECDi l\xE0 "),Ge=i(Mn,"EM",{});var nl=c(Ge);Va=r(nl,"mask token"),nl.forEach(t),Ua=r(Mn,". C\xE1c m\xF4 h\xECnh \u0111i\u1EC1n kh\xE1c c\xF3 th\u1EC3 c\xF3 c\xE1c ki\u1EC3u che t\u1EEB kh\xE1c nhau, v\xEC v\u1EADy, t\u1ED1t nh\u1EA5t n\xEAn x\xE1c minh t\u1EEB b\u1ECB che ph\xF9 h\u1EE3p khi kh\xE1m ph\xE1 c\xE1c m\xF4 h\xECnh kh\xE1c. M\u1ED9t c\xE1ch \u0111\u1EC3 ki\u1EC3m tra \u0111\xF3 l\xE0 xem t\u1EEB b\u1ECB che \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng trong ti\u1EC7n \xEDch con."),Mn.forEach(t),ph=p(n),_(Cn.$$.fragment,n),mh=p(n),sn=i(n,"H2",{class:!0});var Jh=c(sn);An=i(Jh,"A",{id:!0,class:!0,href:!0});var tl=c(An);Re=i(tl,"SPAN",{});var el=c(Re);_(ft.$$.fragment,el),el.forEach(t),tl.forEach(t),Wa=p(Jh),ze=i(Jh,"SPAN",{});var sl=c(ze);Za=r(sl,"Nh\u1EADn d\u1EA1ng th\u1EF1c th\u1EC3"),sl.forEach(t),Jh.forEach(t),gh=p(n),Gt=i(n,"P",{});var hl=c(Gt);Qa=r(hl,"Nh\u1EADn d\u1EA1ng th\u1EF1c th\u1EC3 \u0111\u01B0\u1EE3c \u0111\u1EB7t t\xEAn (NER) l\xE0 m\u1ED9t t\xE1c v\u1EE5 trong \u0111\xF3 m\xF4 h\xECnh ph\u1EA3i t\xECm ra nh\u1EEFng ph\u1EA7n c\u1EE7a v\u0103n b\u1EA3n \u0111\u1EA7u v\xE0o t\u01B0\u01A1ng \u1EE9ng v\u1EDBi c\xE1c th\u1EF1c th\u1EC3 nh\u01B0 ng\u01B0\u1EDDi, \u0111\u1ECBa \u0111i\u1EC3m, ho\u1EB7c t\u1ED5 ch\u1EE9c. H\xE3y xem m\u1ED9t v\xED d\u1EE5:"),hl.forEach(t),uh=p(n),_(vt.$$.fragment,n),fh=p(n),_(dt.$$.fragment,n),vh=p(n),Rt=i(n,"P",{});var il=c(Rt);Xa=r(il,"\u1EDE \u0111\xE2y, m\xF4 h\xECnh \u0111\xE3 x\xE1c \u0111\u1ECBnh ch\xEDnh x\xE1c r\u1EB1ng Sylvain l\xE0 m\u1ED9t ng\u01B0\u1EDDi (PER), Hugging Face l\xE0 m\u1ED9t t\u1ED5 ch\u1EE9c (ORG) v\xE0 Brooklyn l\xE0 m\u1ED9t \u0111\u1ECBa \u0111i\u1EC3m (LOC)."),il.forEach(t),dh=p(n),O=i(n,"P",{});var D=c(O);Ya=r(D,"Ch\xFAng ta truy\u1EC1n "),Ve=i(D,"CODE",{});var al=c(Ve);Ja=r(al,"grouped_entities = True"),al.forEach(t),Ka=r(D," v\xE0o trong h\xE0m pipeline \u0111\u1EC3 y\xEAu c\u1EA7u pipeline nh\xF3m l\u1EA1i c\xE1c ph\u1EA7n thu\u1ED9c c\xF9ng m\u1ED9t th\u1EF1c th\u1EC3 trong c\xE2u v\u1EDBi nhau: \u1EDF \u0111\xE2y m\xF4 h\xECnh \u0111\xE3 nh\xF3m ch\xEDnh x\xE1c \u201CHugging\u201D v\xE0 \u201CFace\u201D th\xE0nh m\u1ED9t t\u1ED5 ch\u1EE9c duy nh\u1EA5t, m\u1EB7c d\xF9 t\xEAn bao g\u1ED3m nhi\u1EC1u t\u1EEB. Tr\xEAn th\u1EF1c t\u1EBF, nh\u01B0 ch\xFAng ta s\u1EBD th\u1EA5y trong ch\u01B0\u01A1ng ti\u1EBFp theo, qu\xE1 tr\xECnh ti\u1EC1n x\u1EED l\xFD th\u1EADm ch\xED c\xF2n chia m\u1ED9t s\u1ED1 t\u1EEB th\xE0nh c\xE1c ph\u1EA7n nh\u1ECF h\u01A1n. V\xED d\u1EE5: "),Ue=i(D,"CODE",{});var rl=c(Ue);nr=r(rl,"Sylvain"),rl.forEach(t),tr=r(D," \u0111\u01B0\u1EE3c chia th\xE0nh b\u1ED1n ph\u1EA7n: "),We=i(D,"CODE",{});var cl=c(We);er=r(cl,"S"),cl.forEach(t),sr=r(D,", "),Ze=i(D,"CODE",{});var ll=c(Ze);hr=r(ll,"##yl"),ll.forEach(t),ir=r(D,", "),Qe=i(D,"CODE",{});var ol=c(Qe);ar=r(ol,"##va"),ol.forEach(t),rr=r(D,", v\xE0 "),Xe=i(D,"CODE",{});var pl=c(Xe);cr=r(pl,"##in"),pl.forEach(t),lr=r(D,". Trong b\u01B0\u1EDBc h\u1EADu x\u1EED l\xFD, pipeline \u0111\xE3 t\u1EADp h\u1EE3p l\u1EA1i th\xE0nh c\xF4ng c\xE1c ph\u1EA7n \u0111\xF3."),D.forEach(t),$h=p(n),_(Hn.$$.fragment,n),bh=p(n),hn=i(n,"H2",{class:!0});var Kh=c(hn);In=i(Kh,"A",{id:!0,class:!0,href:!0});var ml=c(In);Ye=i(ml,"SPAN",{});var gl=c(Ye);_($t.$$.fragment,gl),gl.forEach(t),ml.forEach(t),or=p(Kh),Je=i(Kh,"SPAN",{});var ul=c(Je);pr=r(ul,"H\u1ECFi \u0111\xE1p"),ul.forEach(t),Kh.forEach(t),yh=p(n),Sn=i(n,"P",{});var ni=c(Sn);mr=r(ni,"Pipeline "),Ke=i(ni,"CODE",{});var fl=c(Ke);gr=r(fl,"question-answering"),fl.forEach(t),ur=r(ni," tr\u1EA3 l\u1EDDi c\xE1c c\xE2u h\u1ECFi s\u1EED d\u1EE5ng th\xF4ng tin ng\u1EEF c\u1EA3nh cho tr\u01B0\u1EDBc:"),ni.forEach(t),_h=p(n),_(bt.$$.fragment,n),xh=p(n),_(yt.$$.fragment,n),kh=p(n),zt=i(n,"P",{});var vl=c(zt);fr=r(vl,"L\u01B0u \xFD r\u1EB1ng pipeline n\xE0y ho\u1EA1t \u0111\u1ED9ng b\u1EB1ng c\xE1ch tr\xEDch xu\u1EA5t th\xF4ng tin t\u1EEB ng\u1EEF c\u1EA3nh \u0111\u01B0\u1EE3c cung c\u1EA5p; n\xF3 kh\xF4ng t\u1EA1o ra c\xE2u tr\u1EA3 l\u1EDDi."),vl.forEach(t),wh=p(n),an=i(n,"H2",{class:!0});var ti=c(an);On=i(ti,"A",{id:!0,class:!0,href:!0});var dl=c(On);ns=i(dl,"SPAN",{});var $l=c(ns);_(_t.$$.fragment,$l),$l.forEach(t),dl.forEach(t),vr=p(ti),ts=i(ti,"SPAN",{});var bl=c(ts);dr=r(bl,"T\xF3m t\u1EAFt"),bl.forEach(t),ti.forEach(t),Eh=p(n),Vt=i(n,"P",{});var yl=c(Vt);$r=r(yl,"T\xF3m t\u1EAFt l\xE0 t\xE1c v\u1EE5 thu g\u1ECDn m\u1ED9t v\u0103n b\u1EA3n th\xE0nh m\u1ED9t v\u0103n b\u1EA3n ng\u1EAFn h\u01A1n trong khi v\u1EABn gi\u1EEF t\u1EA5t c\u1EA3 (ho\u1EB7c h\u1EA7u h\u1EBFt) c\xE1c \xFD quan tr\u1ECDng \u0111\u01B0\u1EE3c \u0111\u1EC1 c\u1EADp trong v\u0103n b\u1EA3n. D\u01B0\u1EDBi \u0111\xE2y l\xE0 m\u1ED9t v\xED d\u1EE5:"),yl.forEach(t),jh=p(n),_(xt.$$.fragment,n),Th=p(n),_(kt.$$.fragment,n),qh=p(n),V=i(n,"P",{});var Xt=c(V);br=r(Xt,"T\u01B0\u01A1ng t\u1EF1 nh\u01B0 t\u1EA1o v\u0103n b\u1EA3n, b\u1EA1n c\xF3 th\u1EC3 tu\u1EF3 ch\u1EC9nh "),es=i(Xt,"CODE",{});var _l=c(es);yr=r(_l,"max_length"),_l.forEach(t),_r=r(Xt," v\xE0 "),ss=i(Xt,"CODE",{});var xl=c(ss);xr=r(xl,"min_length"),xl.forEach(t),kr=r(Xt," cho k\u1EBFt qu\u1EA3 tr\u1EA3 v\u1EC1."),Xt.forEach(t),Ph=p(n),rn=i(n,"H2",{class:!0});var ei=c(rn);Nn=i(ei,"A",{id:!0,class:!0,href:!0});var kl=c(Nn);hs=i(kl,"SPAN",{});var wl=c(hs);_(wt.$$.fragment,wl),wl.forEach(t),kl.forEach(t),wr=p(ei),is=i(ei,"SPAN",{});var El=c(is);Er=r(El,"D\u1ECBch m\xE1y"),El.forEach(t),ei.forEach(t),Ch=p(n),U=i(n,"P",{});var Yt=c(U);jr=r(Yt,"\u0110\u1ED1i v\u1EDBi d\u1ECBch m\xE1y, b\u1EA1n c\xF3 th\u1EC3 s\u1EED d\u1EE5ng m\xF4 h\xECnh m\u1EB7c \u0111\u1ECBnh n\u1EBFu b\u1EA1n cung c\u1EA5p m\u1ED9t c\u1EB7p ng\xF4n ng\u1EEF trong t\xEAn t\xE1c v\u1EE5 (ch\u1EB3ng h\u1EA1n nh\u01B0 "),as=i(Yt,"CODE",{});var jl=c(as);Tr=r(jl,'"translation_en_to_fr"'),jl.forEach(t),qr=r(Yt,"), nh\u01B0ng c\xE1ch d\u1EC5 nh\u1EA5t l\xE0 ch\u1ECDn m\xF4 h\xECnh b\u1EA1n mu\u1ED1n s\u1EED d\u1EE5ng tr\xEAn "),Et=i(Yt,"A",{href:!0,rel:!0});var Tl=c(Et);Pr=r(Tl,"Model Hub"),Tl.forEach(t),Cr=r(Yt,". T\u1EA1i \u0111\xE2y, ch\xFAng ta s\u1EBD th\u1EED d\u1ECBch t\u1EEB ti\u1EBFng Ph\xE1p sang ti\u1EBFng Anh:"),Yt.forEach(t),Ah=p(n),_(jt.$$.fragment,n),Hh=p(n),_(Tt.$$.fragment,n),Ih=p(n),W=i(n,"P",{});var Jt=c(W);Ar=r(Jt,"Gi\u1ED1ng nh\u01B0 t\u1EA1o v\xE0 t\xF3m t\u1EAFt v\u0103n b\u1EA3n, b\u1EA1n c\xF3 th\u1EC3 ch\u1EC9 \u0111\u1ECBnh gi\xE1 tr\u1ECB "),rs=i(Jt,"CODE",{});var ql=c(rs);Hr=r(ql,"max_length"),ql.forEach(t),Ir=r(Jt," ho\u1EB7c "),cs=i(Jt,"CODE",{});var Pl=c(cs);Sr=r(Pl,"min_length"),Pl.forEach(t),Or=r(Jt," cho k\u1EBFt qu\u1EA3 tr\u1EA3 v\u1EC1."),Jt.forEach(t),Sh=p(n),_(Dn.$$.fragment,n),Oh=p(n),Ln=i(n,"P",{});var si=c(Ln);Nr=r(si,"C\xE1c pipeline \u1EDF tr\xEAn h\u1EA7u h\u1EBFt ph\u1EE5c v\u1EE5 m\u1EE5c \u0111\xEDch tr\xECnh di\u1EC5n. Ch\xFAng \u0111\u01B0\u1EE3c l\u1EADp tr\xECnh cho c\xE1c t\xE1c v\u1EE5 c\u1EE5 th\u1EC3 v\xE0 kh\xF4ng th\u1EC3 th\u1EF1c hi\u1EC7n c\xE1c bi\u1EBFn th\u1EC3 c\u1EE7a ch\xFAng. Trong ch\u01B0\u01A1ng ti\u1EBFp theo, b\u1EA1n s\u1EBD t\xECm hi\u1EC3u nh\u1EEFng g\xEC b\xEAn trong m\u1ED9t h\xE0m  "),ls=i(si,"CODE",{});var Cl=c(ls);Dr=r(Cl,"pipeline()"),Cl.forEach(t),Lr=r(si,"  v\xE0 c\xE1ch tinh ch\u1EC9nh h\xE0nh vi c\u1EE7a n\xF3."),si.forEach(t),this.h()},h(){g(m,"name","hf:doc:metadata"),g(m,"content",JSON.stringify(Zl)),g(b,"id","transformers-c-th-lm-nhng-g"),g(b,"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"),g(b,"href","#transformers-c-th-lm-nhng-g"),g(f,"class","relative group"),g(ln,"id","transformers-mun-ni"),g(ln,"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"),g(ln,"href","#transformers-mun-ni"),g(X,"class","relative group"),Ol(on.src,Fr="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter1/companies.PNG")||g(on,"src",Fr),g(on,"alt","Companies using Hugging Face"),g(on,"width","100%"),g(Gn,"href","https://github.com/huggingface/transformers"),g(Gn,"rel","nofollow"),g(Rn,"href","https://huggingface.co/models"),g(Rn,"rel","nofollow"),g(mn,"id","lm-vic-vi-pipelines"),g(mn,"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"),g(mn,"href","#lm-vic-vi-pipelines"),g(Y,"class","relative group"),g(Xn,"href","https://huggingface.co/transformers/main_classes/pipelines.html"),g(Xn,"rel","nofollow"),g(vn,"id","phn-loi-khng-mu-zeroshot"),g(vn,"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"),g(vn,"href","#phn-loi-khng-mu-zeroshot"),g(J,"class","relative group"),g(yn,"id","to-vn-bn"),g(yn,"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"),g(yn,"href","#to-vn-bn"),g(K,"class","relative group"),g(xn,"id","s-dng-mt-m-hnh-bt-k-t-hub-trong-pipeline"),g(xn,"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"),g(xn,"href","#s-dng-mt-m-hnh-bt-k-t-hub-trong-pipeline"),g(nn,"class","relative group"),g(ht,"href","https://huggingface.co/models"),g(ht,"rel","nofollow"),g(it,"href","https://huggingface.co/models?pipeline_tag=text-generation"),g(it,"rel","nofollow"),g(at,"href","https://huggingface.co/distilgpt2"),g(at,"rel","nofollow"),g(En,"id","inference-api"),g(En,"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"),g(En,"href","#inference-api"),g(tn,"class","relative group"),g(ot,"href","https://huggingface.co/"),g(ot,"rel","nofollow"),g(pt,"href","https://huggingface.co/pricing"),g(pt,"rel","nofollow"),g(qn,"id","in-vo-ch-trng"),g(qn,"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"),g(qn,"href","#in-vo-ch-trng"),g(en,"class","relative group"),g(An,"id","nhn-dng-thc-th"),g(An,"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"),g(An,"href","#nhn-dng-thc-th"),g(sn,"class","relative group"),g(In,"id","hi-p"),g(In,"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"),g(In,"href","#hi-p"),g(hn,"class","relative group"),g(On,"id","tm-tt"),g(On,"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"),g(On,"href","#tm-tt"),g(an,"class","relative group"),g(Nn,"id","dch-my"),g(Nn,"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"),g(Nn,"href","#dch-my"),g(rn,"class","relative group"),g(Et,"href","https://huggingface.co/models"),g(Et,"rel","nofollow")},m(n,s){e(document.head,m),l(n,$,s),l(n,f,s),e(f,b),e(b,v),x(u,v,null),e(f,d),e(f,T),e(T,I),l(n,q,s),x(P,n,s),l(n,A,s),l(n,j,s),e(j,Z),e(j,B),e(B,Q),e(j,hi),l(n,fs,s),x(cn,n,s),l(n,vs,s),l(n,X,s),e(X,ln),e(ln,Kt),x(Fn,Kt,null),e(X,ii),e(X,ne),e(ne,ai),l(n,ds,s),l(n,At,s),e(At,ri),l(n,$s,s),l(n,on,s),l(n,bs,s),l(n,F,s),e(F,ci),e(F,Gn),e(Gn,li),e(F,oi),e(F,Rn),e(Rn,pi),e(F,mi),l(n,ys,s),x(pn,n,s),l(n,_s,s),l(n,Ht,s),e(Ht,gi),l(n,xs,s),l(n,Y,s),e(Y,mn),e(mn,te),x(zn,te,null),e(Y,ui),e(Y,ee),e(ee,fi),l(n,ks,s),x(Vn,n,s),l(n,ws,s),l(n,gn,s),e(gn,vi),e(gn,se),e(se,di),e(gn,$i),l(n,Es,s),x(Un,n,s),l(n,js,s),x(Wn,n,s),l(n,Ts,s),l(n,It,s),e(It,bi),l(n,qs,s),x(Zn,n,s),l(n,Ps,s),x(Qn,n,s),l(n,Cs,s),l(n,un,s),e(un,yi),e(un,he),e(he,_i),e(un,xi),l(n,As,s),l(n,St,s),e(St,ki),l(n,Hs,s),l(n,G,s),e(G,ie),e(ie,wi),e(G,Ei),e(G,ae),e(ae,ji),e(G,Ti),e(G,re),e(re,qi),l(n,Is,s),l(n,fn,s),e(fn,Pi),e(fn,Xn),e(Xn,Ci),e(fn,Ai),l(n,Ss,s),l(n,C,s),e(C,Ot),e(Ot,ce),e(ce,Hi),e(Ot,Ii),e(C,Si),e(C,le),e(le,oe),e(oe,Oi),e(C,Ni),e(C,Nt),e(Nt,pe),e(pe,Di),e(Nt,Li),e(C,Mi),e(C,me),e(me,ge),e(ge,Bi),e(C,Fi),e(C,ue),e(ue,fe),e(fe,Gi),e(C,Ri),e(C,ve),e(ve,de),e(de,zi),e(C,Vi),e(C,$e),e($e,be),e(be,Ui),e(C,Wi),e(C,ye),e(ye,_e),e(_e,Zi),e(C,Qi),e(C,xe),e(xe,ke),e(ke,Xi),l(n,Os,s),l(n,Dt,s),e(Dt,Yi),l(n,Ns,s),l(n,J,s),e(J,vn),e(vn,we),x(Yn,we,null),e(J,Ji),e(J,Ee),e(Ee,Ki),l(n,Ds,s),l(n,dn,s),e(dn,na),e(dn,je),e(je,ta),e(dn,ea),l(n,Ls,s),l(n,Lt,s),e(Lt,sa),l(n,Ms,s),x(Jn,n,s),l(n,Bs,s),x(Kn,n,s),l(n,Fs,s),l(n,$n,s),e($n,ha),e($n,Te),e(Te,ia),e($n,aa),l(n,Gs,s),x(bn,n,s),l(n,Rs,s),l(n,K,s),e(K,yn),e(yn,qe),x(nt,qe,null),e(K,ra),e(K,Pe),e(Pe,ca),l(n,zs,s),l(n,Mt,s),e(Mt,la),l(n,Vs,s),x(tt,n,s),l(n,Us,s),x(et,n,s),l(n,Ws,s),l(n,R,s),e(R,oa),e(R,Ce),e(Ce,pa),e(R,ma),e(R,Ae),e(Ae,ga),e(R,ua),l(n,Zs,s),x(_n,n,s),l(n,Qs,s),l(n,nn,s),e(nn,xn),e(xn,He),x(st,He,null),e(nn,fa),e(nn,Ie),e(Ie,va),l(n,Xs,s),l(n,z,s),e(z,da),e(z,ht),e(ht,$a),e(z,ba),e(z,it),e(it,ya),e(z,_a),l(n,Ys,s),l(n,kn,s),e(kn,xa),e(kn,at),e(at,Se),e(Se,ka),e(kn,wa),l(n,Js,s),x(rt,n,s),l(n,Ks,s),x(ct,n,s),l(n,nh,s),l(n,Bt,s),e(Bt,Ea),l(n,th,s),l(n,Ft,s),e(Ft,ja),l(n,eh,s),x(wn,n,s),l(n,sh,s),l(n,tn,s),e(tn,En),e(En,Oe),x(lt,Oe,null),e(tn,Ta),e(tn,Ne),e(Ne,qa),l(n,hh,s),l(n,jn,s),e(jn,Pa),e(jn,ot),e(ot,Ca),e(jn,Aa),l(n,ih,s),l(n,Tn,s),e(Tn,Ha),e(Tn,pt),e(pt,Ia),e(Tn,Sa),l(n,ah,s),l(n,en,s),e(en,qn),e(qn,De),x(mt,De,null),e(en,Oa),e(en,Le),e(Le,Na),l(n,rh,s),l(n,Pn,s),e(Pn,Da),e(Pn,Me),e(Me,La),e(Pn,Ma),l(n,ch,s),x(gt,n,s),l(n,lh,s),x(ut,n,s),l(n,oh,s),l(n,L,s),e(L,Ba),e(L,Be),e(Be,Fa),e(L,Ga),e(L,Fe),e(Fe,Ra),e(L,za),e(L,Ge),e(Ge,Va),e(L,Ua),l(n,ph,s),x(Cn,n,s),l(n,mh,s),l(n,sn,s),e(sn,An),e(An,Re),x(ft,Re,null),e(sn,Wa),e(sn,ze),e(ze,Za),l(n,gh,s),l(n,Gt,s),e(Gt,Qa),l(n,uh,s),x(vt,n,s),l(n,fh,s),x(dt,n,s),l(n,vh,s),l(n,Rt,s),e(Rt,Xa),l(n,dh,s),l(n,O,s),e(O,Ya),e(O,Ve),e(Ve,Ja),e(O,Ka),e(O,Ue),e(Ue,nr),e(O,tr),e(O,We),e(We,er),e(O,sr),e(O,Ze),e(Ze,hr),e(O,ir),e(O,Qe),e(Qe,ar),e(O,rr),e(O,Xe),e(Xe,cr),e(O,lr),l(n,$h,s),x(Hn,n,s),l(n,bh,s),l(n,hn,s),e(hn,In),e(In,Ye),x($t,Ye,null),e(hn,or),e(hn,Je),e(Je,pr),l(n,yh,s),l(n,Sn,s),e(Sn,mr),e(Sn,Ke),e(Ke,gr),e(Sn,ur),l(n,_h,s),x(bt,n,s),l(n,xh,s),x(yt,n,s),l(n,kh,s),l(n,zt,s),e(zt,fr),l(n,wh,s),l(n,an,s),e(an,On),e(On,ns),x(_t,ns,null),e(an,vr),e(an,ts),e(ts,dr),l(n,Eh,s),l(n,Vt,s),e(Vt,$r),l(n,jh,s),x(xt,n,s),l(n,Th,s),x(kt,n,s),l(n,qh,s),l(n,V,s),e(V,br),e(V,es),e(es,yr),e(V,_r),e(V,ss),e(ss,xr),e(V,kr),l(n,Ph,s),l(n,rn,s),e(rn,Nn),e(Nn,hs),x(wt,hs,null),e(rn,wr),e(rn,is),e(is,Er),l(n,Ch,s),l(n,U,s),e(U,jr),e(U,as),e(as,Tr),e(U,qr),e(U,Et),e(Et,Pr),e(U,Cr),l(n,Ah,s),x(jt,n,s),l(n,Hh,s),x(Tt,n,s),l(n,Ih,s),l(n,W,s),e(W,Ar),e(W,rs),e(rs,Hr),e(W,Ir),e(W,cs),e(cs,Sr),e(W,Or),l(n,Sh,s),x(Dn,n,s),l(n,Oh,s),l(n,Ln,s),e(Ln,Nr),e(Ln,ls),e(ls,Dr),e(Ln,Lr),Nh=!0},p(n,[s]){const qt={};s&2&&(qt.$$scope={dirty:s,ctx:n}),cn.$set(qt);const os={};s&2&&(os.$$scope={dirty:s,ctx:n}),pn.$set(os);const ps={};s&2&&(ps.$$scope={dirty:s,ctx:n}),bn.$set(ps);const ms={};s&2&&(ms.$$scope={dirty:s,ctx:n}),_n.$set(ms);const Pt={};s&2&&(Pt.$$scope={dirty:s,ctx:n}),wn.$set(Pt);const gs={};s&2&&(gs.$$scope={dirty:s,ctx:n}),Cn.$set(gs);const Ct={};s&2&&(Ct.$$scope={dirty:s,ctx:n}),Hn.$set(Ct);const us={};s&2&&(us.$$scope={dirty:s,ctx:n}),Dn.$set(us)},i(n){Nh||(k(u.$$.fragment,n),k(P.$$.fragment,n),k(cn.$$.fragment,n),k(Fn.$$.fragment,n),k(pn.$$.fragment,n),k(zn.$$.fragment,n),k(Vn.$$.fragment,n),k(Un.$$.fragment,n),k(Wn.$$.fragment,n),k(Zn.$$.fragment,n),k(Qn.$$.fragment,n),k(Yn.$$.fragment,n),k(Jn.$$.fragment,n),k(Kn.$$.fragment,n),k(bn.$$.fragment,n),k(nt.$$.fragment,n),k(tt.$$.fragment,n),k(et.$$.fragment,n),k(_n.$$.fragment,n),k(st.$$.fragment,n),k(rt.$$.fragment,n),k(ct.$$.fragment,n),k(wn.$$.fragment,n),k(lt.$$.fragment,n),k(mt.$$.fragment,n),k(gt.$$.fragment,n),k(ut.$$.fragment,n),k(Cn.$$.fragment,n),k(ft.$$.fragment,n),k(vt.$$.fragment,n),k(dt.$$.fragment,n),k(Hn.$$.fragment,n),k($t.$$.fragment,n),k(bt.$$.fragment,n),k(yt.$$.fragment,n),k(_t.$$.fragment,n),k(xt.$$.fragment,n),k(kt.$$.fragment,n),k(wt.$$.fragment,n),k(jt.$$.fragment,n),k(Tt.$$.fragment,n),k(Dn.$$.fragment,n),Nh=!0)},o(n){w(u.$$.fragment,n),w(P.$$.fragment,n),w(cn.$$.fragment,n),w(Fn.$$.fragment,n),w(pn.$$.fragment,n),w(zn.$$.fragment,n),w(Vn.$$.fragment,n),w(Un.$$.fragment,n),w(Wn.$$.fragment,n),w(Zn.$$.fragment,n),w(Qn.$$.fragment,n),w(Yn.$$.fragment,n),w(Jn.$$.fragment,n),w(Kn.$$.fragment,n),w(bn.$$.fragment,n),w(nt.$$.fragment,n),w(tt.$$.fragment,n),w(et.$$.fragment,n),w(_n.$$.fragment,n),w(st.$$.fragment,n),w(rt.$$.fragment,n),w(ct.$$.fragment,n),w(wn.$$.fragment,n),w(lt.$$.fragment,n),w(mt.$$.fragment,n),w(gt.$$.fragment,n),w(ut.$$.fragment,n),w(Cn.$$.fragment,n),w(ft.$$.fragment,n),w(vt.$$.fragment,n),w(dt.$$.fragment,n),w(Hn.$$.fragment,n),w($t.$$.fragment,n),w(bt.$$.fragment,n),w(yt.$$.fragment,n),w(_t.$$.fragment,n),w(xt.$$.fragment,n),w(kt.$$.fragment,n),w(wt.$$.fragment,n),w(jt.$$.fragment,n),w(Tt.$$.fragment,n),w(Dn.$$.fragment,n),Nh=!1},d(n){t(m),n&&t($),n&&t(f),E(u),n&&t(q),E(P,n),n&&t(A),n&&t(j),n&&t(fs),E(cn,n),n&&t(vs),n&&t(X),E(Fn),n&&t(ds),n&&t(At),n&&t($s),n&&t(on),n&&t(bs),n&&t(F),n&&t(ys),E(pn,n),n&&t(_s),n&&t(Ht),n&&t(xs),n&&t(Y),E(zn),n&&t(ks),E(Vn,n),n&&t(ws),n&&t(gn),n&&t(Es),E(Un,n),n&&t(js),E(Wn,n),n&&t(Ts),n&&t(It),n&&t(qs),E(Zn,n),n&&t(Ps),E(Qn,n),n&&t(Cs),n&&t(un),n&&t(As),n&&t(St),n&&t(Hs),n&&t(G),n&&t(Is),n&&t(fn),n&&t(Ss),n&&t(C),n&&t(Os),n&&t(Dt),n&&t(Ns),n&&t(J),E(Yn),n&&t(Ds),n&&t(dn),n&&t(Ls),n&&t(Lt),n&&t(Ms),E(Jn,n),n&&t(Bs),E(Kn,n),n&&t(Fs),n&&t($n),n&&t(Gs),E(bn,n),n&&t(Rs),n&&t(K),E(nt),n&&t(zs),n&&t(Mt),n&&t(Vs),E(tt,n),n&&t(Us),E(et,n),n&&t(Ws),n&&t(R),n&&t(Zs),E(_n,n),n&&t(Qs),n&&t(nn),E(st),n&&t(Xs),n&&t(z),n&&t(Ys),n&&t(kn),n&&t(Js),E(rt,n),n&&t(Ks),E(ct,n),n&&t(nh),n&&t(Bt),n&&t(th),n&&t(Ft),n&&t(eh),E(wn,n),n&&t(sh),n&&t(tn),E(lt),n&&t(hh),n&&t(jn),n&&t(ih),n&&t(Tn),n&&t(ah),n&&t(en),E(mt),n&&t(rh),n&&t(Pn),n&&t(ch),E(gt,n),n&&t(lh),E(ut,n),n&&t(oh),n&&t(L),n&&t(ph),E(Cn,n),n&&t(mh),n&&t(sn),E(ft),n&&t(gh),n&&t(Gt),n&&t(uh),E(vt,n),n&&t(fh),E(dt,n),n&&t(vh),n&&t(Rt),n&&t(dh),n&&t(O),n&&t($h),E(Hn,n),n&&t(bh),n&&t(hn),E($t),n&&t(yh),n&&t(Sn),n&&t(_h),E(bt,n),n&&t(xh),E(yt,n),n&&t(kh),n&&t(zt),n&&t(wh),n&&t(an),E(_t),n&&t(Eh),n&&t(Vt),n&&t(jh),E(xt,n),n&&t(Th),E(kt,n),n&&t(qh),n&&t(V),n&&t(Ph),n&&t(rn),E(wt),n&&t(Ch),n&&t(U),n&&t(Ah),E(jt,n),n&&t(Hh),E(Tt,n),n&&t(Ih),n&&t(W),n&&t(Sh),E(Dn,n),n&&t(Oh),n&&t(Ln)}}}const Zl={local:"transformers-c-th-lm-nhng-g",sections:[{local:"transformers-mun-ni",title:"Transformers \u1EDF mu\xF4n n\u01A1i!"},{local:"lm-vic-vi-pipelines",title:"L\xE0m vi\u1EC7c v\u1EDBi pipelines"},{local:"phn-loi-khng-mu-zeroshot",title:"Ph\xE2n lo\u1EA1i kh\xF4ng m\u1EABu (Zero-shot)"},{local:"to-vn-bn",title:"T\u1EA1o v\u0103n b\u1EA3n"},{local:"s-dng-mt-m-hnh-bt-k-t-hub-trong-pipeline",sections:[{local:"inference-api",title:"Inference API"}],title:"S\u1EED d\u1EE5ng m\u1ED9t m\xF4 h\xECnh b\u1EA5t k\u1EF3 t\u1EEB Hub trong pipeline"},{local:"in-vo-ch-trng",title:"\u0110i\u1EC1n v\xE0o ch\u1ED7 tr\u1ED1ng"},{local:"nhn-dng-thc-th",title:"Nh\u1EADn d\u1EA1ng th\u1EF1c th\u1EC3"},{local:"hi-p",title:"H\u1ECFi \u0111\xE1p"},{local:"tm-tt",title:"T\xF3m t\u1EAFt"},{local:"dch-my",title:"D\u1ECBch m\xE1y"}],title:"Transformers c\xF3 th\u1EC3 l\xE0m nh\u1EEFng g\xEC?"};function Ql(S){return Nl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class so extends Al{constructor(m){super();Hl(this,m,Ql,Wl,Il,{})}}export{so as default,Zl as metadata};
