CINXE.COM

Using GPU Spaces

<!doctype html> <html class=""> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" /> <meta name="description" content="We’re on a journey to advance and democratize artificial intelligence through open source and open science." /> <meta property="fb:app_id" content="1321688464574422" /> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:site" content="@huggingface" /> <meta name="twitter:image" content="https://huggingface.co/front/thumbnails/docs/hub.png" /> <meta property="og:title" content="Using GPU Spaces" /> <meta property="og:type" content="website" /> <meta property="og:url" content="https://huggingface.co/docs/hub/spaces-gpus" /> <meta property="og:image" content="https://huggingface.co/front/thumbnails/docs/hub.png" /> <link rel="stylesheet" href="/front/build/kube-a5b3b1c/style.css" /> <link rel="preconnect" href="https://fonts.gstatic.com" /> <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&display=swap" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600;700&display=swap" rel="stylesheet" /> <link rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.12.0/katex.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'" /> <noscript> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.12.0/katex.min.css" /> </noscript> <link rel="canonical" href="https://huggingface.co/docs/hub/spaces-gpus"> <link rel="alternate" hreflang="en" href="https://huggingface.co/docs/hub/en/spaces-gpus"> <link rel="alternate" hreflang="x-default" href="https://huggingface.co/docs/hub/spaces-gpus"> <title>Using GPU Spaces</title> <script defer data-domain="huggingface.co" event-loggedIn="false" src="/js/script.pageview-props.js" ></script> <script> window.plausible = window.plausible || function () { (window.plausible.q = window.plausible.q || []).push(arguments); }; </script> <script> window.hubConfig = {"features":{"signupDisabled":false},"sshGitUrl":"git@hf.co","moonHttpUrl":"https:\/\/huggingface.co","captchaApiKey":"bd5f2066-93dc-4bdd-a64b-a24646ca3859","captchaDisabledOnSignup":true,"datasetViewerPublicUrl":"https:\/\/datasets-server.huggingface.co","stripePublicKey":"pk_live_x2tdjFXBCvXo2FFmMybezpeM00J6gPCAAc","environment":"production","userAgent":"HuggingFace (production)","spacesIframeDomain":"hf.space","spacesApiUrl":"https:\/\/api.hf.space","docSearchKey":"ece5e02e57300e17d152c08056145326e90c4bff3dd07d7d1ae40cf1c8d39cb6","logoDev":{"apiUrl":"https:\/\/img.logo.dev\/","apiKey":"pk_UHS2HZOeRnaSOdDp7jbd5w"}}; </script> <script type="text/javascript" src="https://de5282c3ca0c.edge.sdk.awswaf.com/de5282c3ca0c/526cf06acb0d/challenge.js" defer></script> </head> <body class="flex flex-col min-h-dvh bg-white dark:bg-gray-950 text-black DocBuilderPage"> <div class="flex min-h-dvh flex-col"> <div class="SVELTE_HYDRATER contents" data-target="MainHeader" data-props="{&quot;classNames&quot;:&quot;&quot;,&quot;isWide&quot;:true,&quot;isZh&quot;:false}"><header class="border-b border-gray-100 "><div class="w-full px-4 flex h-16 items-center"><div class="flex flex-1 items-center"><a class="mr-5 flex flex-none items-center lg:mr-6" href="/"><img alt="Hugging Face's logo" class="w-7 md:mr-2" src="/front/assets/huggingface_logo-noborder.svg"> <span class="hidden whitespace-nowrap text-lg font-bold md:block">Hugging Face</span></a> <div class="relative flex-1 lg:max-w-sm mr-2 sm:mr-4 md:mr-3 xl:mr-6"><input autocomplete="off" class="w-full dark:bg-gray-950 pl-8 form-input-alt h-9 pr-3 focus:shadow-xl " name="" placeholder="Search models, datasets, users..." spellcheck="false" type="text" value=""> <svg class="absolute left-2.5 text-gray-400 top-1/2 transform -translate-y-1/2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M30 28.59L22.45 21A11 11 0 1 0 21 22.45L28.59 30zM5 14a9 9 0 1 1 9 9a9 9 0 0 1-9-9z" fill="currentColor"></path></svg> </div> <div class="flex flex-none items-center justify-center p-0.5 place-self-stretch lg:hidden"><button class="relative z-40 flex h-6 w-8 items-center justify-center" type="button"><svg width="1em" height="1em" viewBox="0 0 10 10" class="text-xl" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" preserveAspectRatio="xMidYMid meet" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.65039 2.9999C1.65039 2.8066 1.80709 2.6499 2.00039 2.6499H8.00039C8.19369 2.6499 8.35039 2.8066 8.35039 2.9999C8.35039 3.1932 8.19369 3.3499 8.00039 3.3499H2.00039C1.80709 3.3499 1.65039 3.1932 1.65039 2.9999ZM1.65039 4.9999C1.65039 4.8066 1.80709 4.6499 2.00039 4.6499H8.00039C8.19369 4.6499 8.35039 4.8066 8.35039 4.9999C8.35039 5.1932 8.19369 5.3499 8.00039 5.3499H2.00039C1.80709 5.3499 1.65039 5.1932 1.65039 4.9999ZM2.00039 6.6499C1.80709 6.6499 1.65039 6.8066 1.65039 6.9999C1.65039 7.1932 1.80709 7.3499 2.00039 7.3499H8.00039C8.19369 7.3499 8.35039 7.1932 8.35039 6.9999C8.35039 6.8066 8.19369 6.6499 8.00039 6.6499H2.00039Z"></path></svg> </button> </div></div> <nav aria-label="Main" class="ml-auto hidden lg:block"><ul class="flex items-center space-x-1.5 2xl:space-x-2"><li class="hover:text-indigo-700"><a class="group flex items-center px-2 py-0.5 dark:hover:text-gray-400" href="/models"><svg class="mr-1.5 text-gray-400 group-hover:text-indigo-500" style="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path class="uim-quaternary" d="M20.23 7.24L12 12L3.77 7.24a1.98 1.98 0 0 1 .7-.71L11 2.76c.62-.35 1.38-.35 2 0l6.53 3.77c.29.173.531.418.7.71z" opacity=".25" fill="currentColor"></path><path class="uim-tertiary" d="M12 12v9.5a2.09 2.09 0 0 1-.91-.21L4.5 17.48a2.003 2.003 0 0 1-1-1.73v-7.5a2.06 2.06 0 0 1 .27-1.01L12 12z" opacity=".5" fill="currentColor"></path><path class="uim-primary" d="M20.5 8.25v7.5a2.003 2.003 0 0 1-1 1.73l-6.62 3.82c-.275.13-.576.198-.88.2V12l8.23-4.76c.175.308.268.656.27 1.01z" fill="currentColor"></path></svg> Models</a> </li><li class="hover:text-red-700"><a class="group flex items-center px-2 py-0.5 dark:hover:text-gray-400" href="/datasets"><svg class="mr-1.5 text-gray-400 group-hover:text-red-500" style="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 25 25"><ellipse cx="12.5" cy="5" fill="currentColor" fill-opacity="0.25" rx="7.5" ry="2"></ellipse><path d="M12.5 15C16.6421 15 20 14.1046 20 13V20C20 21.1046 16.6421 22 12.5 22C8.35786 22 5 21.1046 5 20V13C5 14.1046 8.35786 15 12.5 15Z" fill="currentColor" opacity="0.5"></path><path d="M12.5 7C16.6421 7 20 6.10457 20 5V11.5C20 12.6046 16.6421 13.5 12.5 13.5C8.35786 13.5 5 12.6046 5 11.5V5C5 6.10457 8.35786 7 12.5 7Z" fill="currentColor" opacity="0.5"></path><path d="M5.23628 12C5.08204 12.1598 5 12.8273 5 13C5 14.1046 8.35786 15 12.5 15C16.6421 15 20 14.1046 20 13C20 12.8273 19.918 12.1598 19.7637 12C18.9311 12.8626 15.9947 13.5 12.5 13.5C9.0053 13.5 6.06886 12.8626 5.23628 12Z" fill="currentColor"></path></svg> Datasets</a> </li><li class="hover:text-blue-700"><a class="group flex items-center px-2 py-0.5 dark:hover:text-gray-400" href="/spaces"><svg class="mr-1.5 text-gray-400 group-hover:text-blue-500" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" viewBox="0 0 25 25"><path opacity=".5" d="M6.016 14.674v4.31h4.31v-4.31h-4.31ZM14.674 14.674v4.31h4.31v-4.31h-4.31ZM6.016 6.016v4.31h4.31v-4.31h-4.31Z" fill="currentColor"></path><path opacity=".75" fill-rule="evenodd" clip-rule="evenodd" d="M3 4.914C3 3.857 3.857 3 4.914 3h6.514c.884 0 1.628.6 1.848 1.414a5.171 5.171 0 0 1 7.31 7.31c.815.22 1.414.964 1.414 1.848v6.514A1.914 1.914 0 0 1 20.086 22H4.914A1.914 1.914 0 0 1 3 20.086V4.914Zm3.016 1.102v4.31h4.31v-4.31h-4.31Zm0 12.968v-4.31h4.31v4.31h-4.31Zm8.658 0v-4.31h4.31v4.31h-4.31Zm0-10.813a2.155 2.155 0 1 1 4.31 0 2.155 2.155 0 0 1-4.31 0Z" fill="currentColor"></path><path opacity=".25" d="M16.829 6.016a2.155 2.155 0 1 0 0 4.31 2.155 2.155 0 0 0 0-4.31Z" fill="currentColor"></path></svg> Spaces</a> </li><li class="hover:text-yellow-700 max-xl:hidden"><a class="group flex items-center px-2 py-0.5 dark:hover:text-gray-400" href="/posts"><svg class="mr-1.5 text-gray-400 group-hover:text-yellow-500 !text-yellow-500" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" viewBox="0 0 12 12" preserveAspectRatio="xMidYMid meet"><path fill="currentColor" fill-rule="evenodd" d="M3.73 2.4A4.25 4.25 0 1 1 6 10.26H2.17l-.13-.02a.43.43 0 0 1-.3-.43l.01-.06a.43.43 0 0 1 .12-.22l.84-.84A4.26 4.26 0 0 1 3.73 2.4Z" clip-rule="evenodd"></path></svg> Posts</a> </li><li class="hover:text-yellow-700"><a class="group flex items-center px-2 py-0.5 dark:hover:text-gray-400" href="/docs"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="mr-1.5 text-gray-400 group-hover:text-yellow-500" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path opacity="0.5" d="M20.9022 5.10334L10.8012 10.8791L7.76318 9.11193C8.07741 8.56791 8.5256 8.11332 9.06512 7.7914L15.9336 3.73907C17.0868 3.08811 18.5002 3.26422 19.6534 3.91519L19.3859 3.73911C19.9253 4.06087 20.5879 4.56025 20.9022 5.10334Z" fill="currentColor"></path><path d="M10.7999 10.8792V28.5483C10.2136 28.5475 9.63494 28.4139 9.10745 28.1578C8.5429 27.8312 8.074 27.3621 7.74761 26.7975C7.42122 26.2327 7.24878 25.5923 7.24756 24.9402V10.9908C7.25062 10.3319 7.42358 9.68487 7.74973 9.1123L10.7999 10.8792Z" fill="currentColor" fill-opacity="0.75"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M21.3368 10.8499V6.918C21.3331 6.25959 21.16 5.61234 20.8346 5.03949L10.7971 10.8727L10.8046 10.874L21.3368 10.8499Z" fill="currentColor"></path><path opacity="0.5" d="M21.7937 10.8488L10.7825 10.8741V28.5486L21.7937 28.5234C23.3344 28.5234 24.5835 27.2743 24.5835 25.7335V13.6387C24.5835 12.0979 23.4365 11.1233 21.7937 10.8488Z" fill="currentColor"></path></svg> Docs</a> </li><li class="hover:text-green-700"><a class="group flex items-center px-2 py-0.5 dark:hover:text-gray-400" href="/enterprise"><svg class="mr-1.5 text-gray-400 group-hover:text-green-500" xmlns="http://www.w3.org/2000/svg" fill="none" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 33 27"><path fill="currentColor" fill-rule="evenodd" d="M13.5.7a8.7 8.7 0 0 0-7.7 5.7L1 20.6c-1 3.1.9 5.7 4.1 5.7h15c3.3 0 6.8-2.6 7.8-5.7l4.6-14.2c1-3.1-.8-5.7-4-5.7h-15Zm1.1 5.7L9.8 20.3h9.8l1-3.1h-5.8l.8-2.5h4.8l1.1-3h-4.8l.8-2.3H23l1-3h-9.5Z" clip-rule="evenodd"></path></svg> Enterprise</a> </li> <li><a class="group flex items-center px-2 py-0.5 hover:text-gray-500 dark:hover:text-gray-400" href="/pricing">Pricing </a></li> <li><div class="relative group"> <button class="px-2 py-0.5 hover:text-gray-500 dark:hover:text-gray-600 flex items-center " type="button"> <svg class=" text-gray-500 w-5 group-hover:text-gray-400 dark:text-gray-300 dark:group-hover:text-gray-400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" viewBox="0 0 32 18" preserveAspectRatio="xMidYMid meet"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.4504 3.30221C14.4504 2.836 14.8284 2.45807 15.2946 2.45807H28.4933C28.9595 2.45807 29.3374 2.836 29.3374 3.30221C29.3374 3.76842 28.9595 4.14635 28.4933 4.14635H15.2946C14.8284 4.14635 14.4504 3.76842 14.4504 3.30221Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.4504 9.00002C14.4504 8.53382 14.8284 8.15588 15.2946 8.15588H28.4933C28.9595 8.15588 29.3374 8.53382 29.3374 9.00002C29.3374 9.46623 28.9595 9.84417 28.4933 9.84417H15.2946C14.8284 9.84417 14.4504 9.46623 14.4504 9.00002Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.4504 14.6978C14.4504 14.2316 14.8284 13.8537 15.2946 13.8537H28.4933C28.9595 13.8537 29.3374 14.2316 29.3374 14.6978C29.3374 15.164 28.9595 15.542 28.4933 15.542H15.2946C14.8284 15.542 14.4504 15.164 14.4504 14.6978Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M1.94549 6.87377C2.27514 6.54411 2.80962 6.54411 3.13928 6.87377L6.23458 9.96907L9.32988 6.87377C9.65954 6.54411 10.194 6.54411 10.5237 6.87377C10.8533 7.20343 10.8533 7.73791 10.5237 8.06756L6.23458 12.3567L1.94549 8.06756C1.61583 7.73791 1.61583 7.20343 1.94549 6.87377Z" fill="currentColor"></path></svg> </button> </div></li> <li><hr class="h-5 w-0.5 border-none bg-gray-100 dark:bg-gray-800"></li> <li><a class="block cursor-pointer whitespace-nowrap px-2 py-0.5 hover:text-gray-500 dark:hover:text-gray-400" href="/login">Log In </a></li> <li><a class="whitespace-nowrap rounded-full border border-transparent bg-gray-900 px-3 py-1 leading-none text-white hover:border-black hover:bg-white hover:text-black" href="/join">Sign Up </a></li></ul></nav></div></header></div> <div class="SVELTE_HYDRATER contents" data-target="SSOBanner" data-props="{}"></div> <main class="flex flex-1 flex-col"><div class="relative lg:flex" id="hf-doc-container"><div class="sticky top-0 z-20 self-start"><div class="SVELTE_HYDRATER contents" data-target="SideMenu" data-props="{&quot;chapters&quot;:[{&quot;title&quot;:&quot;🤗 Hugging Face Hub&quot;,&quot;id&quot;:&quot;index&quot;,&quot;url&quot;:&quot;/docs/hub/index&quot;},{&quot;title&quot;:&quot;Repositories&quot;,&quot;isExpanded&quot;:true,&quot;id&quot;:&quot;repositories&quot;,&quot;url&quot;:&quot;/docs/hub/repositories&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Getting Started with Repositories&quot;,&quot;id&quot;:&quot;repositories-getting-started&quot;,&quot;url&quot;:&quot;/docs/hub/repositories-getting-started&quot;},{&quot;title&quot;:&quot;Repository Settings&quot;,&quot;id&quot;:&quot;repositories-settings&quot;,&quot;url&quot;:&quot;/docs/hub/repositories-settings&quot;},{&quot;title&quot;:&quot;Pull Requests &amp; Discussions&quot;,&quot;id&quot;:&quot;repositories-pull-requests-discussions&quot;,&quot;url&quot;:&quot;/docs/hub/repositories-pull-requests-discussions&quot;},{&quot;title&quot;:&quot;Notifications&quot;,&quot;id&quot;:&quot;notifications&quot;,&quot;url&quot;:&quot;/docs/hub/notifications&quot;},{&quot;title&quot;:&quot;Collections&quot;,&quot;id&quot;:&quot;collections&quot;,&quot;url&quot;:&quot;/docs/hub/collections&quot;},{&quot;title&quot;:&quot;Webhooks&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;webhooks&quot;,&quot;url&quot;:&quot;/docs/hub/webhooks&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;How-to: Automatic fine-tuning with Auto-Train&quot;,&quot;id&quot;:&quot;webhooks-guide-auto-retrain&quot;,&quot;url&quot;:&quot;/docs/hub/webhooks-guide-auto-retrain&quot;},{&quot;title&quot;:&quot;How-to: Build a Discussion bot based on BLOOM&quot;,&quot;id&quot;:&quot;webhooks-guide-discussion-bot&quot;,&quot;url&quot;:&quot;/docs/hub/webhooks-guide-discussion-bot&quot;},{&quot;title&quot;:&quot;How-to: Create automatic metadata quality reports&quot;,&quot;id&quot;:&quot;webhooks-guide-metadata-review&quot;,&quot;url&quot;:&quot;/docs/hub/webhooks-guide-metadata-review&quot;}]},{&quot;title&quot;:&quot;Notebooks&quot;,&quot;id&quot;:&quot;notebooks&quot;,&quot;url&quot;:&quot;/docs/hub/notebooks&quot;},{&quot;title&quot;:&quot;Repository size recommendations&quot;,&quot;id&quot;:&quot;repositories-recommendations&quot;,&quot;url&quot;:&quot;/docs/hub/repositories-recommendations&quot;},{&quot;title&quot;:&quot;Next Steps&quot;,&quot;id&quot;:&quot;repositories-next-steps&quot;,&quot;url&quot;:&quot;/docs/hub/repositories-next-steps&quot;},{&quot;title&quot;:&quot;Licenses&quot;,&quot;id&quot;:&quot;repositories-licenses&quot;,&quot;url&quot;:&quot;/docs/hub/repositories-licenses&quot;}]},{&quot;title&quot;:&quot;Models&quot;,&quot;isExpanded&quot;:true,&quot;id&quot;:&quot;models&quot;,&quot;url&quot;:&quot;/docs/hub/models&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;The Model Hub&quot;,&quot;id&quot;:&quot;models-the-hub&quot;,&quot;url&quot;:&quot;/docs/hub/models-the-hub&quot;},{&quot;title&quot;:&quot;Model Cards&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;model-cards&quot;,&quot;url&quot;:&quot;/docs/hub/model-cards&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Annotated Model Card&quot;,&quot;id&quot;:&quot;model-card-annotated&quot;,&quot;url&quot;:&quot;/docs/hub/model-card-annotated&quot;},{&quot;title&quot;:&quot;Carbon Emissions&quot;,&quot;id&quot;:&quot;model-cards-co2&quot;,&quot;url&quot;:&quot;/docs/hub/model-cards-co2&quot;},{&quot;title&quot;:&quot;Model Card Guidebook&quot;,&quot;id&quot;:&quot;model-card-guidebook&quot;,&quot;url&quot;:&quot;/docs/hub/model-card-guidebook&quot;},{&quot;title&quot;:&quot;Landscape Analysis&quot;,&quot;id&quot;:&quot;model-card-landscape-analysis&quot;,&quot;url&quot;:&quot;/docs/hub/model-card-landscape-analysis&quot;},{&quot;title&quot;:&quot;Card Components&quot;,&quot;id&quot;:&quot;model-cards-components&quot;,&quot;url&quot;:&quot;/docs/hub/model-cards-components&quot;}]},{&quot;title&quot;:&quot;Gated Models&quot;,&quot;id&quot;:&quot;models-gated&quot;,&quot;url&quot;:&quot;/docs/hub/models-gated&quot;},{&quot;title&quot;:&quot;Uploading Models&quot;,&quot;id&quot;:&quot;models-uploading&quot;,&quot;url&quot;:&quot;/docs/hub/models-uploading&quot;},{&quot;title&quot;:&quot;Downloading Models&quot;,&quot;id&quot;:&quot;models-downloading&quot;,&quot;url&quot;:&quot;/docs/hub/models-downloading&quot;},{&quot;title&quot;:&quot;Integrated Libraries&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;models-libraries&quot;,&quot;url&quot;:&quot;/docs/hub/models-libraries&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Adapters&quot;,&quot;id&quot;:&quot;adapters&quot;,&quot;url&quot;:&quot;/docs/hub/adapters&quot;},{&quot;title&quot;:&quot;AllenNLP&quot;,&quot;id&quot;:&quot;allennlp&quot;,&quot;url&quot;:&quot;/docs/hub/allennlp&quot;},{&quot;title&quot;:&quot;BERTopic&quot;,&quot;id&quot;:&quot;bertopic&quot;,&quot;url&quot;:&quot;/docs/hub/bertopic&quot;},{&quot;title&quot;:&quot;Asteroid&quot;,&quot;id&quot;:&quot;asteroid&quot;,&quot;url&quot;:&quot;/docs/hub/asteroid&quot;},{&quot;title&quot;:&quot;Diffusers&quot;,&quot;id&quot;:&quot;diffusers&quot;,&quot;url&quot;:&quot;/docs/hub/diffusers&quot;},{&quot;title&quot;:&quot;ESPnet&quot;,&quot;id&quot;:&quot;espnet&quot;,&quot;url&quot;:&quot;/docs/hub/espnet&quot;},{&quot;title&quot;:&quot;fastai&quot;,&quot;id&quot;:&quot;fastai&quot;,&quot;url&quot;:&quot;/docs/hub/fastai&quot;},{&quot;title&quot;:&quot;Flair&quot;,&quot;id&quot;:&quot;flair&quot;,&quot;url&quot;:&quot;/docs/hub/flair&quot;},{&quot;title&quot;:&quot;Keras&quot;,&quot;id&quot;:&quot;keras&quot;,&quot;url&quot;:&quot;/docs/hub/keras&quot;},{&quot;title&quot;:&quot;TF-Keras (legacy)&quot;,&quot;id&quot;:&quot;tf-keras&quot;,&quot;url&quot;:&quot;/docs/hub/tf-keras&quot;},{&quot;title&quot;:&quot;ML-Agents&quot;,&quot;id&quot;:&quot;ml-agents&quot;,&quot;url&quot;:&quot;/docs/hub/ml-agents&quot;},{&quot;title&quot;:&quot;mlx-image&quot;,&quot;id&quot;:&quot;mlx-image&quot;,&quot;url&quot;:&quot;/docs/hub/mlx-image&quot;},{&quot;title&quot;:&quot;MLX&quot;,&quot;id&quot;:&quot;mlx&quot;,&quot;url&quot;:&quot;/docs/hub/mlx&quot;},{&quot;title&quot;:&quot;OpenCLIP&quot;,&quot;id&quot;:&quot;open_clip&quot;,&quot;url&quot;:&quot;/docs/hub/open_clip&quot;},{&quot;title&quot;:&quot;PaddleNLP&quot;,&quot;id&quot;:&quot;paddlenlp&quot;,&quot;url&quot;:&quot;/docs/hub/paddlenlp&quot;},{&quot;title&quot;:&quot;peft&quot;,&quot;id&quot;:&quot;peft&quot;,&quot;url&quot;:&quot;/docs/hub/peft&quot;},{&quot;title&quot;:&quot;RL-Baselines3-Zoo&quot;,&quot;id&quot;:&quot;rl-baselines3-zoo&quot;,&quot;url&quot;:&quot;/docs/hub/rl-baselines3-zoo&quot;},{&quot;title&quot;:&quot;Sample Factory&quot;,&quot;id&quot;:&quot;sample-factory&quot;,&quot;url&quot;:&quot;/docs/hub/sample-factory&quot;},{&quot;title&quot;:&quot;Sentence Transformers&quot;,&quot;id&quot;:&quot;sentence-transformers&quot;,&quot;url&quot;:&quot;/docs/hub/sentence-transformers&quot;},{&quot;title&quot;:&quot;SetFit&quot;,&quot;id&quot;:&quot;setfit&quot;,&quot;url&quot;:&quot;/docs/hub/setfit&quot;},{&quot;title&quot;:&quot;spaCy&quot;,&quot;id&quot;:&quot;spacy&quot;,&quot;url&quot;:&quot;/docs/hub/spacy&quot;},{&quot;title&quot;:&quot;SpanMarker&quot;,&quot;id&quot;:&quot;span_marker&quot;,&quot;url&quot;:&quot;/docs/hub/span_marker&quot;},{&quot;title&quot;:&quot;SpeechBrain&quot;,&quot;id&quot;:&quot;speechbrain&quot;,&quot;url&quot;:&quot;/docs/hub/speechbrain&quot;},{&quot;title&quot;:&quot;Stable-Baselines3&quot;,&quot;id&quot;:&quot;stable-baselines3&quot;,&quot;url&quot;:&quot;/docs/hub/stable-baselines3&quot;},{&quot;title&quot;:&quot;Stanza&quot;,&quot;id&quot;:&quot;stanza&quot;,&quot;url&quot;:&quot;/docs/hub/stanza&quot;},{&quot;title&quot;:&quot;TensorBoard&quot;,&quot;id&quot;:&quot;tensorboard&quot;,&quot;url&quot;:&quot;/docs/hub/tensorboard&quot;},{&quot;title&quot;:&quot;timm&quot;,&quot;id&quot;:&quot;timm&quot;,&quot;url&quot;:&quot;/docs/hub/timm&quot;},{&quot;title&quot;:&quot;Transformers&quot;,&quot;id&quot;:&quot;transformers&quot;,&quot;url&quot;:&quot;/docs/hub/transformers&quot;},{&quot;title&quot;:&quot;Transformers.js&quot;,&quot;id&quot;:&quot;transformers-js&quot;,&quot;url&quot;:&quot;/docs/hub/transformers-js&quot;},{&quot;title&quot;:&quot;Unity Sentis&quot;,&quot;id&quot;:&quot;unity-sentis&quot;,&quot;url&quot;:&quot;/docs/hub/unity-sentis&quot;}]},{&quot;title&quot;:&quot;Model Widgets&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;models-widgets&quot;,&quot;url&quot;:&quot;/docs/hub/models-widgets&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Widget Examples&quot;,&quot;id&quot;:&quot;models-widgets-examples&quot;,&quot;url&quot;:&quot;/docs/hub/models-widgets-examples&quot;}]},{&quot;title&quot;:&quot;Inference API docs&quot;,&quot;id&quot;:&quot;models-inference&quot;,&quot;url&quot;:&quot;/docs/hub/models-inference&quot;},{&quot;title&quot;:&quot;Models Download Stats&quot;,&quot;id&quot;:&quot;models-download-stats&quot;,&quot;url&quot;:&quot;/docs/hub/models-download-stats&quot;},{&quot;title&quot;:&quot;Frequently Asked Questions&quot;,&quot;id&quot;:&quot;models-faq&quot;,&quot;url&quot;:&quot;/docs/hub/models-faq&quot;},{&quot;title&quot;:&quot;Advanced Topics&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;models-advanced&quot;,&quot;url&quot;:&quot;/docs/hub/models-advanced&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Integrate a library with the Hub&quot;,&quot;id&quot;:&quot;models-adding-libraries&quot;,&quot;url&quot;:&quot;/docs/hub/models-adding-libraries&quot;},{&quot;title&quot;:&quot;Tasks&quot;,&quot;id&quot;:&quot;models-tasks&quot;,&quot;url&quot;:&quot;/docs/hub/models-tasks&quot;},{&quot;title&quot;:&quot;GGUF&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;gguf&quot;,&quot;url&quot;:&quot;/docs/hub/gguf&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;GGUF usage with llama.cpp&quot;,&quot;id&quot;:&quot;gguf-llamacpp&quot;,&quot;url&quot;:&quot;/docs/hub/gguf-llamacpp&quot;},{&quot;title&quot;:&quot;GGUF usage with GPT4All&quot;,&quot;id&quot;:&quot;gguf-gpt4all&quot;,&quot;url&quot;:&quot;/docs/hub/gguf-gpt4all&quot;},{&quot;title&quot;:&quot;GGUF usage with Ollama&quot;,&quot;id&quot;:&quot;ollama&quot;,&quot;url&quot;:&quot;/docs/hub/ollama&quot;}]}]}]},{&quot;title&quot;:&quot;Datasets&quot;,&quot;isExpanded&quot;:true,&quot;id&quot;:&quot;datasets&quot;,&quot;url&quot;:&quot;/docs/hub/datasets&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Datasets Overview&quot;,&quot;id&quot;:&quot;datasets-overview&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-overview&quot;},{&quot;title&quot;:&quot;Dataset Cards&quot;,&quot;id&quot;:&quot;datasets-cards&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-cards&quot;},{&quot;title&quot;:&quot;Gated Datasets&quot;,&quot;id&quot;:&quot;datasets-gated&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-gated&quot;},{&quot;title&quot;:&quot;Uploading Datasets&quot;,&quot;id&quot;:&quot;datasets-adding&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-adding&quot;},{&quot;title&quot;:&quot;Downloading Datasets&quot;,&quot;id&quot;:&quot;datasets-downloading&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-downloading&quot;},{&quot;title&quot;:&quot;Integrated Libraries&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;datasets-libraries&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-libraries&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Argilla&quot;,&quot;id&quot;:&quot;datasets-argilla&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-argilla&quot;},{&quot;title&quot;:&quot;Dask&quot;,&quot;id&quot;:&quot;datasets-dask&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-dask&quot;},{&quot;title&quot;:&quot;Datasets&quot;,&quot;id&quot;:&quot;datasets-usage&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-usage&quot;},{&quot;title&quot;:&quot;Distilabel&quot;,&quot;id&quot;:&quot;datasets-distilabel&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-distilabel&quot;},{&quot;title&quot;:&quot;DuckDB&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;datasets-duckdb&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-duckdb&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Authentication for private and gated datasets&quot;,&quot;id&quot;:&quot;datasets-duckdb-auth&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-duckdb-auth&quot;},{&quot;title&quot;:&quot;Query datasets&quot;,&quot;id&quot;:&quot;datasets-duckdb-select&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-duckdb-select&quot;},{&quot;title&quot;:&quot;Perform SQL operations&quot;,&quot;id&quot;:&quot;datasets-duckdb-sql&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-duckdb-sql&quot;},{&quot;title&quot;:&quot;Combine datasets and export&quot;,&quot;id&quot;:&quot;datasets-duckdb-combine-and-export&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-duckdb-combine-and-export&quot;},{&quot;title&quot;:&quot;Perform vector similarity search&quot;,&quot;id&quot;:&quot;datasets-duckdb-vector-similarity-search&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-duckdb-vector-similarity-search&quot;}]},{&quot;title&quot;:&quot;FiftyOne&quot;,&quot;id&quot;:&quot;datasets-fiftyone&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-fiftyone&quot;},{&quot;title&quot;:&quot;Pandas&quot;,&quot;id&quot;:&quot;datasets-pandas&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-pandas&quot;},{&quot;title&quot;:&quot;Polars&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;datasets-polars&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-polars&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Authentication for private and gated datasets&quot;,&quot;id&quot;:&quot;datasets-polars-auth&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-polars-auth&quot;},{&quot;title&quot;:&quot;Supported file formats&quot;,&quot;id&quot;:&quot;datasets-polars-file-formats&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-polars-file-formats&quot;},{&quot;title&quot;:&quot;Performing data transformations&quot;,&quot;id&quot;:&quot;datasets-polars-operations&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-polars-operations&quot;},{&quot;title&quot;:&quot;Performance optimizations&quot;,&quot;id&quot;:&quot;datasets-polars-optimizations&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-polars-optimizations&quot;}]},{&quot;title&quot;:&quot;Spark&quot;,&quot;id&quot;:&quot;datasets-spark&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-spark&quot;},{&quot;title&quot;:&quot;WebDataset&quot;,&quot;id&quot;:&quot;datasets-webdataset&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-webdataset&quot;}]},{&quot;title&quot;:&quot;Dataset Viewer&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;datasets-viewer&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-viewer&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Configure the Dataset Viewer&quot;,&quot;id&quot;:&quot;datasets-viewer-configure&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-viewer-configure&quot;},{&quot;title&quot;:&quot;Embed the Dataset Viewer in a webpage&quot;,&quot;id&quot;:&quot;datasets-viewer-embed&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-viewer-embed&quot;},{&quot;title&quot;:&quot;SQL Console&quot;,&quot;id&quot;:&quot;datasets-viewer-sql-console&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-viewer-sql-console&quot;}]},{&quot;title&quot;:&quot;Datasets Download Stats&quot;,&quot;id&quot;:&quot;datasets-download-stats&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-download-stats&quot;},{&quot;title&quot;:&quot;Data files Configuration&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;datasets-data-files-configuration&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-data-files-configuration&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;File names and splits&quot;,&quot;id&quot;:&quot;datasets-file-names-and-splits&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-file-names-and-splits&quot;},{&quot;title&quot;:&quot;Manual Configuration&quot;,&quot;id&quot;:&quot;datasets-manual-configuration&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-manual-configuration&quot;},{&quot;title&quot;:&quot;Audio Dataset&quot;,&quot;id&quot;:&quot;datasets-audio&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-audio&quot;},{&quot;title&quot;:&quot;Image Dataset&quot;,&quot;id&quot;:&quot;datasets-image&quot;,&quot;url&quot;:&quot;/docs/hub/datasets-image&quot;}]}]},{&quot;title&quot;:&quot;Spaces&quot;,&quot;isExpanded&quot;:true,&quot;id&quot;:&quot;spaces&quot;,&quot;url&quot;:&quot;/docs/hub/spaces&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Spaces Overview&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;spaces-overview&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-overview&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Handling Spaces Dependencies&quot;,&quot;id&quot;:&quot;spaces-dependencies&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-dependencies&quot;},{&quot;title&quot;:&quot;Spaces Settings&quot;,&quot;id&quot;:&quot;spaces-settings&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-settings&quot;},{&quot;title&quot;:&quot;Using Spaces for Organization Cards&quot;,&quot;id&quot;:&quot;spaces-organization-cards&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-organization-cards&quot;}]},{&quot;title&quot;:&quot;Spaces GPU Upgrades&quot;,&quot;isExpanded&quot;:true,&quot;id&quot;:&quot;spaces-gpus&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-gpus&quot;},{&quot;title&quot;:&quot;Spaces ZeroGPU&quot;,&quot;id&quot;:&quot;spaces-zerogpu&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-zerogpu&quot;},{&quot;title&quot;:&quot;Spaces Dev Mode&quot;,&quot;id&quot;:&quot;spaces-dev-mode&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-dev-mode&quot;},{&quot;title&quot;:&quot;Spaces Persistent Storage&quot;,&quot;id&quot;:&quot;spaces-storage&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-storage&quot;},{&quot;title&quot;:&quot;Gradio Spaces&quot;,&quot;id&quot;:&quot;spaces-sdks-gradio&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-sdks-gradio&quot;},{&quot;title&quot;:&quot;Streamlit Spaces&quot;,&quot;id&quot;:&quot;spaces-sdks-streamlit&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-sdks-streamlit&quot;},{&quot;title&quot;:&quot;Static HTML Spaces&quot;,&quot;id&quot;:&quot;spaces-sdks-static&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-sdks-static&quot;},{&quot;title&quot;:&quot;Docker Spaces&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;spaces-sdks-docker&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-sdks-docker&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Your first Docker Spaces&quot;,&quot;id&quot;:&quot;spaces-sdks-docker-first-demo&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-sdks-docker-first-demo&quot;},{&quot;title&quot;:&quot;Example Docker Spaces&quot;,&quot;id&quot;:&quot;spaces-sdks-docker-examples&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-sdks-docker-examples&quot;},{&quot;title&quot;:&quot;JupyterLab on Spaces&quot;,&quot;id&quot;:&quot;spaces-sdks-docker-jupyter&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-sdks-docker-jupyter&quot;},{&quot;title&quot;:&quot;Argilla on Spaces&quot;,&quot;id&quot;:&quot;spaces-sdks-docker-argilla&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-sdks-docker-argilla&quot;},{&quot;title&quot;:&quot;Livebook on Spaces&quot;,&quot;id&quot;:&quot;spaces-sdks-docker-livebook&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-sdks-docker-livebook&quot;},{&quot;title&quot;:&quot;Label Studio on Spaces&quot;,&quot;id&quot;:&quot;spaces-sdks-docker-label-studio&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-sdks-docker-label-studio&quot;},{&quot;title&quot;:&quot;Aim on Spaces&quot;,&quot;id&quot;:&quot;spaces-sdks-docker-aim&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-sdks-docker-aim&quot;},{&quot;title&quot;:&quot;Shiny on Spaces&quot;,&quot;id&quot;:&quot;spaces-sdks-docker-shiny&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-sdks-docker-shiny&quot;},{&quot;title&quot;:&quot;ZenML on Spaces&quot;,&quot;id&quot;:&quot;spaces-sdks-docker-zenml&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-sdks-docker-zenml&quot;},{&quot;title&quot;:&quot;ChatUI on Spaces&quot;,&quot;id&quot;:&quot;spaces-sdks-docker-chatui&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-sdks-docker-chatui&quot;},{&quot;title&quot;:&quot;Panel on Spaces&quot;,&quot;id&quot;:&quot;spaces-sdks-docker-panel&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-sdks-docker-panel&quot;},{&quot;title&quot;:&quot;Tabby on Spaces&quot;,&quot;id&quot;:&quot;spaces-sdks-docker-tabby&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-sdks-docker-tabby&quot;},{&quot;title&quot;:&quot;Giskard on Spaces&quot;,&quot;id&quot;:&quot;spaces-sdks-docker-giskard&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-sdks-docker-giskard&quot;},{&quot;title&quot;:&quot;Evidence on Spaces&quot;,&quot;id&quot;:&quot;spaces-sdks-docker-evidence&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-sdks-docker-evidence&quot;},{&quot;title&quot;:&quot;marimo on Spaces&quot;,&quot;id&quot;:&quot;spaces-sdks-docker-marimo&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-sdks-docker-marimo&quot;}]},{&quot;title&quot;:&quot;Embed your Space&quot;,&quot;id&quot;:&quot;spaces-embed&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-embed&quot;},{&quot;title&quot;:&quot;Run Spaces with Docker&quot;,&quot;id&quot;:&quot;spaces-run-with-docker&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-run-with-docker&quot;},{&quot;title&quot;:&quot;Spaces Configuration Reference&quot;,&quot;id&quot;:&quot;spaces-config-reference&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-config-reference&quot;},{&quot;title&quot;:&quot;Sign-In with HF button&quot;,&quot;id&quot;:&quot;spaces-oauth&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-oauth&quot;},{&quot;title&quot;:&quot;Spaces Changelog&quot;,&quot;id&quot;:&quot;spaces-changelog&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-changelog&quot;},{&quot;title&quot;:&quot;Advanced Topics&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;spaces-advanced&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-advanced&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Using OpenCV in Spaces&quot;,&quot;id&quot;:&quot;spaces-using-opencv&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-using-opencv&quot;},{&quot;title&quot;:&quot;More ways to create Spaces&quot;,&quot;id&quot;:&quot;spaces-more-ways-to-create&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-more-ways-to-create&quot;},{&quot;title&quot;:&quot;Managing Spaces with Github Actions&quot;,&quot;id&quot;:&quot;spaces-github-actions&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-github-actions&quot;},{&quot;title&quot;:&quot;Managing Spaces with CircleCI Workflows&quot;,&quot;id&quot;:&quot;spaces-circleci&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-circleci&quot;},{&quot;title&quot;:&quot;Custom Python Spaces&quot;,&quot;id&quot;:&quot;spaces-sdks-python&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-sdks-python&quot;},{&quot;title&quot;:&quot;How to Add a Space to ArXiv&quot;,&quot;id&quot;:&quot;spaces-add-to-arxiv&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-add-to-arxiv&quot;},{&quot;title&quot;:&quot;Cookie limitations in Spaces&quot;,&quot;id&quot;:&quot;spaces-cookie-limitations&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-cookie-limitations&quot;},{&quot;title&quot;:&quot;Set URL query and hash&quot;,&quot;id&quot;:&quot;spaces-handle-url-parameters&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-handle-url-parameters&quot;}]}]},{&quot;title&quot;:&quot;Other&quot;,&quot;isExpanded&quot;:true,&quot;id&quot;:&quot;other&quot;,&quot;url&quot;:&quot;/docs/hub/other&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Organizations&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;organizations&quot;,&quot;url&quot;:&quot;/docs/hub/organizations&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Managing Organizations&quot;,&quot;id&quot;:&quot;organizations-managing&quot;,&quot;url&quot;:&quot;/docs/hub/organizations-managing&quot;},{&quot;title&quot;:&quot;Organization Cards&quot;,&quot;id&quot;:&quot;organizations-cards&quot;,&quot;url&quot;:&quot;/docs/hub/organizations-cards&quot;},{&quot;title&quot;:&quot;Access Control in Organizations&quot;,&quot;id&quot;:&quot;organizations-security&quot;,&quot;url&quot;:&quot;/docs/hub/organizations-security&quot;}]},{&quot;title&quot;:&quot;Enterprise Hub&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;enterprise-hub&quot;,&quot;url&quot;:&quot;/docs/hub/enterprise-hub&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Single Sign-On (SSO)&quot;,&quot;id&quot;:&quot;enterprise-sso&quot;,&quot;url&quot;:&quot;/docs/hub/enterprise-sso&quot;},{&quot;title&quot;:&quot;Audit Logs&quot;,&quot;id&quot;:&quot;audit-logs&quot;,&quot;url&quot;:&quot;/docs/hub/audit-logs&quot;},{&quot;title&quot;:&quot;Storage Regions&quot;,&quot;id&quot;:&quot;storage-regions&quot;,&quot;url&quot;:&quot;/docs/hub/storage-regions&quot;},{&quot;title&quot;:&quot;Dataset viewer for Private datasets&quot;,&quot;id&quot;:&quot;enterprise-hub-datasets&quot;,&quot;url&quot;:&quot;/docs/hub/enterprise-hub-datasets&quot;},{&quot;title&quot;:&quot;Resource Groups (Access Control)&quot;,&quot;id&quot;:&quot;enterprise-hub-resource-groups&quot;,&quot;url&quot;:&quot;/docs/hub/enterprise-hub-resource-groups&quot;},{&quot;title&quot;:&quot;Advanced Compute Options&quot;,&quot;id&quot;:&quot;advanced-compute-options&quot;,&quot;url&quot;:&quot;/docs/hub/advanced-compute-options&quot;},{&quot;title&quot;:&quot;Advanced Security&quot;,&quot;id&quot;:&quot;enterprise-hub-advanced-security&quot;,&quot;url&quot;:&quot;/docs/hub/enterprise-hub-advanced-security&quot;},{&quot;title&quot;:&quot;Tokens Management&quot;,&quot;id&quot;:&quot;enterprise-hub-tokens-management&quot;,&quot;url&quot;:&quot;/docs/hub/enterprise-hub-tokens-management&quot;},{&quot;title&quot;:&quot;Analytics&quot;,&quot;id&quot;:&quot;enterprise-hub-analytics&quot;,&quot;url&quot;:&quot;/docs/hub/enterprise-hub-analytics&quot;},{&quot;title&quot;:&quot;Network Security&quot;,&quot;id&quot;:&quot;enterprise-hub-network-security&quot;,&quot;url&quot;:&quot;/docs/hub/enterprise-hub-network-security&quot;}]},{&quot;title&quot;:&quot;Billing&quot;,&quot;id&quot;:&quot;billing&quot;,&quot;url&quot;:&quot;/docs/hub/billing&quot;},{&quot;title&quot;:&quot;Security&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;security&quot;,&quot;url&quot;:&quot;/docs/hub/security&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;User Access Tokens&quot;,&quot;id&quot;:&quot;security-tokens&quot;,&quot;url&quot;:&quot;/docs/hub/security-tokens&quot;},{&quot;title&quot;:&quot;Two-Factor Authentication&quot;,&quot;id&quot;:&quot;security-2fa&quot;,&quot;url&quot;:&quot;/docs/hub/security-2fa&quot;},{&quot;title&quot;:&quot;Git over SSH&quot;,&quot;id&quot;:&quot;security-git-ssh&quot;,&quot;url&quot;:&quot;/docs/hub/security-git-ssh&quot;},{&quot;title&quot;:&quot;Signing Commits with GPG&quot;,&quot;id&quot;:&quot;security-gpg&quot;,&quot;url&quot;:&quot;/docs/hub/security-gpg&quot;},{&quot;title&quot;:&quot;Single Sign-On (SSO)&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;security-sso&quot;,&quot;url&quot;:&quot;/docs/hub/security-sso&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;How to configure OIDC with Okta in the Hub&quot;,&quot;id&quot;:&quot;security-sso-okta-oidc&quot;,&quot;url&quot;:&quot;/docs/hub/security-sso-okta-oidc&quot;},{&quot;title&quot;:&quot;How to configure SAML with Okta in the Hub&quot;,&quot;id&quot;:&quot;security-sso-okta-saml&quot;,&quot;url&quot;:&quot;/docs/hub/security-sso-okta-saml&quot;},{&quot;title&quot;:&quot;How to configure SAML with Azure in the Hub&quot;,&quot;id&quot;:&quot;security-sso-azure-saml&quot;,&quot;url&quot;:&quot;/docs/hub/security-sso-azure-saml&quot;},{&quot;title&quot;:&quot;How to configure OIDC with Azure in the Hub&quot;,&quot;id&quot;:&quot;security-sso-azure-oidc&quot;,&quot;url&quot;:&quot;/docs/hub/security-sso-azure-oidc&quot;}]},{&quot;title&quot;:&quot;Advanced Access Control (Resource Groups)&quot;,&quot;id&quot;:&quot;security-resource-groups&quot;,&quot;url&quot;:&quot;/docs/hub/security-resource-groups&quot;},{&quot;title&quot;:&quot;Malware Scanning&quot;,&quot;id&quot;:&quot;security-malware&quot;,&quot;url&quot;:&quot;/docs/hub/security-malware&quot;},{&quot;title&quot;:&quot;Pickle Scanning&quot;,&quot;id&quot;:&quot;security-pickle&quot;,&quot;url&quot;:&quot;/docs/hub/security-pickle&quot;},{&quot;title&quot;:&quot;Secrets Scanning&quot;,&quot;id&quot;:&quot;security-secrets&quot;,&quot;url&quot;:&quot;/docs/hub/security-secrets&quot;},{&quot;title&quot;:&quot;Protect AI&quot;,&quot;id&quot;:&quot;security-protectai&quot;,&quot;url&quot;:&quot;/docs/hub/security-protectai&quot;}]},{&quot;title&quot;:&quot;Moderation&quot;,&quot;id&quot;:&quot;moderation&quot;,&quot;url&quot;:&quot;/docs/hub/moderation&quot;},{&quot;title&quot;:&quot;Paper Pages&quot;,&quot;id&quot;:&quot;paper-pages&quot;,&quot;url&quot;:&quot;/docs/hub/paper-pages&quot;},{&quot;title&quot;:&quot;Search&quot;,&quot;id&quot;:&quot;search&quot;,&quot;url&quot;:&quot;/docs/hub/search&quot;},{&quot;title&quot;:&quot;Digital Object Identifier (DOI)&quot;,&quot;id&quot;:&quot;doi&quot;,&quot;url&quot;:&quot;/docs/hub/doi&quot;},{&quot;title&quot;:&quot;Hub API Endpoints&quot;,&quot;id&quot;:&quot;api&quot;,&quot;url&quot;:&quot;/docs/hub/api&quot;},{&quot;title&quot;:&quot;Sign-In with HF&quot;,&quot;id&quot;:&quot;oauth&quot;,&quot;url&quot;:&quot;/docs/hub/oauth&quot;}]}],&quot;chapterId&quot;:&quot;spaces-gpus&quot;,&quot;docType&quot;:&quot;docs&quot;,&quot;isLoggedIn&quot;:false,&quot;lang&quot;:&quot;en&quot;,&quot;langs&quot;:[&quot;en&quot;],&quot;library&quot;:&quot;hub&quot;,&quot;theme&quot;:&quot;light&quot;,&quot;version&quot;:&quot;main&quot;,&quot;versions&quot;:[{&quot;version&quot;:&quot;main&quot;}],&quot;title&quot;:&quot;Using GPU Spaces&quot;}"> <div class="z-2 w-full flex-none lg:flex lg:h-dvh lg:w-[270px] lg:flex-col 2xl:w-[300px] false"><div class="shadow-alternate flex h-auto w-full items-center rounded-b-xl border-b bg-white py-2 text-lg leading-tight lg:hidden"> <div class="flex flex-1 cursor-pointer flex-col justify-center self-stretch pl-6"><p class="text-sm text-gray-400 first-letter:capitalize">Hub documentation </p> <div class="mr-2 flex items-center"><p class="font-semibold">Using GPU Spaces</p> <svg class="text-xl false" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path d="M16.293 9.293L12 13.586L7.707 9.293l-1.414 1.414L12 16.414l5.707-5.707z" fill="currentColor"></path></svg></div></div> <button class="hover:shadow-alternate group ml-auto mr-6 inline-flex flex-none cursor-pointer rounded-xl border p-2"><svg class="text-gray-500 group-hover:text-gray-700" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M30 28.59L22.45 21A11 11 0 1 0 21 22.45L28.59 30zM5 14a9 9 0 1 1 9 9a9 9 0 0 1-9-9z" fill="currentColor"></path></svg></button></div> <div class="hidden flex-col justify-between border-b border-r bg-white bg-gradient-to-r p-4 lg:flex from-yellow-50 to-white dark:from-gray-900 dark:to-gray-950"><div class="group relative mb-2 flex min-w-[50%] items-center self-start text-lg font-bold leading-tight first-letter:capitalize"><div class="mr-1.5 h-1.5 w-1.5 rounded-full bg-yellow-500 flex-none"></div> <h1>Hub</h1> <svg class="opacity-50 ml-0.5 flex-none group-hover:opacity-100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path d="M16.293 9.293L12 13.586L7.707 9.293l-1.414 1.414L12 16.414l5.707-5.707z" fill="currentColor"></path></svg> <select class="absolute inset-0 border-none bg-white text-base opacity-0 outline-none"><option value="/docs">🏡 View all docs</option><option value="/docs/optimum-neuron" >AWS Trainium &amp; Inferentia</option><option value="/docs/accelerate" >Accelerate</option><option value="/docs/sagemaker" >Amazon SageMaker</option><option value="https://argilla-io.github.io/argilla/" >Argilla</option><option value="/docs/autotrain" >AutoTrain</option><option value="/docs/bitsandbytes" >Bitsandbytes</option><option value="/docs/chat-ui" >Chat UI</option><option value="/docs/competitions" >Competitions</option><option value="/docs/dataset-viewer" >Dataset viewer</option><option value="/docs/datasets" >Datasets</option><option value="/docs/diffusers" >Diffusers</option><option value="https://distilabel.argilla.io/" >Distilabel</option><option value="/docs/evaluate" >Evaluate</option><option value="/docs/google-cloud" >Google Cloud</option><option value="/docs/optimum-tpu" >Google TPUs</option><option value="https://www.gradio.app/docs/" >Gradio</option><option value="/docs/hub" selected>Hub</option><option value="/docs/huggingface_hub" >Hub Python Library</option><option value="/docs/hugs" >Hugging Face Generative AI Services (HUGS)</option><option value="/docs/huggingface.js" >Huggingface.js</option><option value="/docs/api-inference" >Inference API (serverless)</option><option value="/docs/inference-endpoints" >Inference Endpoints (dedicated)</option><option value="/docs/leaderboards" >Leaderboards</option><option value="/docs/optimum" >Optimum</option><option value="/docs/peft" >PEFT</option><option value="/docs/safetensors" >Safetensors</option><option value="https://sbert.net/" >Sentence Transformers</option><option value="/docs/trl" >TRL</option><option value="/tasks" >Tasks</option><option value="/docs/text-embeddings-inference" >Text Embeddings Inference</option><option value="/docs/text-generation-inference" >Text Generation Inference</option><option value="/docs/tokenizers" >Tokenizers</option><option value="/docs/transformers" >Transformers</option><option value="/docs/transformers.js" >Transformers.js</option><option value="/docs/timm" >timm</option></select></div> <button class="shadow-alternate mb-2 flex w-full items-center rounded-full border bg-white px-2 py-1 text-left text-sm text-gray-400 ring-indigo-200 hover:bg-indigo-50 hover:ring-2 dark:border-gray-700 dark:ring-yellow-600 dark:hover:bg-gray-900 dark:hover:text-yellow-500"><svg class="flex-none mr-1.5" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M30 28.59L22.45 21A11 11 0 1 0 21 22.45L28.59 30zM5 14a9 9 0 1 1 9 9a9 9 0 0 1-9-9z" fill="currentColor"></path></svg> <div>Search documentation</div> </button> <div class="flex items-center"> <select class="form-input mr-1 rounded border-gray-200 p-1 text-xs dark:!text-gray-400 !w-12 !mt-0 !border"><option value="en" selected>EN</option></select> <div class="relative inline-block"> <button class="rounded-full border border-gray-100 p-1.5 flex items-center text-sm text-gray-500 bg-white hover:bg-yellow-50 hover:border-yellow-200 dark:hover:bg-gray-800 dark:hover:border-gray-950 " type="button"> <svg class=" text-yellow-500" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24" fill="currentColor"><path d="M6.05 4.14l-.39-.39a.993.993 0 0 0-1.4 0l-.01.01a.984.984 0 0 0 0 1.4l.39.39c.39.39 1.01.39 1.4 0l.01-.01a.984.984 0 0 0 0-1.4zM3.01 10.5H1.99c-.55 0-.99.44-.99.99v.01c0 .55.44.99.99.99H3c.56.01 1-.43 1-.98v-.01c0-.56-.44-1-.99-1zm9-9.95H12c-.56 0-1 .44-1 .99v.96c0 .55.44.99.99.99H12c.56.01 1-.43 1-.98v-.97c0-.55-.44-.99-.99-.99zm7.74 3.21c-.39-.39-1.02-.39-1.41-.01l-.39.39a.984.984 0 0 0 0 1.4l.01.01c.39.39 1.02.39 1.4 0l.39-.39a.984.984 0 0 0 0-1.4zm-1.81 15.1l.39.39a.996.996 0 1 0 1.41-1.41l-.39-.39a.993.993 0 0 0-1.4 0c-.4.4-.4 1.02-.01 1.41zM20 11.49v.01c0 .55.44.99.99.99H22c.55 0 .99-.44.99-.99v-.01c0-.55-.44-.99-.99-.99h-1.01c-.55 0-.99.44-.99.99zM12 5.5c-3.31 0-6 2.69-6 6s2.69 6 6 6s6-2.69 6-6s-2.69-6-6-6zm-.01 16.95H12c.55 0 .99-.44.99-.99v-.96c0-.55-.44-.99-.99-.99h-.01c-.55 0-.99.44-.99.99v.96c0 .55.44.99.99.99zm-7.74-3.21c.39.39 1.02.39 1.41 0l.39-.39a.993.993 0 0 0 0-1.4l-.01-.01a.996.996 0 0 0-1.41 0l-.39.39c-.38.4-.38 1.02.01 1.41z"></path></svg> </button> </div> <a href="https://github.com/huggingface/hub-docs" class="group ml-auto text-xs text-gray-500 hover:text-gray-700 hover:underline dark:hover:text-gray-300"><svg class="inline-block text-gray-500 group-hover:text-gray-700 dark:group-hover:text-gray-300 mr-1.5 -mt-1 w-4 h-4" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1.03em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 250"><path d="M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46c6.397 1.185 8.746-2.777 8.746-6.158c0-3.052-.12-13.135-.174-23.83c-35.61 7.742-43.124-15.103-43.124-15.103c-5.823-14.795-14.213-18.73-14.213-18.73c-11.613-7.944.876-7.78.876-7.78c12.853.902 19.621 13.19 19.621 13.19c11.417 19.568 29.945 13.911 37.249 10.64c1.149-8.272 4.466-13.92 8.127-17.116c-28.431-3.236-58.318-14.212-58.318-63.258c0-13.975 5-25.394 13.188-34.358c-1.329-3.224-5.71-16.242 1.24-33.874c0 0 10.749-3.44 35.21 13.121c10.21-2.836 21.16-4.258 32.038-4.307c10.878.049 21.837 1.47 32.066 4.307c24.431-16.56 35.165-13.12 35.165-13.12c6.967 17.63 2.584 30.65 1.255 33.873c8.207 8.964 13.173 20.383 13.173 34.358c0 49.163-29.944 59.988-58.447 63.157c4.591 3.972 8.682 11.762 8.682 23.704c0 17.126-.148 30.91-.148 35.126c0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002C256 57.307 198.691 0 128.001 0zm-80.06 182.34c-.282.636-1.283.827-2.194.39c-.929-.417-1.45-1.284-1.15-1.922c.276-.655 1.279-.838 2.205-.399c.93.418 1.46 1.293 1.139 1.931zm6.296 5.618c-.61.566-1.804.303-2.614-.591c-.837-.892-.994-2.086-.375-2.66c.63-.566 1.787-.301 2.626.591c.838.903 1 2.088.363 2.66zm4.32 7.188c-.785.545-2.067.034-2.86-1.104c-.784-1.138-.784-2.503.017-3.05c.795-.547 2.058-.055 2.861 1.075c.782 1.157.782 2.522-.019 3.08zm7.304 8.325c-.701.774-2.196.566-3.29-.49c-1.119-1.032-1.43-2.496-.726-3.27c.71-.776 2.213-.558 3.315.49c1.11 1.03 1.45 2.505.701 3.27zm9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033c-1.448-.439-2.395-1.613-2.103-2.626c.301-1.01 1.747-1.484 3.207-1.028c1.446.436 2.396 1.602 2.095 2.622zm10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95c-1.53.034-2.769-.82-2.786-1.86c0-1.065 1.202-1.932 2.733-1.958c1.522-.03 2.768.818 2.768 1.868zm10.555-.405c.182 1.03-.875 2.088-2.387 2.37c-1.485.271-2.861-.365-3.05-1.386c-.184-1.056.893-2.114 2.376-2.387c1.514-.263 2.868.356 3.061 1.403z" fill="currentColor"></path></svg> </a></div></div> <nav class="hidden flex-auto lg:flex bottom-0 left-0 w-full flex-col overflow-y-auto border-r px-4 pb-16 pt-3 text-[0.95rem] lg:w-[270px] 2xl:w-[300px]"> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 mb-2 ml-0 " href="/docs/hub/index" id="index"> <!-- HTML_TAG_START -->🤗 Hugging Face Hub<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-0 " href="/docs/hub/repositories" id="repositories"><svg class="mr-1 text-orange-500" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" d="M2.6 10.59L8.38 4.8l1.69 1.7c-.24.85.15 1.78.93 2.23v5.54c-.6.34-1 .99-1 1.73a2 2 0 0 0 2 2a2 2 0 0 0 2-2c0-.74-.4-1.39-1-1.73V9.41l2.07 2.09c-.07.15-.07.32-.07.5a2 2 0 0 0 2 2a2 2 0 0 0 2-2a2 2 0 0 0-2-2c-.18 0-.35 0-.5.07L13.93 7.5a1.98 1.98 0 0 0-1.15-2.34c-.43-.16-.88-.2-1.28-.09L9.8 3.38l.79-.78c.78-.79 2.04-.79 2.82 0l7.99 7.99c.79.78.79 2.04 0 2.82l-7.99 7.99c-.78.79-2.04.79-2.82 0L2.6 13.41c-.79-.78-.79-2.04 0-2.82Z"></path></svg> <!-- HTML_TAG_START -->Repositories<!-- HTML_TAG_END --> </a> <div class="flex flex-col"><a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/repositories-getting-started" id="repositories-getting-started"> <!-- HTML_TAG_START -->Getting Started with Repositories<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/repositories-settings" id="repositories-settings"> <!-- HTML_TAG_START -->Repository Settings<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/repositories-pull-requests-discussions" id="repositories-pull-requests-discussions"> <!-- HTML_TAG_START -->Pull Requests & Discussions<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/notifications" id="notifications"> <!-- HTML_TAG_START -->Notifications<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/collections" id="collections"> <!-- HTML_TAG_START -->Collections<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 after:absolute after:right-4 after:text-gray-500 hover:after:content-['▶']" href="/docs/hub/webhooks" id="webhooks"> <!-- HTML_TAG_START -->Webhooks<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/notebooks" id="notebooks"> <!-- HTML_TAG_START -->Notebooks<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/repositories-recommendations" id="repositories-recommendations"> <!-- HTML_TAG_START -->Repository size recommendations<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/repositories-next-steps" id="repositories-next-steps"> <!-- HTML_TAG_START -->Next Steps<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/repositories-licenses" id="repositories-licenses"> <!-- HTML_TAG_START -->Licenses<!-- HTML_TAG_END --> </a> </div><a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-0 " href="/docs/hub/models" id="models"><svg class="mr-1 text-indigo-500" style="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path class="uim-quaternary" d="M20.23 7.24L12 12L3.77 7.24a1.98 1.98 0 0 1 .7-.71L11 2.76c.62-.35 1.38-.35 2 0l6.53 3.77c.29.173.531.418.7.71z" opacity=".25" fill="currentColor"></path><path class="uim-tertiary" d="M12 12v9.5a2.09 2.09 0 0 1-.91-.21L4.5 17.48a2.003 2.003 0 0 1-1-1.73v-7.5a2.06 2.06 0 0 1 .27-1.01L12 12z" opacity=".5" fill="currentColor"></path><path class="uim-primary" d="M20.5 8.25v7.5a2.003 2.003 0 0 1-1 1.73l-6.62 3.82c-.275.13-.576.198-.88.2V12l8.23-4.76c.175.308.268.656.27 1.01z" fill="currentColor"></path></svg> <!-- HTML_TAG_START -->Models<!-- HTML_TAG_END --> </a> <div class="flex flex-col"><a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/models-the-hub" id="models-the-hub"> <!-- HTML_TAG_START -->The Model Hub<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 after:absolute after:right-4 after:text-gray-500 hover:after:content-['▶']" href="/docs/hub/model-cards" id="model-cards"> <!-- HTML_TAG_START -->Model Cards<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/models-gated" id="models-gated"> <!-- HTML_TAG_START -->Gated Models<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/models-uploading" id="models-uploading"> <!-- HTML_TAG_START -->Uploading Models<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/models-downloading" id="models-downloading"> <!-- HTML_TAG_START -->Downloading Models<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 after:absolute after:right-4 after:text-gray-500 hover:after:content-['▶']" href="/docs/hub/models-libraries" id="models-libraries"> <!-- HTML_TAG_START -->Integrated Libraries<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 after:absolute after:right-4 after:text-gray-500 hover:after:content-['▶']" href="/docs/hub/models-widgets" id="models-widgets"> <!-- HTML_TAG_START -->Model Widgets<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/models-inference" id="models-inference"> <!-- HTML_TAG_START -->Inference API docs<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/models-download-stats" id="models-download-stats"> <!-- HTML_TAG_START -->Models Download Stats<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/models-faq" id="models-faq"> <!-- HTML_TAG_START -->Frequently Asked Questions<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 after:absolute after:right-4 after:text-gray-500 hover:after:content-['▶']" href="/docs/hub/models-advanced" id="models-advanced"> <!-- HTML_TAG_START -->Advanced Topics<!-- HTML_TAG_END --> </a> </div><a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-0 " href="/docs/hub/datasets" id="datasets"><svg class="mr-1 text-red-500" style="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 25 25"><ellipse cx="12.5" cy="5" fill="currentColor" fill-opacity="0.25" rx="7.5" ry="2"></ellipse><path d="M12.5 15C16.6421 15 20 14.1046 20 13V20C20 21.1046 16.6421 22 12.5 22C8.35786 22 5 21.1046 5 20V13C5 14.1046 8.35786 15 12.5 15Z" fill="currentColor" opacity="0.5"></path><path d="M12.5 7C16.6421 7 20 6.10457 20 5V11.5C20 12.6046 16.6421 13.5 12.5 13.5C8.35786 13.5 5 12.6046 5 11.5V5C5 6.10457 8.35786 7 12.5 7Z" fill="currentColor" opacity="0.5"></path><path d="M5.23628 12C5.08204 12.1598 5 12.8273 5 13C5 14.1046 8.35786 15 12.5 15C16.6421 15 20 14.1046 20 13C20 12.8273 19.918 12.1598 19.7637 12C18.9311 12.8626 15.9947 13.5 12.5 13.5C9.0053 13.5 6.06886 12.8626 5.23628 12Z" fill="currentColor"></path></svg> <!-- HTML_TAG_START -->Datasets<!-- HTML_TAG_END --> </a> <div class="flex flex-col"><a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/datasets-overview" id="datasets-overview"> <!-- HTML_TAG_START -->Datasets Overview<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/datasets-cards" id="datasets-cards"> <!-- HTML_TAG_START -->Dataset Cards<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/datasets-gated" id="datasets-gated"> <!-- HTML_TAG_START -->Gated Datasets<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/datasets-adding" id="datasets-adding"> <!-- HTML_TAG_START -->Uploading Datasets<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/datasets-downloading" id="datasets-downloading"> <!-- HTML_TAG_START -->Downloading Datasets<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 after:absolute after:right-4 after:text-gray-500 hover:after:content-['▶']" href="/docs/hub/datasets-libraries" id="datasets-libraries"> <!-- HTML_TAG_START -->Integrated Libraries<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 after:absolute after:right-4 after:text-gray-500 hover:after:content-['▶']" href="/docs/hub/datasets-viewer" id="datasets-viewer"> <!-- HTML_TAG_START -->Dataset Viewer<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/datasets-download-stats" id="datasets-download-stats"> <!-- HTML_TAG_START -->Datasets Download Stats<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 after:absolute after:right-4 after:text-gray-500 hover:after:content-['▶']" href="/docs/hub/datasets-data-files-configuration" id="datasets-data-files-configuration"> <!-- HTML_TAG_START -->Data files Configuration<!-- HTML_TAG_END --> </a> </div><a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-0 " href="/docs/hub/spaces" id="spaces"><svg class="mr-1 text-blue-500" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" viewBox="0 0 25 25"><path opacity=".5" d="M6.016 14.674v4.31h4.31v-4.31h-4.31ZM14.674 14.674v4.31h4.31v-4.31h-4.31ZM6.016 6.016v4.31h4.31v-4.31h-4.31Z" fill="currentColor"></path><path opacity=".75" fill-rule="evenodd" clip-rule="evenodd" d="M3 4.914C3 3.857 3.857 3 4.914 3h6.514c.884 0 1.628.6 1.848 1.414a5.171 5.171 0 0 1 7.31 7.31c.815.22 1.414.964 1.414 1.848v6.514A1.914 1.914 0 0 1 20.086 22H4.914A1.914 1.914 0 0 1 3 20.086V4.914Zm3.016 1.102v4.31h4.31v-4.31h-4.31Zm0 12.968v-4.31h4.31v4.31h-4.31Zm8.658 0v-4.31h4.31v4.31h-4.31Zm0-10.813a2.155 2.155 0 1 1 4.31 0 2.155 2.155 0 0 1-4.31 0Z" fill="currentColor"></path><path opacity=".25" d="M16.829 6.016a2.155 2.155 0 1 0 0 4.31 2.155 2.155 0 0 0 0-4.31Z" fill="currentColor"></path></svg> <!-- HTML_TAG_START -->Spaces<!-- HTML_TAG_END --> </a> <div class="flex flex-col"><a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 after:absolute after:right-4 after:text-gray-500 hover:after:content-['▶']" href="/docs/hub/spaces-overview" id="spaces-overview"> <!-- HTML_TAG_START -->Spaces Overview<!-- HTML_TAG_END --> </a> <a class="flex items-center rounded-xl bg-gradient-to-br from-black to-gray-900 py-1 pl-2 pr-2 text-white transition-colors first:mt-1 last:mb-4 dark:from-gray-800 dark:to-gray-900 ml-2 " href="/docs/hub/spaces-gpus" id="spaces-gpus"> <!-- HTML_TAG_START -->Spaces GPU Upgrades<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/spaces-zerogpu" id="spaces-zerogpu"> <!-- HTML_TAG_START -->Spaces ZeroGPU<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/spaces-dev-mode" id="spaces-dev-mode"> <!-- HTML_TAG_START -->Spaces Dev Mode<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/spaces-storage" id="spaces-storage"> <!-- HTML_TAG_START -->Spaces Persistent Storage<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/spaces-sdks-gradio" id="spaces-sdks-gradio"> <!-- HTML_TAG_START -->Gradio Spaces<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/spaces-sdks-streamlit" id="spaces-sdks-streamlit"> <!-- HTML_TAG_START -->Streamlit Spaces<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/spaces-sdks-static" id="spaces-sdks-static"> <!-- HTML_TAG_START -->Static HTML Spaces<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 after:absolute after:right-4 after:text-gray-500 hover:after:content-['▶']" href="/docs/hub/spaces-sdks-docker" id="spaces-sdks-docker"> <!-- HTML_TAG_START -->Docker Spaces<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/spaces-embed" id="spaces-embed"> <!-- HTML_TAG_START -->Embed your Space<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/spaces-run-with-docker" id="spaces-run-with-docker"> <!-- HTML_TAG_START -->Run Spaces with Docker<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/spaces-config-reference" id="spaces-config-reference"> <!-- HTML_TAG_START -->Spaces Configuration Reference<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/spaces-oauth" id="spaces-oauth"> <!-- HTML_TAG_START -->Sign-In with HF button<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/spaces-changelog" id="spaces-changelog"> <!-- HTML_TAG_START -->Spaces Changelog<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 after:absolute after:right-4 after:text-gray-500 hover:after:content-['▶']" href="/docs/hub/spaces-advanced" id="spaces-advanced"> <!-- HTML_TAG_START -->Advanced Topics<!-- HTML_TAG_END --> </a> </div><a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-0 " href="/docs/hub/other" id="other"><svg class="mr-1 text-green-500" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24" fill="currentColor"><path d="M8.892 21.854a6.25 6.25 0 0 1-4.42-10.67l7.955-7.955a4.5 4.5 0 0 1 6.364 6.364l-6.895 6.894a2.816 2.816 0 0 1-3.89 0a2.75 2.75 0 0 1 .002-3.888l5.126-5.127a1 1 0 1 1 1.414 1.414l-5.126 5.127a.75.75 0 0 0 0 1.06a.768.768 0 0 0 1.06 0l6.895-6.894a2.503 2.503 0 0 0 0-3.535a2.56 2.56 0 0 0-3.536 0l-7.955 7.955a4.25 4.25 0 1 0 6.01 6.01l6.188-6.187a1 1 0 1 1 1.414 1.414l-6.187 6.186a6.206 6.206 0 0 1-4.42 1.832z"></path></svg> <!-- HTML_TAG_START -->Other<!-- HTML_TAG_END --> </a> <div class="flex flex-col"><a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 after:absolute after:right-4 after:text-gray-500 hover:after:content-['▶']" href="/docs/hub/organizations" id="organizations"> <!-- HTML_TAG_START -->Organizations<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 after:absolute after:right-4 after:text-gray-500 hover:after:content-['▶']" href="/docs/hub/enterprise-hub" id="enterprise-hub"> <!-- HTML_TAG_START -->Enterprise Hub<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/billing" id="billing"> <!-- HTML_TAG_START -->Billing<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 after:absolute after:right-4 after:text-gray-500 hover:after:content-['▶']" href="/docs/hub/security" id="security"> <!-- HTML_TAG_START -->Security<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/moderation" id="moderation"> <!-- HTML_TAG_START -->Moderation<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/paper-pages" id="paper-pages"> <!-- HTML_TAG_START -->Paper Pages<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/search" id="search"> <!-- HTML_TAG_START -->Search<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/doi" id="doi"> <!-- HTML_TAG_START -->Digital Object Identifier (DOI)<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/api" id="api"> <!-- HTML_TAG_START -->Hub API Endpoints<!-- HTML_TAG_END --> </a> <a class="flex transform items-center py-1 pl-2 pr-2 text-gray-500 first:mt-1 last:mb-4 hover:translate-x-px hover:text-black dark:hover:text-gray-300 ml-2 " href="/docs/hub/oauth" id="oauth"> <!-- HTML_TAG_START -->Sign-In with HF<!-- HTML_TAG_END --> </a> </div></nav></div></div></div> <div class="z-1 min-w-0 flex-1"> <div class="px-6 pt-6 md:px-12 md:pb-16 md:pt-16"><div class="max-w-4xl mx-auto mb-10"><div class="relative overflow-hidden rounded-xl bg-gradient-to-br from-orange-300/10 px-4 py-5 ring-1 ring-orange-100/70 md:px-6 md:py-8"><img alt="Hugging Face's logo" class="absolute -bottom-6 -right-6 w-28 -rotate-45 md:hidden" src="/front/assets/huggingface_logo-noborder.svg"> <div class="mb-2 text-2xl font-bold dark:text-gray-200 md:mb-0">Join the Hugging Face community</div> <p class="mb-4 text-lg text-gray-400 dark:text-gray-300 md:mb-8">and get access to the augmented documentation experience </p> <div class="mb-8 hidden space-y-4 md:block xl:flex xl:space-x-6 xl:space-y-0"><div class="flex items-center"><div class="mr-3 flex h-9 w-9 flex-none items-center justify-center rounded-lg bg-gradient-to-br from-indigo-100 to-indigo-100/20 dark:to-indigo-100"><svg class="text-indigo-400 group-hover:text-indigo-500" style="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path class="uim-quaternary" d="M20.23 7.24L12 12L3.77 7.24a1.98 1.98 0 0 1 .7-.71L11 2.76c.62-.35 1.38-.35 2 0l6.53 3.77c.29.173.531.418.7.71z" opacity=".25" fill="currentColor"></path><path class="uim-tertiary" d="M12 12v9.5a2.09 2.09 0 0 1-.91-.21L4.5 17.48a2.003 2.003 0 0 1-1-1.73v-7.5a2.06 2.06 0 0 1 .27-1.01L12 12z" opacity=".5" fill="currentColor"></path><path class="uim-primary" d="M20.5 8.25v7.5a2.003 2.003 0 0 1-1 1.73l-6.62 3.82c-.275.13-.576.198-.88.2V12l8.23-4.76c.175.308.268.656.27 1.01z" fill="currentColor"></path></svg></div> <div class="text-smd leading-tight text-gray-500 dark:text-gray-300 xl:max-w-[200px] 2xl:text-base">Collaborate on models, datasets and Spaces </div></div> <div class="flex items-center"><div class="mr-3 flex h-9 w-9 flex-none items-center justify-center rounded-lg bg-gradient-to-br from-orange-100 to-orange-100/20 dark:to-orange-50"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" class="text-xl text-yellow-400" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path d="M11 15H6l7-14v8h5l-7 14v-8z" fill="currentColor"></path></svg></div> <div class="text-smd leading-tight text-gray-500 dark:text-gray-300 xl:max-w-[200px] 2xl:text-base">Faster examples with accelerated inference </div></div> <div class="flex items-center"><div class="mr-3 flex h-9 w-9 flex-none items-center justify-center rounded-lg bg-gradient-to-br from-gray-500/10 to-gray-500/5"><svg class="text-gray-400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M14.9804 3C14.9217 3.0002 14.8631 3.00555 14.8054 3.016C11.622 3.58252 8.76073 5.30669 6.77248 7.85653C4.78422 10.4064 3.80955 13.6016 4.03612 16.8271C4.26268 20.0525 5.67447 23.0801 7.99967 25.327C10.3249 27.5738 13.3991 28.8811 16.6304 28.997C16.7944 29.003 16.9584 28.997 17.1204 28.997C19.2193 28.9984 21.2877 28.4943 23.1507 27.5274C25.0137 26.5605 26.6164 25.1592 27.8234 23.442C27.9212 23.294 27.9783 23.1229 27.9889 22.9458C27.9995 22.7687 27.9633 22.592 27.884 22.4333C27.8046 22.2747 27.6848 22.1397 27.5367 22.0421C27.3887 21.9444 27.2175 21.8875 27.0404 21.877C25.0426 21.7017 23.112 21.0693 21.3976 20.0288C19.6832 18.9884 18.231 17.5676 17.1533 15.8764C16.0756 14.1852 15.4011 12.2688 15.1822 10.2754C14.9632 8.28193 15.2055 6.26484 15.8904 4.38C15.9486 4.22913 15.97 4.06652 15.9527 3.90572C15.9354 3.74492 15.8799 3.59059 15.7909 3.45557C15.7019 3.32055 15.5819 3.20877 15.4409 3.12952C15.2999 3.05028 15.142 3.00587 14.9804 3Z" fill="currentColor"></path></svg></div> <div class="text-smd leading-tight text-gray-500 dark:text-gray-300 xl:max-w-[200px] 2xl:text-base">Switch between documentation themes </div></div></div> <div class="flex items-center space-x-2.5"><a href="/join"><button class="rounded-lg bg-white bg-gradient-to-br from-gray-100/20 to-gray-200/60 px-5 py-1.5 font-semibold text-gray-700 shadow-sm ring-1 ring-gray-300/60 hover:to-gray-100/70 hover:ring-gray-300/30 active:shadow-inner">Sign Up</button></a> <p class="text-gray-500 dark:text-gray-300">to get started</p></div></div></div> <div class="prose-doc prose relative mx-auto max-w-4xl break-words"><!-- HTML_TAG_START --> <link href="/docs/hub/main/en/_app/immutable/assets/0.e3b0c442.css" rel="modulepreload"> <link rel="modulepreload" href="/docs/hub/main/en/_app/immutable/entry/start.2759ecb3.js"> <link rel="modulepreload" href="/docs/hub/main/en/_app/immutable/chunks/scheduler.d6170356.js"> <link rel="modulepreload" href="/docs/hub/main/en/_app/immutable/chunks/singletons.cfbc5757.js"> <link rel="modulepreload" href="/docs/hub/main/en/_app/immutable/chunks/paths.b3d34257.js"> <link rel="modulepreload" href="/docs/hub/main/en/_app/immutable/entry/app.838cc47c.js"> <link rel="modulepreload" href="/docs/hub/main/en/_app/immutable/chunks/index.fcd4cc08.js"> <link rel="modulepreload" href="/docs/hub/main/en/_app/immutable/nodes/0.6498845b.js"> <link rel="modulepreload" href="/docs/hub/main/en/_app/immutable/nodes/142.9b628ad9.js"> <link rel="modulepreload" href="/docs/hub/main/en/_app/immutable/chunks/Tip.b09c67cf.js"> <link rel="modulepreload" href="/docs/hub/main/en/_app/immutable/chunks/CodeBlock.7b16bdef.js"> <link rel="modulepreload" href="/docs/hub/main/en/_app/immutable/chunks/EditOnGithub.da2b595c.js"><!-- HEAD_svelte-u9bgzb_START --><meta name="hf:doc:metadata" content="{&quot;title&quot;:&quot;Using GPU Spaces&quot;,&quot;local&quot;:&quot;using-gpu-spaces&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Hardware Specs&quot;,&quot;local&quot;:&quot;hardware-specs&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;CPU&quot;,&quot;local&quot;:&quot;cpu&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3},{&quot;title&quot;:&quot;GPU&quot;,&quot;local&quot;:&quot;gpu&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3},{&quot;title&quot;:&quot;TPU&quot;,&quot;local&quot;:&quot;tpu&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3}],&quot;depth&quot;:2},{&quot;title&quot;:&quot;Configure hardware programmatically&quot;,&quot;local&quot;:&quot;configure-hardware-programmatically&quot;,&quot;sections&quot;:[],&quot;depth&quot;:2},{&quot;title&quot;:&quot;Framework specific requirements&quot;,&quot;local&quot;:&quot;frameworks&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;PyTorch&quot;,&quot;local&quot;:&quot;pytorch&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3},{&quot;title&quot;:&quot;JAX&quot;,&quot;local&quot;:&quot;jax&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3},{&quot;title&quot;:&quot;Tensorflow&quot;,&quot;local&quot;:&quot;tensorflow&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3}],&quot;depth&quot;:2},{&quot;title&quot;:&quot;Billing&quot;,&quot;local&quot;:&quot;billing&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Community GPU Grants&quot;,&quot;local&quot;:&quot;community-gpu-grants&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3}],&quot;depth&quot;:2},{&quot;title&quot;:&quot;Set a custom sleep time&quot;,&quot;local&quot;:&quot;sleep-time&quot;,&quot;sections&quot;:[],&quot;depth&quot;:2},{&quot;title&quot;:&quot;Pausing a Space&quot;,&quot;local&quot;:&quot;pause&quot;,&quot;sections&quot;:[],&quot;depth&quot;:2}],&quot;depth&quot;:1}"><!-- HEAD_svelte-u9bgzb_END --> <p></p> <h1 class="relative group"><a id="using-gpu-spaces" 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" href="#using-gpu-spaces"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>Using GPU Spaces</span></h1> <p data-svelte-h="svelte-1r0b8ra">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!</p> <div class="flex justify-center" data-svelte-h="svelte-195xp0n"><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"></div> <div class="course-tip bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">Longer-term, we would also like to expose non-GPU hardware, like HPU, IPU or TPU. If you have a specific AI hardware you&#39;d like to run on, please let us know (website at huggingface.co).</div> <p data-svelte-h="svelte-xvc6ld">As soon as your Space is running on GPU you can see which hardware it’s running on directly from this badge:</p> <div class="flex justify-center" data-svelte-h="svelte-1a8modj"><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"></div> <h2 class="relative group"><a id="hardware-specs" 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" href="#hardware-specs"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>Hardware Specs</span></h2> <p data-svelte-h="svelte-8bcu8s">In the following tables, you can see the Specs for the different upgrade options.</p> <h3 class="relative group"><a id="cpu" 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" href="#cpu"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>CPU</span></h3> <table data-svelte-h="svelte-1wfpm10"><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>16 GB</td> <td>-</td> <td>50 GB</td> <td>Free!</td></tr> <tr><td>CPU Upgrade</td> <td>8 vCPU</td> <td>32 GB</td> <td>-</td> <td>50 GB</td> <td>$0.03</td></tr></tbody></table> <h3 class="relative group"><a id="gpu" 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" href="#gpu"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>GPU</span></h3> <table data-svelte-h="svelte-14eqnue"><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>Nvidia T4 - small</td> <td>4 vCPU</td> <td>15 GB</td> <td>16 GB</td> <td>50 GB</td> <td>$0.40</td></tr> <tr><td>Nvidia T4 - medium</td> <td>8 vCPU</td> <td>30 GB</td> <td>16 GB</td> <td>100 GB</td> <td>$0.60</td></tr> <tr><td>Nvidia A10G - small</td> <td>4 vCPU</td> <td>15 GB</td> <td>24 GB</td> <td>110 GB</td> <td>$1.00</td></tr> <tr><td>Nvidia A10G - large</td> <td>12 vCPU</td> <td>46 GB</td> <td>24 GB</td> <td>200 GB</td> <td>$1.50</td></tr> <tr><td>2x Nvidia A10G - large</td> <td>24 vCPU</td> <td>92 GB</td> <td>48 GB</td> <td>1000 GB</td> <td>$3.00</td></tr> <tr><td>4x Nvidia A10G - large</td> <td>48 vCPU</td> <td>184 GB</td> <td>96 GB</td> <td>2000 GB</td> <td>$5.00</td></tr> <tr><td>Nvidia A100 - large</td> <td>12 vCPU</td> <td>142 GB</td> <td>40 GB</td> <td>1000 GB</td> <td>$4.00</td></tr> <tr><td>1x Nvidia L40S</td> <td>8 vCPU</td> <td>62 GB</td> <td>48 GB</td> <td>380 GB</td> <td>$1.80</td></tr> <tr><td>4x Nvidia L40S</td> <td>48 vCPU</td> <td>48 GB</td> <td>192 GB</td> <td>3200 GB</td> <td>$8.30</td></tr> <tr><td>8x Nvidia L40S</td> <td>192 vCPU</td> <td>1534 GB</td> <td>384 GB</td> <td>6500 GB</td> <td>$23.50</td></tr> <tr><td>Nvidia H100</td> <td>24 vCPU</td> <td>250 GB</td> <td>80 GB</td> <td>3000 GB</td> <td>$10.00</td></tr> <tr><td>8x Nvidia H100</td> <td>192 vCPU</td> <td>2 TB</td> <td>640 GB</td> <td>3000 GB</td> <td>coming soon</td></tr></tbody></table> <h3 class="relative group"><a id="tpu" 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" href="#tpu"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>TPU</span></h3> <table data-svelte-h="svelte-rvah2b"><thead><tr><th><strong>Hardware</strong></th> <th><strong>Accelerators</strong></th> <th><strong>Accelerator Memory</strong></th> <th><strong>RAM</strong></th> <th><strong>Hourly Price</strong></th></tr></thead> <tbody><tr><td>Google TPU v5e - 1x1</td> <td>1</td> <td>16 GB</td> <td>44 GB</td> <td>$1.38</td></tr> <tr><td>Google TPU v5e - 2x2</td> <td>4</td> <td>64 GB</td> <td>186 GB</td> <td>$5.50</td></tr> <tr><td>Google TPU v5e - 2x4</td> <td>8</td> <td>128 GB</td> <td>380 GB</td> <td>$11.00</td></tr></tbody></table> <h2 class="relative group"><a id="configure-hardware-programmatically" 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" href="#configure-hardware-programmatically"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>Configure hardware programmatically</span></h2> <p data-svelte-h="svelte-hd4ipt">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.</p> <h2 class="relative group"><a id="frameworks" 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" href="#frameworks"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>Framework specific requirements</span></h2> <p data-svelte-h="svelte-wzbx3d">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.</p> <h3 class="relative group"><a id="pytorch" 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" href="#pytorch"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>PyTorch</span></h3> <p data-svelte-h="svelte-11wbw9n">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:</p> <div class="code-block relative"><div class="absolute top-2.5 right-4"><button class="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none transition duration-200 ease-in-out opacity-0 mx-0.5 text-gray-600 " title="code excerpt" type="button"><svg class="" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg> <div class="absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow left-1/2 top-full transform -translate-x-1/2 translate-y-2 opacity-0"><div class="absolute bottom-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-black border-4 border-t-0" style="border-left-color: transparent; border-right-color: transparent; "></div> Copied</div></button></div> <pre class=""><!-- HTML_TAG_START -->--extra-index-url https:<span class="hljs-regexp">//</span>download.pytorch.org<span class="hljs-regexp">/whl/</span>cu113 torch<!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-1xa4f2l">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:</p> <div class="code-block relative"><div class="absolute top-2.5 right-4"><button class="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none transition duration-200 ease-in-out opacity-0 mx-0.5 text-gray-600 " title="code excerpt" type="button"><svg class="" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg> <div class="absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow left-1/2 top-full transform -translate-x-1/2 translate-y-2 opacity-0"><div class="absolute bottom-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-black border-4 border-t-0" style="border-left-color: transparent; border-right-color: transparent; "></div> Copied</div></button></div> <pre class=""><!-- HTML_TAG_START --><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><!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-hlysi2">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:</p> <div class="code-block relative"><div class="absolute top-2.5 right-4"><button class="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none transition duration-200 ease-in-out opacity-0 mx-0.5 text-gray-600 " title="code excerpt" type="button"><svg class="" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg> <div class="absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow left-1/2 top-full transform -translate-x-1/2 translate-y-2 opacity-0"><div class="absolute bottom-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-black border-4 border-t-0" style="border-left-color: transparent; border-right-color: transparent; "></div> Copied</div></button></div> <pre class=""><!-- HTML_TAG_START -->model = load_pytorch_model() model = model.to(<span class="hljs-string">&quot;cuda&quot;</span>)<!-- HTML_TAG_END --></pre></div> <h3 class="relative group"><a id="jax" 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" href="#jax"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>JAX</span></h3> <p data-svelte-h="svelte-pcmtzq">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:</p> <div class="code-block relative"><div class="absolute top-2.5 right-4"><button class="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none transition duration-200 ease-in-out opacity-0 mx-0.5 text-gray-600 " title="code excerpt" type="button"><svg class="" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg> <div class="absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow left-1/2 top-full transform -translate-x-1/2 translate-y-2 opacity-0"><div class="absolute bottom-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-black border-4 border-t-0" style="border-left-color: transparent; border-right-color: transparent; "></div> Copied</div></button></div> <pre class=""><!-- HTML_TAG_START -->-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<!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-yvyw72">After that, you can verify the installation by printing the output from the following code and checking it in your Space logs.</p> <div class="code-block relative"><div class="absolute top-2.5 right-4"><button class="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none transition duration-200 ease-in-out opacity-0 mx-0.5 text-gray-600 " title="code excerpt" type="button"><svg class="" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg> <div class="absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow left-1/2 top-full transform -translate-x-1/2 translate-y-2 opacity-0"><div class="absolute bottom-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-black border-4 border-t-0" style="border-left-color: transparent; border-right-color: transparent; "></div> Copied</div></button></div> <pre class=""><!-- HTML_TAG_START --><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><!-- HTML_TAG_END --></pre></div> <h3 class="relative group"><a id="tensorflow" 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" href="#tensorflow"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>Tensorflow</span></h3> <p data-svelte-h="svelte-ibx2cu">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.</p> <div class="code-block relative"><div class="absolute top-2.5 right-4"><button class="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none transition duration-200 ease-in-out opacity-0 mx-0.5 text-gray-600 " title="code excerpt" type="button"><svg class="" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg> <div class="absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow left-1/2 top-full transform -translate-x-1/2 translate-y-2 opacity-0"><div class="absolute bottom-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-black border-4 border-t-0" style="border-left-color: transparent; border-right-color: transparent; "></div> Copied</div></button></div> <pre class=""><!-- HTML_TAG_START --><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><!-- HTML_TAG_END --></pre></div> <h2 class="relative group"><a id="billing" 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" href="#billing"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>Billing</span></h2> <p data-svelte-h="svelte-1waltjy">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.</p> <p data-svelte-h="svelte-be6k8f">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.</p> <p data-svelte-h="svelte-1gpnuli">If a running Space starts to fail, it will be automatically suspended and the billing will stop.</p> <p data-svelte-h="svelte-e3ljnh">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.</p> <p data-svelte-h="svelte-a71shw">Additional information about billing can be found in the <a href="./billing">dedicated Hub-wide section</a>.</p> <h3 class="relative group"><a id="community-gpu-grants" 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" href="#community-gpu-grants"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>Community GPU Grants</span></h3> <p data-svelte-h="svelte-1y4zyk2">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”:</p> <p data-svelte-h="svelte-pjbwz8"><img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/ask-for-community-grant.png" alt="Community GPU Grant"></p> <h2 class="relative group"><a id="sleep-time" 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" href="#sleep-time"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>Set a custom sleep time</span></h2> <p data-svelte-h="svelte-crnlvc">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.</p> <p data-svelte-h="svelte-1639dte">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.</p> <p data-svelte-h="svelte-1obgmq7">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.</p> <p data-svelte-h="svelte-1p9yxd0">The following interface will then be available in your Spaces hardware settings:</p> <div class="flex justify-center" data-svelte-h="svelte-180o3b"><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"></div> <p data-svelte-h="svelte-k0x3k1">The following options are available:</p> <div class="flex justify-center" data-svelte-h="svelte-19ohzoj"><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"></div> <h2 class="relative group"><a id="pause" 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" href="#pause"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>Pausing a Space</span></h2> <p data-svelte-h="svelte-vhdjt1">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.</p> <a class="!text-gray-400 !no-underline text-sm flex items-center not-prose mt-4" href="https://github.com/huggingface/hub-docs/blob/main/docs/hub/spaces-gpus.md" target="_blank"><span data-svelte-h="svelte-1kd6by1">&lt;</span> <span data-svelte-h="svelte-x0xyl0">&gt;</span> <span data-svelte-h="svelte-1dajgef"><span class="underline ml-1.5">Update</span> on GitHub</span></a> <p></p> <script> { __sveltekit_1m36b5r = { assets: "/docs/hub/main/en", base: "/docs/hub/main/en", env: {} }; const element = document.currentScript.parentElement; const data = [null,null]; Promise.all([ import("/docs/hub/main/en/_app/immutable/entry/start.2759ecb3.js"), import("/docs/hub/main/en/_app/immutable/entry/app.838cc47c.js") ]).then(([kit, app]) => { kit.start(app, element, { node_ids: [0, 142], data, form: null, error: null }); }); } </script> <!-- HTML_TAG_END --></div> <div class="SVELTE_HYDRATER contents" data-target="DocFooterNav" data-props="{&quot;classNames&quot;:&quot;mx-auto mt-16 flex max-w-4xl items-center pb-8 font-sans font-medium leading-6 xl:mt-32&quot;,&quot;chapterPrev&quot;:{&quot;title&quot;:&quot;Using Spaces for Organization Cards&quot;,&quot;id&quot;:&quot;spaces-organization-cards&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-organization-cards&quot;},&quot;chapterNext&quot;:{&quot;title&quot;:&quot;Spaces ZeroGPU&quot;,&quot;id&quot;:&quot;spaces-zerogpu&quot;,&quot;url&quot;:&quot;/docs/hub/spaces-zerogpu&quot;},&quot;isCourse&quot;:false,&quot;isLoggedIn&quot;:false}"><div class="mx-auto mt-16 flex max-w-4xl items-center pb-8 font-sans font-medium leading-6 xl:mt-32"><a href="/docs/hub/spaces-organization-cards" class="mr-8 flex transform items-center text-gray-600 transition-all hover:-translate-x-px hover:text-gray-900 dark:hover:text-gray-300"><span class="mr-2 translate-y-px">←</span>Using Spaces for Organization Cards</a> <a href="/docs/hub/spaces-zerogpu" class="ml-auto flex transform items-center text-right text-gray-600 transition-all hover:translate-x-px hover:text-gray-900 dark:hover:text-gray-300">Spaces ZeroGPU<span class="ml-2 translate-y-px">→</span></a></div></div></div></div> <div class="sticky top-0 self-start"><div class="SVELTE_HYDRATER contents" data-target="SubSideMenu" data-props="{&quot;chapter&quot;:{&quot;title&quot;:&quot;Using GPU Spaces&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;using-gpu-spaces&quot;,&quot;url&quot;:&quot;#using-gpu-spaces&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Hardware Specs&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;hardware-specs&quot;,&quot;url&quot;:&quot;#hardware-specs&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;CPU&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;cpu&quot;,&quot;url&quot;:&quot;#cpu&quot;,&quot;sections&quot;:[]},{&quot;title&quot;:&quot;GPU&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;gpu&quot;,&quot;url&quot;:&quot;#gpu&quot;,&quot;sections&quot;:[]},{&quot;title&quot;:&quot;TPU&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;tpu&quot;,&quot;url&quot;:&quot;#tpu&quot;,&quot;sections&quot;:[]}]},{&quot;title&quot;:&quot;Configure hardware programmatically&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;configure-hardware-programmatically&quot;,&quot;url&quot;:&quot;#configure-hardware-programmatically&quot;,&quot;sections&quot;:[]},{&quot;title&quot;:&quot;Framework specific requirements&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;frameworks&quot;,&quot;url&quot;:&quot;#frameworks&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;PyTorch&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;pytorch&quot;,&quot;url&quot;:&quot;#pytorch&quot;,&quot;sections&quot;:[]},{&quot;title&quot;:&quot;JAX&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;jax&quot;,&quot;url&quot;:&quot;#jax&quot;,&quot;sections&quot;:[]},{&quot;title&quot;:&quot;Tensorflow&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;tensorflow&quot;,&quot;url&quot;:&quot;#tensorflow&quot;,&quot;sections&quot;:[]}]},{&quot;title&quot;:&quot;Billing&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;billing&quot;,&quot;url&quot;:&quot;#billing&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Community GPU Grants&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;community-gpu-grants&quot;,&quot;url&quot;:&quot;#community-gpu-grants&quot;,&quot;sections&quot;:[]}]},{&quot;title&quot;:&quot;Set a custom sleep time&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;sleep-time&quot;,&quot;url&quot;:&quot;#sleep-time&quot;,&quot;sections&quot;:[]},{&quot;title&quot;:&quot;Pausing a Space&quot;,&quot;isExpanded&quot;:false,&quot;id&quot;:&quot;pause&quot;,&quot;url&quot;:&quot;#pause&quot;,&quot;sections&quot;:[]}]}}"> <nav class="hidden h-dvh w-[270px] flex-none flex-col space-y-3 overflow-y-auto break-words border-l pb-16 pl-6 pr-10 pt-24 text-sm lg:flex 2xl:w-[305px]"> <a href="#using-gpu-spaces" class=" text-gray-400 transform hover:translate-x-px hover:text-gray-700 dark:hover:text-gray-300" id="nav-using-gpu-spaces"><!-- HTML_TAG_START --><wbr>Using GP<wbr>U <wbr>Spaces<!-- HTML_TAG_END --></a> <a href="#hardware-specs" class="pl-4 text-gray-400 transform hover:translate-x-px hover:text-gray-700 dark:hover:text-gray-300" id="nav-hardware-specs"><!-- HTML_TAG_START --><wbr>Hardware <wbr>Specs<!-- HTML_TAG_END --></a> <a href="#cpu" class="pl-8 text-gray-400 transform hover:translate-x-px hover:text-gray-700 dark:hover:text-gray-300" id="nav-cpu"><!-- HTML_TAG_START -->CPU<!-- HTML_TAG_END --></a> <a href="#gpu" class="pl-8 text-gray-400 transform hover:translate-x-px hover:text-gray-700 dark:hover:text-gray-300" id="nav-gpu"><!-- HTML_TAG_START -->GPU<!-- HTML_TAG_END --></a> <a href="#tpu" class="pl-8 text-gray-400 transform hover:translate-x-px hover:text-gray-700 dark:hover:text-gray-300" id="nav-tpu"><!-- HTML_TAG_START -->TPU<!-- HTML_TAG_END --></a> <a href="#configure-hardware-programmatically" class="pl-4 text-gray-400 transform hover:translate-x-px hover:text-gray-700 dark:hover:text-gray-300" id="nav-configure-hardware-programmatically"><!-- HTML_TAG_START --><wbr>Configure hardware programmatically<!-- HTML_TAG_END --></a> <a href="#frameworks" class="pl-4 text-gray-400 transform hover:translate-x-px hover:text-gray-700 dark:hover:text-gray-300" id="nav-frameworks"><!-- HTML_TAG_START --><wbr>Framework specific requirements<!-- HTML_TAG_END --></a> <a href="#pytorch" class="pl-8 text-gray-400 transform hover:translate-x-px hover:text-gray-700 dark:hover:text-gray-300" id="nav-pytorch"><!-- HTML_TAG_START --><wbr>Py<wbr>Torch<!-- HTML_TAG_END --></a> <a href="#jax" class="pl-8 text-gray-400 transform hover:translate-x-px hover:text-gray-700 dark:hover:text-gray-300" id="nav-jax"><!-- HTML_TAG_START -->JAX<!-- HTML_TAG_END --></a> <a href="#tensorflow" class="pl-8 text-gray-400 transform hover:translate-x-px hover:text-gray-700 dark:hover:text-gray-300" id="nav-tensorflow"><!-- HTML_TAG_START --><wbr>Tensorflow<!-- HTML_TAG_END --></a> <a href="#billing" class="pl-4 text-gray-400 transform hover:translate-x-px hover:text-gray-700 dark:hover:text-gray-300" id="nav-billing"><!-- HTML_TAG_START --><wbr>Billing<!-- HTML_TAG_END --></a> <a href="#community-gpu-grants" class="pl-8 text-gray-400 transform hover:translate-x-px hover:text-gray-700 dark:hover:text-gray-300" id="nav-community-gpu-grants"><!-- HTML_TAG_START --><wbr>Community GP<wbr>U <wbr>Grants<!-- HTML_TAG_END --></a> <a href="#sleep-time" class="pl-4 text-gray-400 transform hover:translate-x-px hover:text-gray-700 dark:hover:text-gray-300" id="nav-sleep-time"><!-- HTML_TAG_START --><wbr>Set a custom sleep time<!-- HTML_TAG_END --></a> <a href="#pause" class="pl-4 text-gray-400 transform hover:translate-x-px hover:text-gray-700 dark:hover:text-gray-300" id="nav-pause"><!-- HTML_TAG_START --><wbr>Pausing a <wbr>Space<!-- HTML_TAG_END --></a> </nav></div></div></div> <div id="doc-footer"></div></main> </div> <script> import("\/front\/build\/kube-a5b3b1c\/index.js"); window.moonSha = "kube-a5b3b1c\/"; window.__hf_deferred = {}; </script> <!-- Stripe --> <script> if (["hf.co", "huggingface.co"].includes(window.location.hostname)) { const script = document.createElement("script"); script.src = "https://js.stripe.com/v3/"; script.async = true; document.head.appendChild(script); } </script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10