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