import{s as Rt,o as Et}from"../chunks/scheduler.d6170356.js";import{S as Wt,i as Vt,g as i,s as l,r,A as Xt,h as d,f as a,c as n,j as Nt,u as p,x as o,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 h}from"../chunks/Heading.8660bd0e.js";function Dt(ge){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=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,g,x)},d(y){y&&a(g)}}}function Kt(ge){let g,y,x,he,U,ye,C,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,M,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,G,gt="In the following table, you can see the Specs for the different upgrade options.",Ue,P,ht="<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>",Ce,j,Me,S,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,_,Ge,B,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,J,je,H,$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:",Se,L,_e,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:",Be,Z,Je,A,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:",He,I,Le,N,Ye,R,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,E,Ae,W,xt="After that, you can verify the installation by printing the output from the following code and checking it in your Space logs.",Ie,V,Ne,X,Re,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.",Ee,q,We,z,Ve,Q,Ct=`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.`,Xe,D,Mt="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,Gt='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,jt="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,St='<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,_t="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,Bt="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,de,Jt="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,oe,Ht="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,re,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"/>',dt,pe,ot,ue,At="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.",rt,fe,pt;return U=new h({props:{title:"Using GPU Spaces",local:"using-gpu-spaces",headingTag:"h1"}}),$=new Qt({props:{$$slots:{default:[Dt]},$$scope:{ctx:ge}}}),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 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}}),I=new me({props:{code:"bW9kZWwlMjAlM0QlMjBsb2FkX3B5dG9yY2hfbW9kZWwoKSUwQW1vZGVsJTIwJTNEJTIwbW9kZWwudG8oJTIyY3VkYSUyMik=",highlighted:`model = load_pytorch_model()
model = model.to(<span class="hljs-string">&quot;cuda&quot;</span>)`,wrap:!1}}),N=new h({props:{title:"JAX",local:"jax",headingTag:"h3"}}),E=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}}),V=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}}),X=new h({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 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"}}),{c(){g=i("meta"),y=l(),x=i("p"),he=l(),r(U.$$.fragment),ye=l(),C=i("p"),C.innerHTML=ut,we=l(),w=i("div"),w.innerHTML=ct,$e=l(),r($.$$.fragment),ve=l(),M=i("p"),M.textContent=mt,be=l(),v=i("div"),v.innerHTML=ft,Te=l(),r(k.$$.fragment),xe=l(),G=i("p"),G.textContent=gt,Ue=l(),P=i("table"),P.innerHTML=ht,Ce=l(),r(j.$$.fragment),Me=l(),S=i("p"),S.innerHTML=yt,ke=l(),r(_.$$.fragment),Ge=l(),B=i("p"),B.textContent=wt,Pe=l(),r(J.$$.fragment),je=l(),H=i("p"),H.innerHTML=$t,Se=l(),r(L.$$.fragment),_e=l(),Y=i("p"),Y.innerHTML=vt,Be=l(),r(Z.$$.fragment),Je=l(),A=i("p"),A.innerHTML=bt,He=l(),r(I.$$.fragment),Le=l(),r(N.$$.fragment),Ye=l(),R=i("p"),R.innerHTML=Tt,Ze=l(),r(E.$$.fragment),Ae=l(),W=i("p"),W.textContent=xt,Ie=l(),r(V.$$.fragment),Ne=l(),r(X.$$.fragment),Re=l(),F=i("p"),F.innerHTML=Ut,Ee=l(),r(q.$$.fragment),We=l(),r(z.$$.fragment),Ve=l(),Q=i("p"),Q.textContent=Ct,Xe=l(),D=i("p"),D.innerHTML=Mt,Fe=l(),K=i("p"),K.textContent=kt,qe=l(),O=i("p"),O.innerHTML=Gt,ze=l(),ee=i("p"),ee.innerHTML=Pt,Qe=l(),r(te.$$.fragment),De=l(),ae=i("p"),ae.textContent=jt,Ke=l(),se=i("p"),se.innerHTML=St,Oe=l(),r(le.$$.fragment),et=l(),ne=i("p"),ne.innerHTML=_t,tt=l(),ie=i("p"),ie.textContent=Bt,at=l(),de=i("p"),de.innerHTML=Jt,st=l(),oe=i("p"),oe.textContent=Ht,lt=l(),b=i("div"),b.innerHTML=Lt,nt=l(),re=i("p"),re.textContent=Yt,it=l(),T=i("div"),T.innerHTML=Zt,dt=l(),r(pe.$$.fragment),ot=l(),ue=i("p"),ue.innerHTML=At,rt=l(),fe=i("p"),this.h()},l(e){const t=Xt("svelte-u9bgzb",document.head);g=d(t,"META",{name:!0,content:!0}),t.forEach(a),y=n(e),x=d(e,"P",{}),Nt(x).forEach(a),he=n(e),p(U.$$.fragment,e),ye=n(e),C=d(e,"P",{"data-svelte-h":!0}),o(C)!=="svelte-1r0b8ra"&&(C.innerHTML=ut),we=n(e),w=d(e,"DIV",{class:!0,"data-svelte-h":!0}),o(w)!=="svelte-195xp0n"&&(w.innerHTML=ct),$e=n(e),p($.$$.fragment,e),ve=n(e),M=d(e,"P",{"data-svelte-h":!0}),o(M)!=="svelte-xvc6ld"&&(M.textContent=mt),be=n(e),v=d(e,"DIV",{class:!0,"data-svelte-h":!0}),o(v)!=="svelte-1a8modj"&&(v.innerHTML=ft),Te=n(e),p(k.$$.fragment,e),xe=n(e),G=d(e,"P",{"data-svelte-h":!0}),o(G)!=="svelte-94d8et"&&(G.textContent=gt),Ue=n(e),P=d(e,"TABLE",{"data-svelte-h":!0}),o(P)!=="svelte-1yjf6zq"&&(P.innerHTML=ht),Ce=n(e),p(j.$$.fragment,e),Me=n(e),S=d(e,"P",{"data-svelte-h":!0}),o(S)!=="svelte-hd4ipt"&&(S.innerHTML=yt),ke=n(e),p(_.$$.fragment,e),Ge=n(e),B=d(e,"P",{"data-svelte-h":!0}),o(B)!=="svelte-wzbx3d"&&(B.textContent=wt),Pe=n(e),p(J.$$.fragment,e),je=n(e),H=d(e,"P",{"data-svelte-h":!0}),o(H)!=="svelte-11wbw9n"&&(H.innerHTML=$t),Se=n(e),p(L.$$.fragment,e),_e=n(e),Y=d(e,"P",{"data-svelte-h":!0}),o(Y)!=="svelte-1xa4f2l"&&(Y.innerHTML=vt),Be=n(e),p(Z.$$.fragment,e),Je=n(e),A=d(e,"P",{"data-svelte-h":!0}),o(A)!=="svelte-hlysi2"&&(A.innerHTML=bt),He=n(e),p(I.$$.fragment,e),Le=n(e),p(N.$$.fragment,e),Ye=n(e),R=d(e,"P",{"data-svelte-h":!0}),o(R)!=="svelte-pcmtzq"&&(R.innerHTML=Tt),Ze=n(e),p(E.$$.fragment,e),Ae=n(e),W=d(e,"P",{"data-svelte-h":!0}),o(W)!=="svelte-yvyw72"&&(W.textContent=xt),Ie=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=Ut),Ee=n(e),p(q.$$.fragment,e),We=n(e),p(z.$$.fragment,e),Ve=n(e),Q=d(e,"P",{"data-svelte-h":!0}),o(Q)!=="svelte-1waltjy"&&(Q.textContent=Ct),Xe=n(e),D=d(e,"P",{"data-svelte-h":!0}),o(D)!=="svelte-be6k8f"&&(D.innerHTML=Mt),Fe=n(e),K=d(e,"P",{"data-svelte-h":!0}),o(K)!=="svelte-1gpnuli"&&(K.textContent=kt),qe=n(e),O=d(e,"P",{"data-svelte-h":!0}),o(O)!=="svelte-e3ljnh"&&(O.innerHTML=Gt),ze=n(e),ee=d(e,"P",{"data-svelte-h":!0}),o(ee)!=="svelte-a71shw"&&(ee.innerHTML=Pt),Qe=n(e),p(te.$$.fragment,e),De=n(e),ae=d(e,"P",{"data-svelte-h":!0}),o(ae)!=="svelte-1y4zyk2"&&(ae.textContent=jt),Ke=n(e),se=d(e,"P",{"data-svelte-h":!0}),o(se)!=="svelte-pjbwz8"&&(se.innerHTML=St),Oe=n(e),p(le.$$.fragment,e),et=n(e),ne=d(e,"P",{"data-svelte-h":!0}),o(ne)!=="svelte-crnlvc"&&(ne.innerHTML=_t),tt=n(e),ie=d(e,"P",{"data-svelte-h":!0}),o(ie)!=="svelte-1639dte"&&(ie.textContent=Bt),at=n(e),de=d(e,"P",{"data-svelte-h":!0}),o(de)!=="svelte-1obgmq7"&&(de.innerHTML=Jt),st=n(e),oe=d(e,"P",{"data-svelte-h":!0}),o(oe)!=="svelte-1p9yxd0"&&(oe.textContent=Ht),lt=n(e),b=d(e,"DIV",{class:!0,"data-svelte-h":!0}),o(b)!=="svelte-180o3b"&&(b.innerHTML=Lt),nt=n(e),re=d(e,"P",{"data-svelte-h":!0}),o(re)!=="svelte-k0x3k1"&&(re.textContent=Yt),it=n(e),T=d(e,"DIV",{class:!0,"data-svelte-h":!0}),o(T)!=="svelte-19ohzoj"&&(T.innerHTML=Zt),dt=n(e),p(pe.$$.fragment,e),ot=n(e),ue=d(e,"P",{"data-svelte-h":!0}),o(ue)!=="svelte-vhdjt1"&&(ue.innerHTML=At),rt=n(e),fe=d(e,"P",{}),Nt(fe).forEach(a),this.h()},h(){ce(g,"name","hf:doc:metadata"),ce(g,"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,g),s(e,y,t),s(e,x,t),s(e,he,t),u(U,e,t),s(e,ye,t),s(e,C,t),s(e,we,t),s(e,w,t),s(e,$e,t),u($,e,t),s(e,ve,t),s(e,M,t),s(e,be,t),s(e,v,t),s(e,Te,t),u(k,e,t),s(e,xe,t),s(e,G,t),s(e,Ue,t),s(e,P,t),s(e,Ce,t),u(j,e,t),s(e,Me,t),s(e,S,t),s(e,ke,t),u(_,e,t),s(e,Ge,t),s(e,B,t),s(e,Pe,t),u(J,e,t),s(e,je,t),s(e,H,t),s(e,Se,t),u(L,e,t),s(e,_e,t),s(e,Y,t),s(e,Be,t),u(Z,e,t),s(e,Je,t),s(e,A,t),s(e,He,t),u(I,e,t),s(e,Le,t),u(N,e,t),s(e,Ye,t),s(e,R,t),s(e,Ze,t),u(E,e,t),s(e,Ae,t),s(e,W,t),s(e,Ie,t),u(V,e,t),s(e,Ne,t),u(X,e,t),s(e,Re,t),s(e,F,t),s(e,Ee,t),u(q,e,t),s(e,We,t),u(z,e,t),s(e,Ve,t),s(e,Q,t),s(e,Xe,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,de,t),s(e,st,t),s(e,oe,t),s(e,lt,t),s(e,b,t),s(e,nt,t),s(e,re,t),s(e,it,t),s(e,T,t),s(e,dt,t),u(pe,e,t),s(e,ot,t),s(e,ue,t),s(e,rt,t),s(e,fe,t),pt=!0},p(e,[t]){const It={};t&2&&(It.$$scope={dirty:t,ctx:e}),$.$set(It)},i(e){pt||(c(U.$$.fragment,e),c($.$$.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(N.$$.fragment,e),c(E.$$.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),pt=!0)},o(e){m(U.$$.fragment,e),m($.$$.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(N.$$.fragment,e),m(E.$$.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),pt=!1},d(e){e&&(a(y),a(x),a(he),a(ye),a(C),a(we),a(w),a($e),a(ve),a(M),a(be),a(v),a(Te),a(xe),a(G),a(Ue),a(P),a(Ce),a(Me),a(S),a(ke),a(Ge),a(B),a(Pe),a(je),a(H),a(Se),a(_e),a(Y),a(Be),a(Je),a(A),a(He),a(Le),a(Ye),a(R),a(Ze),a(Ae),a(W),a(Ie),a(Ne),a(Re),a(F),a(Ee),a(We),a(Ve),a(Q),a(Xe),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(de),a(st),a(oe),a(lt),a(b),a(nt),a(re),a(it),a(T),a(dt),a(ot),a(ue),a(rt),a(fe)),a(g),f(U,e),f($,e),f(k,e),f(j,e),f(_,e),f(J,e),f(L,e),f(Z,e),f(I,e),f(N,e),f(E,e),f(V,e),f(X,e),f(q,e),f(z,e),f(te,e),f(le,e),f(pe,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(ge){return Et(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ia extends Wt{constructor(g){super(),Vt(this,g,ea,Kt,Rt,{})}}export{ia as component};
