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":"ପ୍ରମାଣୀକରଣ","local":"ପରମଣକରଣ","sections":[{"title":"ଲଗ୍ଇନ୍ କମାଣ୍ଡ୍","local":"ଲଗଇନ-କମଣଡ","sections":[],"depth":3},{"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}],"depth":1}"/> | |
| <link href="/docs/huggingface_hub/main/or/_app/immutable/entry/start.gJbQ1znq.js" rel="modulepreload"> | |
| <link href="/docs/huggingface_hub/main/or/_app/immutable/chunks/C88q1U9h.js" rel="modulepreload"> | |
| <link href="/docs/huggingface_hub/main/or/_app/immutable/chunks/D2-C6oRw.js" rel="modulepreload"> | |
| <link href="/docs/huggingface_hub/main/or/_app/immutable/entry/app.B9_0bd7X.js" rel="modulepreload"> | |
| <link href="/docs/huggingface_hub/main/or/_app/immutable/chunks/DZFNMJnC.js" rel="modulepreload"> | |
| <link href="/docs/huggingface_hub/main/or/_app/immutable/chunks/CmOVgtBK.js" rel="modulepreload"> | |
| <link href="/docs/huggingface_hub/main/or/_app/immutable/chunks/DsnmJJEf.js" rel="modulepreload"> | |
| <link href="/docs/huggingface_hub/main/or/_app/immutable/chunks/BH1xZHjK.js" rel="modulepreload"> | |
| <link href="/docs/huggingface_hub/main/or/_app/immutable/nodes/0.plFeMcJV.js" rel="modulepreload"> | |
| <link href="/docs/huggingface_hub/main/or/_app/immutable/nodes/4._r96iPWw.js" rel="modulepreload"> | |
| <link href="/docs/huggingface_hub/main/or/_app/immutable/chunks/zPQIlmx-.js" rel="modulepreload"> | |
| <!--1426b4x--><meta name="hf:doc:metadata" content="{"title":"ଦ୍ରୁତ ଆରମ୍ଭ","local":"ଦରତ-ଆରମଭ","sections":[{"title":"ଇନ୍ଷ୍ଟଲେସନ୍","local":"ଇନଷଟଲସନ","sections":[],"depth":2},{"title":"ଫାଇଲ୍ଗୁଡ଼ିକ ଡାଉନଲୋଡ୍ କରନ୍ତୁ","local":"ଫଇଲଗଡକ-ଡଉନଲଡ-କରନତ","sections":[],"depth":2},{"title":"ପ୍ରମାଣୀକରଣ","local":"ପରମଣକରଣ","sections":[{"title":"ଲଗ୍ଇନ୍ କମାଣ୍ଡ୍","local":"ଲଗଇନ-କମଣଡ","sections":[],"depth":3},{"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}],"depth":1}"/><!----> | |
| <link href="/docs/huggingface_hub/main/or/_app/immutable/assets/0.tn0RQdqM.css" rel="modulepreload"> <!--[--><!--[0--><!--[--><!--[0--><!--[--><p></p> <div class="items-center shrink-0 min-w-[100px] max-sm:min-w-[50px] justify-end ml-auto flex" style="float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"><div class="inline-flex rounded-md max-sm:rounded-sm"><button class="inline-flex items-center gap-1 h-7 max-sm:h-7 px-2 max-sm:px-1.5 text-sm font-medium text-gray-800 border border-r-0 rounded-l-md max-sm:rounded-l-sm border-gray-200 bg-white hover:shadow-inner dark:border-gray-850 dark:bg-gray-950 dark:text-gray-200 dark:hover:bg-gray-800" aria-live="polite"><span class="inline-flex items-center justify-center rounded-md p-0.5 max-sm:p-0 hover:text-gray-800 dark:hover:text-gray-200"><svg class="sm:size-3.5 size-3" 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><!----></span> <span>Copy page</span></button> <button class="inline-flex items-center justify-center w-6 max-sm:w-5 h-7 max-sm:h-7 disabled:pointer-events-none text-sm text-gray-500 hover:text-gray-700 dark:hover:text-white rounded-r-md max-sm:rounded-r-sm border border-l transition border-gray-200 bg-white hover:shadow-inner dark:border-gray-850 dark:bg-gray-950 dark:text-gray-200 dark:hover:bg-gray-800" aria-haspopup="menu" aria-expanded="false" aria-label="Open copy menu"><svg class="transition-transform text-gray-400 overflow-visible sm:size-3.5 size-3 rotate-0" width="1em" height="1em" viewBox="0 0 12 7" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="currentColor"></path></svg><!----></button></div> <!--[-1--><!--]--></div><!----> <!--[0--><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 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><a href="https://huggingface.co/" rel="nofollow">Hugging Face Hub</a> ମେସିନ୍ ଲର୍ଣ୍ଣିଂ ମଡେଲ୍, ଡେମୋ, ଡାଟାସେଟ୍ ଏବଂ ମେଟ୍ରିକ୍ସ ସେୟାର କରିବା ପାଇଁ ସବୁଠାରୁ ଉପଯୁକ୍ତ ସ୍ଥାନ। <code>huggingface_hub</code> ଲାଇବ୍ରେରୀ ଆପଣଙ୍କୁ ନିଜ ବିକାଶ ପରିବେଶ ଛାଡ଼ିବା ବିନା ହବ୍ ସହିତ ଇଣ୍ଟରାକ୍ଟ କରିବାରେ ସାହାଯ୍ୟ କରେ। | |
| ଆପଣ ସହଜରେ ରିପୋଜିଟୋରି ତିଆରି ଓ ପରିଚାଳନା କରିପାରିବେ, ଫାଇଲ୍ଗୁଡ଼ିକୁ ଡାଉନଲୋଡ୍ ଏବଂ ଅପଲୋଡ୍ କରିପାରିବେ, ଏବଂ ହବ୍ରୁ ଉପଯୋଗୀ ମଡେଲ୍ ଓ ଡାଟାସେଟ୍ ମେଟାଡାଟା ପ୍ରାପ୍ତ କରିପାରିବେ।</p> <!--[1--><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 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>ଆରମ୍ଭ କରିବା ପାଇଁ, <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 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="language-bash "><!---->pip install --upgrade huggingface_hub<!----></pre></div><!----> <p>ଅଧିକ ବିବରଣୀ ପାଇଁ, <a href="%E0%AC%87%E0%AC%A8%E0%AD%8D%E2%80%8C%E0%AC%B7%E0%AD%8D%E0%AC%9F%E0%AC%B2%E0%AD%87%E0%AC%B8%E0%AC%A8%E0%AD%8D">installation</a> ଗାଇଡ୍ଟି ଦେଖନ୍ତୁ।</p> <!--[1--><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 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>ହବ୍ରେ ଥିବା ରିପୋଜିଟୋରିଗୁଡ଼ିକ <code>git</code> ଦ୍ୱାରା ଭର୍ସନ୍-ନିୟନ୍ତ୍ରିତ, ଏବଂ ବ୍ୟବହାରକାରୀମାନେ ଗୋଟିଏ ଫାଇଲ୍ କିମ୍ବା ସମ୍ପୂର୍ଣ୍ଣ ରିପୋଜିଟୋରି ଡାଉନଲୋଡ୍ କରିପାରିବେ। | |
| ଫାଇଲ୍ଗୁଡ଼ିକୁ ଡାଉନଲୋଡ୍ କରିବା ପାଇଁ ଆପଣ <code>hf_hub_download()</code> ଫଙ୍କସନ୍ ବ୍ୟବହାର କରିପାରିବେ। | |
| ଏହି ଫଙ୍କସନ୍ ଆପଣଙ୍କ ସ୍ଥାନୀୟ ଡିସ୍କକୁ ଗୋଟିଏ ଫାଇଲ୍ ଡାଉନଲୋଡ୍ କରି ତାହାକୁ <code>cache</code> କରିବ। ପରବର୍ତ୍ତୀ ଥର ଆପଣଙ୍କୁ ସେହି ଫାଇଲ୍ର ଆବଶ୍ୟକତା ହେଲେ, | |
| ତାହା ଆପଣଙ୍କ <code>cache</code>ରୁ ଲୋଡ୍ ହେବ; ତେଣୁ ଆପଣଙ୍କୁ ଏହାକୁ ପୁଣିଥରେ ଡାଉନଲୋଡ୍ କରିବାକୁ ପଡ଼ିବ ନାହିଁ।</p> <p>ଆପଣ ଡାଉନଲୋଡ୍ କରିବାକୁ ଚାହୁଁଥିବା ଫାଇଲ୍ର ରିପୋଜିଟୋରି ID ଏବଂ ଫାଇଲ୍ର ନାମ ଆବଶ୍ୟକ ହେବ। | |
| ଉଦାହରଣ ସ୍ୱରୂପ, <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 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="language-py "><!----><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>)<!----></pre></div><!----> <p>ଫାଇଲ୍ର କୌଣସି ନିର୍ଦ୍ଦିଷ୍ଟ ଭର୍ସନ୍ ଡାଉନଲୋଡ୍ କରିବା ପାଇଁ, ବ୍ରାଞ୍ଚ୍ ନାମ, ଟ୍ୟାଗ୍ କିମ୍ବା କମିଟ୍ ହ୍ୟାଶ୍ ଉଲ୍ଲେଖ କରିବାକୁ <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 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="language-py "><!----><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>)<!----></pre></div><!----> <p>ଅଧିକ ବିବରଣୀ ଏବଂ ବିକଳ୍ପ ପାଇଁ, <code>hf_hub_download()</code>ର ଏପିଆଇ ସନ୍ଦର୍ଭ ଦେଖନ୍ତୁ।</p> <!--[1--><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 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>ଅନେକ ପରିସ୍ଥିତିରେ, ହବ୍ ସହିତ ଇଣ୍ଟରାକ୍ଟ କରିବା ପାଇଁ ଆପଣଙ୍କୁ ଗୋଟିଏ <code>Hugging Face</code> ଆକାଉଣ୍ଟ୍ ମାଧ୍ୟମରେ ପ୍ରମାଣୀକୃତ ହେବାକୁ ପଡ଼ିବ: | |
| ବ୍ୟକ୍ତିଗତ ରିପୋଜିଟୋରି ଡାଉନଲୋଡ୍ କରିବା, ଫାଇଲ୍ଗୁଡ଼ିକ ଅପଲୋଡ୍ କରିବା, PR ତିଆରି କରିବା,… | |
| ଆପଣଙ୍କ ପାଖରେ ପୂର୍ବରୁ କୌଣସି ଆକାଉଣ୍ଟ୍ ନଥିଲେ <a href="https://huggingface.co/join" rel="nofollow">ଗୋଟିଏ ଆକାଉଣ୍ଟ୍ ତିଆରି କରନ୍ତୁ</a>, ଏବଂ ତାପରେ ନିଜ <a href="https://huggingface.co/settings/tokens" rel="nofollow">ସେଟିଂସ୍ ପୃଷ୍ଠା</a>ରୁ <a href="https://huggingface.co/docs/hub/security-tokens" rel="nofollow">User Access Token</a> ପାଇବା ପାଇଁ ସାଇନ୍ ଇନ୍ କରନ୍ତୁ। ହବ୍ରେ ଆପଣଙ୍କ ପରିଚୟ ପ୍ରମାଣୀକରଣ କରିବା ପାଇଁ User Access Token ବ୍ୟବହାର କରାଯାଏ।</p> <blockquote class="tip"><p>ଟୋକନ୍ରେ <code>read</code> କିମ୍ବା <code>write</code> ଅନୁମତି ରହିପାରେ। ଆପଣ କୌଣସି ରିପୋଜିଟୋରି ତିଆରି କିମ୍ବା ସମ୍ପାଦନ କରିବାକୁ ଚାହୁଁଥିଲେ, ଆପଣଙ୍କ ପାଖରେ <code>write</code> ଅନୁମତି ଥିବା ଆକ୍ସେସ୍ ଟୋକନ୍ ରହିଛି କି ନାହିଁ ସୁନିଶ୍ଚିତ କରନ୍ତୁ। ଅନ୍ୟଥା, ଅଜାଣତରେ ଟୋକନ୍ ଲିକ୍ ହୋଇଗଲେ ସମ୍ଭାବ୍ୟ ବିପଦ କମାଇବା ପାଇଁ <code>read</code> ଅନୁମତି ଥିବା ଟୋକନ୍ ଜେନେରେଟ୍ କରିବା ସବୁଠାରୁ ଭଲ।</p></blockquote> <!--[2--><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 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>ପ୍ରମାଣୀକରଣ କରିବାର ସବୁଠାରୁ ସହଜ ଉପାୟ ହେଉଛି ଟୋକନ୍କୁ ନିଜ ମେସିନ୍ରେ ସେଭ୍ କରିବା। | |
| ଆପଣ <code>login()</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 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="language-bash "><!---->hf auth login<!----></pre></div><!----> <p>ଆପଣ ପୂର୍ବରୁ ଲଗ୍ଇନ୍ କରିଛନ୍ତି କି ନାହିଁ, କମାଣ୍ଡ୍ ତାହା ଜଣାଇବ ଏବଂ ଆପଣଙ୍କୁ ଟୋକନ୍ ପ୍ରଦାନ କରିବାକୁ କହିବ। ତାପରେ ଟୋକନ୍ଟିକୁ ଯାଞ୍ଚ କରାଯାଇ ଆପଣଙ୍କ <code>HF_HOME</code> ଡିରେକ୍ଟୋରିରେ—ଡିଫଲ୍ଟ ଭାବେ <code>~/.cache/huggingface/token</code>—ସେଭ୍ କରାଯାଏ। | |
| ହବ୍ ସହିତ ଇଣ୍ଟରାକ୍ଟ କରୁଥିବା ଯେକୌଣସି ସ୍କ୍ରିପ୍ଟ କିମ୍ବା ଲାଇବ୍ରେରୀ ଅନୁରୋଧ ପଠାଇବା ସମୟରେ ଏହି ଟୋକନ୍ ବ୍ୟବହାର କରିବ।</p> <p>ବିକଳ୍ପ ଭାବରେ, ଆପଣ କୌଣସି ନୋଟବୁକ୍ କିମ୍ବା ସ୍କ୍ରିପ୍ଟରେ <code>login()</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 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="language-py "><!----><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()<!----></pre></div><!----> <p>ଆପଣ ଗୋଟିଏ ସମୟରେ କେବଳ ଗୋଟିଏ ଆକାଉଣ୍ଟ୍ରେ ଲଗ୍ଇନ୍ କରିପାରିବେ। ନୂତନ ଆକାଉଣ୍ଟ୍ରେ ଲଗ୍ଇନ୍ କଲେ ଆପଣ ପୂର୍ବ ଆକାଉଣ୍ଟ୍ରୁ ସ୍ୱୟଂଚାଳିତ ଭାବେ ଲଗ୍ଆଉଟ୍ ହୋଇଯିବେ। | |
| ଆପଣଙ୍କ ବର୍ତ୍ତମାନ ସକ୍ରିୟ ଆକାଉଣ୍ଟ୍ କେଉଁଟି ତାହା ଜାଣିବା ପାଇଁ, କେବଳ <code>hf auth whoami</code> କମାଣ୍ଡ୍ ଚଲାନ୍ତୁ।</p> <blockquote class="warning"><p>ଥରେ ଲଗ୍ଇନ୍ କରିବା ପରେ, ହବ୍କୁ ପଠାଯାଉଥିବା ସମସ୍ତ ଅନୁରୋଧ—ଏପରିକି ଯେଉଁ ପଦ୍ଧତିଗୁଡ଼ିକ ପାଇଁ ପ୍ରମାଣୀକରଣ ଅନିବାର୍ଯ୍ୟ ନୁହେଁ—ଡିଫଲ୍ଟ ଭାବରେ ଆପଣଙ୍କ ଆକ୍ସେସ୍ ଟୋକନ୍ ବ୍ୟବହାର କରିବ। ଆପଣ ନିଜ ଟୋକନ୍ର ଅନ୍ତର୍ନିହିତ ବ୍ୟବହାରକୁ ଅକ୍ଷମ କରିବାକୁ ଚାହୁଁଥିଲେ, ପରିବେଶ ଭେରିଏବଲ୍ ଭାବରେ <code>HF_HUB_DISABLE_IMPLICIT_TOKEN=1</code> ସେଟ୍ କରିବାକୁ ପଡ଼ିବ। <a href="../package_reference/environment_variables#hfhubdisableimplicittoken">ସନ୍ଦର୍ଭ ଦେଖନ୍ତୁ</a>।</p></blockquote> <!--[2--><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 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>ପ୍ରତ୍ୟେକ ଟୋକନ୍ ସହିତ <code>login()</code> କମାଣ୍ଡ୍ ବ୍ୟବହାର କରି ଲଗ୍ଇନ୍ କରିବା ମାଧ୍ୟମରେ ଆପଣ ନିଜ ମେସିନ୍ରେ ଏକାଧିକ ଟୋକନ୍ ସେଭ୍ କରିପାରିବେ। ଆପଣଙ୍କୁ ଏହି ଟୋକନ୍ଗୁଡ଼ିକ ମଧ୍ୟରେ ସ୍ଥାନୀୟ ଭାବେ ସୁଇଚ୍ କରିବାକୁ ପଡ଼ିଲେ, [auth switch] କମାଣ୍ଡ୍ ବ୍ୟବହାର କରିପାରିବେ:</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 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="language-bash "><!---->hf auth switch<!----></pre></div><!----> <p>ଏହି କମାଣ୍ଡ୍ ସେଭ୍ ହୋଇଥିବା ଟୋକନ୍ଗୁଡ଼ିକର ତାଲିକାରୁ ନାମ ଅନୁସାରେ ଗୋଟିଏ ଟୋକନ୍ ବାଛିବାକୁ କହିବ। ବାଛିବା ପରେ, ଚୟନ କରାଯାଇଥିବା ଟୋକନ୍ଟି <code>_active_</code> ଟୋକନ୍ ହୋଇଯାଏ ଏବଂ ହବ୍ ସହିତ ହେଉଥିବା ସମସ୍ତ ଇଣ୍ଟରାକ୍ସନ୍ ପାଇଁ ଏହା ବ୍ୟବହୃତ ହେବ।</p> <p>ଆପଣ <code>hf auth list</code> ବ୍ୟବହାର କରି ନିଜ ମେସିନ୍ରେ ଉପଲବ୍ଧ ସମସ୍ତ ଆକ୍ସେସ୍ ଟୋକନ୍ର ତାଲିକା ଦେଖିପାରିବେ।</p> <!--[2--><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 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>ନିଜକୁ ପ୍ରମାଣୀକୃତ କରିବା ପାଇଁ ପରିବେଶ ଭେରିଏବଲ୍ <code>HF_TOKEN</code> ମଧ୍ୟ ବ୍ୟବହାର କରାଯାଇପାରେ। ଏହା ବିଶେଷକରି ଏପରି ସ୍ଥାନରେ ଉପଯୋଗୀ, ଯେଉଁଠାରେ ଆପଣ <code>HF_TOKEN</code>କୁ <a href="https://huggingface.co/docs/hub/spaces-overview#managing-secrets" rel="nofollow">Space Secret</a> ଭାବରେ ସେଟ୍ କରିପାରିବେ।</p> <blockquote class="tip"><p><strong>ନୂତନ:</strong> Google Colaboratory ଆପଣଙ୍କୁ ନିଜ ନୋଟବୁକ୍ ପାଇଁ <a href="https://twitter.com/GoogleColab/status/1719798406195867814" rel="nofollow">private keys</a> ନିର୍ଦ୍ଧାରଣ କରିବାର ସୁବିଧା ଦେଇଥାଏ। ସ୍ୱୟଂଚାଳିତ ଭାବେ ପ୍ରମାଣୀକୃତ ହେବା ପାଇଁ ଗୋଟିଏ <code>HF_TOKEN</code> ସିକ୍ରେଟ୍ ନିର୍ଦ୍ଧାରଣ କରନ୍ତୁ!</p></blockquote> <p>ପରିବେଶ ଭେରିଏବଲ୍ କିମ୍ବା ସିକ୍ରେଟ୍ ମାଧ୍ୟମରେ କରାଯାଉଥିବା ପ୍ରମାଣୀକରଣକୁ ଆପଣଙ୍କ ମେସିନ୍ରେ ସଂରକ୍ଷିତ ଟୋକନ୍ ଅପେକ୍ଷା ପ୍ରାଥମିକତା ଦିଆଯାଏ।</p> <!--[2--><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 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>ଶେଷରେ, <code>token</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 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=" "><!----><span class="hljs-keyword">from</span> huggingface_hub import whoami | |
| <span class="hljs-built_in"> | |
| user </span>= whoami(<span class="hljs-attribute">token</span>=...)<!----></pre></div><!----> <p>ସାଧାରଣତଃ ଏହାକୁ ସୁପାରିସ କରାଯାଏ ନାହିଁ। କେବଳ ଯେଉଁ ପରିସ୍ଥିତିରେ ଆପଣ ନିଜ ଟୋକନ୍କୁ ସ୍ଥାୟୀ ଭାବେ ସଂରକ୍ଷଣ କରିବାକୁ ଚାହୁଁନାହାନ୍ତି କିମ୍ବା ଏକାସାଙ୍ଗରେ ଏକାଧିକ ଟୋକନ୍ ପରିଚାଳନା କରିବାକୁ ପଡ଼ୁଛି, ସେହି ପରିସ୍ଥିତିରେ ଏହା ବ୍ୟବହାର କରନ୍ତୁ।</p> <blockquote class="warning"><p>ଟୋକନ୍କୁ ପାରାମିଟର୍ ଭାବରେ ପାସ୍ କରିବା ସମୟରେ ଦୟାକରି ସାବଧାନ ରୁହନ୍ତୁ। ନିଜ କୋଡ୍ବେସ୍ କିମ୍ବା ନୋଟବୁକ୍ରେ ଏହାକୁ ହାର୍ଡକୋଡ୍ କରିବା ପରିବର୍ତ୍ତେ, ଟୋକନ୍କୁ ଗୋଟିଏ ସୁରକ୍ଷିତ vaultରୁ ଲୋଡ୍ କରିବା ସର୍ବଦା ସର୍ବୋତ୍ତମ ପଦ୍ଧତି। ଆପଣ ଅଜାଣତରେ ନିଜ କୋଡ୍ ସେୟାର କରିଦେଲେ, ହାର୍ଡକୋଡ୍ କରାଯାଇଥିବା ଟୋକନ୍ ଗୁରୁତର ଲିକ୍ ବିପଦ ସୃଷ୍ଟି କରେ।</p></blockquote> <!--[1--><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 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>ଆପଣ ପଞ୍ଜୀକୃତ ହୋଇ ଲଗ୍ଇନ୍ କରିସାରିବା ପରେ, <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 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="language-py "><!----><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>)<!----></pre></div><!----> <p>ଆପଣ ନିଜ ରିପୋଜିଟୋରିକୁ ବ୍ୟକ୍ତିଗତ ରଖିବାକୁ ଚାହୁଁଥିଲେ:</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 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="language-py "><!----><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>)<!----></pre></div><!----> <p>ବ୍ୟକ୍ତିଗତ ରିପୋଜିଟୋରିଗୁଡ଼ିକ ଆପଣଙ୍କ ବ୍ୟତୀତ ଅନ୍ୟ କାହାକୁ ଦୃଶ୍ୟମାନ ହେବ ନାହିଁ।</p> <blockquote class="tip"><p>ରିପୋଜିଟୋରି ତିଆରି କରିବା କିମ୍ବା ହବ୍କୁ ବିଷୟବସ୍ତୁ push କରିବା ପାଇଁ, ଆପଣଙ୍କୁ ଗୋଟିଏ User Access | |
| Token ପ୍ରଦାନ କରିବାକୁ ପଡ଼ିବ, ଯେଉଁଥିରେ <code>write</code> ଅନୁମତି ରହିଥିବ। | |
| ଟୋକନ୍ ତିଆରି କରିବା ସମୟରେ ଆପଣ ନିଜ <a href="https://huggingface.co/settings/tokens" rel="nofollow">ସେଟିଂସ୍ ପୃଷ୍ଠା</a>ରେ ଅନୁମତି ବାଛିପାରିବେ।</p></blockquote> <!--[1--><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 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>ନୂତନ ଭାବେ ତିଆରି କରାଯାଇଥିବା ନିଜ ରିପୋଜିଟୋରିରେ ଗୋଟିଏ ଫାଇଲ୍ ଯୋଡ଼ିବା ପାଇଁ <code>upload_file()</code> ଫଙ୍କସନ୍ ବ୍ୟବହାର କରନ୍ତୁ। ଆପଣଙ୍କୁ | |
| ନିମ୍ନଲିଖିତ ବିଷୟଗୁଡ଼ିକ ଉଲ୍ଲେଖ କରିବାକୁ ପଡ଼ିବ:</p> <ol><li>ଅପଲୋଡ୍ କରିବାକୁ ଥିବା ଫାଇଲ୍ର ପାଥ୍।</li> <li>ରିପୋଜିଟୋରି ମଧ୍ୟରେ ଫାଇଲ୍ର ପାଥ୍।</li> <li>ଆପଣ ଯେଉଁ ରିପୋଜିଟୋରିରେ ଫାଇଲ୍ ଯୋଡ଼ିବାକୁ ଚାହୁଁଛନ୍ତି, ସେହି ରିପୋଜିଟୋରିର ID।</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 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="language-py "><!----><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>)<!----></pre></div><!----> <p>ଗୋଟିଏ ସମୟରେ ଏକାଧିକ ଫାଇଲ୍ ଅପଲୋଡ୍ କରିବା ପାଇଁ, <a href="./guides/upload">ଅପଲୋଡ୍</a> ଗାଇଡ୍ଟି ଦେଖନ୍ତୁ। | |
| ଏହା ଆପଣଙ୍କୁ ଫାଇଲ୍ ଅପଲୋଡ୍ କରିବାର ବିଭିନ୍ନ ପଦ୍ଧତି ସହିତ ପରିଚିତ କରାଇବ—git ସହିତ କିମ୍ବା git ବିନା।</p> <!--[1--><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 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><code>huggingface_hub</code> ଲାଇବ୍ରେରୀ ବ୍ୟବହାରକାରୀମାନଙ୍କୁ Python ବ୍ୟବହାର କରି | |
| ହବ୍ ସହିତ ଇଣ୍ଟରାକ୍ଟ କରିବାର ଏକ ସହଜ ଉପାୟ ପ୍ରଦାନ କରେ। ହବ୍ରେ ଆପଣ ନିଜ ଫାଇଲ୍ ଏବଂ ରିପୋଜିଟୋରିଗୁଡ଼ିକୁ କିପରି ପରିଚାଳନା କରିପାରିବେ, | |
| ସେ ବିଷୟରେ ଅଧିକ ଜାଣିବା ପାଇଁ ଆମେ ଆପଣଙ୍କୁ ଆମର <a href="https://huggingface.co/docs/hub" rel="nofollow">ବ୍ୟବହାରିକ ଗାଇଡ୍ଗୁଡ଼ିକ</a> ପଢ଼ିବାକୁ ସୁପାରିସ କରୁଛୁ:</p> <ul><li><a href="https://huggingface.co/docs/hub/en/repositories" rel="nofollow">ନିଜ ରିପୋଜିଟୋରି ପରିଚାଳନା କରନ୍ତୁ</a>।</li> <li>ହବ୍ରୁ ଫାଇଲ୍ଗୁଡ଼ିକ <a href="https://huggingface.co/docs/huggingface_hub/en/guides/download" rel="nofollow">ଡାଉନଲୋଡ୍</a> କରନ୍ତୁ।</li> <li>ହବ୍ରେ ଫାଇଲ୍ଗୁଡ଼ିକ <a href="https://huggingface.co/docs/huggingface_hub/guides/upload" rel="nofollow">ଅପଲୋଡ୍</a> କରନ୍ତୁ।</li> <li>ଆପଣ ଚାହୁଁଥିବା ମଡେଲ୍ କିମ୍ବା ଡାଟାସେଟ୍ ପାଇଁ <a href="https://huggingface.co/docs/hub/search" rel="nofollow">ହବ୍ରେ ସନ୍ଧାନ କରନ୍ତୁ</a>।</li> <li>ଦ୍ରୁତ ଇନଫରେନ୍ସ ପାଇଁ <a href="https://huggingface.co/docs" rel="nofollow">ଇନଫରେନ୍ସ ଏପିଆଇକୁ ଆକ୍ସେସ୍ କରନ୍ତୁ</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/or/quick-start.md" target="_blank"><svg class="mr-1" 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="M31,16l-7,7l-1.41-1.41L28.17,16l-5.58-5.59L24,9l7,7z"></path><path d="M1,16l7-7l1.41,1.41L3.83,16l5.58,5.59L8,23l-7-7z"></path><path d="M12.419,25.484L17.639,6.552l1.932,0.518L14.351,26.002z"></path></svg><!----> <span><span class="underline">Update</span> on GitHub</span></a><!----> <p></p><!--]--><!----><!--]--><!--]--><!--]--> <!--[-1--><!--]--><!--]--> | |
| <script> | |
| { | |
| __sveltekit_1ukav16 = { | |
| base: "/docs/huggingface_hub/main/or", | |
| assets: "/docs/huggingface_hub/main/or" | |
| }; | |
| const element = document.currentScript.parentElement; | |
| Promise.all([ | |
| import("/docs/huggingface_hub/main/or/_app/immutable/entry/start.gJbQ1znq.js"), | |
| import("/docs/huggingface_hub/main/or/_app/immutable/entry/app.B9_0bd7X.js") | |
| ]).then(([kit, app]) => { | |
| kit.start(app, element, { | |
| node_ids: [0, 4], | |
| data: [null,null], | |
| form: null, | |
| error: null | |
| }); | |
| }); | |
| } | |
| </script> | |
Xet Storage Details
- Size:
- 55.1 kB
- Xet hash:
- 24d4d9562da2f52478d7209efa06f013d7d4f9b108d383976fda40ded42edfc0
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.