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 w,d as n,b as i,f as X,g as b,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.ee636735.js";import{C as E}from"../chunks/CodeBlock.5aa52fca.js";import{H as ee,E as te}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.9b009efe.js";function ne(S){let s,T,v,C,m,H,r,U,o,Z="Install the <code>kernels</code> package with <code>pip</code> (requires <code>torch&gt;=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",wrap:!1}}),$=new E({props:{code:"dXYlMjBwaXAlMjBpbnN0YWxsJTIwa2VybmVscw==",highlighted:"uv pip install kernels",wrap:!1}}),u=new E({props:{code:"cGlwJTIwaW5zdGFsbCUyMCUyMmtlcm5lbHMlNUJiZW5jaG1hcmslNUQlMjAlNDAlMjBnaXQlMkJodHRwcyUzQSUyRiUyRmdpdGh1Yi5jb20lMkZodWdnaW5nZmFjZSUyRmtlcm5lbHMlMjNzdWJkaXJlY3RvcnklM0RrZXJuZWxzJTIy",highlighted:'pip install <span class="hljs-string">&quot;kernels[benchmark] @ git+https://github.com/huggingface/kernels#subdirectory=kernels&quot;</span>',wrap:!1}}),d=new te({props:{source:"https://github.com/huggingface/kernels/blob/main/docs/source/installation.md"}}),{c(){s=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);s=w(t,"META",{name:!0,content:!0}),t.forEach(n),T=i(e),v=w(e,"P",{}),X(v).forEach(n),C=i(e),b(m.$$.fragment,e),H=i(e),b(r.$$.fragment,e),U=i(e),o=w(e,"P",{"data-svelte-h":!0}),R(o)!=="svelte-1wkb7xn"&&(o.innerHTML=Z),j=i(e),b(p.$$.fragment,e),J=i(e),f=w(e,"P",{"data-svelte-h":!0}),R(f)!=="svelte-oie08r"&&(f.innerHTML=A),L=i(e),b($.$$.fragment,e),P=i(e),c=w(e,"P",{"data-svelte-h":!0}),R(c)!=="svelte-1wu94em"&&(c.innerHTML=N),G=i(e),b(u.$$.fragment,e),W=i(e),b(d.$$.fragment,e),z=i(e),x=w(e,"P",{}),X(x).forEach(n),this.h()},h(){q(s,"name","hf:doc:metadata"),q(s,"content",le)},m(e,t){O(document.head,s),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(s),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(s){super(),D(this,s,ae,ne,B,{})}}export{pe as component};
