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