import{s as I,n as J,o as K}from"../chunks/scheduler.cc52f4b9.js";import{S as V,i as Z,e as m,s as a,c as b,h as tt,a as o,d as n,b as s,f as X,g as v,j as w,k as D,l as et,m as l,n as P,t as T,o as y,p as L}from"../chunks/index.9480bb2b.js";import{C as nt,H as lt,E as at}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.52103c90.js";import{Y as st}from"../chunks/Youtube.7b12d9e8.js";import{C as rt}from"../chunks/CourseFloatingBanner.78fb31df.js";function mt(B){let r,E,C,M,i,z,f,j,p,H,u,S,$,F="「解碼器」模型通常指僅使用解碼器的 Transformer 模型。在每個階段，對於給定的單詞，注意力層只能獲取到句子中位於將要預測單詞前面的單詞。這些模型通常被稱爲自迴歸模型。",q,c,N="「解碼器」模型的預訓練通常圍繞預測句子中的下一個單詞進行。",G,h,O="這些模型最適合於涉及文本生成的任務。",k,g,Q="該系列模型的典型代表有：",R,_,W='<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>',U,x,Y,d,A;return i=new nt({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),f=new lt({props:{title:"「解碼器」模型",local:"解碼器模型",headingTag:"h1"}}),p=new rt({props:{chapter:1,classNames:"absolute z-10 right-0 top-0"}}),u=new st({props:{id:"d_ixlCubqQw"}}),x=new at({props:{source:"https://github.com/huggingface/course/blob/main/chapters/zh-TW/chapter1/6.mdx"}}),{c(){r=m("meta"),E=a(),C=m("p"),M=a(),b(i.$$.fragment),z=a(),b(f.$$.fragment),j=a(),b(p.$$.fragment),H=a(),b(u.$$.fragment),S=a(),$=m("p"),$.textContent=F,q=a(),c=m("p"),c.textContent=N,G=a(),h=m("p"),h.textContent=O,k=a(),g=m("p"),g.textContent=Q,R=a(),_=m("ul"),_.innerHTML=W,U=a(),b(x.$$.fragment),Y=a(),d=m("p"),this.h()},l(t){const e=tt("svelte-u9bgzb",document.head);r=o(e,"META",{name:!0,content:!0}),e.forEach(n),E=s(t),C=o(t,"P",{}),X(C).forEach(n),M=s(t),v(i.$$.fragment,t),z=s(t),v(f.$$.fragment,t),j=s(t),v(p.$$.fragment,t),H=s(t),v(u.$$.fragment,t),S=s(t),$=o(t,"P",{"data-svelte-h":!0}),w($)!=="svelte-xrjmks"&&($.textContent=F),q=s(t),c=o(t,"P",{"data-svelte-h":!0}),w(c)!=="svelte-1i3b71e"&&(c.textContent=N),G=s(t),h=o(t,"P",{"data-svelte-h":!0}),w(h)!=="svelte-tsazpq"&&(h.textContent=O),k=s(t),g=o(t,"P",{"data-svelte-h":!0}),w(g)!=="svelte-rjc8nv"&&(g.textContent=Q),R=s(t),_=o(t,"UL",{"data-svelte-h":!0}),w(_)!=="svelte-jabf5n"&&(_.innerHTML=W),U=s(t),v(x.$$.fragment,t),Y=s(t),d=o(t,"P",{}),X(d).forEach(n),this.h()},h(){D(r,"name","hf:doc:metadata"),D(r,"content",ot)},m(t,e){et(document.head,r),l(t,E,e),l(t,C,e),l(t,M,e),P(i,t,e),l(t,z,e),P(f,t,e),l(t,j,e),P(p,t,e),l(t,H,e),P(u,t,e),l(t,S,e),l(t,$,e),l(t,q,e),l(t,c,e),l(t,G,e),l(t,h,e),l(t,k,e),l(t,g,e),l(t,R,e),l(t,_,e),l(t,U,e),P(x,t,e),l(t,Y,e),l(t,d,e),A=!0},p:J,i(t){A||(T(i.$$.fragment,t),T(f.$$.fragment,t),T(p.$$.fragment,t),T(u.$$.fragment,t),T(x.$$.fragment,t),A=!0)},o(t){y(i.$$.fragment,t),y(f.$$.fragment,t),y(p.$$.fragment,t),y(u.$$.fragment,t),y(x.$$.fragment,t),A=!1},d(t){t&&(n(E),n(C),n(M),n(z),n(j),n(H),n(S),n($),n(q),n(c),n(G),n(h),n(k),n(g),n(R),n(_),n(U),n(Y),n(d)),n(r),L(i,t),L(f,t),L(p,t),L(u,t),L(x,t)}}}const ot='{"title":"「解碼器」模型","local":"解碼器模型","sections":[],"depth":1}';function it(B){return K(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ht extends V{constructor(r){super(),Z(this,r,it,mt,I,{})}}export{ht as component};
