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 l,r as M,A as O,h as m,f as n,c as s,j as N,u as q,x as C,k as Q,y as V,a,v as z,d as S,t as k,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 o,g,x,v,i,w,f,P,p,b,u,R="「解碼器」模型通常指僅使用解碼器的 Transformer 模型。在每個階段，對於給定的單詞，注意力層只能獲取到句子中位於將要預測單詞前面的單詞。這些模型通常被稱爲自迴歸模型。",T,c,U="「解碼器」模型的預訓練通常圍繞預測句子中的下一個單詞進行。",L,_,Y="這些模型最適合於涉及文本生成的任務。",y,$,B="該系列模型的典型代表有：",j,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/transformerxl.html" rel="nofollow">Transformer XL</a></li>',E,d,H;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(){o=r("meta"),g=l(),x=r("p"),v=l(),M(i.$$.fragment),w=l(),M(f.$$.fragment),P=l(),M(p.$$.fragment),b=l(),u=r("p"),u.textContent=R,T=l(),c=r("p"),c.textContent=U,L=l(),_=r("p"),_.textContent=Y,y=l(),$=r("p"),$.textContent=B,j=l(),h=r("ul"),h.innerHTML=F,E=l(),d=r("p"),this.h()},l(t){const e=O("svelte-u9bgzb",document.head);o=m(e,"META",{name:!0,content:!0}),e.forEach(n),g=s(t),x=m(t,"P",{}),N(x).forEach(n),v=s(t),q(i.$$.fragment,t),w=s(t),q(f.$$.fragment,t),P=s(t),q(p.$$.fragment,t),b=s(t),u=m(t,"P",{"data-svelte-h":!0}),C(u)!=="svelte-xrjmks"&&(u.textContent=R),T=s(t),c=m(t,"P",{"data-svelte-h":!0}),C(c)!=="svelte-1i3b71e"&&(c.textContent=U),L=s(t),_=m(t,"P",{"data-svelte-h":!0}),C(_)!=="svelte-tsazpq"&&(_.textContent=Y),y=s(t),$=m(t,"P",{"data-svelte-h":!0}),C($)!=="svelte-rjc8nv"&&($.textContent=B),j=s(t),h=m(t,"UL",{"data-svelte-h":!0}),C(h)!=="svelte-jabf5n"&&(h.innerHTML=F),E=s(t),d=m(t,"P",{}),N(d).forEach(n),this.h()},h(){Q(o,"name","hf:doc:metadata"),Q(o,"content",nt)},m(t,e){V(document.head,o),a(t,g,e),a(t,x,e),a(t,v,e),z(i,t,e),a(t,w,e),z(f,t,e),a(t,P,e),z(p,t,e),a(t,b,e),a(t,u,e),a(t,T,e),a(t,c,e),a(t,L,e),a(t,_,e),a(t,y,e),a(t,$,e),a(t,j,e),a(t,h,e),a(t,E,e),a(t,d,e),H=!0},p:D,i(t){H||(S(i.$$.fragment,t),S(f.$$.fragment,t),S(p.$$.fragment,t),H=!0)},o(t){k(i.$$.fragment,t),k(f.$$.fragment,t),k(p.$$.fragment,t),H=!1},d(t){t&&(n(g),n(x),n(v),n(w),n(P),n(b),n(u),n(T),n(c),n(L),n(_),n(y),n($),n(j),n(h),n(E),n(d)),n(o),A(i,t),A(f,t),A(p,t)}}}const nt='{"title":"「解碼器」模型","local":"解碼器模型","sections":[],"depth":1}';function at(G){return I(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class it extends J{constructor(o){super(),K(this,o,at,et,X,{})}}export{it as component};
