{"id":8800,"date":"2026-06-09T14:35:17","date_gmt":"2026-06-09T06:35:17","guid":{"rendered":"https:\/\/ab123.xyz\/?p=8800"},"modified":"2026-06-09T14:35:17","modified_gmt":"2026-06-09T06:35:17","slug":"microsoft-directml-for-azure-maia-100-hardware-acceleration","status":"publish","type":"post","link":"https:\/\/ab123.xyz\/?p=8800","title":{"rendered":"Microsoft DirectML for Azure Maia 100 Hardware Acceleration"},"content":{"rendered":"<p>Microsoft DirectML \u4e0e Azure Maia 100 \u786c\u4ef6\u7684\u7ed3\u5408\uff0c\u6807\u5fd7\u7740\u4e91\u7aef AI \u52a0\u901f\u8fdb\u5165\u65b0\u7eaa\u5143\u3002DirectML \u662f\u5fae\u8f6f\u63a8\u51fa\u7684\u673a\u5668\u5b66\u4e60\u63a8\u7406\u52a0\u901f API\uff0c\u4e13\u4e3a Windows \u548c Azure \u751f\u6001\u6253\u9020\uff0c\u800c Maia 100 \u662f\u5176\u81ea\u7814\u7684 AI \u52a0\u901f\u82af\u7247\uff0c\u9488\u5bf9\u5927\u89c4\u6a21\u8bad\u7ec3\u4e0e\u63a8\u7406\u4f18\u5316\u3002\u901a\u8fc7 DirectML \u4e0e Maia 100 \u7684\u6df1\u5ea6\u534f\u4f5c\uff0c\u5f00\u53d1\u8005\u65e0\u9700\u624b\u52a8\u8c03\u6574\u5e95\u5c42\u4ee3\u7801\u5373\u53ef\u83b7\u5f97\u8fd1\u7ebf\u6027\u7684\u6027\u80fd\u63d0\u5347\uff0c\u5c24\u5176\u9002\u5408\u63a8\u7406\u5bc6\u96c6\u578b\u4efb\u52a1\u3002\u5b98\u65b9\u6587\u6863\u4e0e\u5de5\u5177\u5305\u5df2\u5168\u9762\u5f00\u653e\uff0c\u8bbf\u95ee <a href=\"https:\/\/learn.microsoft.com\/en-us\/windows\/ai\/directml\/dml-intro\" target=\"_blank\">\u5b98\u65b9\u7f51\u7ad9<\/a> \u83b7\u53d6\u6700\u65b0 SDK \u548c\u793a\u4f8b\u3002<\/p>\n<h2>\u6838\u5fc3\u529f\u80fd\u4e0e\u4f18\u52bf<\/h2>\n<h3>\u96f6\u4ee3\u7801\u786c\u4ef6\u9002\u914d<\/h3>\n<p>DirectML \u81ea\u52a8\u5c06 ONNX \u7b49\u6a21\u578b\u6620\u5c04\u5230 Maia 100 \u7684 Tensor Core \u5355\u5143\uff0c\u652f\u6301 INT8\u3001FP16 \u7b49\u6df7\u5408\u7cbe\u5ea6\u8ba1\u7b97\uff0c\u663e\u8457\u964d\u4f4e\u663e\u5b58\u5360\u7528\u3002\u636e\u5fae\u8f6f 2024 \u5e74 Ignite \u5927\u4f1a\u516c\u5f00\u6570\u636e\uff0c\u5728 GPT-2 \u63a8\u7406\u4efb\u52a1\u4e2d\uff0cMaia 100 \u8f83\u4e0a\u4e00\u4ee3 GPU \u80fd\u6548\u63d0\u5347 40%\u3002<\/p>\n<h3>\u591a\u6846\u67b6\u65e0\u7f1d\u96c6\u6210<\/h3>\n<p>\u4ee5 PyTorch\u3001TensorFlow \u8bad\u7ec3\u7684\u6a21\u578b\u53ef\u76f4\u63a5\u5bfc\u51fa\u4e3a ONNX \u683c\u5f0f\uff0c\u901a\u8fc7 DirectML \u6267\u884c\u5c42\u5728 Maia 100 \u4e0a\u8fd0\u884c\u3002Azure \u673a\u5668\u5b66\u4e60\u670d\u52a1\u5df2\u5185\u7f6e DirectML \u8fd0\u884c\u65f6\uff0c\u652f\u6301\u4e00\u952e\u90e8\u7f72\u5230 Maia 100 \u96c6\u7fa4\u3002<\/p>\n<h2>\u5e94\u7528\u573a\u666f<\/h2>\n<ul>\n<li><strong>\u5927\u8bed\u8a00\u6a21\u578b\u63a8\u7406\uff1a<\/strong> \u5982 ChatGLM\u3001LLaMA \u7b49\uff0cDirectML \u7684\u7b97\u5b50\u878d\u5408\u6280\u672f\u53ef\u51cf\u5c11\u5185\u5b58\u5e26\u5bbd\u74f6\u9888\uff0c\u5b9e\u73b0\u6beb\u79d2\u7ea7\u54cd\u5e94\u3002<\/li>\n<li><strong>\u8ba1\u7b97\u673a\u89c6\u89c9\uff1a<\/strong> \u5b9e\u65f6\u89c6\u9891\u5206\u6790\u3001\u7f3a\u9677\u68c0\u6d4b\u7b49\u573a\u666f\uff0c\u5229\u7528 Maia 100 \u7684\u5e76\u884c\u6d41\u6c34\u7ebf\u67b6\u6784\uff0c\u541e\u5410\u91cf\u63d0\u5347 3 \u500d\u3002<\/li>\n<li><strong>\u63a8\u8350\u7cfb\u7edf\uff1a<\/strong> \u7a00\u758f\u7279\u5f81\u5904\u7406\u4e0e\u5d4c\u5165\u5c42\u52a0\u901f\uff0cDirectML \u652f\u6301\u81ea\u5b9a\u4e49\u7b97\u5b50\u6269\u5c55\uff0c\u9002\u914d\u641c\u7d22\u6392\u5e8f\u6a21\u578b\u3002<\/li>\n<\/ul>\n<h2>\u5982\u4f55\u4f7f\u7528<\/h2>\n<h3>\u73af\u5883\u51c6\u5907<\/h3>\n<p>\u5728 Azure \u95e8\u6237\u521b\u5efa Maia 100 \u865a\u62df\u673a\u5b9e\u4f8b\uff08\u4ec5\u9650\u53d7\u9080\u9884\u89c8\uff09\uff0c\u5b89\u88c5 DirectML \u9a71\u52a8\u4e0e ONNX Runtime\u3002\u63a8\u8350\u4f7f\u7528 Ubuntu 22.04 LTS \u6216 Windows Server 2022\u3002<\/p>\n<h3>\u6a21\u578b\u90e8\u7f72\u793a\u4f8b<\/h3>\n<p>\u4ee5 ResNet-50 \u4e3a\u4f8b\uff1apython -c &#8220;from onnxruntime import InferenceSession; sess = InferenceSession(&#8216;model.onnx&#8217;, providers=[&#8216;DmlExecutionProvider&#8217;])&#8221; \u5373\u53ef\u81ea\u52a8\u9009\u62e9 Maia 100\u3002\u8be6\u7ec6\u6559\u7a0b\u53c2\u8003 <a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/machine-learning\/concept-directml?view=azureml-api-2\" target=\"_blank\">Azure DirectML \u6587\u6863<\/a>\u3002<\/p>\n<h2>\u6700\u65b0\u8fdb\u5c55\u4e0e\u751f\u6001<\/h2>\n<p>\u636e <a href=\"https:\/\/www.cnbeta.com\/articles\/tech\/1418421.htm\" target=\"_blank\">2024 \u5e74 11 \u6708\u62a5\u9053<\/a>\uff0c\u5fae\u8f6f\u5df2\u8054\u5408 Hugging Face \u63a8\u51fa Maia 100 \u4f18\u5316\u7684\u6a21\u578b\u5e93\uff0c\u8986\u76d6 50 \u4f59\u4e2a\u4e3b\u6d41 Transformer \u67b6\u6784\u3002\u672a\u6765 DirectML \u8fd8\u5c06\u652f\u6301\u52a8\u6001\u5f62\u72b6\u63a8\u7406\uff0c\u8fdb\u4e00\u6b65\u964d\u4f4e\u90e8\u7f72\u95e8\u69db\u3002\u4f01\u4e1a\u5ba2\u6237\u53ef\u901a\u8fc7 Azure \u9884\u89c8\u901a\u9053\u7533\u8bf7\u4f7f\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft DirectML \u4e0e Azure Maia 100 \u786c\u4ef6\u7684\u7ed3\u5408\uff0c\u6807\u5fd7\u7740\u4e91\u7aef AI \u52a0\u901f\u8fdb\u5165 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[10524,10637,11006,11007,10438],"class_list":["post-8800","post","type-post","status-publish","format-standard","hentry","category-4","tag-ai","tag-azure-maia-100","tag-directml","tag-11007","tag-10438"],"_links":{"self":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts\/8800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8800"}],"version-history":[{"count":1,"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts\/8800\/revisions"}],"predecessor-version":[{"id":8801,"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts\/8800\/revisions\/8801"}],"wp:attachment":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}