{"id":617,"date":"2025-05-19T09:00:28","date_gmt":"2025-05-19T16:00:28","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/foundry\/?p=617"},"modified":"2025-05-19T06:05:07","modified_gmt":"2025-05-19T13:05:07","slug":"microsoft-and-hugging-face-expand-partnership-to-accelerate-open-source-ai-innovation-on-azure-ai-foundry","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/foundry\/microsoft-and-hugging-face-expand-partnership-to-accelerate-open-source-ai-innovation-on-azure-ai-foundry\/","title":{"rendered":"Microsoft and Hugging Face expand collaboration to accelerate Open-Source AI Innovation on Azure AI Foundry"},"content":{"rendered":"<p><b><span data-contrast=\"auto\">Today, Microsoft and Hugging Face are excited to announce an expanded collaboration that puts over ten thousand Hugging Face models at the fingertips of Azure developers.<\/span><\/b><span data-contrast=\"auto\">\u00a0<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"none\">Azure AI Foundry Models now allows immediate deployment of the most popular open models on Hugging Face, spanning <\/span><b><span data-contrast=\"none\">text, vision, speech, and multimodal<\/span><\/b><span data-contrast=\"none\"> models.<\/span> <span data-contrast=\"none\">This expanded collaboration advances our shared goal to democratize AI by making it easier for developers and enterprises to access, deploy, and scale the latest open models on Azure. <\/span><span data-contrast=\"auto\">This also makes Azure AI Foundry as the platform that offers one of the largest and most diverse open-source model collections on a hyper scale cloud platform.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<blockquote><p><span class=\"TextRun Highlight SCXW220181692 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW220181692 BCX8\">\u201cThis expanded collaboration <\/span><span class=\"NormalTextRun AdvancedProofingIssueV2Themed SCXW220181692 BCX8\">is a reflection of<\/span><span class=\"NormalTextRun SCXW220181692 BCX8\"> our deep commitment to open-source AI. Hugging Face has emerged as the <\/span><span class=\"NormalTextRun SCXW220181692 BCX8\">central h<\/span><span class=\"NormalTextRun CommentStart CommentHighlightPipeRest CommentHighlightRest SCXW220181692 BCX8\">ub<\/span> <span class=\"NormalTextRun SCXW220181692 BCX8\">hosting<\/span><span class=\"NormalTextRun SCXW220181692 BCX8\"> millions of open models and serving as the default launchpad for open-source AI innovation.&#8221;\u00a0 said <strong>Asha Sharma, Corporate Vice President at Microsoft<\/strong>. \u201cBy combining Hugging Face\u2019s vibrant developer ecosystem with Azure\u2019s enterprise-grade infrastructure, we\u2019re enabling customers to innovate faster and more securely with the best models the community has to offer.\u201d<\/span><\/span><\/p><\/blockquote>\n<p><span class=\"TextRun Highlight SCXW261942784 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW261942784 BCX8\">Hugging Face<\/span> <span class=\"NormalTextRun SCXW261942784 BCX8\">is home to millions of open <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">models.<\/span> <span class=\"NormalTextRun SCXW261942784 BCX8\">O<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">rganizations<\/span><\/span><span class=\"TrackChangeTextDeletionMarker TrackedChange SCXW261942784 BCX8\"><span class=\"TextRun SCXW261942784 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun TrackChangeTextDeletion SCXW261942784 BCX8\">,<\/span><\/span><\/span> <span class=\"TextRun Highlight SCXW261942784 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW261942784 BCX8\">large <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">and<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\"> small<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">,<\/span> <span class=\"NormalTextRun SCXW261942784 BCX8\">along with <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">a large community of <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">8 million<\/span> <span class=\"NormalTextRun SCXW261942784 BCX8\">AI <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">builders<\/span><\/span><span class=\"TrackChangeTextInsertion TrackedChange SCXW261942784 BCX8\"><span class=\"TextRun SCXW261942784 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW261942784 BCX8\">,<\/span><\/span><\/span><span class=\"TextRun Highlight SCXW261942784 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW261942784 BCX8\"> use<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\"> the<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\"> Hugging Face<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\"> platform to <\/span><\/span><span class=\"TextRun Underlined SCXW261942784 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW261942784 BCX8\">access and share models, <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">datasets<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\"> and applications<\/span><\/span><span class=\"TextRun Highlight SCXW261942784 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW261942784 BCX8\">.<\/span> <span class=\"NormalTextRun SCXW261942784 BCX8\">They release model weights <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">and<\/span> <span class=\"NormalTextRun SCXW261942784 BCX8\">cards <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">for their models <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">on Hugging Face <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">organizations<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">, <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">contribute to Hugging Face <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">libraries<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\"> such as transformers and diffusers to <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">enable<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\"> new model architectures<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">,<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\"> and <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">demonstrate<\/span> <span class=\"NormalTextRun SCXW261942784 BCX8\">model <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">performance<\/span> <span class=\"NormalTextRun SCXW261942784 BCX8\">using<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\"> evaluation<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\"> metrics on Hugging Face open model leaderboards. <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">Leveraging<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\"> all this innovation <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">in an enterprise environment, <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">where you need to s<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">cale<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\"> throughput, optimize latency, <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">screen for malicious <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">code<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">,<\/span> <span class=\"NormalTextRun SCXW261942784 BCX8\">a<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">nd <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">secure <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">endpoints <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">with private networks <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">can be<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\"> a challenge. <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">The goal of this expanded collaboration is to <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">bring<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\"> open<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">&#8211;<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">source<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\"> AI innovation <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">to Azure<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\"> through a <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">secure, <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">scalable<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\"> and reliable <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">integration between <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">the <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">Hugging Face h<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">ub<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\"> and <\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">Azure AI Foundry<\/span><span class=\"NormalTextRun SCXW261942784 BCX8\">.<\/span><\/span><\/p>\n<h3>Expanding Modalities<\/h3>\n<p><span class=\"TextRun SCXW61827460 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW61827460 BCX8\">The refreshed integration enables<\/span> <span class=\"NormalTextRun SCXW61827460 BCX8\">Azure AI<\/span><span class=\"NormalTextRun SCXW61827460 BCX8\"> developers to incorporate <\/span><span class=\"NormalTextRun SCXW61827460 BCX8\">more modalities in their applications<\/span><span class=\"NormalTextRun SCXW61827460 BCX8\"> and<\/span> <span class=\"NormalTextRun SCXW61827460 BCX8\">facilitate<\/span><span class=\"NormalTextRun SCXW61827460 BCX8\"> a <\/span><span class=\"NormalTextRun SCXW61827460 BCX8\">variety<\/span><span class=\"NormalTextRun SCXW61827460 BCX8\"> of <\/span><span class=\"NormalTextRun SCXW61827460 BCX8\">tasks<\/span><span class=\"NormalTextRun SCXW61827460 BCX8\"> including<\/span> <span class=\"NormalTextRun SCXW61827460 BCX8\">text generation, feature extraction, fill<\/span><span class=\"NormalTextRun SCXW61827460 BCX8\">&#8211;<\/span><span class=\"NormalTextRun SCXW61827460 BCX8\">mask, translation, <\/span><span class=\"NormalTextRun SCXW61827460 BCX8\">identifying <\/span><span class=\"NormalTextRun SCXW61827460 BCX8\">sentence similarity, <\/span><span class=\"NormalTextRun SCXW61827460 BCX8\">image classification, image segmentation, text to image<\/span> <span class=\"NormalTextRun SCXW61827460 BCX8\">generation<\/span><span class=\"NormalTextRun SCXW61827460 BCX8\">, image to text<\/span><span class=\"NormalTextRun SCXW61827460 BCX8\"> conversion<\/span><span class=\"NormalTextRun SCXW61827460 BCX8\">, automatic speech recognition<\/span><span class=\"NormalTextRun SCXW61827460 BCX8\"> and <\/span><span class=\"NormalTextRun SCXW61827460 BCX8\">audio-classification<\/span><span class=\"NormalTextRun SCXW61827460 BCX8\">. <\/span><span class=\"NormalTextRun SCXW61827460 BCX8\">Whether <\/span><span class=\"NormalTextRun SCXW61827460 BCX8\">you&#8217;re<\/span> <span class=\"NormalTextRun SCXW61827460 BCX8\">starting<\/span><span class=\"NormalTextRun SCXW61827460 BCX8\"> foundational research or deploying AI at scale, you <\/span><span class=\"NormalTextRun SCXW61827460 BCX8\">now<\/span> <span class=\"NormalTextRun SCXW61827460 BCX8\">have access to one of the most robust open-source AI ecosystems<\/span><span class=\"NormalTextRun SCXW61827460 BCX8\">, <\/span><span class=\"NormalTextRun SCXW61827460 BCX8\">backed by the enterprise readiness of Microsoft Azure.<\/span><\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/foundry\/wp-content\/uploads\/sites\/89\/2025\/05\/hf-collection-10k.gif\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-625\" src=\"https:\/\/devblogs.microsoft.com\/foundry\/wp-content\/uploads\/sites\/89\/2025\/05\/hf-collection-10k.gif\" alt=\"\" width=\"2377\" height=\"1356\" \/><\/a><\/p>\n<p>Microsoft is also working with Hugging Face to bring in additional models enabling tasks like text to speech, audio to audio, image to 3D and text to video. Support for trending models of Hugging Face hub on Foundry across these new modalities is coming soon, expanding what&#8217;s possible for developers to build multimodal AI solutions on Azure.<\/p>\n<blockquote><p>As <strong>Clem Delangue, co-founder and CEO of Hugging Face<\/strong>, puts it, \u201cWe\u2019re enabling companies to take control of their AI destiny, deploying the best open models securely within their Azure account, to build AI applications they can trust and verify.\u201d<\/p><\/blockquote>\n<h3><span class=\"LineBreakBlob BlobObject DragDrop SCXW264855333 BCX8\"><span class=\"SCXW264855333 BCX8\">\u00a0<\/span><\/span><span class=\"TextRun SCXW264855333 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW264855333 BCX8\">Top Providers, Trending Models\u2014Available Day One<\/span><\/span><\/h3>\n<p><span class=\"TextRun SCXW125436828 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW125436828 BCX8\">Through this expanded collaboration, we<\/span> <span class=\"NormalTextRun SCXW125436828 BCX8\">will<\/span> <span class=\"NormalTextRun SCXW125436828 BCX8\">also <\/span><span class=\"NormalTextRun SCXW125436828 BCX8\">offer the latest models from top <\/span><span class=\"NormalTextRun SCXW125436828 BCX8\">model<\/span><span class=\"NormalTextRun SCXW125436828 BCX8\"> providers in the <\/span><span class=\"NormalTextRun SCXW125436828 BCX8\">Azure AI <\/span><span class=\"NormalTextRun SCXW125436828 BCX8\">Foundry catalog<\/span> <span class=\"NormalTextRun SCXW125436828 BCX8\">on the same day <\/span><span class=\"NormalTextRun SCXW125436828 BCX8\">they&#8217;re<\/span><span class=\"NormalTextRun SCXW125436828 BCX8\"> released on the Hugging Face hub<\/span><span class=\"NormalTextRun SCXW125436828 BCX8\">, providing<\/span> <span class=\"NormalTextRun SCXW125436828 BCX8\">day one <\/span><span class=\"NormalTextRun SCXW125436828 BCX8\">access to the <\/span><span class=\"NormalTextRun SCXW125436828 BCX8\">latest<\/span><span class=\"NormalTextRun SCXW125436828 BCX8\"> models <\/span><span class=\"NormalTextRun SCXW125436828 BCX8\">for one-click deployment on Foundry.<\/span><\/span><\/p>\n<p><span class=\"TextRun SCXW178292202 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW178292202 BCX8\">We will<\/span><span class=\"NormalTextRun SCXW178292202 BCX8\"> also <\/span><span class=\"NormalTextRun SCXW178292202 BCX8\">bring<\/span><span class=\"NormalTextRun SCXW178292202 BCX8\"> in customized variants of trending <\/span><span class=\"NormalTextRun SCXW178292202 BCX8\">open<\/span><span class=\"NormalTextRun SCXW178292202 BCX8\"> models, giving enterprises and developers access to fine-tuned, production-ready <\/span><span class=\"NormalTextRun SCXW178292202 BCX8\">models <\/span><span class=\"NormalTextRun SCXW178292202 BCX8\">meeting functional and performance needs.<\/span><\/span><\/p>\n<h3><strong>Security First<\/strong><\/h3>\n<p>All models made available in the Hugging Face collection in the Azure AI Foundry catalog for discovery and deployment have been scanned by Hugging Face to be safe from vulnerabilities. As part of this expanded collaboration, Microsoft will work with Hugging Face to also host certain model weights on Azure, that will enable customers to deploy these models as secure endpoints with no external network egress to Hugging Face hub.<\/p>\n<h3><strong>Beyond Models: Tools, Agents, and More<\/strong><\/h3>\n<p>In the future, we will also work to bring community driven apps from Hugging Face, expanding the catalog to containerized tools to power agents with the smolagents framework. This will enable developers to build modular agentic applications using open and composable components, all within a scalable, production-grade cloud environment.<\/p>\n<h4><strong>Consume using Azure AI Inference SDK<\/strong><\/h4>\n<p>Models offered with Text Generation Inference (TGI) and Text Embedding Inference (TEI) offer an OpenAI Chat Completion API compatible layer under the API routes\u00a0\/v1\/chat\/completions and \/v1\/embeddings, check the full specification in the\u00a0<a href=\"https:\/\/platform.openai.com\/docs\/api-reference\/chat\/create\">OpenAI Chat Completion Create Documentation<\/a>. These models can be consumed using <a href=\"https:\/\/learn.microsoft.com\/en-us\/python\/api\/overview\/azure\/ai-inference-readme?view=azure-python-preview\">Azure AI Inference SDK<\/a>.<\/p>\n<p><strong>Python Code sample:<\/strong><\/p>\n<p>Pre-requisite: Install the Azure AI Inferencing package using <span style=\"font-family: 'courier new', courier, monospace;\">pip install azure.ai.inference<\/span><\/p>\n<p>Add your Azure AI Foundry endpoint and API Key to the following sample code sample and run inference:<\/p>\n<pre class=\"prettyprint language-py\"><code class=\"language-py\">import os\r\nfrom azure.ai.inference import ChatCompletionsClient\r\nfrom azure.core.credentials import AzureKeyCredential\r\nfrom azure.ai.inference.models import SystemMessage, UserMessage\r\n\r\nendpoint = \"https:\/\/&lt;endpoint-name&gt;.&lt;region&gt;.inference.ml.azure.com\/v1\"\r\nkey = os.getenv(\"AZURE_AI_CHAT_KEY\", \"key here\")\r\n\r\nclient = ChatCompletionsClient(\r\n    endpoint=endpoint,\r\n    credential=AzureKeyCredential(key),\r\n)\r\n\r\nresponse = client.complete(\r\n    stream=True,\r\n    messages=[\r\n        SystemMessage(\"You are a helpful assistant.\"),\r\n        UserMessage(\"I want to go to Iceland, which is the best time of the year to visit?\"),\r\n    ],\r\n)\r\n\r\nfor update in response:\r\n    if update.choices and update.choices[0].delta:\r\n        print(update.choices[0].delta.content or \"\", end=\"\", flush=True)\r\n    if update.usage:\r\n        print(f\"\\n\\nToken usage: {update.usage}\")\r\n\r\nclient.close()<\/code><\/pre>\n<h3>Learn More and Get Started<\/h3>\n<p>As the open-source AI landscape continues to evolve, our expanded collaboration with Hugging Face will remain focused on bringing the latest in AI innovation to Azure AI developers.<\/p>\n<p>\ud83d\udc49 Start exploring the Azure AI + Hugging Face collection: <a href=\"https:\/\/ai.azure.com\/explore\/models?selectedCollection=huggingface\">https:\/\/aka.ms\/FoundryHuggingFaceCollection<\/a><\/p>\n<p>\ud83d\udc49 Join us at Microsoft Build to see it in action<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft and Hugging Face announce an expanded collaboration that puts over ten thousand Hugging Face models at the fingertips of Azure developers.<\/p>\n","protected":false},"author":190443,"featured_media":662,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[4,34,2],"class_list":["post-617","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-foundry","tag-generative-ai","tag-microsoft-build","tag-microsoft-foundry"],"acf":[],"blog_post_summary":"<p>Microsoft and Hugging Face announce an expanded collaboration that puts over ten thousand Hugging Face models at the fingertips of Azure developers.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/foundry\/wp-json\/wp\/v2\/posts\/617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/foundry\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/foundry\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/foundry\/wp-json\/wp\/v2\/users\/190443"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/foundry\/wp-json\/wp\/v2\/comments?post=617"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/foundry\/wp-json\/wp\/v2\/posts\/617\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/foundry\/wp-json\/wp\/v2\/media\/662"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/foundry\/wp-json\/wp\/v2\/media?parent=617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/foundry\/wp-json\/wp\/v2\/categories?post=617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/foundry\/wp-json\/wp\/v2\/tags?post=617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}