import{s as nt,n as lt,o as it}from"../chunks/scheduler.6efaaf90.js";import{S as st,i as at,e as _,s as i,c as m,h as mt,a as L,d as n,b as s,f as tt,g as p,j as z,k as et,l as pt,m as l,n as r,t as o,o as f,p as u}from"../chunks/index.eb3e1f0f.js";import{C as rt,H as X,E as ot}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.bc356b46.js";import{C as F}from"../chunks/CodeBlock.1ecb727a.js";function ft(O){let a,E,v,S,$,H,c,R,d,q=`You can install <code>text-embeddings-inference</code> locally to run it on your own Mac with Metal support.
Here are the step-by-step instructions for installation:`,G,h,P,g,D='<a href="https://rustup.rs/" rel="nofollow">Install Rust</a> on your machine by run the following in your terminal, then following the instructions:',Z,w,k,T,U,b,V,y,N,M,Q="Once the installation is successfully complete, you can launch Text Embeddings Inference with Metal with the following command:",j,x,W,J,K="Now you are ready to use <code>text-embeddings-inference</code> locally on your machine.",Y,I,A,C,B;return $=new rt({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),c=new X({props:{title:"Using TEI locally with Metal",local:"using-tei-locally-with-metal",headingTag:"h1"}}),h=new X({props:{title:"Step 1: Install Rust",local:"step-1-install-rust",headingTag:"h2"}}),w=new F({props:{code:"Y3VybCUyMC0tcHJvdG8lMjAnJTNEaHR0cHMnJTIwLS10bHN2MS4yJTIwLXNTZiUyMGh0dHBzJTNBJTJGJTJGc2gucnVzdHVwLnJzJTIwJTdDJTIwc2g=",highlighted:"curl --proto &#x27;=https&#x27; --tlsv1.2 -sSf https://sh.rustup.rs | sh",wrap:!1}}),T=new X({props:{title:"Step 2: Install with Metal support",local:"step-2-install-with-metal-support",headingTag:"h2"}}),b=new F({props:{code:"Y2FyZ28lMjBpbnN0YWxsJTIwLS1wYXRoJTIwcm91dGVyJTIwLUYlMjBtZXRhbA==",highlighted:"cargo install --path router -F metal",wrap:!1}}),y=new X({props:{title:"Step 3: Launch Text Embeddings Inference",local:"step-3-launch-text-embeddings-inference",headingTag:"h2"}}),x=new F({props:{code:"bW9kZWwlM0RRd2VuJTJGUXdlbjMtRW1iZWRkaW5nLTAuNkIlMEElMEF0ZXh0LWVtYmVkZGluZ3Mtcm91dGVyJTIwLS1tb2RlbC1pZCUyMCUyNG1vZGVsJTIwLS1wb3J0JTIwODA4MA==",highlighted:`model=Qwen/Qwen3-Embedding-0.6B

text-embeddings-router --model-id $model --port 8080`,wrap:!1}}),I=new ot({props:{source:"https://github.com/huggingface/text-embeddings-inference/blob/main/docs/source/en/local_metal.md"}}),{c(){a=_("meta"),E=i(),v=_("p"),S=i(),m($.$$.fragment),H=i(),m(c.$$.fragment),R=i(),d=_("p"),d.innerHTML=q,G=i(),m(h.$$.fragment),P=i(),g=_("p"),g.innerHTML=D,Z=i(),m(w.$$.fragment),k=i(),m(T.$$.fragment),U=i(),m(b.$$.fragment),V=i(),m(y.$$.fragment),N=i(),M=_("p"),M.textContent=Q,j=i(),m(x.$$.fragment),W=i(),J=_("p"),J.innerHTML=K,Y=i(),m(I.$$.fragment),A=i(),C=_("p"),this.h()},l(t){const e=mt("svelte-u9bgzb",document.head);a=L(e,"META",{name:!0,content:!0}),e.forEach(n),E=s(t),v=L(t,"P",{}),tt(v).forEach(n),S=s(t),p($.$$.fragment,t),H=s(t),p(c.$$.fragment,t),R=s(t),d=L(t,"P",{"data-svelte-h":!0}),z(d)!=="svelte-gmh4vn"&&(d.innerHTML=q),G=s(t),p(h.$$.fragment,t),P=s(t),g=L(t,"P",{"data-svelte-h":!0}),z(g)!=="svelte-2fjw7p"&&(g.innerHTML=D),Z=s(t),p(w.$$.fragment,t),k=s(t),p(T.$$.fragment,t),U=s(t),p(b.$$.fragment,t),V=s(t),p(y.$$.fragment,t),N=s(t),M=L(t,"P",{"data-svelte-h":!0}),z(M)!=="svelte-1db3cj0"&&(M.textContent=Q),j=s(t),p(x.$$.fragment,t),W=s(t),J=L(t,"P",{"data-svelte-h":!0}),z(J)!=="svelte-d9qcy"&&(J.innerHTML=K),Y=s(t),p(I.$$.fragment,t),A=s(t),C=L(t,"P",{}),tt(C).forEach(n),this.h()},h(){et(a,"name","hf:doc:metadata"),et(a,"content",ut)},m(t,e){pt(document.head,a),l(t,E,e),l(t,v,e),l(t,S,e),r($,t,e),l(t,H,e),r(c,t,e),l(t,R,e),l(t,d,e),l(t,G,e),r(h,t,e),l(t,P,e),l(t,g,e),l(t,Z,e),r(w,t,e),l(t,k,e),r(T,t,e),l(t,U,e),r(b,t,e),l(t,V,e),r(y,t,e),l(t,N,e),l(t,M,e),l(t,j,e),r(x,t,e),l(t,W,e),l(t,J,e),l(t,Y,e),r(I,t,e),l(t,A,e),l(t,C,e),B=!0},p:lt,i(t){B||(o($.$$.fragment,t),o(c.$$.fragment,t),o(h.$$.fragment,t),o(w.$$.fragment,t),o(T.$$.fragment,t),o(b.$$.fragment,t),o(y.$$.fragment,t),o(x.$$.fragment,t),o(I.$$.fragment,t),B=!0)},o(t){f($.$$.fragment,t),f(c.$$.fragment,t),f(h.$$.fragment,t),f(w.$$.fragment,t),f(T.$$.fragment,t),f(b.$$.fragment,t),f(y.$$.fragment,t),f(x.$$.fragment,t),f(I.$$.fragment,t),B=!1},d(t){t&&(n(E),n(v),n(S),n(H),n(R),n(d),n(G),n(P),n(g),n(Z),n(k),n(U),n(V),n(N),n(M),n(j),n(W),n(J),n(Y),n(A),n(C)),n(a),u($,t),u(c,t),u(h,t),u(w,t),u(T,t),u(b,t),u(y,t),u(x,t),u(I,t)}}}const ut='{"title":"Using TEI locally with Metal","local":"using-tei-locally-with-metal","sections":[{"title":"Step 1: Install Rust","local":"step-1-install-rust","sections":[],"depth":2},{"title":"Step 2: Install with Metal support","local":"step-2-install-with-metal-support","sections":[],"depth":2},{"title":"Step 3: Launch Text Embeddings Inference","local":"step-3-launch-text-embeddings-inference","sections":[],"depth":2}],"depth":1}';function $t(O){return it(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class wt extends st{constructor(a){super(),at(this,a,$t,ft,nt,{})}}export{wt as component};
