import{s as D,n as I,o as J}from"../chunks/scheduler.37c15a92.js";import{S as K,i as V,g as r,s as l,r as z,A as W,h as m,f as n,c as s,j as Q,u as G,x as C,k as X,y as Z,a,v as S,d as k,t as A,w as N}from"../chunks/index.2bf4358c.js";import{Y as tt}from"../chunks/Youtube.1e50a667.js";import{C as et}from"../chunks/CourseFloatingBanner.06521e8b.js";import{H as nt,E as at}from"../chunks/EditOnGithub.8916dc7c.js";function lt(R){let o,v,x,w,i,b,f,P,p,T,u,U="“解码器”模型通常指仅使用解码器的Transformer模型。在每个阶段，对于给定的单词，注意力层只能获取到句子中位于将要预测单词前面的单词。这些模型通常被称为自回归模型。",y,c,Y="“解码器”模型的预训练通常围绕预测句子中的下一个单词进行。",E,$,B="这些模型最适合于涉及文本生成的任务。",L,h,F="该系列模型的典型代表有：",H,_,O='<li><a href="https://huggingface.co/transformers/model_doc/ctrl.html" rel="nofollow">CTRL</a></li> <li><a href="https://huggingface.co/docs/transformers/model_doc/openai-gpt" rel="nofollow">GPT</a></li> <li><a href="https://huggingface.co/transformers/model_doc/gpt2.html" rel="nofollow">GPT-2</a></li> <li><a href="https://huggingface.co/transformers/model_doc/transfor-xl.html" rel="nofollow">Transformer XL</a></li>',M,g,j,d,q;return i=new nt({props:{title:"“解码器”模型",local:"“解码器”模型",headingTag:"h1"}}),f=new et({props:{chapter:1,classNames:"absolute z-10 right-0 top-0"}}),p=new tt({props:{id:"d_ixlCubqQw"}}),g=new at({props:{source:"https://github.com/huggingface/course/blob/main/chapters/zh-CN/chapter1/6.mdx"}}),{c(){o=r("meta"),v=l(),x=r("p"),w=l(),z(i.$$.fragment),b=l(),z(f.$$.fragment),P=l(),z(p.$$.fragment),T=l(),u=r("p"),u.textContent=U,y=l(),c=r("p"),c.textContent=Y,E=l(),$=r("p"),$.textContent=B,L=l(),h=r("p"),h.textContent=F,H=l(),_=r("ul"),_.innerHTML=O,M=l(),z(g.$$.fragment),j=l(),d=r("p"),this.h()},l(t){const e=W("svelte-u9bgzb",document.head);o=m(e,"META",{name:!0,content:!0}),e.forEach(n),v=s(t),x=m(t,"P",{}),Q(x).forEach(n),w=s(t),G(i.$$.fragment,t),b=s(t),G(f.$$.fragment,t),P=s(t),G(p.$$.fragment,t),T=s(t),u=m(t,"P",{"data-svelte-h":!0}),C(u)!=="svelte-1y72ta2"&&(u.textContent=U),y=s(t),c=m(t,"P",{"data-svelte-h":!0}),C(c)!=="svelte-j9j86b"&&(c.textContent=Y),E=s(t),$=m(t,"P",{"data-svelte-h":!0}),C($)!=="svelte-1t2skmf"&&($.textContent=B),L=s(t),h=m(t,"P",{"data-svelte-h":!0}),C(h)!=="svelte-rgo3yq"&&(h.textContent=F),H=s(t),_=m(t,"UL",{"data-svelte-h":!0}),C(_)!=="svelte-nf5pou"&&(_.innerHTML=O),M=s(t),G(g.$$.fragment,t),j=s(t),d=m(t,"P",{}),Q(d).forEach(n),this.h()},h(){X(o,"name","hf:doc:metadata"),X(o,"content",st)},m(t,e){Z(document.head,o),a(t,v,e),a(t,x,e),a(t,w,e),S(i,t,e),a(t,b,e),S(f,t,e),a(t,P,e),S(p,t,e),a(t,T,e),a(t,u,e),a(t,y,e),a(t,c,e),a(t,E,e),a(t,$,e),a(t,L,e),a(t,h,e),a(t,H,e),a(t,_,e),a(t,M,e),S(g,t,e),a(t,j,e),a(t,d,e),q=!0},p:I,i(t){q||(k(i.$$.fragment,t),k(f.$$.fragment,t),k(p.$$.fragment,t),k(g.$$.fragment,t),q=!0)},o(t){A(i.$$.fragment,t),A(f.$$.fragment,t),A(p.$$.fragment,t),A(g.$$.fragment,t),q=!1},d(t){t&&(n(v),n(x),n(w),n(b),n(P),n(T),n(u),n(y),n(c),n(E),n($),n(L),n(h),n(H),n(_),n(M),n(j),n(d)),n(o),N(i,t),N(f,t),N(p,t),N(g,t)}}}const st='{"title":"“解码器”模型","local":"“解码器”模型","sections":[],"depth":1}';function ot(R){return J(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ut extends K{constructor(o){super(),V(this,o,ot,lt,D,{})}}export{ut as component};
