Buckets:
| <meta charset="utf-8" /><meta name="hf:doc:metadata" content="{"title":"जल्दी शुरू","local":"जलद-शर","sections":[{"title":"इंस्टालेशन","local":"इसटलशन","sections":[],"depth":2},{"title":"फ़ाइलें डाउनलोड करें","local":"फइल-डउनलड-कर","sections":[],"depth":2},{"title":"Login","local":"login","sections":[],"depth":2},{"title":"एक कोष बनाये","local":"एक-कष-बनय","sections":[],"depth":2},{"title":"फाइलें अपलोड करें","local":"फइल-अपलड-कर","sections":[],"depth":2},{"title":"अगले कदम","local":"अगल-कदम","sections":[],"depth":2}],"depth":1}"> | |
| <link href="/docs/huggingface_hub/main/hi/_app/immutable/assets/0.e3b0c442.css" rel="modulepreload"> | |
| <link rel="modulepreload" href="/docs/huggingface_hub/main/hi/_app/immutable/entry/start.30772c07.js"> | |
| <link rel="modulepreload" href="/docs/huggingface_hub/main/hi/_app/immutable/chunks/scheduler.b108d059.js"> | |
| <link rel="modulepreload" href="/docs/huggingface_hub/main/hi/_app/immutable/chunks/singletons.f4135759.js"> | |
| <link rel="modulepreload" href="/docs/huggingface_hub/main/hi/_app/immutable/chunks/paths.0ca36782.js"> | |
| <link rel="modulepreload" href="/docs/huggingface_hub/main/hi/_app/immutable/entry/app.ad1a52dd.js"> | |
| <link rel="modulepreload" href="/docs/huggingface_hub/main/hi/_app/immutable/chunks/index.008de539.js"> | |
| <link rel="modulepreload" href="/docs/huggingface_hub/main/hi/_app/immutable/nodes/0.8cc1c599.js"> | |
| <link rel="modulepreload" href="/docs/huggingface_hub/main/hi/_app/immutable/nodes/4.f3040588.js"> | |
| <link rel="modulepreload" href="/docs/huggingface_hub/main/hi/_app/immutable/chunks/CodeBlock.3968c746.js"> | |
| <link rel="modulepreload" href="/docs/huggingface_hub/main/hi/_app/immutable/chunks/EditOnGithub.d1c48e3d.js"><!-- HEAD_svelte-u9bgzb_START --><meta name="hf:doc:metadata" content="{"title":"जल्दी शुरू","local":"जलद-शर","sections":[{"title":"इंस्टालेशन","local":"इसटलशन","sections":[],"depth":2},{"title":"फ़ाइलें डाउनलोड करें","local":"फइल-डउनलड-कर","sections":[],"depth":2},{"title":"Login","local":"login","sections":[],"depth":2},{"title":"एक कोष बनाये","local":"एक-कष-बनय","sections":[],"depth":2},{"title":"फाइलें अपलोड करें","local":"फइल-अपलड-कर","sections":[],"depth":2},{"title":"अगले कदम","local":"अगल-कदम","sections":[],"depth":2}],"depth":1}"><!-- HEAD_svelte-u9bgzb_END --> <p></p> <h1 class="relative group"><a id="जलद-शर" 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="#जलद-शर"><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>जल्दी शुरू</span></h1> <p data-svelte-h="svelte-8aggz7"><a href="https://huggingface.co/" rel="nofollow">Hugging Face Hub</a> मशीन लर्निंग साझा करने के लिए उपयुक्त जगह है | |
| मॉडल, डेमो, डेटासेट और मेट्रिक्स। <code>huggingface_hub</code> लाइब्रेरी आपको बातचीत करने में मदद करती है | |
| अपने विकास परिवेश को छोड़े बिना हब। आप बना और प्रबंधित कर सकते हैं | |
| रिपॉजिटरी आसानी से, फ़ाइलें डाउनलोड और अपलोड करें, और उपयोगी मॉडल और डेटासेट प्राप्त करें | |
| हब से मेटाडेटा.</p> <h2 class="relative group"><a id="इसटलशन" 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="#इसटलशन"><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>इंस्टालेशन</span></h2> <p data-svelte-h="svelte-n899jm">आरंभ करने के लिए, <code>huggingface_hub</code> लाइब्रेरी स्थापित करें:</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 -->pip install --upgrade huggingface_hub<!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-eh3puu">अधिक विवरण के लिए, <a href="%E0%A4%87%E0%A4%82%E0%A4%B8%E0%A5%8D%E0%A4%9F%E0%A5%89%E0%A4%B2%E0%A5%87%E0%A4%B6%E0%A4%A8">installation</a> गाइड देखें।</p> <h2 class="relative group"><a id="फइल-डउनलड-कर" 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="#फइल-डउनलड-कर"><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>फ़ाइलें डाउनलोड करें</span></h2> <p data-svelte-h="svelte-tl472o">हब पर रिपोजिटरीज़ गिट संस्करण नियंत्रित हैं, और उपयोगकर्ता एक फ़ाइल डाउनलोड कर सकते हैं | |
| या संपूर्ण भंडार. आप फ़ाइलें डाउनलोड करने के लिए <code>hf_hub_download()</code> फ़ंक्शन का उपयोग कर सकते हैं। | |
| यह फ़ंक्शन आपकी स्थानीय डिस्क पर एक फ़ाइल को डाउनलोड और कैश करेगा। अगली बार जब तुम्हें जरूरत पड़े | |
| वह फ़ाइल, यह आपके कैश से लोड होगी, इसलिए आपको इसे दोबारा डाउनलोड करने की आवश्यकता नहीं है।</p> <p data-svelte-h="svelte-183fg55">आपको उस फ़ाइल की रिपोजिटरी आईडी और फ़ाइल नाम की आवश्यकता होगी जिसे आप डाउनलोड करना चाहते हैं। के लिए | |
| उदाहरण के लिए, <a href="https://huggingface.co/google/pegasus-xsum" rel="nofollow">Pegasus</a> मॉडल डाउनलोड करने के लिए | |
| विन्यास फाइल:</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-meta">>>> </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> hf_hub_download | |
| <span class="hljs-meta">>>> </span>hf_hub_download(repo_id=<span class="hljs-string">"google/pegasus-xsum"</span>, filename=<span class="hljs-string">"config.json"</span>)<!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-1j1y2e5">फ़ाइल का एक विशिष्ट संस्करण डाउनलोड करने के लिए, निर्दिष्ट करने के लिए <code>revision</code> पैरामीटर का उपयोग करें | |
| शाखा का नाम, टैग, या कमिट हैश। यदि आप कमिट हैश का उपयोग करना चुनते हैं, तो यह अवश्य होना चाहिए | |
| छोटे 7-वर्ण कमिट हैश के बजाय पूर्ण-लंबाई हैश:</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-meta">>>> </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> hf_hub_download | |
| <span class="hljs-meta">>>> </span>hf_hub_download( | |
| <span class="hljs-meta">... </span> repo_id=<span class="hljs-string">"google/pegasus-xsum"</span>, | |
| <span class="hljs-meta">... </span> filename=<span class="hljs-string">"config.json"</span>, | |
| <span class="hljs-meta">... </span> revision=<span class="hljs-string">"4d33b01d79672f27f001f6abade33f22d993b151"</span> | |
| <span class="hljs-meta">... </span>)<!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-87trix">अधिक विवरण और विकल्पों के लिए, <code>hf_hub_download()</code> के लिए एपीआई संदर्भ देखें।</p> <h2 class="relative group"><a id="login" 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="#login"><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>Login</span></h2> <p data-svelte-h="svelte-mo1y6u">कई मामलों में, आपको बातचीत करने के लिए हगिंग फेस खाते से लॉग इन करना होगा | |
| हब: निजी रिपो डाउनलोड करें, फ़ाइलें अपलोड करें, पीआर बनाएं,… | |
| <a href="https://huggingface.co/join" rel="nofollow">एक खाता बनाएं</a> यदि आपके पास पहले से कोई खाता नहीं है, और फिर साइन इन करें | |
| अपना <a href="https://huggingface.co/docs/hub/security-tokens" rel="nofollow">User Access Token</a> प्राप्त करने के लिए | |
| आपका <a href="https://huggingface.co/settings/tokens" rel="nofollow">सेटिंग्स पेज</a>। यूजर एक्सेस टोकन है | |
| हब को आपकी पहचान प्रमाणित करने के लिए उपयोग किया जाता है।</p> <p data-svelte-h="svelte-19ochpx">एक बार जब आपके पास अपना उपयोगकर्ता एक्सेस टोकन हो, तो अपने टर्मिनल में निम्नलिखित कमांड चलाएँ:</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 -->huggingface-cli login | |
| <span class="hljs-comment"># or using an environment variable</span> | |
| huggingface-cli login --token <span class="hljs-variable">$HUGGINGFACE_TOKEN</span><!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-13dsoag">वैकल्पिक रूप से, आप किसी नोटबुक या स्क्रिप्ट में <code>लॉगिन</code> का उपयोग करके प्रोग्रामेटिक रूप से लॉगिन कर सकते हैं:</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-meta">>>> </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> login | |
| <span class="hljs-meta">>>> </span>login()<!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-1b5tlrp">सीधे अपना टोकन दर्ज करने के लिए कहे बिना प्रोग्रामेटिक रूप से लॉगिन करना भी संभव है | |
| टोकन को <code>लॉगिन</code> जैसे `लॉगिन(टोकन=‘hf_xxx”) पास करना। अगर आप भी ऐसा करते हैं तो सावधान हो जाएं | |
| अपना स्रोत कोड साझा करना. इसके बजाय टोकन को सुरक्षित वॉल्ट से लोड करना सबसे अच्छा अभ्यास है | |
| इसे अपने कोडबेस/नोटबुक में स्पष्ट रूप से सहेजने का।</p> <p data-svelte-h="svelte-qjj08q">आप एक समय में केवल 1 खाते में ही लॉग इन हो सकते हैं। यदि आप अपनी मशीन को किसी नए खाते में लॉगिन करते हैं, तो आप लॉग आउट हो जाएंगे | |
| पिछले से. <code>huggingface-cli whoami</code> कमांड के साथ हमेशा सुनिश्चित करें कि आप किस खाते का उपयोग कर रहे हैं। | |
| यदि आप एक ही स्क्रिप्ट में कई खातों को संभालना चाहते हैं, तो आप प्रत्येक विधि को कॉल करते समय अपना टोकन प्रदान कर सकते हैं। यह | |
| यदि आप अपनी मशीन पर कोई टोकन संग्रहीत नहीं करना चाहते हैं तो यह भी उपयोगी है।</p> <div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400"><p data-svelte-h="svelte-1lc80pm">एक बार जब आप लॉग इन हो जाते हैं, तो हब के सभी अनुरोध - यहां तक कि वे विधियां जिनके लिए प्रमाणीकरण की आवश्यकता नहीं होती है - आपका उपयोग करेंगे | |
| डिफ़ॉल्ट रूप से एक्सेस टोकन। यदि आप अपने टोकन के अंतर्निहित उपयोग को अक्षम करना चाहते हैं, तो आपको सेट करना चाहिए | |
| <code>HF_HUB_DISABLE_IMPLICIT_TOKEN</code> पर्यावरण चर।</p></div> <h2 class="relative group"><a id="एक-कष-बनय" 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="#एक-कष-बनय"><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>एक कोष बनाये</span></h2> <p data-svelte-h="svelte-1efctyk">एक बार जब आप पंजीकृत और लॉग इन हो जाएं, तो <code>create_repo()</code> के साथ एक रिपॉजिटरी बनाएं | |
| समारोह:</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-meta">>>> </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi | |
| <span class="hljs-meta">>>> </span>api = HfApi() | |
| <span class="hljs-meta">>>> </span>api.create_repo(repo_id=<span class="hljs-string">"super-cool-model"</span>)<!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-qsxnkd">आपके कोष को निजी बनाएं</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-meta">>>> </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi | |
| <span class="hljs-meta">>>> </span>api = HfApi() | |
| <span class="hljs-meta">>>> </span>api.create_repo(repo_id=<span class="hljs-string">"super-cool-model"</span>, private=<span class="hljs-literal">True</span>)<!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-4h6vx2">निजी भंडार आपके अलावा किसी को दिखाई नहीं देंगे।</p> <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"><p data-svelte-h="svelte-fp3x3q">रिपोजिटरी बनाने या सामग्री को हब पर भेजने के लिए, आपको उपयोगकर्ता पहुंच प्रदान करनी होगी | |
| टोकन जिसमें <code>लिखने</code> की अनुमति है। बनाते समय आप अनुमति चुन सकते हैं | |
| आपके <a href="https://huggingface.co/settings/tokens" rel="nofollow">सेटिंग्स पेज</a> में टोकन।</p></div> <h2 class="relative group"><a id="फइल-अपलड-कर" 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="#फइल-अपलड-कर"><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>फाइलें अपलोड करें</span></h2> <p data-svelte-h="svelte-1qi5pn">अपनी नव निर्मित रिपॉजिटरी में फ़ाइल जोड़ने के लिए <code>upload_file()</code> फ़ंक्शन का उपयोग करें। आप | |
| निर्दिष्ट करने की आवश्यकता है:</p> <ol data-svelte-h="svelte-c42tm6"><li>अपलोड करने के लिए फ़ाइल का पथ.</li> <li>रिपोजिटरी में फ़ाइल का पथ.</li> <li>जहां आप फ़ाइल जोड़ना चाहते हैं उसकी रिपॉजिटरी आईडी।</li></ol> <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-meta">>>> </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi | |
| <span class="hljs-meta">>>> </span>api = HfApi() | |
| <span class="hljs-meta">>>> </span>api.upload_file( | |
| <span class="hljs-meta">... </span> path_or_fileobj=<span class="hljs-string">"/home/lysandre/dummy-test/README.md"</span>, | |
| <span class="hljs-meta">... </span> path_in_repo=<span class="hljs-string">"README.md"</span>, | |
| <span class="hljs-meta">... </span> repo_id=<span class="hljs-string">"lysandre/test-model"</span>, | |
| <span class="hljs-meta">... </span>)<!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-asvsfs">एक समय में एक से अधिक फ़ाइल अपलोड करने के लिए, <a href="./guides/upload">अपलोड</a> मार्गदर्शिका पर एक नज़र डालें | |
| जो आपको फ़ाइलें अपलोड करने के कई तरीकों से परिचित कराएगा (git के साथ या उसके बिना)।</p> <h2 class="relative group"><a id="अगल-कदम" 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="#अगल-कदम"><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>अगले कदम</span></h2> <p data-svelte-h="svelte-kdjtcd"><code>हगिंगफेस_हब</code> लाइब्रेरी उपयोगकर्ताओं को हब के साथ बातचीत करने का एक आसान तरीका प्रदान करती है | |
| पायथन के साथ. इस बारे में अधिक जानने के लिए कि आप अपनी फ़ाइलों और रिपॉजिटरी को कैसे प्रबंधित कर सकते हैं | |
| हब, हम निम्नलिखित के लिए हमारी <a href="./guides/%E0%A4%85%E0%A4%B5%E0%A4%B2%E0%A5%8B%E0%A4%95%E0%A4%A8">कैसे करें मार्गदर्शिकाएं</a> पढ़ने की सलाह देते हैं:</p> <ul data-svelte-h="svelte-h120b1"><li><a href="./guides/repository">अपना भंडार प्रबंधित करें</a>।</li> <li>हब से <a href="./guides/download">डाउनलोड</a> फ़ाइलें।</li> <li>हब पर <a href="./guides/upload">अपलोड</a> फ़ाइलें।</li> <li>अपने इच्छित मॉडल या डेटासेट के लिए <a href="./guides/search">हब खोजें</a>।</li> <li>तेज अनुमान के लिए <a href="./guides/%E0%A4%85%E0%A4%A8%E0%A5%81%E0%A4%AE%E0%A4%BE%E0%A4%A8">अनुमान एपीआई तक पहुंचें</a>।</li></ul> <a class="!text-gray-400 !no-underline text-sm flex items-center not-prose mt-4" href="https://github.com/huggingface/huggingface_hub/blob/main/docs/source/hi/quick-start.md" target="_blank"><span data-svelte-h="svelte-1kd6by1"><</span> <span data-svelte-h="svelte-x0xyl0">></span> <span data-svelte-h="svelte-1dajgef"><span class="underline ml-1.5">Update</span> on GitHub</span></a> <p></p> | |
| <script> | |
| { | |
| __sveltekit_7ga7ub = { | |
| assets: "/docs/huggingface_hub/main/hi", | |
| base: "/docs/huggingface_hub/main/hi", | |
| env: {} | |
| }; | |
| const element = document.currentScript.parentElement; | |
| const data = [null,null]; | |
| Promise.all([ | |
| import("/docs/huggingface_hub/main/hi/_app/immutable/entry/start.30772c07.js"), | |
| import("/docs/huggingface_hub/main/hi/_app/immutable/entry/app.ad1a52dd.js") | |
| ]).then(([kit, app]) => { | |
| kit.start(app, element, { | |
| node_ids: [0, 4], | |
| data, | |
| form: null, | |
| error: null | |
| }); | |
| }); | |
| } | |
| </script> | |
Xet Storage Details
- Size:
- 37.4 kB
- Xet hash:
- a2a2d246fb6541fc667816d5855dbd66cfb44fb47cefe7f940127737719289fa
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.