import{S as It,i as St,s as Rt,e as c,k as u,w as ut,t as l,M as Nt,c as e,d as h,m as f,a as r,x as ft,h as m,b as o,G as n,g as i,y as pt,L as Vt,q as gt,o as vt,B as _t,v as Ut}from"../../chunks/vendor-hf-doc-builder.js";import{Y as Yt}from"../../chunks/Youtube-hf-doc-builder.js";import{I as zt}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as Ft}from"../../chunks/CourseFloatingBanner-hf-doc-builder.js";import"../../chunks/DocNotebookDropdown-hf-doc-builder.js";function Gt(bt){let p,N,g,v,P,y,D,L,Q,V,$,U,E,Y,_,W,q,X,Z,z,b,tt,w,ht,nt,F,M,ct,G,C,et,H,s,B,A,at,rt,I,k,ot,it,S,T,lt,mt,R,x,st,J;return y=new zt({}),$=new Ft({props:{chapter:1,classNames:"absolute z-10 right-0 top-0"}}),E=new Yt({props:{id:"0_4KEb08xrE"}}),{c(){p=c("meta"),N=u(),g=c("h1"),v=c("a"),P=c("span"),ut(y.$$.fragment),D=u(),L=c("span"),Q=l("C\xE1c m\xF4 h\xECnh m\xE3 ho\xE1-gi\u1EA3i m\xE3"),V=u(),ut($.$$.fragment),U=u(),ut(E.$$.fragment),Y=u(),_=c("p"),W=l("C\xE1c m\xF4 h\xECnh m\xE3 h\xF3a-gi\u1EA3i m\xE3 (c\xF2n \u0111\u01B0\u1EE3c g\u1ECDi l\xE0 "),q=c("em"),X=l("m\xF4 h\xECnh chu\u1ED7i-sang-chu\u1ED7i"),Z=l(") s\u1EED d\u1EE5ng c\u1EA3 hai ph\u1EA7n c\u1EE7a ki\u1EBFn tr\xFAc Transformer. \u1EDE m\u1ED7i b\u01B0\u1EDBc, c\xE1c l\u1EDBp attention c\u1EE7a ph\u1EA7n m\xE3 h\xF3a c\xF3 th\u1EC3 truy c\u1EADp t\u1EA5t c\u1EA3 c\xE1c t\u1EEB trong c\xE2u ban \u0111\u1EA7u, trong khi c\xE1c l\u1EDBp attention c\u1EE7a ph\u1EA7n gi\u1EA3i m\xE3 ch\u1EC9 c\xF3 th\u1EC3 truy c\u1EADp c\xE1c t\u1EEB \u0111\u01B0\u1EE3c \u0111\u1EB7t tr\u01B0\u1EDBc m\u1ED9t t\u1EEB nh\u1EA5t \u0111\u1ECBnh trong \u0111\u1EA7u v\xE0o."),z=u(),b=c("p"),tt=l("Vi\u1EC7c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc c\xE1c m\xF4 h\xECnh n\xE0y c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c th\u1EF1c hi\u1EC7n b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng c\xE1c h\xE0m m\u1EE5c ti\xEAu c\u1EE7a m\xF4 h\xECnh m\xE3 h\xF3a ho\u1EB7c gi\u1EA3i m\xE3, nh\u01B0ng th\u01B0\u1EDDng li\xEAn quan \u0111\u1EBFn m\u1ED9t th\u1EE9 ph\u1EE9c t\u1EA1p h\u01A1n m\u1ED9t ch\xFAt. V\xED d\u1EE5: "),w=c("a"),ht=l("T5"),nt=l(" \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc b\u1EB1ng c\xE1ch thay th\u1EBF c\xE1c kho\u1EA3ng v\u0103n b\u1EA3n ng\u1EABu nhi\xEAn (c\xF3 th\u1EC3 ch\u1EE9a m\u1ED9t s\u1ED1 t\u1EEB) b\u1EB1ng c\xE1ch che l\u1EA1i b\u1EB1ng m\u1ED9t t\u1EEB \u0111\u1EB7c bi\u1EC7t v\xE0 m\u1EE5c ti\xEAu sau \u0111\xF3 l\xE0 d\u1EF1 \u0111o\xE1n ph\u1EA7n b\u1ECB che l\u1EA1i b\u1EDFi m\u1ED9t t\u1EEB \u0111\u1EB7c bi\u1EC7t \u0111\xF3."),F=u(),M=c("p"),ct=l("M\xF4 h\xECnh chu\u1ED7i-sang-chu\u1ED7i ph\xF9 h\u1EE3p nh\u1EA5t cho c\xE1c t\xE1c v\u1EE5 xoay quanh vi\u1EC7c t\u1EA1o ra c\xE1c c\xE2u m\u1EDBi t\xF9y thu\u1ED9c v\xE0o \u0111\u1EA7u v\xE0o nh\u1EA5t \u0111\u1ECBnh, ch\u1EB3ng h\u1EA1n nh\u01B0 t\xF3m t\u1EAFt, d\u1ECBch ho\u1EB7c h\u1ECFi \u0111\xE1p chung."),G=u(),C=c("p"),et=l("M\u1ED9t s\u1ED1 m\xF4 h\xECnh ti\xEAu bi\u1EC3u c\u1EE7a nh\xF3m n\xE0y bao g\u1ED3m:"),H=u(),s=c("ul"),B=c("li"),A=c("a"),at=l("BART"),rt=u(),I=c("li"),k=c("a"),ot=l("mBART"),it=u(),S=c("li"),T=c("a"),lt=l("Marian"),mt=u(),R=c("li"),x=c("a"),st=l("T5"),this.h()},l(t){const a=Nt('[data-svelte="svelte-1phssyn"]',document.head);p=e(a,"META",{name:!0,content:!0}),a.forEach(h),N=f(t),g=e(t,"H1",{class:!0});var K=r(g);v=e(K,"A",{id:!0,class:!0,href:!0});var dt=r(v);P=e(dt,"SPAN",{});var yt=r(P);ft(y.$$.fragment,yt),yt.forEach(h),dt.forEach(h),D=f(K),L=e(K,"SPAN",{});var $t=r(L);Q=m($t,"C\xE1c m\xF4 h\xECnh m\xE3 ho\xE1-gi\u1EA3i m\xE3"),$t.forEach(h),K.forEach(h),V=f(t),ft($.$$.fragment,t),U=f(t),ft(E.$$.fragment,t),Y=f(t),_=e(t,"P",{});var O=r(_);W=m(O,"C\xE1c m\xF4 h\xECnh m\xE3 h\xF3a-gi\u1EA3i m\xE3 (c\xF2n \u0111\u01B0\u1EE3c g\u1ECDi l\xE0 "),q=e(O,"EM",{});var Et=r(q);X=m(Et,"m\xF4 h\xECnh chu\u1ED7i-sang-chu\u1ED7i"),Et.forEach(h),Z=m(O,") s\u1EED d\u1EE5ng c\u1EA3 hai ph\u1EA7n c\u1EE7a ki\u1EBFn tr\xFAc Transformer. \u1EDE m\u1ED7i b\u01B0\u1EDBc, c\xE1c l\u1EDBp attention c\u1EE7a ph\u1EA7n m\xE3 h\xF3a c\xF3 th\u1EC3 truy c\u1EADp t\u1EA5t c\u1EA3 c\xE1c t\u1EEB trong c\xE2u ban \u0111\u1EA7u, trong khi c\xE1c l\u1EDBp attention c\u1EE7a ph\u1EA7n gi\u1EA3i m\xE3 ch\u1EC9 c\xF3 th\u1EC3 truy c\u1EADp c\xE1c t\u1EEB \u0111\u01B0\u1EE3c \u0111\u1EB7t tr\u01B0\u1EDBc m\u1ED9t t\u1EEB nh\u1EA5t \u0111\u1ECBnh trong \u0111\u1EA7u v\xE0o."),O.forEach(h),z=f(t),b=e(t,"P",{});var j=r(b);tt=m(j,"Vi\u1EC7c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc c\xE1c m\xF4 h\xECnh n\xE0y c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c th\u1EF1c hi\u1EC7n b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng c\xE1c h\xE0m m\u1EE5c ti\xEAu c\u1EE7a m\xF4 h\xECnh m\xE3 h\xF3a ho\u1EB7c gi\u1EA3i m\xE3, nh\u01B0ng th\u01B0\u1EDDng li\xEAn quan \u0111\u1EBFn m\u1ED9t th\u1EE9 ph\u1EE9c t\u1EA1p h\u01A1n m\u1ED9t ch\xFAt. V\xED d\u1EE5: "),w=e(j,"A",{href:!0,rel:!0});var wt=r(w);ht=m(wt,"T5"),wt.forEach(h),nt=m(j," \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc b\u1EB1ng c\xE1ch thay th\u1EBF c\xE1c kho\u1EA3ng v\u0103n b\u1EA3n ng\u1EABu nhi\xEAn (c\xF3 th\u1EC3 ch\u1EE9a m\u1ED9t s\u1ED1 t\u1EEB) b\u1EB1ng c\xE1ch che l\u1EA1i b\u1EB1ng m\u1ED9t t\u1EEB \u0111\u1EB7c bi\u1EC7t v\xE0 m\u1EE5c ti\xEAu sau \u0111\xF3 l\xE0 d\u1EF1 \u0111o\xE1n ph\u1EA7n b\u1ECB che l\u1EA1i b\u1EDFi m\u1ED9t t\u1EEB \u0111\u1EB7c bi\u1EC7t \u0111\xF3."),j.forEach(h),F=f(t),M=e(t,"P",{});var At=r(M);ct=m(At,"M\xF4 h\xECnh chu\u1ED7i-sang-chu\u1ED7i ph\xF9 h\u1EE3p nh\u1EA5t cho c\xE1c t\xE1c v\u1EE5 xoay quanh vi\u1EC7c t\u1EA1o ra c\xE1c c\xE2u m\u1EDBi t\xF9y thu\u1ED9c v\xE0o \u0111\u1EA7u v\xE0o nh\u1EA5t \u0111\u1ECBnh, ch\u1EB3ng h\u1EA1n nh\u01B0 t\xF3m t\u1EAFt, d\u1ECBch ho\u1EB7c h\u1ECFi \u0111\xE1p chung."),At.forEach(h),G=f(t),C=e(t,"P",{});var kt=r(C);et=m(kt,"M\u1ED9t s\u1ED1 m\xF4 h\xECnh ti\xEAu bi\u1EC3u c\u1EE7a nh\xF3m n\xE0y bao g\u1ED3m:"),kt.forEach(h),H=f(t),s=e(t,"UL",{});var d=r(s);B=e(d,"LI",{});var Tt=r(B);A=e(Tt,"A",{href:!0,rel:!0});var xt=r(A);at=m(xt,"BART"),xt.forEach(h),Tt.forEach(h),rt=f(d),I=e(d,"LI",{});var Mt=r(I);k=e(Mt,"A",{href:!0,rel:!0});var Ct=r(k);ot=m(Ct,"mBART"),Ct.forEach(h),Mt.forEach(h),it=f(d),S=e(d,"LI",{});var Pt=r(S);T=e(Pt,"A",{href:!0,rel:!0});var Lt=r(T);lt=m(Lt,"Marian"),Lt.forEach(h),Pt.forEach(h),mt=f(d),R=e(d,"LI",{});var qt=r(R);x=e(qt,"A",{href:!0,rel:!0});var Bt=r(x);st=m(Bt,"T5"),Bt.forEach(h),qt.forEach(h),d.forEach(h),this.h()},h(){o(p,"name","hf:doc:metadata"),o(p,"content",JSON.stringify(Ht)),o(v,"id","cc-m-hnh-m-hogii-m"),o(v,"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"),o(v,"href","#cc-m-hnh-m-hogii-m"),o(g,"class","relative group"),o(w,"href","https://huggingface.co/t5-base"),o(w,"rel","nofollow"),o(A,"href","https://huggingface.co/transformers/model_doc/bart.html"),o(A,"rel","nofollow"),o(k,"href","https://huggingface.co/transformers/model_doc/mbart.html"),o(k,"rel","nofollow"),o(T,"href","https://huggingface.co/transformers/model_doc/marian.html"),o(T,"rel","nofollow"),o(x,"href","https://huggingface.co/transformers/model_doc/t5.html"),o(x,"rel","nofollow")},m(t,a){n(document.head,p),i(t,N,a),i(t,g,a),n(g,v),n(v,P),pt(y,P,null),n(g,D),n(g,L),n(L,Q),i(t,V,a),pt($,t,a),i(t,U,a),pt(E,t,a),i(t,Y,a),i(t,_,a),n(_,W),n(_,q),n(q,X),n(_,Z),i(t,z,a),i(t,b,a),n(b,tt),n(b,w),n(w,ht),n(b,nt),i(t,F,a),i(t,M,a),n(M,ct),i(t,G,a),i(t,C,a),n(C,et),i(t,H,a),i(t,s,a),n(s,B),n(B,A),n(A,at),n(s,rt),n(s,I),n(I,k),n(k,ot),n(s,it),n(s,S),n(S,T),n(T,lt),n(s,mt),n(s,R),n(R,x),n(x,st),J=!0},p:Vt,i(t){J||(gt(y.$$.fragment,t),gt($.$$.fragment,t),gt(E.$$.fragment,t),J=!0)},o(t){vt(y.$$.fragment,t),vt($.$$.fragment,t),vt(E.$$.fragment,t),J=!1},d(t){h(p),t&&h(N),t&&h(g),_t(y),t&&h(V),_t($,t),t&&h(U),_t(E,t),t&&h(Y),t&&h(_),t&&h(z),t&&h(b),t&&h(F),t&&h(M),t&&h(G),t&&h(C),t&&h(H),t&&h(s)}}}const Ht={local:"cc-m-hnh-m-hogii-m",title:"C\xE1c m\xF4 h\xECnh m\xE3 ho\xE1-gi\u1EA3i m\xE3"};function Jt(bt){return Ut(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Wt extends It{constructor(p){super();St(this,p,Jt,Gt,Rt,{})}}export{Wt as default,Ht as metadata};
