Buckets:
| import{s as he,n as me,o as pe}from"../chunks/scheduler.409792a1.js";import{S as de,i as $e,e as o,s as i,c as P,h as be,a as s,d as n,b as l,f as ce,g as x,j as u,l as ge,m as _e,n as a,o as M,p as C,q as I,r as j}from"../chunks/index.92d389ff.js";import{C as ye}from"../chunks/CopyLLMTxtMenu.dcf7fb47.js";import{H as Z,E as Te}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.0c189c7e.js";function we(ee){let r,A,J,E,f,F,c,z,g,R,h,te="The <code>huggingface_hub</code> Python package comes with a built-in CLI called <code>hf</code>. This tool allows you to interact with the Hugging Face Hub directly from a terminal. For example, you can log in to your account, create a repository, upload and download files, etc. It also comes with handy features to configure your machine or manage your cache, and start and manage Jobs.",q,m,ne="Find the <code>hf jobs</code> installation steps, guides and reference in the <code>huggingface_hub</code> documentation here:",S,p,ae='<li><a href="https://huggingface.co/docs/huggingface_hub/en/guides/cli#getting-started" rel="nofollow">Installation</a></li> <li><a href="https://huggingface.co/docs/huggingface_hub/en/guides/cli#hf-jobs" rel="nofollow">Run and manage Jobs</a></li> <li><a href="https://huggingface.co/docs/huggingface_hub/en/package_reference/cli#hf-jobs" rel="nofollow">CLI reference for Jobs</a></li>',U,d,B,$,ie="The <code>huggingface_hub</code> Python package comes with a client called <code>HfApi</code>. This client allows you to interact with the Hugging Face Hub directly in Python. For example, you can log in to your account, create a repository, upload and download files, etc. It also comes with handy features to configure your machine or manage your cache, and start and manage Jobs.",O,b,le="Find the installation steps and guides in the <code>huggingface_hub</code> documentation:",G,_,oe='<li><a href="https://huggingface.co/docs/huggingface_hub/en/installation" rel="nofollow">Installation</a></li> <li><a href="https://huggingface.co/docs/huggingface_hub/en/guides/jobs" rel="nofollow">Run and manage Jobs</a></li>',V,y,D,T,se="The Jobs HTTP API Endpoints are available under <code>https://huggingface.co/api/jobs</code>.",K,w,ue=`Authenticate using a Hugging face token with the permission to start and manage Jobs under your namespace (your account or organization). | |
| Pass the token as a Bearer token with the header: <code>"Authorization: Bearer {token}"</code>.`,N,H,re="Here is a list of available endpoints and arguments:",Q,v,fe='<li><a href="https://huggingface-openapi.hf.space/#tag/jobs" rel="nofollow">View Jobs OpenAPI</a></li>',W,L,X,k,Y;return f=new ye({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),c=new Z({props:{title:"Reference",local:"reference",headingTag:"h1"}}),g=new Z({props:{title:"Jobs Command Line Interface (CLI)",local:"jobs-command-line-interface-cli",headingTag:"h1"}}),d=new Z({props:{title:"Python client",local:"python-client",headingTag:"h2"}}),y=new Z({props:{title:"HTTP API",local:"http-api",headingTag:"h2"}}),L=new Te({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/jobs-reference.md"}}),{c(){r=o("meta"),A=i(),J=o("p"),E=i(),P(f.$$.fragment),F=i(),P(c.$$.fragment),z=i(),P(g.$$.fragment),R=i(),h=o("p"),h.innerHTML=te,q=i(),m=o("p"),m.innerHTML=ne,S=i(),p=o("ul"),p.innerHTML=ae,U=i(),P(d.$$.fragment),B=i(),$=o("p"),$.innerHTML=ie,O=i(),b=o("p"),b.innerHTML=le,G=i(),_=o("ul"),_.innerHTML=oe,V=i(),P(y.$$.fragment),D=i(),T=o("p"),T.innerHTML=se,K=i(),w=o("p"),w.innerHTML=ue,N=i(),H=o("p"),H.textContent=re,Q=i(),v=o("ul"),v.innerHTML=fe,W=i(),P(L.$$.fragment),X=i(),k=o("p"),this.h()},l(e){const t=be("svelte-u9bgzb",document.head);r=s(t,"META",{name:!0,content:!0}),t.forEach(n),A=l(e),J=s(e,"P",{}),ce(J).forEach(n),E=l(e),x(f.$$.fragment,e),F=l(e),x(c.$$.fragment,e),z=l(e),x(g.$$.fragment,e),R=l(e),h=s(e,"P",{"data-svelte-h":!0}),u(h)!=="svelte-1usyyrg"&&(h.innerHTML=te),q=l(e),m=s(e,"P",{"data-svelte-h":!0}),u(m)!=="svelte-v22lva"&&(m.innerHTML=ne),S=l(e),p=s(e,"UL",{"data-svelte-h":!0}),u(p)!=="svelte-1labf52"&&(p.innerHTML=ae),U=l(e),x(d.$$.fragment,e),B=l(e),$=s(e,"P",{"data-svelte-h":!0}),u($)!=="svelte-14u0ghw"&&($.innerHTML=ie),O=l(e),b=s(e,"P",{"data-svelte-h":!0}),u(b)!=="svelte-178z1y6"&&(b.innerHTML=le),G=l(e),_=s(e,"UL",{"data-svelte-h":!0}),u(_)!=="svelte-2jtpc5"&&(_.innerHTML=oe),V=l(e),x(y.$$.fragment,e),D=l(e),T=s(e,"P",{"data-svelte-h":!0}),u(T)!=="svelte-574iti"&&(T.innerHTML=se),K=l(e),w=s(e,"P",{"data-svelte-h":!0}),u(w)!=="svelte-yms6up"&&(w.innerHTML=ue),N=l(e),H=s(e,"P",{"data-svelte-h":!0}),u(H)!=="svelte-1lc5n8y"&&(H.textContent=re),Q=l(e),v=s(e,"UL",{"data-svelte-h":!0}),u(v)!=="svelte-eup4gc"&&(v.innerHTML=fe),W=l(e),x(L.$$.fragment,e),X=l(e),k=s(e,"P",{}),ce(k).forEach(n),this.h()},h(){ge(r,"name","hf:doc:metadata"),ge(r,"content",He)},m(e,t){_e(document.head,r),a(e,A,t),a(e,J,t),a(e,E,t),M(f,e,t),a(e,F,t),M(c,e,t),a(e,z,t),M(g,e,t),a(e,R,t),a(e,h,t),a(e,q,t),a(e,m,t),a(e,S,t),a(e,p,t),a(e,U,t),M(d,e,t),a(e,B,t),a(e,$,t),a(e,O,t),a(e,b,t),a(e,G,t),a(e,_,t),a(e,V,t),M(y,e,t),a(e,D,t),a(e,T,t),a(e,K,t),a(e,w,t),a(e,N,t),a(e,H,t),a(e,Q,t),a(e,v,t),a(e,W,t),M(L,e,t),a(e,X,t),a(e,k,t),Y=!0},p:me,i(e){Y||(C(f.$$.fragment,e),C(c.$$.fragment,e),C(g.$$.fragment,e),C(d.$$.fragment,e),C(y.$$.fragment,e),C(L.$$.fragment,e),Y=!0)},o(e){I(f.$$.fragment,e),I(c.$$.fragment,e),I(g.$$.fragment,e),I(d.$$.fragment,e),I(y.$$.fragment,e),I(L.$$.fragment,e),Y=!1},d(e){e&&(n(A),n(J),n(E),n(F),n(z),n(R),n(h),n(q),n(m),n(S),n(p),n(U),n(B),n($),n(O),n(b),n(G),n(_),n(V),n(D),n(T),n(K),n(w),n(N),n(H),n(Q),n(v),n(W),n(X),n(k)),n(r),j(f,e),j(c,e),j(g,e),j(d,e),j(y,e),j(L,e)}}}const He='{"title":"Reference","local":"reference","sections":[],"depth":1}';function ve(ee){return pe(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ce extends de{constructor(r){super(),$e(this,r,ve,we,he,{})}}export{Ce as component}; | |
Xet Storage Details
- Size:
- 6.01 kB
- Xet hash:
- 9bee72552c345b6048f838688f34351987c070bcfdbd2c7d93ef8efd0e61ed22
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.