import{s as j,n as G,o as O}from"../chunks/scheduler.53228c21.js";import{S as R,i as U,e as _,s as m,c as $,h as V,a as h,d as t,b as s,f as k,g as v,j as B,k as C,l as F,m as r,n as T,t as b,o as M,p as x}from"../chunks/index.100fac89.js";import{C as J}from"../chunks/CopyLLMTxtMenu.999d3d86.js";import{D as K}from"../chunks/Docstring.46d0934e.js";import{H as q,E as N}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.d27ae4df.js";function Q(H){let n,y,u,I,l,D,o,w,i,S='A Transformer model for image-like data from <a href="https://huggingface.co/Tongyi-MAI/Z-Image-Turbo" rel="nofollow">Z-Image</a>.',Z,f,z,p,d,E,g,P,c,L;return l=new J({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),o=new q({props:{title:"ZImageTransformer2DModel",local:"zimagetransformer2dmodel",headingTag:"h1"}}),f=new q({props:{title:"ZImageTransformer2DModel",local:"diffusers.ZImageTransformer2DModel",headingTag:"h2"}}),d=new K({props:{name:"class diffusers.ZImageTransformer2DModel",anchor:"diffusers.ZImageTransformer2DModel",parameters:[{name:"all_patch_size",val:" = (2,)"},{name:"all_f_patch_size",val:" = (1,)"},{name:"in_channels",val:" = 16"},{name:"dim",val:" = 3840"},{name:"n_layers",val:" = 30"},{name:"n_refiner_layers",val:" = 2"},{name:"n_heads",val:" = 30"},{name:"n_kv_heads",val:" = 30"},{name:"norm_eps",val:" = 1e-05"},{name:"qk_norm",val:" = True"},{name:"cap_feat_dim",val:" = 2560"},{name:"rope_theta",val:" = 256.0"},{name:"t_scale",val:" = 1000.0"},{name:"axes_dims",val:" = [32, 48, 48]"},{name:"axes_lens",val:" = [1024, 512, 512]"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/transformers/transformer_z_image.py#L308"}}),g=new N({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/models/z_image_transformer2d.md"}}),{c(){n=_("meta"),y=m(),u=_("p"),I=m(),$(l.$$.fragment),D=m(),$(o.$$.fragment),w=m(),i=_("p"),i.innerHTML=S,Z=m(),$(f.$$.fragment),z=m(),p=_("div"),$(d.$$.fragment),E=m(),$(g.$$.fragment),P=m(),c=_("p"),this.h()},l(e){const a=V("svelte-u9bgzb",document.head);n=h(a,"META",{name:!0,content:!0}),a.forEach(t),y=s(e),u=h(e,"P",{}),k(u).forEach(t),I=s(e),v(l.$$.fragment,e),D=s(e),v(o.$$.fragment,e),w=s(e),i=h(e,"P",{"data-svelte-h":!0}),B(i)!=="svelte-1x46gmc"&&(i.innerHTML=S),Z=s(e),v(f.$$.fragment,e),z=s(e),p=h(e,"DIV",{class:!0});var A=k(p);v(d.$$.fragment,A),A.forEach(t),E=s(e),v(g.$$.fragment,e),P=s(e),c=h(e,"P",{}),k(c).forEach(t),this.h()},h(){C(n,"name","hf:doc:metadata"),C(n,"content",W),C(p,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,a){F(document.head,n),r(e,y,a),r(e,u,a),r(e,I,a),T(l,e,a),r(e,D,a),T(o,e,a),r(e,w,a),r(e,i,a),r(e,Z,a),T(f,e,a),r(e,z,a),r(e,p,a),T(d,p,null),r(e,E,a),T(g,e,a),r(e,P,a),r(e,c,a),L=!0},p:G,i(e){L||(b(l.$$.fragment,e),b(o.$$.fragment,e),b(f.$$.fragment,e),b(d.$$.fragment,e),b(g.$$.fragment,e),L=!0)},o(e){M(l.$$.fragment,e),M(o.$$.fragment,e),M(f.$$.fragment,e),M(d.$$.fragment,e),M(g.$$.fragment,e),L=!1},d(e){e&&(t(y),t(u),t(I),t(D),t(w),t(i),t(Z),t(z),t(p),t(E),t(P),t(c)),t(n),x(l,e),x(o,e),x(f,e),x(d),x(g,e)}}}const W='{"title":"ZImageTransformer2DModel","local":"zimagetransformer2dmodel","sections":[{"title":"ZImageTransformer2DModel","local":"diffusers.ZImageTransformer2DModel","sections":[],"depth":2}],"depth":1}';function X(H){return O(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ne extends R{constructor(n){super(),U(this,n,X,Q,j,{})}}export{ne as component};
