import{s as gt,n as Ut,o as Jt}from"../chunks/scheduler.f3b1e791.js";import{S as xt,i as Ct,e as o,s as i,c as m,h as jt,a as f,d as l,b as a,f as kt,g as s,j as Y,k as Tt,l as vt,m as n,n as p,t as r,o as $,p as c}from"../chunks/index.023a9934.js";import{C as _t}from"../chunks/CopyLLMTxtMenu.ee636735.js";import{C as L}from"../chunks/CodeBlock.5aa52fca.js";import{H,E as It}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.9b009efe.js";function Wt(ft){let h,F,A,S,y,Z,d,R,u,ht="Use <code>kernels check</code> to verify that a kernel on the Hub meets compliance requirements.",X,b,z,M,yt="<li>Python ABI compatibility (default: 3.9)</li> <li>Operating system compatibility (macOS 15.0+, manylinux_2_28)</li>",P,w,O,k,Q,T,D,g,dt="<code>kernels check</code> requires an additional dependency:",q,U,K,J,tt,x,ut="Check a kernel on the Hub:",et,C,lt,j,bt="Check a specific revision:",nt,v,it,_,Mt="Check with custom compatibility requirements:",at,I,mt,W,st,G,pt,B,rt,V,wt="<thead><tr><th>Option</th> <th>Default</th> <th>Description</th></tr></thead> <tbody><tr><td><code>--revision</code></td> <td><code>main</code></td> <td>Branch, tag, or commit SHA to check</td></tr> <tr><td><code>--macos</code></td> <td><code>15.0</code></td> <td>Minimum macOS version to require</td></tr> <tr><td><code>--manylinux</code></td> <td><code>manylinux_2_28</code></td> <td>Manylinux version to require</td></tr> <tr><td><code>--python-abi</code></td> <td><code>3.9</code></td> <td>Python ABI version to require</td></tr></tbody>",$t,N,ct,E,ot;return y=new _t({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),d=new H({props:{title:"kernels check",local:"kernels-check",headingTag:"h1"}}),b=new H({props:{title:"What It Checks",local:"what-it-checks",headingTag:"h2"}}),w=new H({props:{title:"Usage",local:"usage",headingTag:"h2"}}),k=new L({props:{code:"a2VybmVscyUyMGNoZWNrJTIwJTNDcmVwb19pZCUzRSUyMCU1Qi0tcmV2aXNpb24lMjAlM0NyZXYlM0UlNUQlMjAlNUItLW1hY29zJTIwJTNDdmVyc2lvbiUzRSU1RCUyMCU1Qi0tbWFueWxpbnV4JTIwJTNDdmVyc2lvbiUzRSU1RCUyMCU1Qi0tcHl0aG9uLWFiaSUyMCUzQ3ZlcnNpb24lM0UlNUQ=",highlighted:"kernels check &lt;repo_id&gt; [--revision &lt;rev&gt;] [--macos &lt;version&gt;] [--manylinux &lt;version&gt;] [--python-abi &lt;version&gt;]",wrap:!1}}),T=new H({props:{title:"Installation",local:"installation",headingTag:"h2"}}),U=new L({props:{code:"dXYlMjBwaXAlMjBpbnN0YWxsJTIwa2VybmVsLWFiaS1jaGVjayUyMCUyMyUyMG9yJTIwcGlwJTIwaW5zdGFsbCUyMGtlcm5lbC1hYmktY2hlY2s=",highlighted:'uv pip install kernel-abi-check <span class="hljs-comment"># or pip install kernel-abi-check</span>',wrap:!1}}),J=new H({props:{title:"Examples",local:"examples",headingTag:"h2"}}),C=new L({props:{code:"a2VybmVscyUyMGNoZWNrJTIwa2VybmVscy1jb21tdW5pdHklMkZmbGFzaC1hdHRuMw==",highlighted:"kernels check kernels-community/flash-attn3",wrap:!1}}),v=new L({props:{code:"a2VybmVscyUyMGNoZWNrJTIwa2VybmVscy1jb21tdW5pdHklMkZmbGFzaC1hdHRuMyUyMC0tcmV2aXNpb24lMjB2Mg==",highlighted:"kernels check kernels-community/flash-attn3 --revision v2",wrap:!1}}),I=new L({props:{code:"a2VybmVscyUyMGNoZWNrJTIwa2VybmVscy1jb21tdW5pdHklMkZmbGFzaC1hdHRuMyUyMC0tcHl0aG9uLWFiaSUyMDMuMTAlMjAtLW1hbnlsaW51eCUyMG1hbnlsaW51eF8yXzMx",highlighted:"kernels check kernels-community/flash-attn3 --python-abi 3.10 --manylinux manylinux_2_31",wrap:!1}}),W=new H({props:{title:"Example Output",local:"example-output",headingTag:"h2"}}),G=new L({props:{code:"Q2hlY2tpbmclMjB2YXJpYW50JTNBJTIwdG9yY2gyMTAtbWV0YWwtYWFyY2g2NC1kYXJ3aW4lMEElMjAlMjBEeW5hbWljJTIwbGlicmFyeSUyMF9leGFtcGxlX2tlcm5lbF9tZXRhbF8yanVpeGp3ZHpuYmh5LmFiaTMuc28lM0ElMEElMjAlMjAlMjAlMjAlRjAlOUYlOTAlOEQlMjBQeXRob24lMjBBQkklMjAzLjklMjBjb21wYXRpYmxlJTBBJTIwJTIwJTIwJTIwJUYwJTlGJThEJThGJTIwY29tcGF0aWJsZSUyMHdpdGglMjBtYWNPUyUyMDE1LjAlMEFDaGVja2luZyUyMHZhcmlhbnQlM0ElMjB0b3JjaDI5LW1ldGFsLWFhcmNoNjQtZGFyd2luJTBBJTIwJTIwRHluYW1pYyUyMGxpYnJhcnklMjBfZXhhbXBsZV9rZXJuZWxfbWV0YWxfdnRsbnBldmtiNnV1bS5hYmkzLnNvJTNBJTBBJTIwJTIwJTIwJTIwJUYwJTlGJTkwJThEJTIwUHl0aG9uJTIwQUJJJTIwMy45JTIwY29tcGF0aWJsZSUwQSUyMCUyMCUyMCUyMCVGMCU5RiU4RCU4RiUyMGNvbXBhdGlibGUlMjB3aXRoJTIwbWFjT1MlMjAxNS4w",highlighted:`Checking variant: torch210-metal-aarch64-darwin
  Dynamic library _example_kernel_metal_2juixjwdznbhy.abi3.so:
    🐍 Python ABI 3.9 compatible
    🍏 compatible with macOS 15.0
