import{s as Wt,o as Vt}from"../chunks/scheduler.d6170356.js";import{S as Xt,i as Ft,g as i,s as l,r,A as qt,h as d,f as a,c as n,j as Rt,u as p,x as o,k as me,y as zt,a as s,v as u,d as c,t as m,w as f,m as Qt,n as Dt}from"../chunks/index.fcd4cc08.js";import{T as Kt}from"../chunks/Tip.b09c67cf.js";import{C as fe}from"../chunks/CodeBlock.7b16bdef.js";import{H as h,E as Ot}from"../chunks/EditOnGithub.da2b595c.js";function ea(he){let g;return{c(){g=Qt("Longer-term, we would also like to expose non-GPU hardware, like HPU, IPU or TPU. If you have a specific AI hardware you'd like to run on, please let us know (website at huggingface.co).")},l(y){g=Dt(y,"Longer-term, we would also like to expose non-GPU hardware, like HPU, IPU or TPU. If you have a specific AI hardware you'd like to run on, please let us know (website at huggingface.co).")},m(y,x){s(y,g,x)},d(y){y&&a(g)}}}function ta(he){let g,y,x,ye,U,$e,C,mt="You can upgrade your Space to use a GPU accelerator using the <em>Settings</em> button in the top navigation bar of the Space. You can even request a free upgrade if you are building a cool demo for a side project!",we,$,ft='<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-gpu-settings.png"/> <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-gpu-settings-dark.png"/>',ve,w,be,M,gt="As soon as your Space is running on GPU you can see which hardware it’s running on directly from this badge:",Te,v,ht='<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-running-badge.png"/> <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-running-badge-dark.png"/>',xe,k,Ue,G,yt="In the following table, you can see the Specs for the different upgrade options.",Ce,P,$t="<thead><tr><th><strong>Hardware</strong></th> <th><strong>CPU</strong></th> <th><strong>Memory</strong></th> <th><strong>GPU Memory</strong></th> <th><strong>Disk</strong></th> <th><strong>Hourly Price</strong></th></tr></thead> <tbody><tr><td>CPU Basic</td> <td>2 vCPU</td> <td>16GB</td> <td>-</td> <td>50 GB</td> <td>Free!</td></tr> <tr><td>CPU Upgrade</td> <td>8 vCPU</td> <td>32GB</td> <td>-</td> <td>50 GB</td> <td>$0.03</td></tr> <tr><td>Nvidia T4 - small</td> <td>4 vCPU</td> <td>15GB</td> <td>16GB</td> <td>50 GB</td> <td>$0.40</td></tr> <tr><td>Nvidia T4 - medium</td> <td>8 vCPU</td> <td>30GB</td> <td>16GB</td> <td>100 GB</td> <td>$0.60</td></tr> <tr><td>Nvidia A10G - small</td> <td>4 vCPU</td> <td>15GB</td> <td>24GB</td> <td>110 GB</td> <td>$1.00</td></tr> <tr><td>Nvidia A10G - large</td> <td>12 vCPU</td> <td>46GB</td> <td>24GB</td> <td>200 GB</td> <td>$1.50</td></tr> <tr><td>2x Nvidia A10G - large</td> <td>24 vCPU</td> <td>92GB</td> <td>48GB</td> <td>1000 GB</td> <td>$3.00</td></tr> <tr><td>4x Nvidia A10G - large</td> <td>48 vCPU</td> <td>184GB</td> <td>96GB</td> <td>2000 GB</td> <td>$5.00</td></tr> <tr><td>Nvidia A100 - large</td> <td>12 vCPU</td> <td>142GB</td> <td>40GB</td> <td>1000 GB</td> <td>$4.00</td></tr> <tr><td>Nvidia H100</td> <td>24 vCPU</td> <td>250GB</td> <td>80GB</td> <td>3000 GB</td> <td>$10.00</td></tr> <tr><td>8x Nvidia H100</td> <td>192 vCPU</td> <td>2TB</td> <td>640G</td> <td>3000 GB</td> <td>coming soon</td></tr></tbody>",Me,j,ke,S,wt=`You can programmatically configure your Space hardware using <code>huggingface_hub</code>. This allows for a wide range of use cases where you need to dynamically assign GPUs.
Check out <a href="https://huggingface.co/docs/huggingface_hub/main/en/guides/manage_spaces" rel="nofollow">this guide</a> for more details.`,Ge,_,Pe,B,vt="Most Spaces should run out of the box after a GPU upgrade, but sometimes you’ll need to install CUDA versions of the machine learning frameworks you use. Please, follow this guide to ensure your Space takes advantage of the improved hardware.",je,J,Se,H,bt="You’ll need to install a version of PyTorch compatible with the built-in CUDA drivers. Adding the following two lines to your <code>requirements.txt</code> file should work:",_e,L,Be,Y,Tt="You can verify whether the installation was successful by running the following code in your <code>app.py</code> and checking the output in your Space logs:",Je,Z,He,A,xt="Many frameworks automatically use the GPU if one is available. This is the case for the Pipelines in 🤗 <code>transformers</code>, <code>fastai</code> and many others. In other cases, or if you use PyTorch directly, you may need to move your models and data to the GPU to ensure computation is done on the accelerator and not on the CPU. You can use PyTorch’s <code>.to()</code> syntax, for example:",Le,I,Ye,E,Ze,N,Ut="If you use JAX, you need to specify the URL that contains CUDA compatible packages. Please, add the following lines to your <code>requirements.txt</code> file:",Ae,R,Ie,W,Ct="After that, you can verify the installation by printing the output from the following code and checking it in your Space logs.",Ee,V,Ne,X,Re,F,Mt="The default <code>tensorflow</code> installation should recognize the CUDA device. Just add <code>tensorflow</code> to your <code>requirements.txt</code> file and use the following code in your <code>app.py</code> to verify in your Space logs.",We,q,Ve,z,Xe,Q,kt=`Billing on Spaces is based on hardware usage and is computed by the minute: you get charged for every minute the Space runs on the requested hardware,
regardless of whether the Space is used.`,Fe,D,Gt="During a Space’s lifecycle, it is only billed when the Space is actually <code>Running</code>. This means that there is no cost during build or startup.",qe,K,Pt="If a running Space starts to fail, it will be automatically suspended and the billing will stop.",ze,O,jt='Spaces running on free hardware are suspended automatically if they are not used for an extended period of time (e.g. two days). Upgraded Spaces run indefinitely by default, even if there is no usage. You can change this behavior by <a href="#sleep-time">setting a custom “sleep time”</a> in the Space’s settings. To interrupt the billing on your Space, you can change the Hardware to CPU basic, or <a href="#pause">pause</a> it.',Qe,ee,St='Additional information about billing can be found in the <a href="./billing">dedicated Hub-wide section</a>.',De,te,Ke,ae,_t="Do you have an awesome Space but need help covering the GPU hardware upgrade costs? We love helping out those with an innovative Space so please feel free to apply for a community GPU grant and see if yours makes the cut! This application can be found in your Space hardware repo settings in the lower left corner under “sleep time settings”:",Oe,se,Bt='<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/ask-for-community-grant.png" alt="Community GPU Grant"/>',et,le,tt,ne,Jt="If your Space runs on the default <code>cpu-basic</code> hardware, it will go to sleep if inactive for more than a set time (currently, 48 hours). Anyone visiting your Space will restart it automatically.",at,ie,Ht="If you want your Space never to deactivate or if you want to set a custom sleep time, you need to upgrade to a paid Hardware.",st,de,Lt="By default, an upgraded Space will never go to sleep. However, you can use this setting for your upgraded Space to become idle (<code>stopped</code> stage) when it’s unused 😴. You are not going to be charged for the upgraded hardware while it is asleep. The Space will ‘wake up’ or get restarted once it receives a new visitor.",lt,oe,Yt="The following interface will then be available in your Spaces hardware settings:",nt,b,Zt='<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-sleep-time.png"/> <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-sleep-time-dark.png"/>',it,re,At="The following options are available:",dt,T,It='<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-sleep-time-options.png"/> <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-sleep-time-options-dark.png"/>',ot,pe,rt,ue,Et="You can <code>pause</code> a Space from the repo settings. A “paused” Space means that the Space is on hold and will not use resources until manually restarted, and only the owner of a paused Space can restart it. Paused time is not billed.",pt,ce,ut,ge,ct;return U=new h({props:{title:"Using GPU Spaces",local:"using-gpu-spaces",headingTag:"h1"}}),w=new Kt({props:{$$slots:{default:[ea]},$$scope:{ctx:he}}}),k=new h({props:{title:"Hardware Specs",local:"hardware-specs",headingTag:"h2"}}),j=new h({props:{title:"Configure hardware programmatically",local:"configure-hardware-programmatically",headingTag:"h2"}}),_=new h({props:{title:"Framework specific requirements",local:"frameworks",headingTag:"h2"}}),J=new h({props:{title:"PyTorch",local:"pytorch",headingTag:"h3"}}),L=new fe({props:{code:"LS1leHRyYS1pbmRleC11cmwlMjBodHRwcyUzQSUyRiUyRmRvd25sb2FkLnB5dG9yY2gub3JnJTJGd2hsJTJGY3UxMTMlMEF0b3JjaA==",highlighted:`--extra-index-url https:<span class="hljs-regexp">//</span>download.pytorch.org<span class="hljs-regexp">/whl/</span>cu113
torch`,wrap:!1}}),Z=new fe({props:{code:"aW1wb3J0JTIwdG9yY2glMEFwcmludChmJTIySXMlMjBDVURBJTIwYXZhaWxhYmxlJTNBJTIwJTdCdG9yY2guY3VkYS5pc19hdmFpbGFibGUoKSU3RCUyMiklMEElMjMlMjBUcnVlJTBBcHJpbnQoZiUyMkNVREElMjBkZXZpY2UlM0ElMjAlN0J0b3JjaC5jdWRhLmdldF9kZXZpY2VfbmFtZSh0b3JjaC5jdWRhLmN1cnJlbnRfZGV2aWNlKCkpJTdEJTIyKSUwQSUyMyUyMFRlc2xhJTIwVDQ=",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-built_in">print</span>(<span class="hljs-string">f&quot;Is CUDA available: <span class="hljs-subst">{torch.cuda.is_available()}</span>&quot;</span>)
<span class="hljs-comment"># True</span>
<span class="hljs-built_in">print</span>(<span class="hljs-string">f&quot;CUDA device: <span class="hljs-subst">{torch.cuda.get_device_name(torch.cuda.current_device())}</span>&quot;</span>)
<span class="hljs-comment"># Tesla T4</span>`,wrap:!1}}),I=new fe({props:{code:"bW9kZWwlMjAlM0QlMjBsb2FkX3B5dG9yY2hfbW9kZWwoKSUwQW1vZGVsJTIwJTNEJTIwbW9kZWwudG8oJTIyY3VkYSUyMik=",highlighted:`model = load_pytorch_model()
model = model.to(<span class="hljs-string">&quot;cuda&quot;</span>)`,wrap:!1}}),E=new h({props:{title:"JAX",local:"jax",headingTag:"h3"}}),R=new fe({props:{code:"LWYlMjBodHRwcyUzQSUyRiUyRnN0b3JhZ2UuZ29vZ2xlYXBpcy5jb20lMkZqYXgtcmVsZWFzZXMlMkZqYXhfY3VkYV9yZWxlYXNlcy5odG1sJTBBamF4JTVCY3VkYTExX3BpcCU1RCUwQWpheGxpYg==",highlighted:`-f https:<span class="hljs-regexp">//</span>storage.googleapis.com<span class="hljs-regexp">/jax-releases/</span>jax_cuda_releases.html
jax[cuda11_pip]
jaxlib`,wrap:!1}}),V=new fe({props:{code:"aW1wb3J0JTIwamF4JTBBJTBBcHJpbnQoZiUyMkpBWCUyMGRldmljZXMlM0ElMjAlN0JqYXguZGV2aWNlcygpJTdEJTIyKSUwQSUyMyUyMEpBWCUyMGRldmljZXMlM0ElMjAlNUJTdHJlYW1FeGVjdXRvckdwdURldmljZShpZCUzRDAlMkMlMjBwcm9jZXNzX2luZGV4JTNEMCklNUQlMEFwcmludChmJTIySkFYJTIwZGV2aWNlJTIwdHlwZSUzQSUyMCU3QmpheC5kZXZpY2VzKCklNUIwJTVELmRldmljZV9raW5kJTdEJTIyKSUwQSUyMyUyMEpBWCUyMGRldmljZSUyMHR5cGUlM0ElMjBUZXNsYSUyMFQ0",highlighted:`<span class="hljs-keyword">import</span> jax

<span class="hljs-built_in">print</span>(<span class="hljs-string">f&quot;JAX devices: <span class="hljs-subst">{jax.devices()}</span>&quot;</span>)
<span class="hljs-comment"># JAX devices: [StreamExecutorGpuDevice(id=0, process_index=0)]</span>
<span class="hljs-built_in">print</span>(<span class="hljs-string">f&quot;JAX device type: <span class="hljs-subst">{jax.devices()[<span class="hljs-number">0</span>].device_kind}</span>&quot;</span>)
<span class="hljs-comment"># JAX device type: Tesla T4</span>`,wrap:!1}}),X=new h({props:{title:"Tensorflow",local:"tensorflow",headingTag:"h3"}}),q=new fe({props:{code:"aW1wb3J0JTIwdGVuc29yZmxvdyUyMGFzJTIwdGYlMEFwcmludCh0Zi5jb25maWcubGlzdF9waHlzaWNhbF9kZXZpY2VzKCdHUFUnKSklMEElMjMlMjAlNUJQaHlzaWNhbERldmljZShuYW1lJTNEJyUyRnBoeXNpY2FsX2RldmljZSUzQUdQVSUzQTAnJTJDJTIwZGV2aWNlX3R5cGUlM0QnR1BVJyklNUQ=",highlighted:`<span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf
<span class="hljs-built_in">print</span>(tf.config.list_physical_devices(<span class="hljs-string">&#x27;GPU&#x27;</span>))
<span class="hljs-comment"># [PhysicalDevice(name=&#x27;/physical_device:GPU:0&#x27;, device_type=&#x27;GPU&#x27;)]</span>`,wrap:!1}}),z=new h({props:{title:"Billing",local:"billing",headingTag:"h2"}}),te=new h({props:{title:"Community GPU Grants",local:"community-gpu-grants",headingTag:"h3"}}),le=new h({props:{title:"Set a custom sleep time",local:"sleep-time",headingTag:"h2"}}),pe=new h({props:{title:"Pausing a Space",local:"pause",headingTag:"h2"}}),ce=new Ot({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/spaces-gpus.md"}}),{c(){g=i("meta"),y=l(),x=i("p"),ye=l(),r(U.$$.fragment),$e=l(),C=i("p"),C.innerHTML=mt,we=l(),$=i("div"),$.innerHTML=ft,ve=l(),r(w.$$.fragment),be=l(),M=i("p"),M.textContent=gt,Te=l(),v=i("div"),v.innerHTML=ht,xe=l(),r(k.$$.fragment),Ue=l(),G=i("p"),G.textContent=yt,Ce=l(),P=i("table"),P.innerHTML=$t,Me=l(),r(j.$$.fragment),ke=l(),S=i("p"),S.innerHTML=wt,Ge=l(),r(_.$$.fragment),Pe=l(),B=i("p"),B.textContent=vt,je=l(),r(J.$$.fragment),Se=l(),H=i("p"),H.innerHTML=bt,_e=l(),r(L.$$.fragment),Be=l(),Y=i("p"),Y.innerHTML=Tt,Je=l(),r(Z.$$.fragment),He=l(),A=i("p"),A.innerHTML=xt,Le=l(),r(I.$$.fragment),Ye=l(),r(E.$$.fragment),Ze=l(),N=i("p"),N.innerHTML=Ut,Ae=l(),r(R.$$.fragment),Ie=l(),W=i("p"),W.textContent=Ct,Ee=l(),r(V.$$.fragment),Ne=l(),r(X.$$.fragment),Re=l(),F=i("p"),F.innerHTML=Mt,We=l(),r(q.$$.fragment),Ve=l(),r(z.$$.fragment),Xe=l(),Q=i("p"),Q.textContent=kt,Fe=l(),D=i("p"),D.innerHTML=Gt,qe=l(),K=i("p"),K.textContent=Pt,ze=l(),O=i("p"),O.innerHTML=jt,Qe=l(),ee=i("p"),ee.innerHTML=St,De=l(),r(te.$$.fragment),Ke=l(),ae=i("p"),ae.textContent=_t,Oe=l(),se=i("p"),se.innerHTML=Bt,et=l(),r(le.$$.fragment),tt=l(),ne=i("p"),ne.innerHTML=Jt,at=l(),ie=i("p"),ie.textContent=Ht,st=l(),de=i("p"),de.innerHTML=Lt,lt=l(),oe=i("p"),oe.textContent=Yt,nt=l(),b=i("div"),b.innerHTML=Zt,it=l(),re=i("p"),re.textContent=At,dt=l(),T=i("div"),T.innerHTML=It,ot=l(),r(pe.$$.fragment),rt=l(),ue=i("p"),ue.innerHTML=Et,pt=l(),r(ce.$$.fragment),ut=l(),ge=i("p"),this.h()},l(e){const t=qt("svelte-u9bgzb",document.head);g=d(t,"META",{name:!0,content:!0}),t.forEach(a),y=n(e),x=d(e,"P",{}),Rt(x).forEach(a),ye=n(e),p(U.$$.fragment,e),$e=n(e),C=d(e,"P",{"data-svelte-h":!0}),o(C)!=="svelte-1r0b8ra"&&(C.innerHTML=mt),we=n(e),$=d(e,"DIV",{class:!0,"data-svelte-h":!0}),o($)!=="svelte-195xp0n"&&($.innerHTML=ft),ve=n(e),p(w.$$.fragment,e),be=n(e),M=d(e,"P",{"data-svelte-h":!0}),o(M)!=="svelte-xvc6ld"&&(M.textContent=gt),Te=n(e),v=d(e,"DIV",{class:!0,"data-svelte-h":!0}),o(v)!=="svelte-1a8modj"&&(v.innerHTML=ht),xe=n(e),p(k.$$.fragment,e),Ue=n(e),G=d(e,"P",{"data-svelte-h":!0}),o(G)!=="svelte-94d8et"&&(G.textContent=yt),Ce=n(e),P=d(e,"TABLE",{"data-svelte-h":!0}),o(P)!=="svelte-1yjf6zq"&&(P.innerHTML=$t),Me=n(e),p(j.$$.fragment,e),ke=n(e),S=d(e,"P",{"data-svelte-h":!0}),o(S)!=="svelte-hd4ipt"&&(S.innerHTML=wt),Ge=n(e),p(_.$$.fragment,e),Pe=n(e),B=d(e,"P",{"data-svelte-h":!0}),o(B)!=="svelte-wzbx3d"&&(B.textContent=vt),je=n(e),p(J.$$.fragment,e),Se=n(e),H=d(e,"P",{"data-svelte-h":!0}),o(H)!=="svelte-11wbw9n"&&(H.innerHTML=bt),_e=n(e),p(L.$$.fragment,e),Be=n(e),Y=d(e,"P",{"data-svelte-h":!0}),o(Y)!=="svelte-1xa4f2l"&&(Y.innerHTML=Tt),Je=n(e),p(Z.$$.fragment,e),He=n(e),A=d(e,"P",{"data-svelte-h":!0}),o(A)!=="svelte-hlysi2"&&(A.innerHTML=xt),Le=n(e),p(I.$$.fragment,e),Ye=n(e),p(E.$$.fragment,e),Ze=n(e),N=d(e,"P",{"data-svelte-h":!0}),o(N)!=="svelte-pcmtzq"&&(N.innerHTML=Ut),Ae=n(e),p(R.$$.fragment,e),Ie=n(e),W=d(e,"P",{"data-svelte-h":!0}),o(W)!=="svelte-yvyw72"&&(W.textContent=Ct),Ee=n(e),p(V.$$.fragment,e),Ne=n(e),p(X.$$.fragment,e),Re=n(e),F=d(e,"P",{"data-svelte-h":!0}),o(F)!=="svelte-ibx2cu"&&(F.innerHTML=Mt),We=n(e),p(q.$$.fragment,e),Ve=n(e),p(z.$$.fragment,e),Xe=n(e),Q=d(e,"P",{"data-svelte-h":!0}),o(Q)!=="svelte-1waltjy"&&(Q.textContent=kt),Fe=n(e),D=d(e,"P",{"data-svelte-h":!0}),o(D)!=="svelte-be6k8f"&&(D.innerHTML=Gt),qe=n(e),K=d(e,"P",{"data-svelte-h":!0}),o(K)!=="svelte-1gpnuli"&&(K.textContent=Pt),ze=n(e),O=d(e,"P",{"data-svelte-h":!0}),o(O)!=="svelte-e3ljnh"&&(O.innerHTML=jt),Qe=n(e),ee=d(e,"P",{"data-svelte-h":!0}),o(ee)!=="svelte-a71shw"&&(ee.innerHTML=St),De=n(e),p(te.$$.fragment,e),Ke=n(e),ae=d(e,"P",{"data-svelte-h":!0}),o(ae)!=="svelte-1y4zyk2"&&(ae.textContent=_t),Oe=n(e),se=d(e,"P",{"data-svelte-h":!0}),o(se)!=="svelte-pjbwz8"&&(se.innerHTML=Bt),et=n(e),p(le.$$.fragment,e),tt=n(e),ne=d(e,"P",{"data-svelte-h":!0}),o(ne)!=="svelte-crnlvc"&&(ne.innerHTML=Jt),at=n(e),ie=d(e,"P",{"data-svelte-h":!0}),o(ie)!=="svelte-1639dte"&&(ie.textContent=Ht),st=n(e),de=d(e,"P",{"data-svelte-h":!0}),o(de)!=="svelte-1obgmq7"&&(de.innerHTML=Lt),lt=n(e),oe=d(e,"P",{"data-svelte-h":!0}),o(oe)!=="svelte-1p9yxd0"&&(oe.textContent=Yt),nt=n(e),b=d(e,"DIV",{class:!0,"data-svelte-h":!0}),o(b)!=="svelte-180o3b"&&(b.innerHTML=Zt),it=n(e),re=d(e,"P",{"data-svelte-h":!0}),o(re)!=="svelte-k0x3k1"&&(re.textContent=At),dt=n(e),T=d(e,"DIV",{class:!0,"data-svelte-h":!0}),o(T)!=="svelte-19ohzoj"&&(T.innerHTML=It),ot=n(e),p(pe.$$.fragment,e),rt=n(e),ue=d(e,"P",{"data-svelte-h":!0}),o(ue)!=="svelte-vhdjt1"&&(ue.innerHTML=Et),pt=n(e),p(ce.$$.fragment,e),ut=n(e),ge=d(e,"P",{}),Rt(ge).forEach(a),this.h()},h(){me(g,"name","hf:doc:metadata"),me(g,"content",aa),me($,"class","flex justify-center"),me(v,"class","flex justify-center"),me(b,"class","flex justify-center"),me(T,"class","flex justify-center")},m(e,t){zt(document.head,g),s(e,y,t),s(e,x,t),s(e,ye,t),u(U,e,t),s(e,$e,t),s(e,C,t),s(e,we,t),s(e,$,t),s(e,ve,t),u(w,e,t),s(e,be,t),s(e,M,t),s(e,Te,t),s(e,v,t),s(e,xe,t),u(k,e,t),s(e,Ue,t),s(e,G,t),s(e,Ce,t),s(e,P,t),s(e,Me,t),u(j,e,t),s(e,ke,t),s(e,S,t),s(e,Ge,t),u(_,e,t),s(e,Pe,t),s(e,B,t),s(e,je,t),u(J,e,t),s(e,Se,t),s(e,H,t),s(e,_e,t),u(L,e,t),s(e,Be,t),s(e,Y,t),s(e,Je,t),u(Z,e,t),s(e,He,t),s(e,A,t),s(e,Le,t),u(I,e,t),s(e,Ye,t),u(E,e,t),s(e,Ze,t),s(e,N,t),s(e,Ae,t),u(R,e,t),s(e,Ie,t),s(e,W,t),s(e,Ee,t),u(V,e,t),s(e,Ne,t),u(X,e,t),s(e,Re,t),s(e,F,t),s(e,We,t),u(q,e,t),s(e,Ve,t),u(z,e,t),s(e,Xe,t),s(e,Q,t),s(e,Fe,t),s(e,D,t),s(e,qe,t),s(e,K,t),s(e,ze,t),s(e,O,t),s(e,Qe,t),s(e,ee,t),s(e,De,t),u(te,e,t),s(e,Ke,t),s(e,ae,t),s(e,Oe,t),s(e,se,t),s(e,et,t),u(le,e,t),s(e,tt,t),s(e,ne,t),s(e,at,t),s(e,ie,t),s(e,st,t),s(e,de,t),s(e,lt,t),s(e,oe,t),s(e,nt,t),s(e,b,t),s(e,it,t),s(e,re,t),s(e,dt,t),s(e,T,t),s(e,ot,t),u(pe,e,t),s(e,rt,t),s(e,ue,t),s(e,pt,t),u(ce,e,t),s(e,ut,t),s(e,ge,t),ct=!0},p(e,[t]){const Nt={};t&2&&(Nt.$$scope={dirty:t,ctx:e}),w.$set(Nt)},i(e){ct||(c(U.$$.fragment,e),c(w.$$.fragment,e),c(k.$$.fragment,e),c(j.$$.fragment,e),c(_.$$.fragment,e),c(J.$$.fragment,e),c(L.$$.fragment,e),c(Z.$$.fragment,e),c(I.$$.fragment,e),c(E.$$.fragment,e),c(R.$$.fragment,e),c(V.$$.fragment,e),c(X.$$.fragment,e),c(q.$$.fragment,e),c(z.$$.fragment,e),c(te.$$.fragment,e),c(le.$$.fragment,e),c(pe.$$.fragment,e),c(ce.$$.fragment,e),ct=!0)},o(e){m(U.$$.fragment,e),m(w.$$.fragment,e),m(k.$$.fragment,e),m(j.$$.fragment,e),m(_.$$.fragment,e),m(J.$$.fragment,e),m(L.$$.fragment,e),m(Z.$$.fragment,e),m(I.$$.fragment,e),m(E.$$.fragment,e),m(R.$$.fragment,e),m(V.$$.fragment,e),m(X.$$.fragment,e),m(q.$$.fragment,e),m(z.$$.fragment,e),m(te.$$.fragment,e),m(le.$$.fragment,e),m(pe.$$.fragment,e),m(ce.$$.fragment,e),ct=!1},d(e){e&&(a(y),a(x),a(ye),a($e),a(C),a(we),a($),a(ve),a(be),a(M),a(Te),a(v),a(xe),a(Ue),a(G),a(Ce),a(P),a(Me),a(ke),a(S),a(Ge),a(Pe),a(B),a(je),a(Se),a(H),a(_e),a(Be),a(Y),a(Je),a(He),a(A),a(Le),a(Ye),a(Ze),a(N),a(Ae),a(Ie),a(W),a(Ee),a(Ne),a(Re),a(F),a(We),a(Ve),a(Xe),a(Q),a(Fe),a(D),a(qe),a(K),a(ze),a(O),a(Qe),a(ee),a(De),a(Ke),a(ae),a(Oe),a(se),a(et),a(tt),a(ne),a(at),a(ie),a(st),a(de),a(lt),a(oe),a(nt),a(b),a(it),a(re),a(dt),a(T),a(ot),a(rt),a(ue),a(pt),a(ut),a(ge)),a(g),f(U,e),f(w,e),f(k,e),f(j,e),f(_,e),f(J,e),f(L,e),f(Z,e),f(I,e),f(E,e),f(R,e),f(V,e),f(X,e),f(q,e),f(z,e),f(te,e),f(le,e),f(pe,e),f(ce,e)}}}const aa='{"title":"Using GPU Spaces","local":"using-gpu-spaces","sections":[{"title":"Hardware Specs","local":"hardware-specs","sections":[],"depth":2},{"title":"Configure hardware programmatically","local":"configure-hardware-programmatically","sections":[],"depth":2},{"title":"Framework specific requirements","local":"frameworks","sections":[{"title":"PyTorch","local":"pytorch","sections":[],"depth":3},{"title":"JAX","local":"jax","sections":[],"depth":3},{"title":"Tensorflow","local":"tensorflow","sections":[],"depth":3}],"depth":2},{"title":"Billing","local":"billing","sections":[{"title":"Community GPU Grants","local":"community-gpu-grants","sections":[],"depth":3}],"depth":2},{"title":"Set a custom sleep time","local":"sleep-time","sections":[],"depth":2},{"title":"Pausing a Space","local":"pause","sections":[],"depth":2}],"depth":1}';function sa(he){return Vt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ra extends Xt{constructor(g){super(),Ft(this,g,sa,ta,Wt,{})}}export{ra as component};
