Buckets:
| <meta charset="utf-8" /><meta name="hf:doc:metadata" content="{"title":"स्थापना","local":"सथपन","sections":[{"title":"पिप के साथ स्थापित करें","local":"पप-क-सथ-सथपत-कर","sections":[{"title":"वैकल्पिक निर्भरताएँ स्थापित करें","local":"वकलपक-नरभरतए-सथपत-कर","sections":[],"depth":3},{"title":"स्रोत से इंस्टॉल करें","local":"सरत-स-इसटल-कर","sections":[],"depth":3},{"title":"संपादन योग्य इंस्टॉल","local":"सपदन-यगय-इसटल","sections":[],"depth":3}],"depth":2},{"title":"कोंडा के साथ स्थापित करें","local":"कड-क-सथ-सथपत-कर","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/v0.25.0.rc0/hi/_app/immutable/assets/0.e3b0c442.css" rel="modulepreload"> | |
| <link rel="modulepreload" href="/docs/huggingface_hub/v0.25.0.rc0/hi/_app/immutable/entry/start.8a521910.js"> | |
| <link rel="modulepreload" href="/docs/huggingface_hub/v0.25.0.rc0/hi/_app/immutable/chunks/scheduler.b108d059.js"> | |
| <link rel="modulepreload" href="/docs/huggingface_hub/v0.25.0.rc0/hi/_app/immutable/chunks/singletons.96228e37.js"> | |
| <link rel="modulepreload" href="/docs/huggingface_hub/v0.25.0.rc0/hi/_app/immutable/chunks/paths.646c4f7c.js"> | |
| <link rel="modulepreload" href="/docs/huggingface_hub/v0.25.0.rc0/hi/_app/immutable/entry/app.095aa091.js"> | |
| <link rel="modulepreload" href="/docs/huggingface_hub/v0.25.0.rc0/hi/_app/immutable/chunks/index.008de539.js"> | |
| <link rel="modulepreload" href="/docs/huggingface_hub/v0.25.0.rc0/hi/_app/immutable/nodes/0.c0fbb332.js"> | |
| <link rel="modulepreload" href="/docs/huggingface_hub/v0.25.0.rc0/hi/_app/immutable/nodes/3.b10fedc9.js"> | |
| <link rel="modulepreload" href="/docs/huggingface_hub/v0.25.0.rc0/hi/_app/immutable/chunks/CodeBlock.3968c746.js"> | |
| <link rel="modulepreload" href="/docs/huggingface_hub/v0.25.0.rc0/hi/_app/immutable/chunks/EditOnGithub.d1c48e3d.js"><!-- HEAD_svelte-u9bgzb_START --><meta name="hf:doc:metadata" content="{"title":"स्थापना","local":"सथपन","sections":[{"title":"पिप के साथ स्थापित करें","local":"पप-क-सथ-सथपत-कर","sections":[{"title":"वैकल्पिक निर्भरताएँ स्थापित करें","local":"वकलपक-नरभरतए-सथपत-कर","sections":[],"depth":3},{"title":"स्रोत से इंस्टॉल करें","local":"सरत-स-इसटल-कर","sections":[],"depth":3},{"title":"संपादन योग्य इंस्टॉल","local":"सपदन-यगय-इसटल","sections":[],"depth":3}],"depth":2},{"title":"कोंडा के साथ स्थापित करें","local":"कड-क-सथ-सथपत-कर","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-it6iwk">आरंभ करने से पहले, आपको उपयुक्त पैकेज स्थापित करके अपना परिवेश सेटअप करना होगा।</p> <p data-svelte-h="svelte-14uqucp"><code>huggingface_hub</code> का परीक्षण <strong>Python 3.8+</strong> पर किया गया है।</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-n171mh">[आभासी वातावरण] (<a href="https://docs.python.org/3/library/venv.html" rel="nofollow">https://docs.python.org/3/library/venv.html</a>) में <code>huggingface_hub</code> इंस्टॉल करने की अत्यधिक अनुशंसा की जाती है। | |
| यदि आप पायथन आभासी वातावरण से अपरिचित हैं, तो इस [गाइड] (<a href="https://package.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/" rel="nofollow">https://package.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/</a>) पर एक नज़र डालें। | |
| एक आभासी वातावरण विभिन्न परियोजनाओं को प्रबंधित करना आसान बनाता है, और निर्भरताओं के बीच संगतता समस्याओं से बचता है।</p> <p data-svelte-h="svelte-15rufvt">अपनी प्रोजेक्ट निर्देशिका में एक वर्चुअल वातावरण बनाकर प्रारंभ करें:</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 -->python -m venv .<span class="hljs-built_in">env</span><!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-og8xd5">आभासी वातावरण सक्रिय करें. Linux और macOS पर:</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-built_in">source</span> .<span class="hljs-built_in">env</span>/bin/activate<!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-1nv1lk1">आभासी वातावरण सक्रिय करें Windows पर:</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-built_in">env</span>/Scripts/activate<!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-16y6g75">अब आप <code>huggingface_hub</code> [PyPi रजिस्ट्री से] (<a href="https://pypi.org/project/huggingface-hub/" rel="nofollow">https://pypi.org/project/huggingface-hub/</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 -->pip install --upgrade huggingface_hub<!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-udd94o">एक बार हो जाने पर, <a href="#%E0%A4%9A%E0%A5%87%E0%A4%95-%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">चेक इंस्टालेशन</a> सही ढंग से काम कर रहा है।</p> <h3 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></h3> <p data-svelte-h="svelte-1d8nfka"><code>huggingface_hub</code> की कुछ निर्भरताएं <a href="https://setuptools.pypa.io/en/latest/userguide/dependency_management.html#optional-dependencies" rel="nofollow">वैकल्पिक</a> हैं क्योंकि उन्हें <code>huggingface_hub</code> की मुख्य विशेषताओं को चलाने की आवश्यकता नहीं है। हालाँकि, यदि वैकल्पिक निर्भरताएँ स्थापित नहीं हैं तो <code>huggingface_hub</code> की कुछ सुविधाएँ उपलब्ध नहीं हो सकती हैं।</p> <p data-svelte-h="svelte-1fxa7d5">आप <code>pip</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-comment"># Install dependencies for tensorflow-specific features</span> | |
| <span class="hljs-comment"># /!\ Warning: this is not equivalent to `pip install tensorflow`</span> | |
| pip install <span class="hljs-string">'huggingface_hub[tensorflow]'</span> | |
| <span class="hljs-comment"># Install dependencies for both torch-specific and CLI-specific features.</span> | |
| pip install <span class="hljs-string">'huggingface_hub[cli,torch]'</span><!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-uco4di">यहां <code>huggingface_hub</code> में वैकल्पिक निर्भरताओं की सूची दी गई है:</p> <ul data-svelte-h="svelte-f60nbl"><li><code>cli</code>: <code>huggingface_hub</code> के लिए अधिक सुविधाजनक CLI इंटरफ़ेस प्रदान करें।</li> <li><code>fastai</code>, <code>torch</code>, <code>tensorflow</code>: फ्रेमवर्क-विशिष्ट सुविधाओं को चलाने के लिए निर्भरताएँ।</li> <li><code>dev</code>: lib में योगदान करने के लिए निर्भरताएँ। इसमें ‘परीक्षण’ (परीक्षण चलाने के लिए), ‘टाइपिंग’ (टाइप चेकर चलाने के लिए) और ‘गुणवत्ता’ (लिंटर चलाने के लिए) शामिल हैं।</li></ul> <h3 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></h3> <p data-svelte-h="svelte-zhy0qb">कुछ मामलों में, <code>huggingface_hub</code> को सीधे स्रोत से इंस्टॉल करना दिलचस्प है। | |
| यह आपको नवीनतम स्थिर संस्करण के बजाय ब्लीडिंग एज ‘मुख्य’ संस्करण का उपयोग करने की अनुमति देता है। | |
| उदाहरण के लिए, `मुख्य’ संस्करण नवीनतम विकास के साथ अद्यतन रहने के लिए उपयोगी है | |
| यदि पिछली आधिकारिक रिलीज़ के बाद से कोई बग ठीक कर दिया गया है लेकिन अभी तक कोई नई रिलीज़ जारी नहीं की गई है।</p> <p data-svelte-h="svelte-1718pdp">हालाँकि, इसका मतलब यह है कि ‘मुख्य’ संस्करण हमेशा स्थिर नहीं हो सकता है। हम इसे बनाए रखने का प्रयास करते हैं | |
| `मुख्य’ संस्करण चालू है, और अधिकांश समस्याएं आमतौर पर हल हो जाती हैं | |
| कुछ घंटों या एक दिन के भीतर. यदि आपको कोई समस्या आती है, तो कृपया एक अंक खोलें ताकि हम ऐसा कर सकें | |
| इसे और भी जल्दी ठीक करें!</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 git+https://github.com/huggingface/huggingface_hub<!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-lwpqzg">स्रोत से इंस्टॉल करते समय, आप एक विशिष्ट शाखा भी निर्दिष्ट कर सकते हैं। यह उपयोगी है यदि आप | |
| किसी नई सुविधा या नए बग-फिक्स का परीक्षण करना चाहते हैं जिसे अभी तक मर्ज नहीं किया गया है:</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 git+https://github.com/huggingface/huggingface_hub@my-feature-branch<!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-udd94o">एक बार हो जाने पर, <a href="#%E0%A4%9A%E0%A5%87%E0%A4%95-%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">चेक इंस्टालेशन</a> सही ढंग से काम कर रहा है।</p> <h3 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></h3> <p data-svelte-h="svelte-13nj77u">स्रोत से इंस्टॉल करने से आपको एक <a href="https://pip.pypa.io/en/stable/topics/local-project-installs/#editable-installs" rel="nofollow">संपादन योग्य इंस्टॉल</a> सेटअप करने की अनुमति मिलती है। | |
| यदि आप <code>huggingace_hub</code> में योगदान देने की योजना बना रहे हैं तो यह अधिक उन्नत इंस्टॉलेशन है | |
| और कोड में परिवर्तनों का परीक्षण करने की आवश्यकता है। आपको <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 --><span class="hljs-comment"># First, clone repo locally</span> | |
| git <span class="hljs-built_in">clone</span> https://github.com/huggingface/huggingface_hub.git | |
| <span class="hljs-comment"># Then, install with -e flag</span> | |
| <span class="hljs-built_in">cd</span> huggingface_hub | |
| pip install -e .<!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-1w9poh3">ये कमांड उस फ़ोल्डर को लिंक करेंगे जिसे आपने रिपॉजिटरी में क्लोन किया है और आपके पायथन लाइब्रेरी पथ। | |
| पाइथॉन अब सामान्य लाइब्रेरी पथों के अलावा आपके द्वारा क्लोन किए गए फ़ोल्डर के अंदर भी देखेगा। | |
| उदाहरण के लिए, यदि आपके पायथन पैकेज आमतौर पर <code>./.venv/lib/python3.11/site-packages/</code> में स्थापित हैं, | |
| पायथन आपके द्वारा क्लोन किए गए फ़ोल्डर <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-1t7nv56">यदि आप इससे अधिक परिचित हैं, तो आप <a href="https://anaconda.org/conda-forge/huggingface_hub" rel="nofollow">conda-forge चैनल</a> का उपयोग करके <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 -->conda install -c conda-forge huggingface_hub<!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-udd94o">एक बार हो जाने पर, <a href="#%E0%A4%9A%E0%A5%87%E0%A4%95-%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">चेक इंस्टालेशन</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-1v7w0bn">एक बार इंस्टॉल हो जाने पर, निम्नलिखित कमांड चलाकर जांचें कि <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 -->python -c <span class="hljs-string">"from huggingface_hub import model_info; print(model_info('gpt2'))"</span><!-- HTML_TAG_END --></pre></div> <p data-svelte-h="svelte-15bprjp">यह कमांड हब से <a href="https://huggingface.co/gpt2" rel="nofollow">gpt2</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 -->Model Name: gpt2 | |
| Tags: ['pytorch', 'tf', 'jax', 'tflite', 'rust', 'safetensors', 'gpt2', 'text-generation', 'en', 'doi:10.57967/hf/0039', 'transformers', 'exbert', 'license:mit', 'has_space'] | |
| Task: text-generation<!-- HTML_TAG_END --></pre></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-76bl3b">हर जगह अच्छे एमएल का लोकतंत्रीकरण करने के अपने लक्ष्य के साथ, हमने <code>huggingface_hub</code> का निर्माण किया | |
| क्रॉस-प्लेटफ़ॉर्म लाइब्रेरी और विशेष रूप से यूनिक्स-आधारित और विंडोज़ दोनों पर सही ढंग से काम करने के लिए | |
| सिस्टम. हालाँकि, ऐसे कुछ मामले हैं जहाँ <code>huggingface_hub</code> की कुछ सीमाएँ हैं | |
| विंडोज़ पर चलाएँ. यहां ज्ञात मुद्दों की एक विस्तृत सूची दी गई है। कृपया हमें बताएं यदि आप | |
| [जीथब पर एक मुद्दा] (<a href="https://github.com/huggingface/huggingface_hub/issues/new/choose" rel="nofollow">https://github.com/huggingface/huggingface_hub/issues/new/choose</a>) खोलकर किसी भी अज्ञात समस्या का सामना करें।</p> <ul data-svelte-h="svelte-m3t7c"><li><code>huggingface_hub</code> का कैश सिस्टम डाउनलोड की गई फ़ाइलों को कुशलतापूर्वक कैश करने के लिए सिम्लिंक पर निर्भर करता है | |
| हब से. विंडोज़ पर, आपको डेवलपर मोड सक्रिय करना होगा या व्यवस्थापक के रूप में अपनी स्क्रिप्ट चलानी होगी | |
| सिम्लिंक सक्षम करें. यदि वे सक्रिय नहीं हैं, तो कैश-सिस्टम अभी भी काम करता है लेकिन गैर-अनुकूलित तरीके से | |
| ढंग। अधिक जानकारी के लिए कृपया <a href="./guides/manage-cache#limities">कैश सीमाएँ</a> अनुभाग पढ़ें।</li> <li>हब पर फ़ाइलपथ में विशेष वर्ण हो सकते हैं (जैसे <code>"path/to?/my/file"</code>)। विंडोज़ है | |
| [विशेष वर्णों] पर अधिक प्रतिबंधात्मक(<a href="https://learn.microsoft.com/en-us/windows/win32/intl/character-sets-used-in-file-names" rel="nofollow">https://learn.microsoft.com/en-us/windows/win32/intl/character-sets-used-in-file-names</a>) | |
| जिससे विंडोज़ पर उन फ़ाइलों को डाउनलोड करना असंभव हो जाता है। उम्मीद है कि यह एक दुर्लभ मामला है. | |
| यदि आपको लगता है कि यह कोई गलती है तो कृपया रेपो मालिक से संपर्क करें या इसका पता लगाने के लिए हमसे संपर्क करें | |
| एक समाधान।</li></ul> <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-1872c1v">एक बार जब <code>huggingface_hub</code> आपकी मशीन पर ठीक से स्थापित हो जाए, तो आप चाहेंगे | |
| आरंभ करने के लिए [पर्यावरण चर कॉन्फ़िगर करें] (पैकेज<em>संदर्भ/पर्यावरण</em>चर) या [हमारे गाइडों में से एक की जांच करें] (मार्गदर्शिकाएं/अवलोकन)।</p> <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/installation.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_f5vkvo = { | |
| assets: "/docs/huggingface_hub/v0.25.0.rc0/hi", | |
| base: "/docs/huggingface_hub/v0.25.0.rc0/hi", | |
| env: {} | |
| }; | |
| const element = document.currentScript.parentElement; | |
| const data = [null,null]; | |
| Promise.all([ | |
| import("/docs/huggingface_hub/v0.25.0.rc0/hi/_app/immutable/entry/start.8a521910.js"), | |
| import("/docs/huggingface_hub/v0.25.0.rc0/hi/_app/immutable/entry/app.095aa091.js") | |
| ]).then(([kit, app]) => { | |
| kit.start(app, element, { | |
| node_ids: [0, 3], | |
| data, | |
| form: null, | |
| error: null | |
| }); | |
| }); | |
| } | |
| </script> | |
Xet Storage Details
- Size:
- 45.6 kB
- Xet hash:
- 0c33013714fab75636bda93234006701529cbe6409c54b5504a8111dfaacd934
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.