Buckets:
| import{s as ye,n as xe,o as Te}from"../chunks/scheduler.f3b1e791.js";import{S as _e,i as Ce,e as $,s as i,c as s,h as Me,a as d,d as l,b as a,f as ve,g as r,j as c,k as be,l as Le,m as n,n as o,t as m,o as p,p as f}from"../chunks/index.d8b6a549.js";import{C as He}from"../chunks/CopyLLMTxtMenu.1edf0ddf.js";import{C as pe}from"../chunks/CodeBlock.05c913ee.js";import{H as R,E as Ue}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.a742978a.js";function je(fe){let u,A,D,q,k,F,w,S,g,$e="Use <code>kernels download</code> to download kernels that have been locked in a project’s <code>kernels.lock</code> file.",W,h,O,v,X,b,Y,y,de="<li>Reads the <code>kernels.lock</code> file from the specified project directory</li> <li>Downloads each locked kernel at its pinned revision (SHA)</li> <li>Installs the appropriate variant for your platform (or all variants with <code>--all-variants</code>)</li>",z,x,B,T,ue="Download kernels for the current project:",N,_,Z,C,ce="Download all build variants (useful for CI or multi-platform builds):",K,M,Q,L,ke="Download kernels for a specific project:",ee,H,te,U,le,j,we="<thead><tr><th>Option</th> <th>Description</th></tr></thead> <tbody><tr><td><code>--all-variants</code></td> <td>Download all build variants of each kernel instead of just the current platform’s variant</td></tr></tbody>",ne,P,ie,J,ge='Your project directory must contain a <code>kernels.lock</code> file. Generate one using <a href="cli-lock"><code>kernels lock</code></a>.',ae,V,se,G,he='<li><a href="cli-lock">kernels lock</a> - Generate the lock file</li> <li><a href="cli-versions">kernels versions</a> - View available kernel versions</li>',re,I,oe,E,me;return k=new He({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),w=new R({props:{title:"kernels download",local:"kernels-download",headingTag:"h1"}}),h=new R({props:{title:"Usage",local:"usage",headingTag:"h2"}}),v=new pe({props:{code:"a2VybmVscyUyMGRvd25sb2FkJTIwJTNDcHJvamVjdF9kaXIlM0UlMjAlNUItLWFsbC12YXJpYW50cyU1RA==",highlighted:"kernels download <project_dir> [--all-variants]",wrap:!1}}),b=new R({props:{title:"What It Does",local:"what-it-does",headingTag:"h2"}}),x=new R({props:{title:"Examples",local:"examples",headingTag:"h2"}}),_=new pe({props:{code:"a2VybmVscyUyMGRvd25sb2FkJTIwLg==",highlighted:"kernels download .",wrap:!1}}),M=new pe({props:{code:"a2VybmVscyUyMGRvd25sb2FkJTIwLiUyMC0tYWxsLXZhcmlhbnRz",highlighted:"kernels download . --all-variants",wrap:!1}}),H=new pe({props:{code:"a2VybmVscyUyMGRvd25sb2FkJTIwJTJGcGF0aCUyRnRvJTJGbXktcHJvamVjdA==",highlighted:"kernels download /path/to/my-project",wrap:!1}}),U=new R({props:{title:"Options",local:"options",headingTag:"h2"}}),P=new R({props:{title:"Prerequisites",local:"prerequisites",headingTag:"h2"}}),V=new R({props:{title:"See Also",local:"see-also",headingTag:"h2"}}),I=new Ue({props:{source:"https://github.com/huggingface/kernels/blob/main/docs/source/cli-download.md"}}),{c(){u=$("meta"),A=i(),D=$("p"),q=i(),s(k.$$.fragment),F=i(),s(w.$$.fragment),S=i(),g=$("p"),g.innerHTML=$e,W=i(),s(h.$$.fragment),O=i(),s(v.$$.fragment),X=i(),s(b.$$.fragment),Y=i(),y=$("ul"),y.innerHTML=de,z=i(),s(x.$$.fragment),B=i(),T=$("p"),T.textContent=ue,N=i(),s(_.$$.fragment),Z=i(),C=$("p"),C.textContent=ce,K=i(),s(M.$$.fragment),Q=i(),L=$("p"),L.textContent=ke,ee=i(),s(H.$$.fragment),te=i(),s(U.$$.fragment),le=i(),j=$("table"),j.innerHTML=we,ne=i(),s(P.$$.fragment),ie=i(),J=$("p"),J.innerHTML=ge,ae=i(),s(V.$$.fragment),se=i(),G=$("ul"),G.innerHTML=he,re=i(),s(I.$$.fragment),oe=i(),E=$("p"),this.h()},l(e){const t=Me("svelte-u9bgzb",document.head);u=d(t,"META",{name:!0,content:!0}),t.forEach(l),A=a(e),D=d(e,"P",{}),ve(D).forEach(l),q=a(e),r(k.$$.fragment,e),F=a(e),r(w.$$.fragment,e),S=a(e),g=d(e,"P",{"data-svelte-h":!0}),c(g)!=="svelte-1koldbv"&&(g.innerHTML=$e),W=a(e),r(h.$$.fragment,e),O=a(e),r(v.$$.fragment,e),X=a(e),r(b.$$.fragment,e),Y=a(e),y=d(e,"UL",{"data-svelte-h":!0}),c(y)!=="svelte-13qyk6c"&&(y.innerHTML=de),z=a(e),r(x.$$.fragment,e),B=a(e),T=d(e,"P",{"data-svelte-h":!0}),c(T)!=="svelte-t0uow4"&&(T.textContent=ue),N=a(e),r(_.$$.fragment,e),Z=a(e),C=d(e,"P",{"data-svelte-h":!0}),c(C)!=="svelte-1saya7s"&&(C.textContent=ce),K=a(e),r(M.$$.fragment,e),Q=a(e),L=d(e,"P",{"data-svelte-h":!0}),c(L)!=="svelte-cvxynd"&&(L.textContent=ke),ee=a(e),r(H.$$.fragment,e),te=a(e),r(U.$$.fragment,e),le=a(e),j=d(e,"TABLE",{"data-svelte-h":!0}),c(j)!=="svelte-i2bnjx"&&(j.innerHTML=we),ne=a(e),r(P.$$.fragment,e),ie=a(e),J=d(e,"P",{"data-svelte-h":!0}),c(J)!=="svelte-lpndtt"&&(J.innerHTML=ge),ae=a(e),r(V.$$.fragment,e),se=a(e),G=d(e,"UL",{"data-svelte-h":!0}),c(G)!=="svelte-173n7qd"&&(G.innerHTML=he),re=a(e),r(I.$$.fragment,e),oe=a(e),E=d(e,"P",{}),ve(E).forEach(l),this.h()},h(){be(u,"name","hf:doc:metadata"),be(u,"content",Pe)},m(e,t){Le(document.head,u),n(e,A,t),n(e,D,t),n(e,q,t),o(k,e,t),n(e,F,t),o(w,e,t),n(e,S,t),n(e,g,t),n(e,W,t),o(h,e,t),n(e,O,t),o(v,e,t),n(e,X,t),o(b,e,t),n(e,Y,t),n(e,y,t),n(e,z,t),o(x,e,t),n(e,B,t),n(e,T,t),n(e,N,t),o(_,e,t),n(e,Z,t),n(e,C,t),n(e,K,t),o(M,e,t),n(e,Q,t),n(e,L,t),n(e,ee,t),o(H,e,t),n(e,te,t),o(U,e,t),n(e,le,t),n(e,j,t),n(e,ne,t),o(P,e,t),n(e,ie,t),n(e,J,t),n(e,ae,t),o(V,e,t),n(e,se,t),n(e,G,t),n(e,re,t),o(I,e,t),n(e,oe,t),n(e,E,t),me=!0},p:xe,i(e){me||(m(k.$$.fragment,e),m(w.$$.fragment,e),m(h.$$.fragment,e),m(v.$$.fragment,e),m(b.$$.fragment,e),m(x.$$.fragment,e),m(_.$$.fragment,e),m(M.$$.fragment,e),m(H.$$.fragment,e),m(U.$$.fragment,e),m(P.$$.fragment,e),m(V.$$.fragment,e),m(I.$$.fragment,e),me=!0)},o(e){p(k.$$.fragment,e),p(w.$$.fragment,e),p(h.$$.fragment,e),p(v.$$.fragment,e),p(b.$$.fragment,e),p(x.$$.fragment,e),p(_.$$.fragment,e),p(M.$$.fragment,e),p(H.$$.fragment,e),p(U.$$.fragment,e),p(P.$$.fragment,e),p(V.$$.fragment,e),p(I.$$.fragment,e),me=!1},d(e){e&&(l(A),l(D),l(q),l(F),l(S),l(g),l(W),l(O),l(X),l(Y),l(y),l(z),l(B),l(T),l(N),l(Z),l(C),l(K),l(Q),l(L),l(ee),l(te),l(le),l(j),l(ne),l(ie),l(J),l(ae),l(se),l(G),l(re),l(oe),l(E)),l(u),f(k,e),f(w,e),f(h,e),f(v,e),f(b,e),f(x,e),f(_,e),f(M,e),f(H,e),f(U,e),f(P,e),f(V,e),f(I,e)}}}const Pe='{"title":"kernels download","local":"kernels-download","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":"See Also","local":"see-also","sections":[],"depth":2}],"depth":1}';function Je(fe){return Te(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ee extends _e{constructor(u){super(),Ce(this,u,Je,je,ye,{})}}export{Ee as component}; | |
Xet Storage Details
- Size:
- 6.79 kB
- Xet hash:
- d7bed9905331f2fba4f048861c61bbd323aeae0d8f3a68fef3783b58fc9d8f19
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.