Buckets:
| import{s as nt,n as lt,o as at}from"../chunks/scheduler.7da89386.js";import{S as it,i as ot,g as o,s as a,r as C,A as st,h as s,f as n,c as i,j as tt,u as M,x,k as et,y as pt,a as l,v as _,d as H,t as J,w as I}from"../chunks/index.20910acc.js";import{C as S}from"../chunks/CodeBlock.cde23137.js";import{H as rt,E as mt}from"../chunks/EditOnGithub.ba36cbd0.js";function ut(V){let p,L,T,P,r,W,m,X="To install the latest release of 🤗 Optimum Intel with the corresponding required dependencies, you can do respectively:",k,u,O='<thead><tr><th align="left">Accelerator</th> <th align="left">Installation</th></tr></thead> <tbody><tr><td align="left"><a href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/neural-compressor.html" rel="nofollow">Intel Neural Compressor (INC)</a></td> <td align="left"><code>pip install --upgrade --upgrade-strategy eager "optimum[neural-compressor]"</code></td></tr> <tr><td align="left"><a href="https://docs.openvino.ai" rel="nofollow">Intel OpenVINO</a></td> <td align="left"><code>pip install --upgrade --upgrade-strategy eager "optimum[openvino]"</code></td></tr> <tr><td align="left"><a href="https://intel.github.io/intel-extension-for-pytorch/#introduction" rel="nofollow">Intel Extension for PyTorch</a></td> <td align="left"><code>pip install --upgrade --upgrade-strategy eager "optimum[ipex]"</code></td></tr></tbody>',q,d,Q="The <code>--upgrade-strategy eager</code> option is needed to ensure <code>optimum-intel</code> is upgraded to the latest version.",B,c,z='We recommend creating a <a href="https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/#creating-a-virtual-environment" rel="nofollow">virtual environment</a> and upgrading pip with :',G,f,j,g,D="Optimum Intel is a fast-moving project, and you may want to install from source with the following command:",E,h,N,$,F="or to install from source including dependencies:",R,w,A,v,K="where <code>extras</code> can be one or more of <code>neural-compressor</code>, <code>openvino</code>, <code>ipex</code>.",U,b,Y,y,Z;return r=new rt({props:{title:"Installation",local:"installation",headingTag:"h1"}}),f=new S({props:{code:"cHl0aG9uJTIwLW0lMjBwaXAlMjBpbnN0YWxsJTIwLS11cGdyYWRlJTIwcGlw",highlighted:"python -m pip install --upgrade pip",wrap:!1}}),h=new S({props:{code:"cHl0aG9uJTIwLW0lMjBwaXAlMjBpbnN0YWxsJTIwZ2l0JTJCaHR0cHMlM0ElMkYlMkZnaXRodWIuY29tJTJGaHVnZ2luZ2ZhY2UlMkZvcHRpbXVtLWludGVsLmdpdA==",highlighted:"python -m pip install git+https://github.com/huggingface/optimum-intel.git",wrap:!1}}),w=new S({props:{code:"cHl0aG9uJTIwLW0lMjBwaXAlMjBpbnN0YWxsJTIwJTIyb3B0aW11bS1pbnRlbCU1QmV4dHJhcyU1RCUyMiU0MGdpdCUyQmh0dHBzJTNBJTJGJTJGZ2l0aHViLmNvbSUyRmh1Z2dpbmdmYWNlJTJGb3B0aW11bS1pbnRlbC5naXQ=",highlighted:'python -m pip install <span class="hljs-string">"optimum-intel[extras]"</span>@git+https://github.com/huggingface/optimum-intel.git',wrap:!1}}),b=new mt({props:{source:"https://github.com/huggingface/optimum-intel/blob/main/docs/source/installation.mdx"}}),{c(){p=o("meta"),L=a(),T=o("p"),P=a(),C(r.$$.fragment),W=a(),m=o("p"),m.textContent=X,k=a(),u=o("table"),u.innerHTML=O,q=a(),d=o("p"),d.innerHTML=Q,B=a(),c=o("p"),c.innerHTML=z,G=a(),C(f.$$.fragment),j=a(),g=o("p"),g.textContent=D,E=a(),C(h.$$.fragment),N=a(),$=o("p"),$.textContent=F,R=a(),C(w.$$.fragment),A=a(),v=o("p"),v.innerHTML=K,U=a(),C(b.$$.fragment),Y=a(),y=o("p"),this.h()},l(t){const e=st("svelte-u9bgzb",document.head);p=s(e,"META",{name:!0,content:!0}),e.forEach(n),L=i(t),T=s(t,"P",{}),tt(T).forEach(n),P=i(t),M(r.$$.fragment,t),W=i(t),m=s(t,"P",{"data-svelte-h":!0}),x(m)!=="svelte-1nvm2x5"&&(m.textContent=X),k=i(t),u=s(t,"TABLE",{"data-svelte-h":!0}),x(u)!=="svelte-6qu52n"&&(u.innerHTML=O),q=i(t),d=s(t,"P",{"data-svelte-h":!0}),x(d)!=="svelte-6v27vd"&&(d.innerHTML=Q),B=i(t),c=s(t,"P",{"data-svelte-h":!0}),x(c)!=="svelte-1q9vror"&&(c.innerHTML=z),G=i(t),M(f.$$.fragment,t),j=i(t),g=s(t,"P",{"data-svelte-h":!0}),x(g)!=="svelte-1knvkcx"&&(g.textContent=D),E=i(t),M(h.$$.fragment,t),N=i(t),$=s(t,"P",{"data-svelte-h":!0}),x($)!=="svelte-1shc08y"&&($.textContent=F),R=i(t),M(w.$$.fragment,t),A=i(t),v=s(t,"P",{"data-svelte-h":!0}),x(v)!=="svelte-k13co9"&&(v.innerHTML=K),U=i(t),M(b.$$.fragment,t),Y=i(t),y=s(t,"P",{}),tt(y).forEach(n),this.h()},h(){et(p,"name","hf:doc:metadata"),et(p,"content",dt)},m(t,e){pt(document.head,p),l(t,L,e),l(t,T,e),l(t,P,e),_(r,t,e),l(t,W,e),l(t,m,e),l(t,k,e),l(t,u,e),l(t,q,e),l(t,d,e),l(t,B,e),l(t,c,e),l(t,G,e),_(f,t,e),l(t,j,e),l(t,g,e),l(t,E,e),_(h,t,e),l(t,N,e),l(t,$,e),l(t,R,e),_(w,t,e),l(t,A,e),l(t,v,e),l(t,U,e),_(b,t,e),l(t,Y,e),l(t,y,e),Z=!0},p:lt,i(t){Z||(H(r.$$.fragment,t),H(f.$$.fragment,t),H(h.$$.fragment,t),H(w.$$.fragment,t),H(b.$$.fragment,t),Z=!0)},o(t){J(r.$$.fragment,t),J(f.$$.fragment,t),J(h.$$.fragment,t),J(w.$$.fragment,t),J(b.$$.fragment,t),Z=!1},d(t){t&&(n(L),n(T),n(P),n(W),n(m),n(k),n(u),n(q),n(d),n(B),n(c),n(G),n(j),n(g),n(E),n(N),n($),n(R),n(A),n(v),n(U),n(Y),n(y)),n(p),I(r,t),I(f,t),I(h,t),I(w,t),I(b,t)}}}const dt='{"title":"Installation","local":"installation","sections":[],"depth":1}';function ct(V){return at(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class wt extends it{constructor(p){super(),ot(this,p,ct,ut,nt,{})}}export{wt as component}; | |
Xet Storage Details
- Size:
- 5.32 kB
- Xet hash:
- 46f08bdba53f6c3e8087b31d1d82407258b260d94cd1a4631609e615a126383f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.