Checking variant: torch29-metal-aarch64-darwin
  Dynamic library _example_kernel_metal_vtlnpevkb6uum.abi3.so:
    🐍 Python ABI 3.9 compatible
    🍏 compatible with macOS 15.0`,wrap:!1}}),B=new H({props:{title:"Options",local:"options",headingTag:"h2"}}),N=new It({props:{source:"https://github.com/huggingface/kernels/blob/main/docs/source/cli-check.md"}}),{c(){h=o("meta"),F=i(),A=o("p"),S=i(),m(y.$$.fragment),Z=i(),m(d.$$.fragment),R=i(),u=o("p"),u.innerHTML=ht,X=i(),m(b.$$.fragment),z=i(),M=o("ul"),M.innerHTML=yt,P=i(),m(w.$$.fragment),O=i(),m(k.$$.fragment),Q=i(),m(T.$$.fragment),D=i(),g=o("p"),g.innerHTML=dt,q=i(),m(U.$$.fragment),K=i(),m(J.$$.fragment),tt=i(),x=o("p"),x.textContent=ut,et=i(),m(C.$$.fragment),lt=i(),j=o("p"),j.textContent=bt,nt=i(),m(v.$$.fragment),it=i(),_=o("p"),_.textContent=Mt,at=i(),m(I.$$.fragment),mt=i(),m(W.$$.fragment),st=i(),m(G.$$.fragment),pt=i(),m(B.$$.fragment),rt=i(),V=o("table"),V.innerHTML=wt,$t=i(),m(N.$$.fragment),ct=i(),E=o("p"),this.h()},l(t){const e=jt("svelte-u9bgzb",document.head);h=f(e,"META",{name:!0,content:!0}),e.forEach(l),F=a(t),A=f(t,"P",{}),kt(A).forEach(l),S=a(t),s(y.$$.fragment,t),Z=a(t),s(d.$$.fragment,t),R=a(t),u=f(t,"P",{"data-svelte-h":!0}),Y(u)!=="svelte-4o7z29"&&(u.innerHTML=ht),X=a(t),s(b.$$.fragment,t),z=a(t),M=f(t,"UL",{"data-svelte-h":!0}),Y(M)!=="svelte-11ot508"&&(M.innerHTML=yt),P=a(t),s(w.$$.fragment,t),O=a(t),s(k.$$.fragment,t),Q=a(t),s(T.$$.fragment,t),D=a(t),g=f(t,"P",{"data-svelte-h":!0}),Y(g)!=="svelte-bmarje"&&(g.innerHTML=dt),q=a(t),s(U.$$.fragment,t),K=a(t),s(J.$$.fragment,t),tt=a(t),x=f(t,"P",{"data-svelte-h":!0}),Y(x)!=="svelte-1xjh8d7"&&(x.textContent=ut),et=a(t),s(C.$$.fragment,t),lt=a(t),j=f(t,"P",{"data-svelte-h":!0}),Y(j)!=="svelte-a5myrk"&&(j.textContent=bt),nt=a(t),s(v.$$.fragment,t),it=a(t),_=f(t,"P",{"data-svelte-h":!0}),Y(_)!=="svelte-1pgb5qt"&&(_.textContent=Mt),at=a(t),s(I.$$.fragment,t),mt=a(t),s(W.$$.fragment,t),st=a(t),s(G.$$.fragment,t),pt=a(t),s(B.$$.fragment,t),rt=a(t),V=f(t,"TABLE",{"data-svelte-h":!0}),Y(V)!=="svelte-1b67fjx"&&(V.innerHTML=wt),$t=a(t),s(N.$$.fragment,t),ct=a(t),E=f(t,"P",{}),kt(E).forEach(l),this.h()},h(){Tt(h,"name","hf:doc:metadata"),Tt(h,"content",Gt)},m(t,e){vt(document.head,h),n(t,F,e),n(t,A,e),n(t,S,e),p(y,t,e),n(t,Z,e),p(d,t,e),n(t,R,e),n(t,u,e),n(t,X,e),p(b,t,e),n(t,z,e),n(t,M,e),n(t,P,e),p(w,t,e),n(t,O,e),p(k,t,e),n(t,Q,e),p(T,t,e),n(t,D,e),n(t,g,e),n(t,q,e),p(U,t,e),n(t,K,e),p(J,t,e),n(t,tt,e),n(t,x,e),n(t,et,e),p(C,t,e),n(t,lt,e),n(t,j,e),n(t,nt,e),p(v,t,e),n(t,it,e),n(t,_,e),n(t,at,e),p(I,t,e),n(t,mt,e),p(W,t,e),n(t,st,e),p(G,t,e),n(t,pt,e),p(B,t,e),n(t,rt,e),n(t,V,e),n(t,$t,e),p(N,t,e),n(t,ct,e),n(t,E,e),ot=!0},p:Ut,i(t){ot||(r(y.$$.fragment,t),r(d.$$.fragment,t),r(b.$$.fragment,t),r(w.$$.fragment,t),r(k.$$.fragment,t),r(T.$$.fragment,t),r(U.$$.fragment,t),r(J.$$.fragment,t),r(C.$$.fragment,t),r(v.$$.fragment,t),r(I.$$.fragment,t),r(W.$$.fragment,t),r(G.$$.fragment,t),r(B.$$.fragment,t),r(N.$$.fragment,t),ot=!0)},o(t){$(y.$$.fragment,t),$(d.$$.fragment,t),$(b.$$.fragment,t),$(w.$$.fragment,t),$(k.$$.fragment,t),$(T.$$.fragment,t),$(U.$$.fragment,t),$(J.$$.fragment,t),$(C.$$.fragment,t),$(v.$$.fragment,t),$(I.$$.fragment,t),$(W.$$.fragment,t),$(G.$$.fragment,t),$(B.$$.fragment,t),$(N.$$.fragment,t),ot=!1},d(t){t&&(l(F),l(A),l(S),l(Z),l(R),l(u),l(X),l(z),l(M),l(P),l(O),l(Q),l(D),l(g),l(q),l(K),l(tt),l(x),l(et),l(lt),l(j),l(nt),l(it),l(_),l(at),l(mt),l(st),l(pt),l(rt),l(V),l($t),l(ct),l(E)),l(h),c(y,t),c(d,t),c(b,t),c(w,t),c(k,t),c(T,t),c(U,t),c(J,t),c(C,t),c(v,t),c(I,t),c(W,t),c(G,t),c(B,t),c(N,t)}}}const Gt='{"title":"kernels check","local":"kernels-check","sections":[{"title":"What It Checks","local":"what-it-checks","sections":[],"depth":2},{"title":"Usage","local":"usage","sections":[],"depth":2},{"title":"Installation","local":"installation","sections":[],"depth":2},{"title":"Examples","local":"examples","sections":[],"depth":2},{"title":"Example Output","local":"example-output","sections":[],"depth":2},{"title":"Options","local":"options","sections":[],"depth":2}],"depth":1}';function Bt(ft){return Jt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class At extends xt{constructor(h){super(),Ct(this,h,Bt,Wt,gt,{})}}export{At as component};
