import{s as J,n as K,o as V}from"../chunks/scheduler.cc52f4b9.js";import{S as W,i as Z,e as m,s as a,c as v,h as tt,a as o,d as n,b as s,f as D,g as w,j as b,k as I,l as et,m as l,n as P,t as T,o as L,p as y}from"../chunks/index.3c4d5777.js";import{C as nt,H as lt,E as at}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.e23023b3.js";import{Y as st}from"../chunks/Youtube.cad4973d.js";import{C as it}from"../chunks/CourseFloatingBanner.c59a53e4.js";function mt(B){let i,M,d,E,r,H,f,z,p,S,u,q,$,F="デコーダーモデルとは、Transformerモデルのデコーダーのみを使用したモデルを指します。 処理の各段階で、処理対象の単語について、attention層はその単語より前に出現した単語にのみアクセスすることができます。 このようなモデルは<em>自己回帰モデル</em>と呼ばれます。",G,c,N="　デコーダーモデルの事前学習は、次に続く単語を予測するタスクを解くことを中心に展開されます。",j,h,O="これらのモデルは、文を生成するタスクに最も適しています。",R,g,Q="デコーダーモデルでは以下のものが代表的です：",U,_,X='<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/transfo-xl.html" rel="nofollow">Transformer XL</a></li>',Y,x,k,C,A;return r=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 it({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/ja/chapter1/6.mdx"}}),{c(){i=m("meta"),M=a(),d=m("p"),E=a(),v(r.$$.fragment),H=a(),v(f.$$.fragment),z=a(),v(p.$$.fragment),S=a(),v(u.$$.fragment),q=a(),$=m("p"),$.innerHTML=F,G=a(),c=m("p"),c.textContent=N,j=a(),h=m("p"),h.textContent=O,R=a(),g=m("p"),g.textContent=Q,U=a(),_=m("ul"),_.innerHTML=X,Y=a(),v(x.$$.fragment),k=a(),C=m("p"),this.h()},l(t){const e=tt("svelte-u9bgzb",document.head);i=o(e,"META",{name:!0,content:!0}),e.forEach(n),M=s(t),d=o(t,"P",{}),D(d).forEach(n),E=s(t),w(r.$$.fragment,t),H=s(t),w(f.$$.fragment,t),z=s(t),w(p.$$.fragment,t),S=s(t),w(u.$$.fragment,t),q=s(t),$=o(t,"P",{"data-svelte-h":!0}),b($)!=="svelte-nthov6"&&($.innerHTML=F),G=s(t),c=o(t,"P",{"data-svelte-h":!0}),b(c)!=="svelte-mfhtzo"&&(c.textContent=N),j=s(t),h=o(t,"P",{"data-svelte-h":!0}),b(h)!=="svelte-ic0gz7"&&(h.textContent=O),R=s(t),g=o(t,"P",{"data-svelte-h":!0}),b(g)!=="svelte-igdfsl"&&(g.textContent=Q),U=s(t),_=o(t,"UL",{"data-svelte-h":!0}),b(_)!=="svelte-1tiql5w"&&(_.innerHTML=X),Y=s(t),w(x.$$.fragment,t),k=s(t),C=o(t,"P",{}),D(C).forEach(n),this.h()},h(){I(i,"name","hf:doc:metadata"),I(i,"content",ot)},m(t,e){et(document.head,i),l(t,M,e),l(t,d,e),l(t,E,e),P(r,t,e),l(t,H,e),P(f,t,e),l(t,z,e),P(p,t,e),l(t,S,e),P(u,t,e),l(t,q,e),l(t,$,e),l(t,G,e),l(t,c,e),l(t,j,e),l(t,h,e),l(t,R,e),l(t,g,e),l(t,U,e),l(t,_,e),l(t,Y,e),P(x,t,e),l(t,k,e),l(t,C,e),A=!0},p:K,i(t){A||(T(r.$$.fragment,t),T(f.$$.fragment,t),T(p.$$.fragment,t),T(u.$$.fragment,t),T(x.$$.fragment,t),A=!0)},o(t){L(r.$$.fragment,t),L(f.$$.fragment,t),L(p.$$.fragment,t),L(u.$$.fragment,t),L(x.$$.fragment,t),A=!1},d(t){t&&(n(M),n(d),n(E),n(H),n(z),n(S),n(q),n($),n(G),n(c),n(j),n(h),n(R),n(g),n(U),n(_),n(Y),n(k),n(C)),n(i),y(r,t),y(f,t),y(p,t),y(u,t),y(x,t)}}}const ot='{"title":"デコーダーモデル","local":"デコーダーモデル","sections":[],"depth":1}';function rt(B){return V(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ht extends W{constructor(i){super(),Z(this,i,rt,mt,J,{})}}export{ht as component};
