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 m,d as a,b as i,f as P,g as z,j as C,k as N,l as K,m as o,n as A,t as H,o as T,p as U}from"../chunks/index.b7be2227.js";import{T as ee}from"../chunks/Tip.53e7a084.js";import{C as te,H as ae,E as oe}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.2ea40076.js";import{C as le}from"../chunks/CodeBlock.0179c999.js";function ne(_){let l,p='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 Azure AI</a>.';return{c(){l=u("p"),l.innerHTML=p},l(n){l=m(n,"P",{"data-svelte-h":!0}),C(l)!=="svelte-1clvvk9"&&(l.innerHTML=p)},m(n,$){o(n,l,$)},p:Q,d(n){n&&a(l)}}}function se(_){let l,p,n,$,d,j,c,x,h,S="Around +11,000 open models from the Hugging Face Hub are made available on Azure AI / ML, which represents a subset out of the +1,800,000 public open-models, as the Hugging Face collection in Azure is a curated subset of the most downloaded / relevant models on the Hub, as well as compatible with Transformers, Sentence Transformers and Diffusers, as well as with other Hugging Face libraries and solutions.",I,r,J,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 Azure AI / ML is to either:",F,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 make sure that the “Deploy” button is made available and that the “Deploy on Azure AI” option is listed there. If that’s the case, then if the model is available on Azure AI, the URL pointing to the model on Azure AI will be provided via the “Go to model on Azure AI” button, otherwise, the button “Request to add” will show to request the model addition (more information on the latter in <a href="../guides/request-model-addition">Request a model addition in the Hugging Face collection on Azure</a>).</p></li> <li><p>On the other hand, you can also navigate to either the Azure ML or the Azure AI Foundry (the latter only for Hub-based projects) 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 Azure AI 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>',L,M,Z,b,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 Azure AI / ML, so stay tuned for updates and a lot more models to come in the following months!",k,y,q,w,R;return d=new te({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),c=new ae({props:{title:"Supported Models",local:"supported-models",headingTag:"h1"}}),r=new ee({props:{$$slots:{default:[ne]},$$scope:{ctx:_}}}),M=new le({props:{code:"aW1wb3J0JTIwcmVxdWVzdHMlMEElMEFtb2RlbF9pZCUyMCUzRCUyMCUyMkh1Z2dpbmdGYWNlVEIlMkZTbW9sTE0zLTNCJTIyJTBBcmVzcG9uc2UlMjAlM0QlMjByZXF1ZXN0cy5nZXQoJTIyaHR0cHMlM0ElMkYlMkZnZXQtYXp1cmUtYWktdXJsLmF6dXJld2Vic2l0ZXMubmV0JTJGYXBpJTJGZ2V0LWF6dXJlLWFpLXVybCUyMiUyQyUyMHBhcmFtcyUzRCU3QiUyMm1vZGVsX2lkJTIyJTNBJTIwbW9kZWxfaWQlN0QpJTBBaWYlMjByZXNwb25zZS5zdGF0dXNfY29kZSUyMCUzRCUzRCUyMDIwMCUzQSUwQSUyMCUyMCUyMCUyMHByaW50KHJlc3BvbnNlLmpzb24oKSklMEElMjAlMjAlMjAlMjAlMjMlMjAlN0IlMjJ1cmwlMjIlM0ElMjAlMjJodHRwcyUzQSUyRiUyRmFpLmF6dXJlLmNvbSUyRmV4cGxvcmUlMkZtb2RlbHMlMkZIdWdnaW5nRmFjZVRCLVNtb2xMTTMtM0IlMkZ2ZXJzaW9uJTJGMyUyRnJlZ2lzdHJ5JTJGSHVnZ2luZ0ZhY2UlMjIlN0Q=",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/3/registry/HuggingFace&quot;}</span>`,wrap:!1}}),y=new oe({props:{source:"https://github.com/huggingface/Microsoft-Azure/blob/main/docs/source/azure-ai/models.mdx"}}),{c(){l=u("meta"),p=s(),n=u("p"),$=s(),v(d.$$.fragment),j=s(),v(c.$$.fragment),x=s(),h=u("p"),h.textContent=S,I=s(),v(r.$$.fragment),J=s(),f=u("p"),f.textContent=B,F=s(),g=u("ol"),g.innerHTML=E,L=s(),v(M.$$.fragment),Z=s(),b=u("p"),b.textContent=W,k=s(),v(y.$$.fragment),q=s(),w=u("p"),this.h()},l(e){const t=O("svelte-u9bgzb",document.head);l=m(t,"META",{name:!0,content:!0}),t.forEach(a),p=i(e),n=m(e,"P",{}),P(n).forEach(a),$=i(e),z(d.$$.fragment,e),j=i(e),z(c.$$.fragment,e),x=i(e),h=m(e,"P",{"data-svelte-h":!0}),C(h)!=="svelte-1519ez"&&(h.textContent=S),I=i(e),z(r.$$.fragment,e),J=i(e),f=m(e,"P",{"data-svelte-h":!0}),C(f)!=="svelte-1daemvq"&&(f.textContent=B),F=i(e),g=m(e,"OL",{"data-svelte-h":!0}),C(g)!=="svelte-1flgv25"&&(g.innerHTML=E),L=i(e),z(M.$$.fragment,e),Z=i(e),b=m(e,"P",{"data-svelte-h":!0}),C(b)!=="svelte-q77kcc"&&(b.textContent=W),k=i(e),z(y.$$.fragment,e),q=i(e),w=m(e,"P",{}),P(w).forEach(a),this.h()},h(){N(l,"name","hf:doc:metadata"),N(l,"content",ie)},m(e,t){K(document.head,l),o(e,p,t),o(e,n,t),o(e,$,t),A(d,e,t),o(e,j,t),A(c,e,t),o(e,x,t),o(e,h,t),o(e,I,t),A(r,e,t),o(e,J,t),o(e,f,t),o(e,F,t),o(e,g,t),o(e,L,t),A(M,e,t),o(e,Z,t),o(e,b,t),o(e,k,t),A(y,e,t),o(e,q,t),o(e,w,t),R=!0},p(e,[t]){const X={};t&2&&(X.$$scope={dirty:t,ctx:e}),r.$set(X)},i(e){R||(H(d.$$.fragment,e),H(c.$$.fragment,e),H(r.$$.fragment,e),H(M.$$.fragment,e),H(y.$$.fragment,e),R=!0)},o(e){T(d.$$.fragment,e),T(c.$$.fragment,e),T(r.$$.fragment,e),T(M.$$.fragment,e),T(y.$$.fragment,e),R=!1},d(e){e&&(a(p),a(n),a($),a(j),a(x),a(h),a(I),a(J),a(f),a(F),a(g),a(L),a(Z),a(b),a(k),a(q),a(w)),a(l),U(d,e),U(c,e),U(r,e),U(M,e),U(y,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(l){super(),D(this,l,re,se,V,{})}}export{he as component};
