import{s as D,n as F,o as V}from"../chunks/scheduler.d9d004e7.js";import{S as N,i as O,e as h,s as l,c as b,h as Q,a as $,d as a,b as i,f as A,g as M,j as P,k as X,l as U,m as n,n as _,t as T,o as x,p as y}from"../chunks/index.4a2b774c.js";import{C as q,H as z,E as K}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.02c268bd.js";import{C as R}from"../chunks/CodeBlock.67ad8ed0.js";function tt(Z){let o,I,w,v,s,S,r,G,p,B=`To install Optimum for Intel® Gaudi® AI accelerator, you first need to install Intel Gaudi Software and the Intel Gaudi
AI accelerator drivers by following the official <a href="https://docs.habana.ai/en/latest/Installation_Guide/index.html" rel="nofollow">installation guide</a>.
Then, Optimum for Intel Gaudi can be installed using <code>pip</code> as follows:`,C,m,H,u,Y="To use Microsoft® DeepSpeed with Intel Gaudi devices, you also need to run the following command:",J,f,W,d,j=`To ensure that you are installing the correct Intel Gaudi Software, please run the <code>hl-smi</code> command to confirm the software version
being used in the system and apply the same version when running the DeepSpeed installation; please review the Intel Gaudi
<a href="https://docs.habana.ai/en/latest/Support_Matrix/Support_Matrix.html" rel="nofollow">Support Matrix</a> and ensure that you are using an appropriate
version of DeepSpeed.`,L,c,k,g,E;return s=new q({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),r=new z({props:{title:"Installation",local:"installation",headingTag:"h1"}}),m=new R({props:{code:"cHl0aG9uJTIwLW0lMjBwaXAlMjBpbnN0YWxsJTIwLS11cGdyYWRlLXN0cmF0ZWd5JTIwZWFnZXIlMjBvcHRpbXVtJTVCaGFiYW5hJTVE",highlighted:"python -m pip install --upgrade-strategy eager optimum[habana]",wrap:!1}}),f=new R({props:{code:"cHl0aG9uJTIwLW0lMjBwaXAlMjBpbnN0YWxsJTIwZ2l0JTJCaHR0cHMlM0ElMkYlMkZnaXRodWIuY29tJTJGSGFiYW5hQUklMkZEZWVwU3BlZWQuZ2l0JTQwMS4yMi4w",highlighted:"python -m pip install git+https://github.com/HabanaAI/DeepSpeed.git@1.22.0",wrap:!1}}),c=new K({props:{source:"https://github.com/huggingface/optimum-habana/blob/main/docs/source/installation.mdx"}}),{c(){o=h("meta"),I=l(),w=h("p"),v=l(),b(s.$$.fragment),S=l(),b(r.$$.fragment),G=l(),p=h("p"),p.innerHTML=B,C=l(),b(m.$$.fragment),H=l(),u=h("p"),u.textContent=Y,J=l(),b(f.$$.fragment),W=l(),d=h("p"),d.innerHTML=j,L=l(),b(c.$$.fragment),k=l(),g=h("p"),this.h()},l(t){const e=Q("svelte-u9bgzb",document.head);o=$(e,"META",{name:!0,content:!0}),e.forEach(a),I=i(t),w=$(t,"P",{}),A(w).forEach(a),v=i(t),M(s.$$.fragment,t),S=i(t),M(r.$$.fragment,t),G=i(t),p=$(t,"P",{"data-svelte-h":!0}),P(p)!=="svelte-ycla0d"&&(p.innerHTML=B),C=i(t),M(m.$$.fragment,t),H=i(t),u=$(t,"P",{"data-svelte-h":!0}),P(u)!=="svelte-1burrv7"&&(u.textContent=Y),J=i(t),M(f.$$.fragment,t),W=i(t),d=$(t,"P",{"data-svelte-h":!0}),P(d)!=="svelte-qmk0b9"&&(d.innerHTML=j),L=i(t),M(c.$$.fragment,t),k=i(t),g=$(t,"P",{}),A(g).forEach(a),this.h()},h(){X(o,"name","hf:doc:metadata"),X(o,"content",et)},m(t,e){U(document.head,o),n(t,I,e),n(t,w,e),n(t,v,e),_(s,t,e),n(t,S,e),_(r,t,e),n(t,G,e),n(t,p,e),n(t,C,e),_(m,t,e),n(t,H,e),n(t,u,e),n(t,J,e),_(f,t,e),n(t,W,e),n(t,d,e),n(t,L,e),_(c,t,e),n(t,k,e),n(t,g,e),E=!0},p:F,i(t){E||(T(s.$$.fragment,t),T(r.$$.fragment,t),T(m.$$.fragment,t),T(f.$$.fragment,t),T(c.$$.fragment,t),E=!0)},o(t){x(s.$$.fragment,t),x(r.$$.fragment,t),x(m.$$.fragment,t),x(f.$$.fragment,t),x(c.$$.fragment,t),E=!1},d(t){t&&(a(I),a(w),a(v),a(S),a(G),a(p),a(C),a(H),a(u),a(J),a(W),a(d),a(L),a(k),a(g)),a(o),y(s,t),y(r,t),y(m,t),y(f,t),y(c,t)}}}const et='{"title":"Installation","local":"installation","sections":[],"depth":1}';function at(Z){return V(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class st extends N{constructor(o){super(),O(this,o,at,tt,D,{})}}export{st as component};
