Buckets:

HuggingFaceDocBuilder's picture
download
raw
6.84 kB
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 a,c as s,h as Me,a as d,d as l,b as i,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.023a9934.js";import{C as He}from"../chunks/CopyLLMTxtMenu.c780467c.js";import{C as pe}from"../chunks/CodeBlock.fc650646.js";import{H as R,E as Ue}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.fb377ec3.js";function je(fe){let u,A,D,q,g,F,h,S,k,$e="Use <code>kernels download</code> to download kernels that have been locked in a project’s <code>kernels.lock</code> file.",W,w,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,ge="Download kernels for a specific project:",ee,H,te,U,le,j,he="<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,ae,J,ke='Your project directory must contain a <code>kernels.lock</code> file. Generate one using <a href="cli-lock"><code>kernels lock</code></a>.',ie,V,se,G,we='<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 g=new He({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),h=new R({props:{title:"kernels download",local:"kernels-download",headingTag:"h1"}}),w=new R({props:{title:"Usage",local:"usage",headingTag:"h2"}}),v=new pe({props:{code:"a2VybmVscyUyMGRvd25sb2FkJTIwJTNDcHJvamVjdF9kaXIlM0UlMjAlNUItLWFsbC12YXJpYW50cyU1RA==",highlighted:"kernels download &lt;project_dir&gt; [--all-variants]",lang:"bash",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 .",lang:"bash",wrap:!1}}),M=new pe({props:{code:"a2VybmVscyUyMGRvd25sb2FkJTIwLiUyMC0tYWxsLXZhcmlhbnRz",highlighted:"kernels download . --all-variants",lang:"bash",wrap:!1}}),H=new pe({props:{code:"a2VybmVscyUyMGRvd25sb2FkJTIwJTJGcGF0aCUyRnRvJTJGbXktcHJvamVjdA==",highlighted:"kernels download /path/to/my-project",lang:"bash",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=a(),D=$("p"),q=a(),s(g.$$.fragment),F=a(),s(h.$$.fragment),S=a(),k=$("p"),k.innerHTML=$e,W=a(),s(w.$$.fragment),O=a(),s(v.$$.fragment),X=a(),s(b.$$.fragment),Y=a(),y=$("ul"),y.innerHTML=de,z=a(),s(x.$$.fragment),B=a(),T=$("p"),T.textContent=ue,N=a(),s(_.$$.fragment),Z=a(),C=$("p"),C.textContent=ce,K=a(),s(M.$$.fragment),Q=a(),L=$("p"),L.textContent=ge,ee=a(),s(H.$$.fragment),te=a(),s(U.$$.fragment),le=a(),j=$("table"),j.innerHTML=he,ne=a(),s(P.$$.fragment),ae=a(),J=$("p"),J.innerHTML=ke,ie=a(),s(V.$$.fragment),se=a(),G=$("ul"),G.innerHTML=we,re=a(),s(I.$$.fragment),oe=a(),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=i(e),D=d(e,"P",{}),ve(D).forEach(l),q=i(e),r(g.$$.fragment,e),F=i(e),r(h.$$.fragment,e),S=i(e),k=d(e,"P",{"data-svelte-h":!0}),c(k)!=="svelte-1koldbv"&&(k.innerHTML=$e),W=i(e),r(w.$$.fragment,e),O=i(e),r(v.$$.fragment,e),X=i(e),r(b.$$.fragment,e),Y=i(e),y=d(e,"UL",{"data-svelte-h":!0}),c(y)!=="svelte-13qyk6c"&&(y.innerHTML=de),z=i(e),r(x.$$.fragment,e),B=i(e),T=d(e,"P",{"data-svelte-h":!0}),c(T)!=="svelte-t0uow4"&&(T.textContent=ue),N=i(e),r(_.$$.fragment,e),Z=i(e),C=d(e,"P",{"data-svelte-h":!0}),c(C)!=="svelte-1saya7s"&&(C.textContent=ce),K=i(e),r(M.$$.fragment,e),Q=i(e),L=d(e,"P",{"data-svelte-h":!0}),c(L)!=="svelte-cvxynd"&&(L.textContent=ge),ee=i(e),r(H.$$.fragment,e),te=i(e),r(U.$$.fragment,e),le=i(e),j=d(e,"TABLE",{"data-svelte-h":!0}),c(j)!=="svelte-i2bnjx"&&(j.innerHTML=he),ne=i(e),r(P.$$.fragment,e),ae=i(e),J=d(e,"P",{"data-svelte-h":!0}),c(J)!=="svelte-lpndtt"&&(J.innerHTML=ke),ie=i(e),r(V.$$.fragment,e),se=i(e),G=d(e,"UL",{"data-svelte-h":!0}),c(G)!=="svelte-173n7qd"&&(G.innerHTML=we),re=i(e),r(I.$$.fragment,e),oe=i(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(g,e,t),n(e,F,t),o(h,e,t),n(e,S,t),n(e,k,t),n(e,W,t),o(w,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,ae,t),n(e,J,t),n(e,ie,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(g.$$.fragment,e),m(h.$$.fragment,e),m(w.$$.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(g.$$.fragment,e),p(h.$$.fragment,e),p(w.$$.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(k),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(ae),l(J),l(ie),l(se),l(G),l(re),l(oe),l(E)),l(u),f(g,e),f(h,e),f(w,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.84 kB
·
Xet hash:
33ec34135dc7b9d78646ec7569a98a512da2e6ff85ce7e82f2188a82a715423b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.