Buckets:
| import{s as B,n as Y,o as F}from"../chunks/scheduler.f3b1e791.js";import{S as Q,i as D,e as h,s as a,c as g,h as V,a as b,d as n,b as s,f as X,g as w,j as R,k as q,l as O,m as l,n as M,t as k,o as _,p as y}from"../chunks/index.023a9934.js";import{C as K}from"../chunks/CopyLLMTxtMenu.3d5c1b04.js";import{C as E}from"../chunks/CodeBlock.aff97c29.js";import{H as ee,E as te}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.ea848e0a.js";function ne(S){let i,T,v,C,m,H,r,U,o,Z="Install the <code>kernels</code> package with <code>pip</code> (requires <code>torch>=2.5</code> and CUDA):",j,p,J,f,A="or with <code>uv</code>",L,$,P,c,N="or if you want the latest version from the <code>main</code> branch:",G,u,W,d,z,x,I;return m=new K({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),r=new ee({props:{title:"Installation",local:"installation",headingTag:"h1"}}),p=new E({props:{code:"cGlwJTIwaW5zdGFsbCUyMGtlcm5lbHM=",highlighted:"pip install kernels",lang:"bash",wrap:!1}}),$=new E({props:{code:"dXYlMjBwaXAlMjBpbnN0YWxsJTIwa2VybmVscw==",highlighted:"uv pip install kernels",lang:"bash",wrap:!1}}),u=new E({props:{code:"cGlwJTIwaW5zdGFsbCUyMCUyMmtlcm5lbHMlNUJiZW5jaG1hcmslNUQlMjAlNDAlMjBnaXQlMkJodHRwcyUzQSUyRiUyRmdpdGh1Yi5jb20lMkZodWdnaW5nZmFjZSUyRmtlcm5lbHMlMjNzdWJkaXJlY3RvcnklM0RrZXJuZWxzJTIy",highlighted:'pip install <span class="hljs-string">"kernels[benchmark] @ git+https://github.com/huggingface/kernels#subdirectory=kernels"</span>',lang:"bash",wrap:!1}}),d=new te({props:{source:"https://github.com/huggingface/kernels/blob/main/docs/source/installation.md"}}),{c(){i=h("meta"),T=a(),v=h("p"),C=a(),g(m.$$.fragment),H=a(),g(r.$$.fragment),U=a(),o=h("p"),o.innerHTML=Z,j=a(),g(p.$$.fragment),J=a(),f=h("p"),f.innerHTML=A,L=a(),g($.$$.fragment),P=a(),c=h("p"),c.innerHTML=N,G=a(),g(u.$$.fragment),W=a(),g(d.$$.fragment),z=a(),x=h("p"),this.h()},l(e){const t=V("svelte-u9bgzb",document.head);i=b(t,"META",{name:!0,content:!0}),t.forEach(n),T=s(e),v=b(e,"P",{}),X(v).forEach(n),C=s(e),w(m.$$.fragment,e),H=s(e),w(r.$$.fragment,e),U=s(e),o=b(e,"P",{"data-svelte-h":!0}),R(o)!=="svelte-1wkb7xn"&&(o.innerHTML=Z),j=s(e),w(p.$$.fragment,e),J=s(e),f=b(e,"P",{"data-svelte-h":!0}),R(f)!=="svelte-oie08r"&&(f.innerHTML=A),L=s(e),w($.$$.fragment,e),P=s(e),c=b(e,"P",{"data-svelte-h":!0}),R(c)!=="svelte-1wu94em"&&(c.innerHTML=N),G=s(e),w(u.$$.fragment,e),W=s(e),w(d.$$.fragment,e),z=s(e),x=b(e,"P",{}),X(x).forEach(n),this.h()},h(){q(i,"name","hf:doc:metadata"),q(i,"content",le)},m(e,t){O(document.head,i),l(e,T,t),l(e,v,t),l(e,C,t),M(m,e,t),l(e,H,t),M(r,e,t),l(e,U,t),l(e,o,t),l(e,j,t),M(p,e,t),l(e,J,t),l(e,f,t),l(e,L,t),M($,e,t),l(e,P,t),l(e,c,t),l(e,G,t),M(u,e,t),l(e,W,t),M(d,e,t),l(e,z,t),l(e,x,t),I=!0},p:Y,i(e){I||(k(m.$$.fragment,e),k(r.$$.fragment,e),k(p.$$.fragment,e),k($.$$.fragment,e),k(u.$$.fragment,e),k(d.$$.fragment,e),I=!0)},o(e){_(m.$$.fragment,e),_(r.$$.fragment,e),_(p.$$.fragment,e),_($.$$.fragment,e),_(u.$$.fragment,e),_(d.$$.fragment,e),I=!1},d(e){e&&(n(T),n(v),n(C),n(H),n(U),n(o),n(j),n(J),n(f),n(L),n(P),n(c),n(G),n(W),n(z),n(x)),n(i),y(m,e),y(r,e),y(p,e),y($,e),y(u,e),y(d,e)}}}const le='{"title":"Installation","local":"installation","sections":[],"depth":1}';function ae(S){return F(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class pe extends Q{constructor(i){super(),D(this,i,ae,ne,B,{})}}export{pe as component}; | |
Xet Storage Details
- Size:
- 3.45 kB
- Xet hash:
- d5683d152ac0b89758003eb9d0988122dfe92f2b911e5061c25223462e7fdd13
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.