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