import{s as B,n as F,o as N}from"../chunks/scheduler.37c15a92.js";import{S as Q,i as X,g as d,s as r,r as M,A as I,h,f as a,c as o,j as Y,u as E,x as H,k,y as J,a as n,v as S,d as j,t as q,w as z}from"../chunks/index.2bf4358c.js";import{Y as K}from"../chunks/Youtube.1e50a667.js";import{C as O}from"../chunks/CourseFloatingBanner.15ba07e6.js";import{H as V}from"../chunks/Heading.8ada512a.js";function W(A){let l,g,$,x,s,v,i,w,m,C,f,D="โมเดล decoder ใช้เพียงส่วน decoder จากโมเดล Transformer เท่านั้น ในแต่ละชั้น attention layer สามารถเข้าถึงคำที่อยู่ตำแหน่งก่อนหน้าในประโยคได้เท่านั้น โมเดลเหล่านี้เรียกว่า <em>โมเดล auto-regressive</em>",P,p,G="โมเดล pretrain ในกลุ่มนี้ใช้ในการทำนายคำต่อไปในประโยค เหมาะสำหรับงานในการสร้างข้อความ",T,u,R="ตัวแทนโมเดลในกลุ่มนี้ได้แก่:",b,c,U='<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>',L,_,y;return s=new V({props:{title:"โมเดล Decoder",local:"โมเดล-decoder",headingTag:"h1"}}),i=new O({props:{chapter:1,classNames:"absolute z-10 right-0 top-0"}}),m=new K({props:{id:"d_ixlCubqQw"}}),{c(){l=d("meta"),g=r(),$=d("p"),x=r(),M(s.$$.fragment),v=r(),M(i.$$.fragment),w=r(),M(m.$$.fragment),C=r(),f=d("p"),f.innerHTML=D,P=r(),p=d("p"),p.textContent=G,T=r(),u=d("p"),u.textContent=R,b=r(),c=d("ul"),c.innerHTML=U,L=r(),_=d("p"),this.h()},l(e){const t=I("svelte-u9bgzb",document.head);l=h(t,"META",{name:!0,content:!0}),t.forEach(a),g=o(e),$=h(e,"P",{}),Y($).forEach(a),x=o(e),E(s.$$.fragment,e),v=o(e),E(i.$$.fragment,e),w=o(e),E(m.$$.fragment,e),C=o(e),f=h(e,"P",{"data-svelte-h":!0}),H(f)!=="svelte-g9wnys"&&(f.innerHTML=D),P=o(e),p=h(e,"P",{"data-svelte-h":!0}),H(p)!=="svelte-19dviih"&&(p.textContent=G),T=o(e),u=h(e,"P",{"data-svelte-h":!0}),H(u)!=="svelte-10huopx"&&(u.textContent=R),b=o(e),c=h(e,"UL",{"data-svelte-h":!0}),H(c)!=="svelte-jabf5n"&&(c.innerHTML=U),L=o(e),_=h(e,"P",{}),Y(_).forEach(a),this.h()},h(){k(l,"name","hf:doc:metadata"),k(l,"content",Z)},m(e,t){J(document.head,l),n(e,g,t),n(e,$,t),n(e,x,t),S(s,e,t),n(e,v,t),S(i,e,t),n(e,w,t),S(m,e,t),n(e,C,t),n(e,f,t),n(e,P,t),n(e,p,t),n(e,T,t),n(e,u,t),n(e,b,t),n(e,c,t),n(e,L,t),n(e,_,t),y=!0},p:F,i(e){y||(j(s.$$.fragment,e),j(i.$$.fragment,e),j(m.$$.fragment,e),y=!0)},o(e){q(s.$$.fragment,e),q(i.$$.fragment,e),q(m.$$.fragment,e),y=!1},d(e){e&&(a(g),a($),a(x),a(v),a(w),a(C),a(f),a(P),a(p),a(T),a(u),a(b),a(c),a(L),a(_)),a(l),z(s,e),z(i,e),z(m,e)}}}const Z='{"title":"โมเดล Decoder","local":"โมเดล-decoder","sections":[],"depth":1}';function ee(A){return N(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class oe extends Q{constructor(l){super(),X(this,l,ee,W,B,{})}}export{oe as component};
