import{S as en,i as an,s as rn,e as a,k as h,w as Kt,t as o,M as cn,c as r,d as e,m as l,a as c,x as Qt,h as s,b as L,G as t,g,y as Wt,L as hn,q as Zt,o as tn,B as nn,v as on}from"../../chunks/vendor-hf-doc-builder.js";import{I as ln}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as sn}from"../../chunks/CourseFloatingBanner-hf-doc-builder.js";import"../../chunks/DocNotebookDropdown-hf-doc-builder.js";function dn(Mt){let d,U,m,_,M,b,et,w,at,Y,k,j,E,rt,C,ct,ht,K,R,ot,Q,y,q,f,x,lt,st,N,it,dt,G,mt,ft,p,u,H,pt,ut,I,vt,Tt,S,gt,_t,v,O,Et,yt,V,bt,kt,X,Rt,Bt,T,z,$t,Pt,F,At,Dt,J,Lt,W;return b=new ln({}),k=new sn({props:{chapter:1,classNames:"absolute z-10 right-0 top-0"}}),{c(){d=a("meta"),U=h(),m=a("h1"),_=a("a"),M=a("span"),Kt(b.$$.fragment),et=h(),w=a("span"),at=o("T\u1ED5ng k\u1EBFt"),Y=h(),Kt(k.$$.fragment),j=h(),E=a("p"),rt=o("Trong ch\u01B0\u01A1ng n\xE0y, b\u1EA1n \u0111\xE3 bi\u1EBFt c\xE1ch ti\u1EBFp c\u1EADn c\xE1c t\xE1c v\u1EE5 NLP kh\xE1c nhau b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng h\xE0m "),C=a("code"),ct=o("pipeline()"),ht=o(" c\u1EA5p cao t\u1EEB \u{1F917} Transformers. B\u1EA1n c\u0169ng \u0111\xE3 bi\u1EBFt c\xE1ch t\xECm ki\u1EBFm v\xE0 s\u1EED d\u1EE5ng c\xE1c m\xF4 h\xECnh trong Hub, c\u0169ng nh\u01B0 c\xE1ch s\u1EED d\u1EE5ng Inference API \u0111\u1EC3 ki\u1EC3m tra c\xE1c m\xF4 h\xECnh tr\u1EF1c ti\u1EBFp trong tr\xECnh duy\u1EC7t c\u1EE7a m\xECnh."),K=h(),R=a("p"),ot=o("Ch\xFAng ta \u0111\xE3 th\u1EA3o lu\u1EADn v\u1EC1 c\xE1ch c\xE1c m\xF4 h\xECnh Transformer ho\u1EA1t \u0111\u1ED9ng \u1EDF c\u1EA5p \u0111\u1ED9 cao v\xE0 n\xF3i v\u1EC1 t\u1EA7m quan tr\u1ECDng c\u1EE7a vi\u1EC7c h\u1ECDc chuy\u1EC3n giao v\xE0 tinh ch\u1EC9nh. M\u1ED9t kh\xEDa c\u1EA1nh quan tr\u1ECDng, \u0111\xF3 l\xE0 b\u1EA1n c\xF3 th\u1EC3 s\u1EED d\u1EE5ng ki\u1EBFn tr\xFAc \u0111\u1EA7y \u0111\u1EE7 ho\u1EB7c ch\u1EC9 ph\u1EA7n m\xE3 h\xF3a ho\u1EB7c gi\u1EA3i m\xE3, t\xF9y thu\u1ED9c v\xE0o lo\u1EA1i t\xE1c v\u1EE5 b\u1EA1n mu\u1ED1n gi\u1EA3i quy\u1EBFt. B\u1EA3ng d\u01B0\u1EDBi \u0111\xE2y t\xF3m t\u1EAFt kh\xEDa c\u1EA1nh n\xE0y:"),Q=h(),y=a("table"),q=a("thead"),f=a("tr"),x=a("th"),lt=o("M\xF4 h\xECnh"),st=h(),N=a("th"),it=o("V\xED d\u1EE5"),dt=h(),G=a("th"),mt=o("T\xE1c v\u1EE5"),ft=h(),p=a("tbody"),u=a("tr"),H=a("td"),pt=o("M\xE3 ho\xE1"),ut=h(),I=a("td"),vt=o("ALBERT, BERT, DistilBERT, ELECTRA, RoBERTa"),Tt=h(),S=a("td"),gt=o("Ph\xE2n lo\u1EA1i c\xE2u, Nh\u1EADn d\u1EA1ng th\u1EF1c th\u1EC3 c\xF3 t\xEAn, h\u1ECFi \u0111\xE1p ch\xEDch xu\u1EA5t"),_t=h(),v=a("tr"),O=a("td"),Et=o("Gi\u1EA3i m\xE3"),yt=h(),V=a("td"),bt=o("CTRL, GPT, GPT-2, Transformer XL"),kt=h(),X=a("td"),Rt=o("T\u1EA1o v\u0103n b\u1EA3n"),Bt=h(),T=a("tr"),z=a("td"),$t=o("M\xE3 ho\xE1-gi\u1EA3i m\xE3"),Pt=h(),F=a("td"),At=o("BART, T5, Marian, mBART"),Dt=h(),J=a("td"),Lt=o("T\xF3m t\u1EAFt, d\u1ECBch m\xE1y, tr\u1EA3 l\u1EDDi c\xE2u h\u1ECFi t\u1ED5ng h\u1EE3p"),this.h()},l(n){const i=cn('[data-svelte="svelte-1phssyn"]',document.head);d=r(i,"META",{name:!0,content:!0}),i.forEach(e),U=l(n),m=r(n,"H1",{class:!0});var Z=c(m);_=r(Z,"A",{id:!0,class:!0,href:!0});var wt=c(_);M=r(wt,"SPAN",{});var Ct=c(M);Qt(b.$$.fragment,Ct),Ct.forEach(e),wt.forEach(e),et=l(Z),w=r(Z,"SPAN",{});var qt=c(w);at=s(qt,"T\u1ED5ng k\u1EBFt"),qt.forEach(e),Z.forEach(e),Y=l(n),Qt(k.$$.fragment,n),j=l(n),E=r(n,"P",{});var tt=c(E);rt=s(tt,"Trong ch\u01B0\u01A1ng n\xE0y, b\u1EA1n \u0111\xE3 bi\u1EBFt c\xE1ch ti\u1EBFp c\u1EADn c\xE1c t\xE1c v\u1EE5 NLP kh\xE1c nhau b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng h\xE0m "),C=r(tt,"CODE",{});var xt=c(C);ct=s(xt,"pipeline()"),xt.forEach(e),ht=s(tt," c\u1EA5p cao t\u1EEB \u{1F917} Transformers. B\u1EA1n c\u0169ng \u0111\xE3 bi\u1EBFt c\xE1ch t\xECm ki\u1EBFm v\xE0 s\u1EED d\u1EE5ng c\xE1c m\xF4 h\xECnh trong Hub, c\u0169ng nh\u01B0 c\xE1ch s\u1EED d\u1EE5ng Inference API \u0111\u1EC3 ki\u1EC3m tra c\xE1c m\xF4 h\xECnh tr\u1EF1c ti\u1EBFp trong tr\xECnh duy\u1EC7t c\u1EE7a m\xECnh."),tt.forEach(e),K=l(n),R=r(n,"P",{});var Nt=c(R);ot=s(Nt,"Ch\xFAng ta \u0111\xE3 th\u1EA3o lu\u1EADn v\u1EC1 c\xE1ch c\xE1c m\xF4 h\xECnh Transformer ho\u1EA1t \u0111\u1ED9ng \u1EDF c\u1EA5p \u0111\u1ED9 cao v\xE0 n\xF3i v\u1EC1 t\u1EA7m quan tr\u1ECDng c\u1EE7a vi\u1EC7c h\u1ECDc chuy\u1EC3n giao v\xE0 tinh ch\u1EC9nh. M\u1ED9t kh\xEDa c\u1EA1nh quan tr\u1ECDng, \u0111\xF3 l\xE0 b\u1EA1n c\xF3 th\u1EC3 s\u1EED d\u1EE5ng ki\u1EBFn tr\xFAc \u0111\u1EA7y \u0111\u1EE7 ho\u1EB7c ch\u1EC9 ph\u1EA7n m\xE3 h\xF3a ho\u1EB7c gi\u1EA3i m\xE3, t\xF9y thu\u1ED9c v\xE0o lo\u1EA1i t\xE1c v\u1EE5 b\u1EA1n mu\u1ED1n gi\u1EA3i quy\u1EBFt. B\u1EA3ng d\u01B0\u1EDBi \u0111\xE2y t\xF3m t\u1EAFt kh\xEDa c\u1EA1nh n\xE0y:"),Nt.forEach(e),Q=l(n),y=r(n,"TABLE",{});var nt=c(y);q=r(nt,"THEAD",{});var Gt=c(q);f=r(Gt,"TR",{});var B=c(f);x=r(B,"TH",{});var Ht=c(x);lt=s(Ht,"M\xF4 h\xECnh"),Ht.forEach(e),st=l(B),N=r(B,"TH",{});var It=c(N);it=s(It,"V\xED d\u1EE5"),It.forEach(e),dt=l(B),G=r(B,"TH",{});var St=c(G);mt=s(St,"T\xE1c v\u1EE5"),St.forEach(e),B.forEach(e),Gt.forEach(e),ft=l(nt),p=r(nt,"TBODY",{});var $=c(p);u=r($,"TR",{});var P=c(u);H=r(P,"TD",{});var Ot=c(H);pt=s(Ot,"M\xE3 ho\xE1"),Ot.forEach(e),ut=l(P),I=r(P,"TD",{});var Vt=c(I);vt=s(Vt,"ALBERT, BERT, DistilBERT, ELECTRA, RoBERTa"),Vt.forEach(e),Tt=l(P),S=r(P,"TD",{});var Xt=c(S);gt=s(Xt,"Ph\xE2n lo\u1EA1i c\xE2u, Nh\u1EADn d\u1EA1ng th\u1EF1c th\u1EC3 c\xF3 t\xEAn, h\u1ECFi \u0111\xE1p ch\xEDch xu\u1EA5t"),Xt.forEach(e),P.forEach(e),_t=l($),v=r($,"TR",{});var A=c(v);O=r(A,"TD",{});var zt=c(O);Et=s(zt,"Gi\u1EA3i m\xE3"),zt.forEach(e),yt=l(A),V=r(A,"TD",{});var Ft=c(V);bt=s(Ft,"CTRL, GPT, GPT-2, Transformer XL"),Ft.forEach(e),kt=l(A),X=r(A,"TD",{});var Jt=c(X);Rt=s(Jt,"T\u1EA1o v\u0103n b\u1EA3n"),Jt.forEach(e),A.forEach(e),Bt=l($),T=r($,"TR",{});var D=c(T);z=r(D,"TD",{});var Ut=c(z);$t=s(Ut,"M\xE3 ho\xE1-gi\u1EA3i m\xE3"),Ut.forEach(e),Pt=l(D),F=r(D,"TD",{});var Yt=c(F);At=s(Yt,"BART, T5, Marian, mBART"),Yt.forEach(e),Dt=l(D),J=r(D,"TD",{});var jt=c(J);Lt=s(jt,"T\xF3m t\u1EAFt, d\u1ECBch m\xE1y, tr\u1EA3 l\u1EDDi c\xE2u h\u1ECFi t\u1ED5ng h\u1EE3p"),jt.forEach(e),D.forEach(e),$.forEach(e),nt.forEach(e),this.h()},h(){L(d,"name","hf:doc:metadata"),L(d,"content",JSON.stringify(mn)),L(_,"id","tng-kt"),L(_,"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"),L(_,"href","#tng-kt"),L(m,"class","relative group")},m(n,i){t(document.head,d),g(n,U,i),g(n,m,i),t(m,_),t(_,M),Wt(b,M,null),t(m,et),t(m,w),t(w,at),g(n,Y,i),Wt(k,n,i),g(n,j,i),g(n,E,i),t(E,rt),t(E,C),t(C,ct),t(E,ht),g(n,K,i),g(n,R,i),t(R,ot),g(n,Q,i),g(n,y,i),t(y,q),t(q,f),t(f,x),t(x,lt),t(f,st),t(f,N),t(N,it),t(f,dt),t(f,G),t(G,mt),t(y,ft),t(y,p),t(p,u),t(u,H),t(H,pt),t(u,ut),t(u,I),t(I,vt),t(u,Tt),t(u,S),t(S,gt),t(p,_t),t(p,v),t(v,O),t(O,Et),t(v,yt),t(v,V),t(V,bt),t(v,kt),t(v,X),t(X,Rt),t(p,Bt),t(p,T),t(T,z),t(z,$t),t(T,Pt),t(T,F),t(F,At),t(T,Dt),t(T,J),t(J,Lt),W=!0},p:hn,i(n){W||(Zt(b.$$.fragment,n),Zt(k.$$.fragment,n),W=!0)},o(n){tn(b.$$.fragment,n),tn(k.$$.fragment,n),W=!1},d(n){e(d),n&&e(U),n&&e(m),nn(b),n&&e(Y),nn(k,n),n&&e(j),n&&e(E),n&&e(K),n&&e(R),n&&e(Q),n&&e(y)}}}const mn={local:"tng-kt",title:"T\u1ED5ng k\u1EBFt"};function fn(Mt){return on(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class gn extends en{constructor(d){super();an(this,d,fn,dn,rn,{})}}export{gn as default,mn as metadata};
