import{s as V,o as G,n as Q}from"../chunks/scheduler.35aab934.js";import{S as Y,i as D,e as u,s,c as v,h as O,a as d,d as o,b as i,f as N,g as H,j as C,k as P,l as K,m as n,n as T,t as F,o as z,p as U}from"../chunks/index.b7be2227.js";import{T as ee}from"../chunks/Tip.53e7a084.js";import{C as te,H as oe,E as ne}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.f8f96fb8.js";import{C as ae}from"../chunks/CodeBlock.e8b2c7c8.js";function le(_){let a,m='Even if you don’t have a Microsoft Azure account, you can still explore the <a href="https://ai.azure.com/catalog/publishers/hugging%20face,huggingface" rel="nofollow">public Hugging Face Collection on Microsoft Foundry</a>.';return{c(){a=u("p"),a.innerHTML=m},l(l){a=d(l,"P",{"data-svelte-h":!0}),C(a)!=="svelte-l5ooed"&&(a.innerHTML=m)},m(l,$){n(l,a,$)},p:Q,d(l){l&&o(a)}}}function se(_){let a,m,l,$,p,j,c,x,h,I="Around +11,000 open models from the Hugging Face Hub are available through Microsoft Foundry and Azure Machine Learning. This curated subset of the +2,200,000 public open-models on the Hub includes the most downloaded and relevant models, all compatible with Transformers, Sentence Transformers, Diffusers, and other Hugging Face libraries and solutions.",J,r,L,f,B="This being said, the supported models range different architectures and backends, but a way to identify whether a model from the Hugging Face Hub is made available within the model catalog in Microsoft Foundry and Azure Machine Learning is to either:",Z,g,E='<li><p>Navigate to the model card of the given model under <a href="https://huggingface.co/models" rel="nofollow">https://huggingface.co/models</a>, and check whether the “Deploy” button is available with the “Deploy on Microsoft Foundry” option listed there. If available, the URL pointing to the model on Microsoft Foundry will be provided via the “Go to model on Microsoft Foundry” button. Otherwise, you can request the model’s addition by clicking “Request to add” (See <a href="../guides/request-model-addition">Request a model addition in the Hugging Face collection on Microsoft Foundry</a> for details).</p></li> <li><p>On the other hand, you can also navigate to either the Microsoft Foundry (from a Hub-based project) or the Azure Machine Learning model catalogs under the Hugging Face collection, and search the given model. If the model appears, it means it’s supported and you can grab the URI pointing to it to programmatically deploy it. Otherwise, you can either <a href="https://github.com/huggingface/Microsoft-Azure/issues/new" rel="nofollow">open an issue</a> requesting the model addition, or request it via the Hugging Face Hub model card with the “Request to add” button as mentioned before.</p></li> <li><p>Alternatively, you can also check if the given model is available on Microsoft Foundry programmatically with the following Python snippet, that sends a request to an Azure API that given a model ID from the Hugging Face Hub returns either HTTP 200 with the model URL if it’s available, or just HTTP 404 if not available.</p></li>',k,M,q,y,W="We are really excited for this partnership between Hugging Face and Microsoft Azure, and working really hard to bring Azure customers the best open models from the Hugging Face collection into Microsoft Foundry and Azure Machine Learning, so stay tuned for updates and a lot more models to come in the following months!",A,b,R,w,S;return p=new te({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),c=new oe({props:{title:"Supported Models",local:"supported-models",headingTag:"h1"}}),r=new ee({props:{$$slots:{default:[le]},$$scope:{ctx:_}}}),M=new ae({props:{code:"aW1wb3J0JTIwcmVxdWVzdHMlMEElMEFtb2RlbF9pZCUyMCUzRCUyMCUyMkh1Z2dpbmdGYWNlVEIlMkZTbW9sTE0zLTNCJTIyJTBBcmVzcG9uc2UlMjAlM0QlMjByZXF1ZXN0cy5nZXQoJTIyaHR0cHMlM0ElMkYlMkZnZXQtYXp1cmUtYWktdXJsLmF6dXJld2Vic2l0ZXMubmV0JTJGYXBpJTJGZ2V0LWF6dXJlLWFpLXVybCUyMiUyQyUyMHBhcmFtcyUzRCU3QiUyMm1vZGVsX2lkJTIyJTNBJTIwbW9kZWxfaWQlN0QpJTBBaWYlMjByZXNwb25zZS5zdGF0dXNfY29kZSUyMCUzRCUzRCUyMDIwMCUzQSUwQSUyMCUyMCUyMCUyMHByaW50KHJlc3BvbnNlLmpzb24oKSklMEElMjAlMjAlMjAlMjAlMjMlMjAlN0IlMjJ1cmwlMjIlM0ElMjAlMjJodHRwcyUzQSUyRiUyRmFpLmF6dXJlLmNvbSUyRmV4cGxvcmUlMkZtb2RlbHMlMkZIdWdnaW5nRmFjZVRCLVNtb2xMTTMtM0IlMkZ2ZXJzaW9uJTJGNiUyRnJlZ2lzdHJ5JTJGSHVnZ2luZ0ZhY2UlMjIlN0Q=",highlighted:`<span class="hljs-keyword">import</span> requests

