Buckets:
| import{s as Ve,n as Le,o as He}from"../chunks/scheduler.f3b1e791.js";import{S as Ze,i as Xe,e as f,s as n,c as r,h as Je,a as d,d as l,b as a,f as Te,g as s,j as h,k as _e,l as Ge,m as i,n as p,t as m,o,p as $}from"../chunks/index.d8b6a549.js";import{C as Pe}from"../chunks/CopyLLMTxtMenu.1edf0ddf.js";import{C as S}from"../chunks/CodeBlock.05c913ee.js";import{H as g,E as Ye}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.a742978a.js";function Ie(ce){let u,q,j,A,c,F,b,z,y,be="Use <code>kernels upload</code> to upload built kernels to the Hugging Face Hub.",B,k,D,w,O,C,Q,M,ye=`<li>This will take care of creating a repository on the Hub with the <code>repo_id</code> provided.</li> <li>If a repo with the <code>repo_id</code> already exists and if it contains a <code>build</code> with the build variant | |
| being uploaded, it will attempt to delete the files existing under it.</li> <li>Make sure to be authenticated (run <code>hf auth login</code> if not) to be able to perform uploads to the Hub.</li>`,R,v,K,x,ke="Upload a kernel build:",ee,U,te,T,we="Upload to a specific branch:",le,_,ie,V,Ce="Upload as a private repository:",ne,L,ae,H,re,Z,Me="<thead><tr><th>Option</th> <th>Required</th> <th>Description</th></tr></thead> <tbody><tr><td><code>--repo-id</code></td> <td>Yes</td> <td>Repository ID on the Hub (e.g., <code>username/kernel-name</code>)</td></tr> <tr><td><code>--branch</code></td> <td>No</td> <td>Upload to a specific branch instead of main</td></tr> <tr><td><code>--private</code></td> <td>No</td> <td>Create the repository as private</td></tr></tbody>",se,X,pe,J,ve="You must be authenticated with the Hugging Face Hub:",me,G,oe,P,$e,Y,xe='<li>The <code>kernel_dir</code> should contain the build output (typically the <code>build/</code> directory from your kernel project)</li> <li>If uploading a new variant to an existing repo, only that variant’s files are replaced</li> <li>Make sure your kernel passes <a href="cli-check"><code>kernels check</code></a> before uploading</li>',fe,I,de,N,Ue='<li><a href="cli-check">kernels check</a> - Verify kernel compliance before uploading</li> <li><a href="cli-init">kernels init</a> - Create a new kernel project</li>',ue,W,he,E,ge;return c=new Pe({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),b=new g({props:{title:"kernels upload",local:"kernels-upload",headingTag:"h1"}}),k=new g({props:{title:"Usage",local:"usage",headingTag:"h2"}}),w=new S({props:{code:"a2VybmVscyUyMHVwbG9hZCUyMCUzQ2tlcm5lbF9kaXIlM0UlMjAtLXJlcG8taWQlMjAlM0NyZXBvX2lkJTNFJTIwJTVCLS1icmFuY2glMjAlM0NicmFuY2glM0UlNUQlMjAlNUItLXByaXZhdGUlNUQ=",highlighted:"kernels upload <kernel_dir> --repo-id <repo_id> [--branch <branch>] [--private]",wrap:!1}}),C=new g({props:{title:"What It Does",local:"what-it-does",headingTag:"h2"}}),v=new g({props:{title:"Examples",local:"examples",headingTag:"h2"}}),U=new S({props:{code:"a2VybmVscyUyMHVwbG9hZCUyMC4lMkZidWlsZCUyMC0tcmVwby1pZCUyMG15LXVzZXJuYW1lJTJGbXkta2VybmVs",highlighted:"kernels upload ./build --repo-id my-username/my-kernel",wrap:!1}}),_=new S({props:{code:"a2VybmVscyUyMHVwbG9hZCUyMC4lMkZidWlsZCUyMC0tcmVwby1pZCUyMG15LXVzZXJuYW1lJTJGbXkta2VybmVsJTIwLS1icmFuY2glMjBkZXY=",highlighted:"kernels upload ./build --repo-id my-username/my-kernel --branch dev",wrap:!1}}),L=new S({props:{code:"a2VybmVscyUyMHVwbG9hZCUyMC4lMkZidWlsZCUyMC0tcmVwby1pZCUyMG15LXVzZXJuYW1lJTJGbXkta2VybmVsJTIwLS1wcml2YXRl",highlighted:"kernels upload ./build --repo-id my-username/my-kernel --private",wrap:!1}}),H=new g({props:{title:"Options",local:"options",headingTag:"h2"}}),X=new g({props:{title:"Prerequisites",local:"prerequisites",headingTag:"h2"}}),G=new S({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwbG9naW4=",highlighted:"huggingface-cli login",wrap:!1}}),P=new g({props:{title:"Notes",local:"notes",headingTag:"h2"}}),I=new g({props:{title:"See Also",local:"see-also",headingTag:"h2"}}),W=new Ye({props:{source:"https://github.com/huggingface/kernels/blob/main/docs/source/cli-upload.md"}}),{c(){u=f("meta"),q=n(),j=f("p"),A=n(),r(c.$$.fragment),F=n(),r(b.$$.fragment),z=n(),y=f("p"),y.innerHTML=be,B=n(),r(k.$$.fragment),D=n(),r(w.$$.fragment),O=n(),r(C.$$.fragment),Q=n(),M=f("ul"),M.innerHTML=ye,R=n(),r(v.$$.fragment),K=n(),x=f("p"),x.textContent=ke,ee=n(),r(U.$$.fragment),te=n(),T=f("p"),T.textContent=we,le=n(),r(_.$$.fragment),ie=n(),V=f("p"),V.textContent=Ce,ne=n(),r(L.$$.fragment),ae=n(),r(H.$$.fragment),re=n(),Z=f("table"),Z.innerHTML=Me,se=n(),r(X.$$.fragment),pe=n(),J=f("p"),J.textContent=ve,me=n(),r(G.$$.fragment),oe=n(),r(P.$$.fragment),$e=n(),Y=f("ul"),Y.innerHTML=xe,fe=n(),r(I.$$.fragment),de=n(),N=f("ul"),N.innerHTML=Ue,ue=n(),r(W.$$.fragment),he=n(),E=f("p"),this.h()},l(e){const t=Je("svelte-u9bgzb",document.head);u=d(t,"META",{name:!0,content:!0}),t.forEach(l),q=a(e),j=d(e,"P",{}),Te(j).forEach(l),A=a(e),s(c.$$.fragment,e),F=a(e),s(b.$$.fragment,e),z=a(e),y=d(e,"P",{"data-svelte-h":!0}),h(y)!=="svelte-1tqkpl0"&&(y.innerHTML=be),B=a(e),s(k.$$.fragment,e),D=a(e),s(w.$$.fragment,e),O=a(e),s(C.$$.fragment,e),Q=a(e),M=d(e,"UL",{"data-svelte-h":!0}),h(M)!=="svelte-jf9ok8"&&(M.innerHTML=ye),R=a(e),s(v.$$.fragment,e),K=a(e),x=d(e,"P",{"data-svelte-h":!0}),h(x)!=="svelte-rve0k9"&&(x.textContent=ke),ee=a(e),s(U.$$.fragment,e),te=a(e),T=d(e,"P",{"data-svelte-h":!0}),h(T)!=="svelte-1uugf2r"&&(T.textContent=we),le=a(e),s(_.$$.fragment,e),ie=a(e),V=d(e,"P",{"data-svelte-h":!0}),h(V)!=="svelte-7hmfmh"&&(V.textContent=Ce),ne=a(e),s(L.$$.fragment,e),ae=a(e),s(H.$$.fragment,e),re=a(e),Z=d(e,"TABLE",{"data-svelte-h":!0}),h(Z)!=="svelte-28r7qi"&&(Z.innerHTML=Me),se=a(e),s(X.$$.fragment,e),pe=a(e),J=d(e,"P",{"data-svelte-h":!0}),h(J)!=="svelte-oc7ghu"&&(J.textContent=ve),me=a(e),s(G.$$.fragment,e),oe=a(e),s(P.$$.fragment,e),$e=a(e),Y=d(e,"UL",{"data-svelte-h":!0}),h(Y)!=="svelte-1ut699b"&&(Y.innerHTML=xe),fe=a(e),s(I.$$.fragment,e),de=a(e),N=d(e,"UL",{"data-svelte-h":!0}),h(N)!=="svelte-hk3gsm"&&(N.innerHTML=Ue),ue=a(e),s(W.$$.fragment,e),he=a(e),E=d(e,"P",{}),Te(E).forEach(l),this.h()},h(){_e(u,"name","hf:doc:metadata"),_e(u,"content",Ne)},m(e,t){Ge(document.head,u),i(e,q,t),i(e,j,t),i(e,A,t),p(c,e,t),i(e,F,t),p(b,e,t),i(e,z,t),i(e,y,t),i(e,B,t),p(k,e,t),i(e,D,t),p(w,e,t),i(e,O,t),p(C,e,t),i(e,Q,t),i(e,M,t),i(e,R,t),p(v,e,t),i(e,K,t),i(e,x,t),i(e,ee,t),p(U,e,t),i(e,te,t),i(e,T,t),i(e,le,t),p(_,e,t),i(e,ie,t),i(e,V,t),i(e,ne,t),p(L,e,t),i(e,ae,t),p(H,e,t),i(e,re,t),i(e,Z,t),i(e,se,t),p(X,e,t),i(e,pe,t),i(e,J,t),i(e,me,t),p(G,e,t),i(e,oe,t),p(P,e,t),i(e,$e,t),i(e,Y,t),i(e,fe,t),p(I,e,t),i(e,de,t),i(e,N,t),i(e,ue,t),p(W,e,t),i(e,he,t),i(e,E,t),ge=!0},p:Le,i(e){ge||(m(c.$$.fragment,e),m(b.$$.fragment,e),m(k.$$.fragment,e),m(w.$$.fragment,e),m(C.$$.fragment,e),m(v.$$.fragment,e),m(U.$$.fragment,e),m(_.$$.fragment,e),m(L.$$.fragment,e),m(H.$$.fragment,e),m(X.$$.fragment,e),m(G.$$.fragment,e),m(P.$$.fragment,e),m(I.$$.fragment,e),m(W.$$.fragment,e),ge=!0)},o(e){o(c.$$.fragment,e),o(b.$$.fragment,e),o(k.$$.fragment,e),o(w.$$.fragment,e),o(C.$$.fragment,e),o(v.$$.fragment,e),o(U.$$.fragment,e),o(_.$$.fragment,e),o(L.$$.fragment,e),o(H.$$.fragment,e),o(X.$$.fragment,e),o(G.$$.fragment,e),o(P.$$.fragment,e),o(I.$$.fragment,e),o(W.$$.fragment,e),ge=!1},d(e){e&&(l(q),l(j),l(A),l(F),l(z),l(y),l(B),l(D),l(O),l(Q),l(M),l(R),l(K),l(x),l(ee),l(te),l(T),l(le),l(ie),l(V),l(ne),l(ae),l(re),l(Z),l(se),l(pe),l(J),l(me),l(oe),l($e),l(Y),l(fe),l(de),l(N),l(ue),l(he),l(E)),l(u),$(c,e),$(b,e),$(k,e),$(w,e),$(C,e),$(v,e),$(U,e),$(_,e),$(L,e),$(H,e),$(X,e),$(G,e),$(P,e),$(I,e),$(W,e)}}}const Ne='{"title":"kernels upload","local":"kernels-upload","sections":[{"title":"Usage","local":"usage","sections":[],"depth":2},{"title":"What It Does","local":"what-it-does","sections":[],"depth":2},{"title":"Examples","local":"examples","sections":[],"depth":2},{"title":"Options","local":"options","sections":[],"depth":2},{"title":"Prerequisites","local":"prerequisites","sections":[],"depth":2},{"title":"Notes","local":"notes","sections":[],"depth":2},{"title":"See Also","local":"see-also","sections":[],"depth":2}],"depth":1}';function We(ce){return He(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Fe extends Ze{constructor(u){super(),Xe(this,u,We,Ie,Ve,{})}}export{Fe as component}; | |
Xet Storage Details
- Size:
- 8.31 kB
- Xet hash:
- dc5cce2a71da66e5987572e5985dfa6c12bc2fe1f2a28f90458d80e1a8ce93ef
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.