import{S as fe,i as ne,s as me,e as i,k as y,w as H,t as h,M as ie,c as p,d as t,m as b,a as _,x as L,h as c,b as v,G as o,g as x,y as O,q as X,o as R,B as W,v as pe}from"../../chunks/vendor-hf-doc-builder.js";import{T as le}from"../../chunks/Tip-hf-doc-builder.js";import{I as he}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as ce}from"../../chunks/CodeBlock-hf-doc-builder.js";function ue(C){let r,f,a,n,m;return{c(){r=i("p"),f=h("xFormers PIP \uD328\uD0A4\uC9C0\uC5D0\uB294 \uCD5C\uC2E0 \uBC84\uC804\uC758 PyTorch(xFormers 0.0.16\uC5D0 1.13.1)\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4. \uC774\uC804 \uBC84\uC804\uC758 PyTorch\uB97C \uC0AC\uC6A9\uD574\uC57C \uD558\uB294 \uACBD\uC6B0 "),a=i("a"),n=h("\uD504\uB85C\uC81D\uD2B8 \uC9C0\uCE68"),m=h("\uC758 \uC18C\uC2A4\uB97C \uC0AC\uC6A9\uD574 xFormers\uB97C \uC124\uCE58\uD558\uB294 \uAC83\uC774 \uC88B\uC2B5\uB2C8\uB2E4."),this.h()},l(l){r=p(l,"P",{});var u=_(r);f=c(u,"xFormers PIP \uD328\uD0A4\uC9C0\uC5D0\uB294 \uCD5C\uC2E0 \uBC84\uC804\uC758 PyTorch(xFormers 0.0.16\uC5D0 1.13.1)\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4. \uC774\uC804 \uBC84\uC804\uC758 PyTorch\uB97C \uC0AC\uC6A9\uD574\uC57C \uD558\uB294 \uACBD\uC6B0 "),a=p(u,"A",{href:!0,rel:!0});var $=_(a);n=c($,"\uD504\uB85C\uC81D\uD2B8 \uC9C0\uCE68"),$.forEach(t),m=c(u,"\uC758 \uC18C\uC2A4\uB97C \uC0AC\uC6A9\uD574 xFormers\uB97C \uC124\uCE58\uD558\uB294 \uAC83\uC774 \uC88B\uC2B5\uB2C8\uB2E4."),u.forEach(t),this.h()},h(){v(a,"href","https://github.com/facebookresearch/xformers#installing-xformers"),v(a,"rel","nofollow")},m(l,u){x(l,r,u),o(r,f),o(r,a),o(a,n),o(r,m)},d(l){l&&t(r)}}}function $e(C){let r,f,a,n,m,l,u;return{c(){r=i("p"),f=i("a"),a=h("\uC774 \uC774\uC288"),n=h("\uC5D0 \uB530\uB974\uBA74 xFormers "),m=i("code"),l=h("v0.0.16"),u=h("\uC5D0\uC11C GPU\uB97C \uC0AC\uC6A9\uD55C \uD559\uC2B5(\uD30C\uC778 \uD29C\uB2DD \uB610\uB294 Dreambooth)\uC744 \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uD574\uB2F9 \uBB38\uC81C\uAC00 \uBC1C\uACAC\uB418\uBA74. \uD574\uB2F9 \uCF54\uBA58\uD2B8\uB97C \uCC38\uACE0\uD574 development \uBC84\uC804\uC744 \uC124\uCE58\uD558\uC138\uC694."),this.h()},l($){r=p($,"P",{});var d=_(r);f=p(d,"A",{href:!0,rel:!0});var g=_(f);a=c(g,"\uC774 \uC774\uC288"),g.forEach(t),n=c(d,"\uC5D0 \uB530\uB974\uBA74 xFormers "),m=p(d,"CODE",{});var w=_(m);l=c(w,"v0.0.16"),w.forEach(t),u=c(d,"\uC5D0\uC11C GPU\uB97C \uC0AC\uC6A9\uD55C \uD559\uC2B5(\uD30C\uC778 \uD29C\uB2DD \uB610\uB294 Dreambooth)\uC744 \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uD574\uB2F9 \uBB38\uC81C\uAC00 \uBC1C\uACAC\uB418\uBA74. \uD574\uB2F9 \uCF54\uBA58\uD2B8\uB97C \uCC38\uACE0\uD574 development \uBC84\uC804\uC744 \uC124\uCE58\uD558\uC138\uC694."),d.forEach(t),this.h()},h(){v(f,"href","https://github.com/huggingface/diffusers/issues/2234#issuecomment-1416931212"),v(f,"rel","nofollow")},m($,d){x($,r,d),o(r,f),o(f,a),o(r,n),o(r,m),o(m,l),o(r,u)},d($){$&&t(r)}}}function _e(C){let r,f,a,n,m,l,u,$,d,g,w,Z,k,j,K,J,S,Q,M,A,U,P,q,F,V,G,Y,ee,D,E,N;return l=new he({}),A=new ce({props:{code:"cGlwJTIwaW5zdGFsbCUyMHhmb3JtZXJz",highlighted:"pip install xformers"}}),P=new le({props:{$$slots:{default:[ue]},$$scope:{ctx:C}}}),E=new le({props:{warning:!0,$$slots:{default:[$e]},$$scope:{ctx:C}}}),{c(){r=i("meta"),f=y(),a=i("h1"),n=i("a"),m=i("span"),H(l.$$.fragment),u=y(),$=i("span"),d=h("xFormers \uC124\uCE58\uD558\uAE30"),g=y(),w=i("p"),Z=h("\uCD94\uB860\uACFC \uD559\uC2B5 \uBAA8\uB450\uC5D0 "),k=i("a"),j=h("xFormers"),K=h(`\uB97C \uC0AC\uC6A9\uD558\uB294 \uAC83\uC774 \uC88B\uC2B5\uB2C8\uB2E4.
\uC790\uCCB4 \uD14C\uC2A4\uD2B8\uB85C \uC5B4\uD150\uC158 \uBE14\uB85D\uC5D0\uC11C \uC218\uD589\uB41C \uCD5C\uC801\uD654\uAC00 \uB354 \uBE60\uB978 \uC18D\uB3C4\uC640 \uC801\uC740 \uBA54\uBAA8\uB9AC \uC18C\uBE44\uB97C \uD655\uC778\uD588\uC2B5\uB2C8\uB2E4.`),J=y(),S=i("p"),Q=h("2023\uB144 1\uC6D4\uC5D0 \uCD9C\uC2DC\uB41C xFormers \uBC84\uC804 \u20180.0.16\u2019\uBD80\uD130 \uC0AC\uC804 \uBE4C\uB4DC\uB41C pip wheel\uC744 \uC0AC\uC6A9\uD558\uC5EC \uC27D\uAC8C \uC124\uCE58\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:"),M=y(),H(A.$$.fragment),U=y(),H(P.$$.fragment),q=y(),F=i("p"),V=h("xFormers\uB97C \uC124\uCE58\uD558\uBA74, "),G=i("a"),Y=h("\uC5EC\uAE30"),ee=h("\uC11C \uC124\uBA85\uD55C \uAC83\uCC98\uB7FC \u2018enable_xformers_memory_efficient_attention()\u2018\uC744 \uC0AC\uC6A9\uD558\uC5EC \uCD94\uB860 \uC18D\uB3C4\uB97C \uB192\uC774\uACE0 \uBA54\uBAA8\uB9AC \uC18C\uBE44\uB97C \uC904\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4."),D=y(),H(E.$$.fragment),this.h()},l(e){const s=ie('[data-svelte="svelte-1phssyn"]',document.head);r=p(s,"META",{name:!0,content:!0}),s.forEach(t),f=b(e),a=p(e,"H1",{class:!0});var T=_(a);n=p(T,"A",{id:!0,class:!0,href:!0});var I=_(n);m=p(I,"SPAN",{});var te=_(m);L(l.$$.fragment,te),te.forEach(t),I.forEach(t),u=b(T),$=p(T,"SPAN",{});var re=_($);d=c(re,"xFormers \uC124\uCE58\uD558\uAE30"),re.forEach(t),T.forEach(t),g=b(e),w=p(e,"P",{});var z=_(w);Z=c(z,"\uCD94\uB860\uACFC \uD559\uC2B5 \uBAA8\uB450\uC5D0 "),k=p(z,"A",{href:!0,rel:!0});var oe=_(k);j=c(oe,"xFormers"),oe.forEach(t),K=c(z,`\uB97C \uC0AC\uC6A9\uD558\uB294 \uAC83\uC774 \uC88B\uC2B5\uB2C8\uB2E4.
\uC790\uCCB4 \uD14C\uC2A4\uD2B8\uB85C \uC5B4\uD150\uC158 \uBE14\uB85D\uC5D0\uC11C \uC218\uD589\uB41C \uCD5C\uC801\uD654\uAC00 \uB354 \uBE60\uB978 \uC18D\uB3C4\uC640 \uC801\uC740 \uBA54\uBAA8\uB9AC \uC18C\uBE44\uB97C \uD655\uC778\uD588\uC2B5\uB2C8\uB2E4.`),z.forEach(t),J=b(e),S=p(e,"P",{});var se=_(S);Q=c(se,"2023\uB144 1\uC6D4\uC5D0 \uCD9C\uC2DC\uB41C xFormers \uBC84\uC804 \u20180.0.16\u2019\uBD80\uD130 \uC0AC\uC804 \uBE4C\uB4DC\uB41C pip wheel\uC744 \uC0AC\uC6A9\uD558\uC5EC \uC27D\uAC8C \uC124\uCE58\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:"),se.forEach(t),M=b(e),L(A.$$.fragment,e),U=b(e),L(P.$$.fragment,e),q=b(e),F=p(e,"P",{});var B=_(F);V=c(B,"xFormers\uB97C \uC124\uCE58\uD558\uBA74, "),G=p(B,"A",{href:!0});var ae=_(G);Y=c(ae,"\uC5EC\uAE30"),ae.forEach(t),ee=c(B,"\uC11C \uC124\uBA85\uD55C \uAC83\uCC98\uB7FC \u2018enable_xformers_memory_efficient_attention()\u2018\uC744 \uC0AC\uC6A9\uD558\uC5EC \uCD94\uB860 \uC18D\uB3C4\uB97C \uB192\uC774\uACE0 \uBA54\uBAA8\uB9AC \uC18C\uBE44\uB97C \uC904\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4."),B.forEach(t),D=b(e),L(E.$$.fragment,e),this.h()},h(){v(r,"name","hf:doc:metadata"),v(r,"content",JSON.stringify(xe)),v(n,"id","xformers"),v(n,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),v(n,"href","#xformers"),v(a,"class","relative group"),v(k,"href","https://github.com/facebookresearch/xformers"),v(k,"rel","nofollow"),v(G,"href","fp16#memory-efficient-attention")},m(e,s){o(document.head,r),x(e,f,s),x(e,a,s),o(a,n),o(n,m),O(l,m,null),o(a,u),o(a,$),o($,d),x(e,g,s),x(e,w,s),o(w,Z),o(w,k),o(k,j),o(w,K),x(e,J,s),x(e,S,s),o(S,Q),x(e,M,s),O(A,e,s),x(e,U,s),O(P,e,s),x(e,q,s),x(e,F,s),o(F,V),o(F,G),o(G,Y),o(F,ee),x(e,D,s),O(E,e,s),N=!0},p(e,[s]){const T={};s&2&&(T.$$scope={dirty:s,ctx:e}),P.$set(T);const I={};s&2&&(I.$$scope={dirty:s,ctx:e}),E.$set(I)},i(e){N||(X(l.$$.fragment,e),X(A.$$.fragment,e),X(P.$$.fragment,e),X(E.$$.fragment,e),N=!0)},o(e){R(l.$$.fragment,e),R(A.$$.fragment,e),R(P.$$.fragment,e),R(E.$$.fragment,e),N=!1},d(e){t(r),e&&t(f),e&&t(a),W(l),e&&t(g),e&&t(w),e&&t(J),e&&t(S),e&&t(M),W(A,e),e&&t(U),W(P,e),e&&t(q),e&&t(F),e&&t(D),W(E,e)}}}const xe={local:"xformers",title:"xFormers \uC124\uCE58\uD558\uAE30"};function ve(C){return pe(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ee extends fe{constructor(r){super();ne(this,r,ve,_e,me,{})}}export{Ee as default,xe as metadata};
