Buckets:

download
raw
5.01 kB
import{s as ee,n as te,o as ne}from"../chunks/scheduler.f3b1e791.js";import{S as le,i as ae,e as i,s as a,c as S,h as se,a as r,d as n,b as s,f as Z,g as q,j as p,k as B,l as ie,m as l,n as I,t as D,o as F,p as O}from"../chunks/index.023a9934.js";import{C as re}from"../chunks/CopyLLMTxtMenu.a3b055d4.js";import{H as oe,E as ue}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.3e01a9dc.js";function pe(R){let o,_,H,y,m,x,c,P,u,G='<a href="https://huggingface.co/kernels"><img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/kernels/kernels-thumbnail-light.png" alt="Kernels"/> <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/kernels/kernels-thumbnail-dark.png" alt="Kernels"/></a>',w,f,N=`The Kernel Hub allows Python libraries and applications to load compute
kernels directly from the <a href="https://huggingface.co/" rel="nofollow">Hub</a>. Kernels are a first-class
repository type on the Hub, with dedicated pages that surface supported
hardware and versions. To support dynamic loading, Hub kernels differ from
traditional Python kernel packages in that they are made to be:`,L,d,V=`<li><strong>Portable</strong>: a kernel can be loaded from paths outside <code>PYTHONPATH</code>.</li> <li><strong>Unique</strong>: multiple versions of the same kernel can be loaded in the
same Python process.</li> <li><strong>Compatible</strong>: <code>kernels</code> must support all recent versions of Python and
the different PyTorch build configurations (various CUDA versions
and C++ ABIs). Furthermore, older C library versions must be supported.</li>`,M,h,W='Browse available kernels at <a href="https://huggingface.co/kernels" rel="nofollow">huggingface.co/kernels</a>.',C,g,Y="The Kernels project is divided into two parts:",K,k,J=`<li>Builder: <a href="builder-cli"><code>kernel-builder</code></a> provides utilities to build, package, and distribute compute kernels in a way that is compatible with the Hugging Face Hub and <code>kernels</code>.</li> <li><code>kernels</code>: The <a href="basic-usage"><code>kernels</code></a> is a Python package that lets
users load compatible compute kernels from the Hub. Refer to the <a href="basic-usage">quickstart</a> to know more.</li>`,j,b,Q=`If you’re looking for a more involved “Why kernels?” answer, refer to
<a href="./why_kernels">this page</a>.`,E,v,X=`The <a href="./talks">talks page</a> page has links to talks on the
Kernels project.`,z,$,U,T,A;return m=new re({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),c=new oe({props:{title:"Kernels",local:"kernels",headingTag:"h1"}}),$=new ue({props:{source:"https://github.com/huggingface/kernels/blob/main/docs/source/index.md"}}),{c(){o=i("meta"),_=a(),H=i("p"),y=a(),S(m.$$.fragment),x=a(),S(c.$$.fragment),P=a(),u=i("div"),u.innerHTML=G,w=a(),f=i("p"),f.innerHTML=N,L=a(),d=i("ul"),d.innerHTML=V,M=a(),h=i("p"),h.innerHTML=W,C=a(),g=i("p"),g.textContent=Y,K=a(),k=i("ul"),k.innerHTML=J,j=a(),b=i("p"),b.innerHTML=Q,E=a(),v=i("p"),v.innerHTML=X,z=a(),S($.$$.fragment),U=a(),T=i("p"),this.h()},l(e){const t=se("svelte-u9bgzb",document.head);o=r(t,"META",{name:!0,content:!0}),t.forEach(n),_=s(e),H=r(e,"P",{}),Z(H).forEach(n),y=s(e),q(m.$$.fragment,e),x=s(e),q(c.$$.fragment,e),P=s(e),u=r(e,"DIV",{align:!0,"data-svelte-h":!0}),p(u)!=="svelte-1s7pjo"&&(u.innerHTML=G),w=s(e),f=r(e,"P",{"data-svelte-h":!0}),p(f)!=="svelte-d2zfnz"&&(f.innerHTML=N),L=s(e),d=r(e,"UL",{"data-svelte-h":!0}),p(d)!=="svelte-x1puvx"&&(d.innerHTML=V),M=s(e),h=r(e,"P",{"data-svelte-h":!0}),p(h)!=="svelte-5afj4y"&&(h.innerHTML=W),C=s(e),g=r(e,"P",{"data-svelte-h":!0}),p(g)!=="svelte-mh7hht"&&(g.textContent=Y),K=s(e),k=r(e,"UL",{"data-svelte-h":!0}),p(k)!=="svelte-164k7j2"&&(k.innerHTML=J),j=s(e),b=r(e,"P",{"data-svelte-h":!0}),p(b)!=="svelte-msuz7s"&&(b.innerHTML=Q),E=s(e),v=r(e,"P",{"data-svelte-h":!0}),p(v)!=="svelte-njci4r"&&(v.innerHTML=X),z=s(e),q($.$$.fragment,e),U=s(e),T=r(e,"P",{}),Z(T).forEach(n),this.h()},h(){B(o,"name","hf:doc:metadata"),B(o,"content",me),B(u,"align","center")},m(e,t){ie(document.head,o),l(e,_,t),l(e,H,t),l(e,y,t),I(m,e,t),l(e,x,t),I(c,e,t),l(e,P,t),l(e,u,t),l(e,w,t),l(e,f,t),l(e,L,t),l(e,d,t),l(e,M,t),l(e,h,t),l(e,C,t),l(e,g,t),l(e,K,t),l(e,k,t),l(e,j,t),l(e,b,t),l(e,E,t),l(e,v,t),l(e,z,t),I($,e,t),l(e,U,t),l(e,T,t),A=!0},p:te,i(e){A||(D(m.$$.fragment,e),D(c.$$.fragment,e),D($.$$.fragment,e),A=!0)},o(e){F(m.$$.fragment,e),F(c.$$.fragment,e),F($.$$.fragment,e),A=!1},d(e){e&&(n(_),n(H),n(y),n(x),n(P),n(u),n(w),n(f),n(L),n(d),n(M),n(h),n(C),n(g),n(K),n(k),n(j),n(b),n(E),n(v),n(z),n(U),n(T)),n(o),O(m,e),O(c,e),O($,e)}}}const me='{"title":"Kernels","local":"kernels","sections":[],"depth":1}';function ce(R){return ne(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ke extends le{constructor(o){super(),ae(this,o,ce,pe,ee,{})}}export{ke as component};

Xet Storage Details

Size:
5.01 kB
·
Xet hash:
6ea8b5c4bc69ad7f2ead1097b196ed997b9f80eb8a128343567318e9c0d5ee48

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