Buckets:

HuggingFaceDocBuilder's picture
download
raw
3.92 kB
import{s as F,n as O,o as D}from"../chunks/scheduler.f3b1e791.js";import{S as K,i as V,e as b,s as a,c as w,h as ee,a as g,d as n,b as s,f as Y,g as M,j as E,k as R,l as te,m as l,n as y,t as k,o as _,p as v}from"../chunks/index.023a9934.js";import{C as ne}from"../chunks/CopyLLMTxtMenu.5bdeb2ef.js";import{C as q}from"../chunks/CodeBlock.5fcfbc30.js";import{H as le,E as ae}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.16027951.js";function se(S){let i,C,T,H,o,L,m,P,p,Z="Install the <code>kernels</code> package with <code>pip</code> (requires <code>torch&gt;=2.5</code> and CUDA):",U,f,j,c,N="or with <code>uv</code>",I,u,J,$,X="or if you want the latest version from the <code>main</code> branch:",W,d,G,r,Q=`<p>We strongly recommend not using a free-threaded Python build yet.
These builds are not only experimental, but do not support the stable ABI
on Python versions before 3.15. Kernels are compiled with the stable ABI
to support a wide range of Python versions.</p>`,z,h,A,x,B;return o=new ne({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),m=new le({props:{title:"Installation",local:"installation",headingTag:"h1"}}),f=new q({props:{code:"cGlwJTIwaW5zdGFsbCUyMGtlcm5lbHM=",highlighted:"pip install kernels",lang:"bash",wrap:!1}}),u=new q({props:{code:"dXYlMjBwaXAlMjBpbnN0YWxsJTIwa2VybmVscw==",highlighted:"uv pip install kernels",lang:"bash",wrap:!1}}),d=new q({props:{code:"cGlwJTIwaW5zdGFsbCUyMCUyMmtlcm5lbHMlNUJiZW5jaG1hcmslNUQlMjAlNDAlMjBnaXQlMkJodHRwcyUzQSUyRiUyRmdpdGh1Yi5jb20lMkZodWdnaW5nZmFjZSUyRmtlcm5lbHMlMjNzdWJkaXJlY3RvcnklM0RrZXJuZWxzJTIy",highlighted:'pip install <span class="hljs-string">&quot;kernels[benchmark] @ git+https://github.com/huggingface/kernels#subdirectory=kernels&quot;</span>',lang:"bash",wrap:!1}}),h=new ae({props:{source:"https://github.com/huggingface/kernels/blob/main/docs/source/installation.md"}}),{c(){i=b("meta"),C=a(),T=b("p"),H=a(),w(o.$$.fragment),L=a(),w(m.$$.fragment),P=a(),p=b("p"),p.innerHTML=Z,U=a(),w(f.$$.fragment),j=a(),c=b("p"),c.innerHTML=N,I=a(),w(u.$$.fragment),J=a(),$=b("p"),$.innerHTML=X,W=a(),w(d.$$.fragment),G=a(),r=b("blockquote"),r.innerHTML=Q,z=a(),w(h.$$.fragment),A=a(),x=b("p"),this.h()},l(e){const t=ee("svelte-u9bgzb",document.head);i=g(t,"META",{name:!0,content:!0}),t.forEach(n),C=s(e),T=g(e,"P",{}),Y(T).forEach(n),H=s(e),M(o.$$.fragment,e),L=s(e),M(m.$$.fragment,e),P=s(e),p=g(e,"P",{"data-svelte-h":!0}),E(p)!=="svelte-1wkb7xn"&&(p.innerHTML=Z),U=s(e),M(f.$$.fragment,e),j=s(e),c=g(e,"P",{"data-svelte-h":!0}),E(c)!=="svelte-oie08r"&&(c.innerHTML=N),I=s(e),M(u.$$.fragment,e),J=s(e),$=g(e,"P",{"data-svelte-h":!0}),E($)!=="svelte-1wu94em"&&($.innerHTML=X),W=s(e),M(d.$$.fragment,e),G=s(e),r=g(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),E(r)!=="svelte-nce4hr"&&(r.innerHTML=Q),z=s(e),M(h.$$.fragment,e),A=s(e),x=g(e,"P",{}),Y(x).forEach(n),this.h()},h(){R(i,"name","hf:doc:metadata"),R(i,"content",ie),R(r,"class","important")},m(e,t){te(document.head,i),l(e,C,t),l(e,T,t),l(e,H,t),y(o,e,t),l(e,L,t),y(m,e,t),l(e,P,t),l(e,p,t),l(e,U,t),y(f,e,t),l(e,j,t),l(e,c,t),l(e,I,t),y(u,e,t),l(e,J,t),l(e,$,t),l(e,W,t),y(d,e,t),l(e,G,t),l(e,r,t),l(e,z,t),y(h,e,t),l(e,A,t),l(e,x,t),B=!0},p:O,i(e){B||(k(o.$$.fragment,e),k(m.$$.fragment,e),k(f.$$.fragment,e),k(u.$$.fragment,e),k(d.$$.fragment,e),k(h.$$.fragment,e),B=!0)},o(e){_(o.$$.fragment,e),_(m.$$.fragment,e),_(f.$$.fragment,e),_(u.$$.fragment,e),_(d.$$.fragment,e),_(h.$$.fragment,e),B=!1},d(e){e&&(n(C),n(T),n(H),n(L),n(P),n(p),n(U),n(j),n(c),n(I),n(J),n($),n(W),n(G),n(r),n(z),n(A),n(x)),n(i),v(o,e),v(m,e),v(f,e),v(u,e),v(d,e),v(h,e)}}}const ie='{"title":"Installation","local":"installation","sections":[],"depth":1}';function re(S){return D(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ue extends K{constructor(i){super(),V(this,i,re,se,F,{})}}export{ue as component};

Xet Storage Details

Size:
3.92 kB
·
Xet hash:
08f16b527f7a766a6713456003b43da1ebce20c390338df71eecb08bbde9fc44

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