model_id = <span class="hljs-string">&quot;HuggingFaceTB/SmolLM3-3B&quot;</span>
response = requests.get(<span class="hljs-string">&quot;https://get-azure-ai-url.azurewebsites.net/api/get-azure-ai-url&quot;</span>, params={<span class="hljs-string">&quot;model_id&quot;</span>: model_id})
<span class="hljs-keyword">if</span> response.status_code == <span class="hljs-number">200</span>:
    <span class="hljs-built_in">print</span>(response.json())
    <span class="hljs-comment"># {&quot;url&quot;: &quot;https://ai.azure.com/explore/models/HuggingFaceTB-SmolLM3-3B/version/6/registry/HuggingFace&quot;}</span>`,wrap:!1}}),b=new ne({props:{source:"https://github.com/huggingface/Microsoft-Azure/blob/main/docs/source/foundry/models.mdx"}}),{c(){a=u("meta"),m=s(),l=u("p"),$=s(),v(p.$$.fragment),j=s(),v(c.$$.fragment),x=s(),h=u("p"),h.textContent=I,J=s(),v(r.$$.fragment),L=s(),f=u("p"),f.textContent=B,Z=s(),g=u("ol"),g.innerHTML=E,k=s(),v(M.$$.fragment),q=s(),y=u("p"),y.textContent=W,A=s(),v(b.$$.fragment),R=s(),w=u("p"),this.h()},l(e){const t=O("svelte-u9bgzb",document.head);a=d(t,"META",{name:!0,content:!0}),t.forEach(o),m=i(e),l=d(e,"P",{}),N(l).forEach(o),$=i(e),H(p.$$.fragment,e),j=i(e),H(c.$$.fragment,e),x=i(e),h=d(e,"P",{"data-svelte-h":!0}),C(h)!=="svelte-1fim2q0"&&(h.textContent=I),J=i(e),H(r.$$.fragment,e),L=i(e),f=d(e,"P",{"data-svelte-h":!0}),C(f)!=="svelte-81zb6h"&&(f.textContent=B),Z=i(e),g=d(e,"OL",{"data-svelte-h":!0}),C(g)!=="svelte-ls0uiz"&&(g.innerHTML=E),k=i(e),H(M.$$.fragment,e),q=i(e),y=d(e,"P",{"data-svelte-h":!0}),C(y)!=="svelte-tfks91"&&(y.textContent=W),A=i(e),H(b.$$.fragment,e),R=i(e),w=d(e,"P",{}),N(w).forEach(o),this.h()},h(){P(a,"name","hf:doc:metadata"),P(a,"content",ie)},m(e,t){K(document.head,a),n(e,m,t),n(e,l,t),n(e,$,t),T(p,e,t),n(e,j,t),T(c,e,t),n(e,x,t),n(e,h,t),n(e,J,t),T(r,e,t),n(e,L,t),n(e,f,t),n(e,Z,t),n(e,g,t),n(e,k,t),T(M,e,t),n(e,q,t),n(e,y,t),n(e,A,t),T(b,e,t),n(e,R,t),n(e,w,t),S=!0},p(e,[t]){const X={};t&2&&(X.$$scope={dirty:t,ctx:e}),r.$set(X)},i(e){S||(F(p.$$.fragment,e),F(c.$$.fragment,e),F(r.$$.fragment,e),F(M.$$.fragment,e),F(b.$$.fragment,e),S=!0)},o(e){z(p.$$.fragment,e),z(c.$$.fragment,e),z(r.$$.fragment,e),z(M.$$.fragment,e),z(b.$$.fragment,e),S=!1},d(e){e&&(o(m),o(l),o($),o(j),o(x),o(h),o(J),o(L),o(f),o(Z),o(g),o(k),o(q),o(y),o(A),o(R),o(w)),o(a),U(p,e),U(c,e),U(r,e),U(M,e),U(b,e)}}}const ie='{"title":"Supported Models","local":"supported-models","sections":[],"depth":1}';function re(_){return G(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class he extends Y{constructor(a){super(),D(this,a,re,se,V,{})}}export{he as component};
