import{s as Et,o as Wt}from"../chunks/scheduler.d6170356.js";import{S as Vt,i as Xt,g as i,s as l,r as p,A as Nt,h as o,f as a,c as n,j as Rt,u as d,x as r,k as ce,y as Ft,a as s,v as u,d as c,t as m,w as f,m as qt,n as zt}from"../chunks/index.fcd4cc08.js";import{T as Qt}from"../chunks/Tip.b09c67cf.js";import{C as me}from"../chunks/CodeBlock.7b16bdef.js";import{H as g}from"../chunks/Heading.8660bd0e.js";function Dt(he){let h;return{c(){h=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){h=zt(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,h,x)},d(y){y&&a(h)}}}function Kt(he){let h,y,x,ge,U,ye,M,ut="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,w,ct='<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"/>',$e,$,ve,C,mt="As soon as your Space is running on GPU you can see which hardware it’s running on directly from this badge:",be,v,ft='<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"/>',Te,k,xe,j,ht="In the following table, you can see the Specs for the different upgrade options.",Ue,P,gt="<thead><tr><th><strong>Hardware</strong></th> <th><strong>GPU Memory</strong></th> <th><strong>CPU</strong></th> <th><strong>Memory</strong></th> <th><strong>Disk</strong></th> <th><strong>Hourly Price</strong></th></tr></thead> <tbody><tr><td>CPU Basic</td> <td>-</td> <td>2 vCPU</td> <td>16 GB</td> <td>50 GB</td> <td>Free!</td></tr> <tr><td>CPU Upgrade</td> <td>-</td> <td>8 vCPU</td> <td>32 GB</td> <td>50 GB</td> <td>$0.03</td></tr> <tr><td>Nvidia T4 - small</td> <td>16GB</td> <td>4 vCPU</td> <td>15 GB</td> <td>50 GB</td> <td>$0.60</td></tr> <tr><td>Nvidia T4 - medium</td> <td>16GB</td> <td>8 vCPU</td> <td>30 GB</td> <td>100 GB</td> <td>$0.90</td></tr> <tr><td>Nvidia A10G - small</td> <td>24GB</td> <td>4 vCPU</td> <td>15 GB</td> <td>110 GB</td> <td>$1.05</td></tr> <tr><td>Nvidia A10G - large</td> <td>24GB</td> <td>12 vCPU</td> <td>46 GB</td> <td>200 GB</td> <td>$3.15</td></tr> <tr><td>Nvidia A100 - large</td> <td>40GB</td> <td>12 vCPU</td> <td>142 GB</td> <td>1000 GB</td> <td>$4.13</td></tr></tbody>",Me,S,Ce,_,yt=`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.`,ke,G,je,J,wt="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.",Pe,H,Se,B,$t="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,Ge,Y,vt="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,I,bt="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:",Be,A,Le,R,Ye,E,Tt="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:",Ze,W,Ie,V,xt="After that, you can verify the installation by printing the output from the following code and checking it in your Space logs.",Ae,X,Re,N,Ee,F,Ut="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,Mt=`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.`,Ne,D,Ct="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.",Fe,K,kt="If a running Space starts to fail, it will be automatically suspended and the billing will stop.",qe,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.',ze,ee,Pt='Additional information about billing can be found in the <a href="./billing">dedicated Hub-wide section</a>.',Qe,te,De,ae,St="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”:",Ke,se,_t='<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/ask-for-community-grant.png" alt="Community GPU Grant"/>',Oe,le,et,ne,Gt="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.",tt,ie,Jt="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.",at,oe,Ht="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.",st,re,Bt="The following interface will then be available in your Spaces hardware settings:",lt,b,Lt='<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"/>',nt,pe,Yt="The following options are available:",it,T,Zt='<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,de,rt,ue,It="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,fe,dt;return U=new g({props:{title:"Using GPU Spaces",local:"using-gpu-spaces",headingTag:"h1"}}),$=new Qt({props:{$$slots:{default:[Dt]},$$scope:{ctx:he}}}),k=new g({props:{title:"Hardware Specs",local:"hardware-specs",headingTag:"h2"}}),S=new g({props:{title:"Configure hardware programmatically",local:"configure-hardware-programmatically",headingTag:"h2"}}),G=new g({props:{title:"Framework specific requirements",local:"frameworks",headingTag:"h2"}}),H=new g({props:{title:"PyTorch",local:"pytorch",headingTag:"h3"}}),L=new me({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 me({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}}),A=new me({props:{code:"bW9kZWwlMjAlM0QlMjBsb2FkX3B5dG9yY2hfbW9kZWwoKSUwQW1vZGVsJTIwJTNEJTIwbW9kZWwudG8oJTIyY3VkYSUyMik=",highlighted:`model = load_pytorch_model()
model = model.to(<span class="hljs-string">&quot;cuda&quot;</span>)`,wrap:!1}}),R=new g({props:{title:"JAX",local:"jax",headingTag:"h3"}}),W=new me({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}}),X=new me({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}}),N=new g({props:{title:"Tensorflow",local:"tensorflow",headingTag:"h3"}}),q=new me({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 g({props:{title:"Billing",local:"billing",headingTag:"h2"}}),te=new g({props:{title:"Community GPU Grants",local:"community-gpu-grants",headingTag:"h3"}}),le=new g({props:{title:"Set a custom sleep time",local:"sleep-time",headingTag:"h2"}}),de=new g({props:{title:"Pausing a Space",local:"pause",headingTag:"h2"}}),{c(){h=i("meta"),y=l(),x=i("p"),ge=l(),p(U.$$.fragment),ye=l(),M=i("p"),M.innerHTML=ut,we=l(),w=i("div"),w.innerHTML=ct,$e=l(),p($.$$.fragment),ve=l(),C=i("p"),C.textContent=mt,be=l(),v=i("div"),v.innerHTML=ft,Te=l(),p(k.$$.fragment),xe=l(),j=i("p"),j.textContent=ht,Ue=l(),P=i("table"),P.innerHTML=gt,Me=l(),p(S.$$.fragment),Ce=l(),_=i("p"),_.innerHTML=yt,ke=l(),p(G.$$.fragment),je=l(),J=i("p"),J.textContent=wt,Pe=l(),p(H.$$.fragment),Se=l(),B=i("p"),B.innerHTML=$t,_e=l(),p(L.$$.fragment),Ge=l(),Y=i("p"),Y.innerHTML=vt,Je=l(),p(Z.$$.fragment),He=l(),I=i("p"),I.innerHTML=bt,Be=l(),p(A.$$.fragment),Le=l(),p(R.$$.fragment),Ye=l(),E=i("p"),E.innerHTML=Tt,Ze=l(),p(W.$$.fragment),Ie=l(),V=i("p"),V.textContent=xt,Ae=l(),p(X.$$.fragment),Re=l(),p(N.$$.fragment),Ee=l(),F=i("p"),F.innerHTML=Ut,We=l(),p(q.$$.fragment),Ve=l(),p(z.$$.fragment),Xe=l(),Q=i("p"),Q.textContent=Mt,Ne=l(),D=i("p"),D.innerHTML=Ct,Fe=l(),K=i("p"),K.textContent=kt,qe=l(),O=i("p"),O.innerHTML=jt,ze=l(),ee=i("p"),ee.innerHTML=Pt,Qe=l(),p(te.$$.fragment),De=l(),ae=i("p"),ae.textContent=St,Ke=l(),se=i("p"),se.innerHTML=_t,Oe=l(),p(le.$$.fragment),et=l(),ne=i("p"),ne.innerHTML=Gt,tt=l(),ie=i("p"),ie.textContent=Jt,at=l(),oe=i("p"),oe.innerHTML=Ht,st=l(),re=i("p"),re.textContent=Bt,lt=l(),b=i("div"),b.innerHTML=Lt,nt=l(),pe=i("p"),pe.textContent=Yt,it=l(),T=i("div"),T.innerHTML=Zt,ot=l(),p(de.$$.fragment),rt=l(),ue=i("p"),ue.innerHTML=It,pt=l(),fe=i("p"),this.h()},l(e){const t=Nt("svelte-u9bgzb",document.head);h=o(t,"META",{name:!0,content:!0}),t.forEach(a),y=n(e),x=o(e,"P",{}),Rt(x).forEach(a),ge=n(e),d(U.$$.fragment,e),ye=n(e),M=o(e,"P",{"data-svelte-h":!0}),r(M)!=="svelte-1r0b8ra"&&(M.innerHTML=ut),we=n(e),w=o(e,"DIV",{class:!0,"data-svelte-h":!0}),r(w)!=="svelte-195xp0n"&&(w.innerHTML=ct),$e=n(e),d($.$$.fragment,e),ve=n(e),C=o(e,"P",{"data-svelte-h":!0}),r(C)!=="svelte-xvc6ld"&&(C.textContent=mt),be=n(e),v=o(e,"DIV",{class:!0,"data-svelte-h":!0}),r(v)!=="svelte-1a8modj"&&(v.innerHTML=ft),Te=n(e),d(k.$$.fragment,e),xe=n(e),j=o(e,"P",{"data-svelte-h":!0}),r(j)!=="svelte-94d8et"&&(j.textContent=ht),Ue=n(e),P=o(e,"TABLE",{"data-svelte-h":!0}),r(P)!=="svelte-1okq5zg"&&(P.innerHTML=gt),Me=n(e),d(S.$$.fragment,e),Ce=n(e),_=o(e,"P",{"data-svelte-h":!0}),r(_)!=="svelte-hd4ipt"&&(_.innerHTML=yt),ke=n(e),d(G.$$.fragment,e),je=n(e),J=o(e,"P",{"data-svelte-h":!0}),r(J)!=="svelte-wzbx3d"&&(J.textContent=wt),Pe=n(e),d(H.$$.fragment,e),Se=n(e),B=o(e,"P",{"data-svelte-h":!0}),r(B)!=="svelte-11wbw9n"&&(B.innerHTML=$t),_e=n(e),d(L.$$.fragment,e),Ge=n(e),Y=o(e,"P",{"data-svelte-h":!0}),r(Y)!=="svelte-1xa4f2l"&&(Y.innerHTML=vt),Je=n(e),d(Z.$$.fragment,e),He=n(e),I=o(e,"P",{"data-svelte-h":!0}),r(I)!=="svelte-hlysi2"&&(I.innerHTML=bt),Be=n(e),d(A.$$.fragment,e),Le=n(e),d(R.$$.fragment,e),Ye=n(e),E=o(e,"P",{"data-svelte-h":!0}),r(E)!=="svelte-pcmtzq"&&(E.innerHTML=Tt),Ze=n(e),d(W.$$.fragment,e),Ie=n(e),V=o(e,"P",{"data-svelte-h":!0}),r(V)!=="svelte-yvyw72"&&(V.textContent=xt),Ae=n(e),d(X.$$.fragment,e),Re=n(e),d(N.$$.fragment,e),Ee=n(e),F=o(e,"P",{"data-svelte-h":!0}),r(F)!=="svelte-ibx2cu"&&(F.innerHTML=Ut),We=n(e),d(q.$$.fragment,e),Ve=n(e),d(z.$$.fragment,e),Xe=n(e),Q=o(e,"P",{"data-svelte-h":!0}),r(Q)!=="svelte-1waltjy"&&(Q.textContent=Mt),Ne=n(e),D=o(e,"P",{"data-svelte-h":!0}),r(D)!=="svelte-be6k8f"&&(D.innerHTML=Ct),Fe=n(e),K=o(e,"P",{"data-svelte-h":!0}),r(K)!=="svelte-1gpnuli"&&(K.textContent=kt),qe=n(e),O=o(e,"P",{"data-svelte-h":!0}),r(O)!=="svelte-e3ljnh"&&(O.innerHTML=jt),ze=n(e),ee=o(e,"P",{"data-svelte-h":!0}),r(ee)!=="svelte-a71shw"&&(ee.innerHTML=Pt),Qe=n(e),d(te.$$.fragment,e),De=n(e),ae=o(e,"P",{"data-svelte-h":!0}),r(ae)!=="svelte-1y4zyk2"&&(ae.textContent=St),Ke=n(e),se=o(e,"P",{"data-svelte-h":!0}),r(se)!=="svelte-pjbwz8"&&(se.innerHTML=_t),Oe=n(e),d(le.$$.fragment,e),et=n(e),ne=o(e,"P",{"data-svelte-h":!0}),r(ne)!=="svelte-crnlvc"&&(ne.innerHTML=Gt),tt=n(e),ie=o(e,"P",{"data-svelte-h":!0}),r(ie)!=="svelte-1639dte"&&(ie.textContent=Jt),at=n(e),oe=o(e,"P",{"data-svelte-h":!0}),r(oe)!=="svelte-1obgmq7"&&(oe.innerHTML=Ht),st=n(e),re=o(e,"P",{"data-svelte-h":!0}),r(re)!=="svelte-1p9yxd0"&&(re.textContent=Bt),lt=n(e),b=o(e,"DIV",{class:!0,"data-svelte-h":!0}),r(b)!=="svelte-180o3b"&&(b.innerHTML=Lt),nt=n(e),pe=o(e,"P",{"data-svelte-h":!0}),r(pe)!=="svelte-k0x3k1"&&(pe.textContent=Yt),it=n(e),T=o(e,"DIV",{class:!0,"data-svelte-h":!0}),r(T)!=="svelte-19ohzoj"&&(T.innerHTML=Zt),ot=n(e),d(de.$$.fragment,e),rt=n(e),ue=o(e,"P",{"data-svelte-h":!0}),r(ue)!=="svelte-vhdjt1"&&(ue.innerHTML=It),pt=n(e),fe=o(e,"P",{}),Rt(fe).forEach(a),this.h()},h(){ce(h,"name","hf:doc:metadata"),ce(h,"content",Ot),ce(w,"class","flex justify-center"),ce(v,"class","flex justify-center"),ce(b,"class","flex justify-center"),ce(T,"class","flex justify-center")},m(e,t){Ft(document.head,h),s(e,y,t),s(e,x,t),s(e,ge,t),u(U,e,t),s(e,ye,t),s(e,M,t),s(e,we,t),s(e,w,t),s(e,$e,t),u($,e,t),s(e,ve,t),s(e,C,t),s(e,be,t),s(e,v,t),s(e,Te,t),u(k,e,t),s(e,xe,t),s(e,j,t),s(e,Ue,t),s(e,P,t),s(e,Me,t),u(S,e,t),s(e,Ce,t),s(e,_,t),s(e,ke,t),u(G,e,t),s(e,je,t),s(e,J,t),s(e,Pe,t),u(H,e,t),s(e,Se,t),s(e,B,t),s(e,_e,t),u(L,e,t),s(e,Ge,t),s(e,Y,t),s(e,Je,t),u(Z,e,t),s(e,He,t),s(e,I,t),s(e,Be,t),u(A,e,t),s(e,Le,t),u(R,e,t),s(e,Ye,t),s(e,E,t),s(e,Ze,t),u(W,e,t),s(e,Ie,t),s(e,V,t),s(e,Ae,t),u(X,e,t),s(e,Re,t),u(N,e,t),s(e,Ee,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,Ne,t),s(e,D,t),s(e,Fe,t),s(e,K,t),s(e,qe,t),s(e,O,t),s(e,ze,t),s(e,ee,t),s(e,Qe,t),u(te,e,t),s(e,De,t),s(e,ae,t),s(e,Ke,t),s(e,se,t),s(e,Oe,t),u(le,e,t),s(e,et,t),s(e,ne,t),s(e,tt,t),s(e,ie,t),s(e,at,t),s(e,oe,t),s(e,st,t),s(e,re,t),s(e,lt,t),s(e,b,t),s(e,nt,t),s(e,pe,t),s(e,it,t),s(e,T,t),s(e,ot,t),u(de,e,t),s(e,rt,t),s(e,ue,t),s(e,pt,t),s(e,fe,t),dt=!0},p(e,[t]){const At={};t&2&&(At.$$scope={dirty:t,ctx:e}),$.$set(At)},i(e){dt||(c(U.$$.fragment,e),c($.$$.fragment,e),c(k.$$.fragment,e),c(S.$$.fragment,e),c(G.$$.fragment,e),c(H.$$.fragment,e),c(L.$$.fragment,e),c(Z.$$.fragment,e),c(A.$$.fragment,e),c(R.$$.fragment,e),c(W.$$.fragment,e),c(X.$$.fragment,e),c(N.$$.fragment,e),c(q.$$.fragment,e),c(z.$$.fragment,e),c(te.$$.fragment,e),c(le.$$.fragment,e),c(de.$$.fragment,e),dt=!0)},o(e){m(U.$$.fragment,e),m($.$$.fragment,e),m(k.$$.fragment,e),m(S.$$.fragment,e),m(G.$$.fragment,e),m(H.$$.fragment,e),m(L.$$.fragment,e),m(Z.$$.fragment,e),m(A.$$.fragment,e),m(R.$$.fragment,e),m(W.$$.fragment,e),m(X.$$.fragment,e),m(N.$$.fragment,e),m(q.$$.fragment,e),m(z.$$.fragment,e),m(te.$$.fragment,e),m(le.$$.fragment,e),m(de.$$.fragment,e),dt=!1},d(e){e&&(a(y),a(x),a(ge),a(ye),a(M),a(we),a(w),a($e),a(ve),a(C),a(be),a(v),a(Te),a(xe),a(j),a(Ue),a(P),a(Me),a(Ce),a(_),a(ke),a(je),a(J),a(Pe),a(Se),a(B),a(_e),a(Ge),a(Y),a(Je),a(He),a(I),a(Be),a(Le),a(Ye),a(E),a(Ze),a(Ie),a(V),a(Ae),a(Re),a(Ee),a(F),a(We),a(Ve),a(Xe),a(Q),a(Ne),a(D),a(Fe),a(K),a(qe),a(O),a(ze),a(ee),a(Qe),a(De),a(ae),a(Ke),a(se),a(Oe),a(et),a(ne),a(tt),a(ie),a(at),a(oe),a(st),a(re),a(lt),a(b),a(nt),a(pe),a(it),a(T),a(ot),a(rt),a(ue),a(pt),a(fe)),a(h),f(U,e),f($,e),f(k,e),f(S,e),f(G,e),f(H,e),f(L,e),f(Z,e),f(A,e),f(R,e),f(W,e),f(X,e),f(N,e),f(q,e),f(z,e),f(te,e),f(le,e),f(de,e)}}}const Ot='{"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 ea(he){return Wt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ia extends Vt{constructor(h){super(),Xt(this,h,ea,Kt,Et,{})}}export{ia as component};
