Sr. Content Developer at Microsoft, working remotely in PA, TechBash conference organizer, former Microsoft MVP, Husband, Dad and Geek.
165638 stories
·
33 followers

Challenges of building machine learning compilers across varying hardware architecture

1 Share

Additional Contributors: Justin Stoecker, Sheil Kumar

Overview

One of the biggest challenges in building AI/ML platform stacks for mobile, client, or server is creating a machine learning (ML) compiler that is both scalable yet performant. A common approach is to build specialized compilers for specific AI hardware, frameworks, or workload types. For example, independent hardware vendors (IHVs) provide their own frameworks to deploy models on their hardware, and PyTorch includes torch.compile as a framework-specific compiler. Other ML compiler efforts include MLIR (Multi-Level Intermediate Representation), which also provides compiler frameworks like Glow, EON, and others. Each approach serves particular focus areas, but few are designed to deliver high performance for ML workloads while remaining independent of hardware vendor and framework.

This post explores the challenges ML compiler developers face in pursuing strong performance without sacrificing scalability across diverse hardware architectures. It’s also a primer for BRK388 at Microsoft Ignite 2026, where we’ll go deeper on multi-level intermediate representations (IRs), including MLIR, and what they mean for local AI on Windows.

Introduction

Early graphics hardware began with fixed-function pipelines, which evolved into programmable shaders. The next leap introduced hybrid rasterization and ray tracing, and today these techniques are increasingly combined with neural graphics. Looking ahead, machine learning networks may play a larger role in rendering pipelines, changing how real-time graphics are built.

Deep neural networks are essentially graphs of mathematical operators, or layers. The natural instinct is to map this graph of operations to a graph of kernels, such as shaders. This approach feels intuitive and scalable but in practice, it’s slow in reaching time to market agility and extremely difficult to scale across evolving hardware architecture. The challenge lies in optimizing key operators, which is deceptively hard. The breadth of hardware makes handwritten solutions difficult to scale, and the rapid pace of AI innovation compounds this problem. Individual operator performance is often not the primary bottleneck; the greater complexity comes from achieving efficient execution across diverse hardware and evolving model architecture.

Optimizing Individual Layers

Matrix multiply-accumulate (MMA) is a core operator powering mainstream neural network architectures, including dense layers, MLPs, CNNs, and transformers. Dedicated MMA hardware has been present in GPU and NPU silicon for years and continues to expand. Naturally, this suggests we need a highly optimized MMA instruction at kernel level and modern hardware provides one. High-level abstractions provide portability but are often insufficient on their own to achieve hardware efficiency. Strong performance requires progressive lowering across multiple intermediate representation (IR) levels, enabling graph-level transformations, compute and memory fusion, hardware-aware tiling, data movement optimization, and execution scheduling that account for device-specific compute and memory hierarchies.

Device-Agnostic and Device-Aware Optimization

Device-agnostic rewrites standardize and optimize common patterns of operators and can be enabled at the framework level. Device-aware rewrites, such as decompositions and fusions, are driven by the device architecture and its instruction set architecture (ISA), meaning the set of operations the device can execute without an additional trip to memory. Pattern matching is one practical way to implement both, but it is not the only one. Infrastructure that supports both device-agnostic and device-aware graph optimization is an important early step for ML compilers that need to scale across hardware.

Fusion, Decomposition, and Control Access Layers

In languages with MMA support, the common expectation-versus-reality story is striking. You start with a model requiring X trillion operations (TOPS) and hardware claiming Y “AI TOPS” so you assume the model will run in X/Y seconds. In practice, you may often achieve only 5–10% of the expected throughput. The reason lies in the compute-to-memory access ratio required to maximize hardware efficiency hundreds of operations per byte of DRAM access for high-end GPUs. Algorithmically, it’s nearly impossible to reach this bar for most models if you process the network layer by layer. This is why operator fusion becomes critical, though the real questions remain: how much fusion is needed, and how much is even possible?

Fusion might sound simple, such as combining two adjacent operators, but in reality, it’s far more complex. It isn’t limited to element-wise operation or linear chains of operations. To truly optimize, fusions need to span heavyweight operations like matrix multiplication, convolution, reduction, and upsampling.

Fusion and decomposition don’t necessarily map to kernel boundaries. They are part of a broader question of how control and information are exchanged between the layers of a compiler.

Spanning Layers and Abstraction Levels

It’s best to think of fusion and decomposition as not purely about the scope of “kernels,” but as part of the broader problem of how control is shared across layers. In a cross-device ML compiler, sometimes you want to provide a backend with a large graph to reason about end-to-end execution. Sometimes you want to carve out subgraphs where hardware can do something special. And sometimes you need tile or kernel level control to squeeze out additional performance. In practice, this means any serious stack ends up spanning multiple IRs and abstraction levels.

The tricky part isn’t just having multiple layers – it’s that responsibility gets split across them. This is where performance becomes surprisingly fragile. If an upper layer simply punts decisions downward (“the lower layer will optimize it”), outcomes become hard to predict. It’s not only about whether individual operators and data types are supported, but how efficiently patterns of connected operators are handled. Without proper understanding, the upper layer can’t reliably tell which parts of the graph will stay on fast paths versus triggering slow paths, fallbacks, or late reshaping of the computation.

When those surprises happen late, they’re expensive. You may have to backtrack and redo earlier choices specially for each hardware target, such as hand-editing models, changing how a compiler partitions the graph, how it orders transformations, or how it introduces tiling and layout, just to avoid unintended cliffs. This “you only find out at the end” dynamic is one of the core challenges in building scalable, high-performance ML compilers across diverse hardware.

Approaching this problem purely as choice of static primitive granularity combined with greedy partitioning is often not enough. What’s needed is a richer cooperative interface for sharing graph-level visibility and control across component layers.

Scheduling and Memory Management

Optimizing machine learning workloads requires deep understanding of associated hardware architecture to be able to utilize hardware resources efficiently. This includes interconnected decisions around tensor layout, splitting and streaming algorithms, cache memory usage, data formats, tiling, and compute stencils. Equally critical is scheduling compute and memory tasks in a pipelined fashion, carefully balancing space, and time constraints to achieve optimal performance. As these software algorithms evolve, it’s essential to maintain a dual focus: scalability across diverse platform architectures and maximizing device specific performance gains.

These details are also highly coupled with hardware architecture details such as MMA sizes, on-chip memory capacity, register file limits, and data sharing and synchronization across threads, waves, thread groups, and clusters. For example, in client-side inference scenario, a real-time models might run with batch size 1 and strict latency requirements of around 2ms, making it impractical to shuttle large amounts of data through DRAM. In server-side inference, constraints can shift with high-bandwidth memory (HBM) and larger batch sizes.

Equally important is scheduling compute and memory tasks in a pipelined fashion, carefully balancing space, and time constraints to achieve strong performance. As these software algorithms evolve, it’s important to maintain a dual focus: scalability across diverse platform architectures and maximizing device-specific performance gains.

Ultimately, executing complex networks efficiently is as challenging as building a high-performance rendering engine; it’s far more than writing a single compute shader.

Conclusion

The industry faces a broad challenge that calls for a unified platform-level solution, and it can be approached at two layers. At the higher level, solutions focused on frontend frameworks offer ease of use and often deliver good performance, but can face challenges with cross-device consistency, unified tooling, potentially unbounded compilation times, limited low-level control, and interoperability with graphics. At the lower level, solutions for individual operators can operate well with graphics and low-level engines and are generally independent of a specific hardware vendor. However, they require more effort to use and raise concerns around scalability and performance compared to vendor-specific solutions.

The solution likely lies between these levels. It calls for a structured process for defining use cases, understanding technical requirements, and making informed architectural decisions. We see an opportunity for Windows ML and DirectX to help address this challenge across a range of hardware architectures.As we look ahead, we will share more about how we’re approaching these challenges. What if developers could combine the scalability of a unified ML compiler architecture with the performance of hardware-specific optimization? We’re exploring how DirectX Compute Graph Compiler (DXCGC), Windows ML, and a multi-level IR architecture could help developers bring AI workloads to diverse hardware with greater consistency and portability.

Stay tuned for Microsoft Ignite 2026 next week, where we will share more about our direction for local AI development on Windows in BRK388 – be sure to check it out!

The post Challenges of building machine learning compilers across varying hardware architecture appeared first on Microsoft Foundry on Windows Blog.

Read the whole story
alvinashcraft
just a second ago
reply
Pennsylvania, USA
Share this story
Delete

Microsoft Aion 1.0 Instruct: Advancing local AI on Windows and expanding to GPU

1 Share

Today we’re sharing the transition plan from Phi Silica to Aion 1.0 Instruct, Microsoft’s latest on-device language model for Windows. Aion 1.0 Instruct will begin rolling out to CP+ devices through the Windows Insider Program in early December, with full Windows Retail availability targeted for late January. We’re also expanding Aion 1.0 Instruct to supported GPUs, bringing local language model capabilities to a broader range of Windows devices. 

Microsoft Aion 1.0 Instruct is designed to power fast, responsive language model experiences directly on your device. This transition gives Windows and Microsoft applications a newer, more efficient model foundation while preserving the familiar experiences users rely on today.

You can also tune in next Tuesday to THR888 at Ignite 2026 to learn more about Aion 1.0 Instruct (recording will be available).

Microsoft Aion 1.0 Instruct: A new foundation for local AI on Windows

Local AI enables applications to deliver responsive experiences while keeping processing on device. Aion 1.0 Instruct builds on our investment in this area with improvements designed to help language model features run efficiently alongside the applications and workflows you already use on Windows. 

Attribute  Phi Silica  Aion 1.0 Instruct 
Parameters  3.8B  2.3B 
Input context length limit [tokens]  3.5K  32K 

A technical report with more details on Aion 1.0 Instruct is coming soon to the Microsoft Command Line blog. 

As Aion 1.0 Instruct becomes the foundation for more Windows experiences, users can expect: 

  • More responsive language model experiences 
  • An increased input context length limit (from 3.5K to 32K tokens) 
  • Improved performance and use of device resources 
  • Continued innovation across Windows and Microsoft applications 
  • A transition designed to preserve familiar workflows and capabilities 

For most app developers, no action will be required. The change will happen behind the scenes as supported experiences move to Aion 1.0 Instruct. Action will be required for apps that rely on highly custom prompting (ex. Specific system prompts) and custom LoRAs, as well as apps that have custom model output parsing due to our new watermarking implementation. We’ve added invisible watermarking to Aion 1.0 Instruct to fulfill Text Provenance requirements in specific regions. Additionally, apps that are heavily reliant on Phi Silica’s specific behavior or output strings should be validated for quality. Since Aion 1.0 Instruct is a new model, output strings and model behavior are different. To get the most out of Aion 1.0 Instruct, take a look at our prompt guidance. 

Expanding Aion Instruct to GPU

Like Phi Silica today, we’re also expanding Aion 1.0 Instruct to supported GPUs, including popular dGPUs like NVIDIA’s RTX-series and AMD’s RDNA4 generation. This greatly increases the number of Windows devices that can benefit from Aion Instruct and gives developers greater flexibility when building language model experiences that run on-device. 

Our goal is to provide a consistent local AI foundation across supported Windows hardware. In many scenarios, applications can take advantage of available device capabilities without developers requiring separate end user experiences for each type of hardware. 

Hardware support will expand in stages as configurations meet our readiness and quality standards. 

What this means for developers

For developers building local language model experiences on Windows, Microsoft Aion 1.0 Instruct provides a newer foundation while continuing to work with familiar Windows AI capabilities and APIs. 

We encourage developers to begin evaluating their applications with Aion 1.0 Instruct as it becomes available. In particular, developers should validate model-dependent behavior, review any application-specific customizations, and confirm that key scenarios continue to deliver the intended experience. Aion Instruct can be validated end to end now with the package available at aka.ms/tryaion. Additionally, the Windows Insider Program Beta External build targeted for release on 12/4 will allow full, end to end validation. 

Because language models can differ in how they interpret and produce content, testing is an important part of any model transition–even when the underlying APIs remain familiar. 

We’ll provide additional documentation and migration guidance as availability expands. 

Transition timeline

The transition will roll out in stages: 

  1. October 2026: A standalone package is available at aka.ms/tryaion for developers to begin testing Aion 1.0 Instruct and preparing their applications and customizations. 
  2. December 2026: Aion 1.0 Instruct is planned to begin rolling out to Windows Insider Preview devices on 12/4. 
  3. January 2027: Aion 1.0 Instruct is planned to roll out to retail devices, completing the transition from Phi Silica. 

Developers can find the latest transition information in the Windows AI documentation: 

https://learn.microsoft.com/en-us/windows/ai/apis/phi-silica 

A transition designed for continuity

Phi Silica helped establish a foundation for local language-model experiences on Windows. Microsoft Aion 1.0 Instruct represents the next step in that journey, improving the platform while enabling it to reach more devices. With Aion 1.0 Instruct, we’ll also be removing key adoption barriers like the need for an LAF token (removal targeted for January). 

The staged transition gives developers time to evaluate their experiences and prepare for broader adoption. Most existing AI-powered features will continue to work (with the exception of custom LoRAs) as they move to the newer model foundation. 

What’s next?

This is the beginning of the next phase of local AI on Windows. We’ll continue expanding Aion Instruct across supported hardware and working with developers to improve the experience. 

As the rollout progresses, we’ll share updated guidance, documentation, and ways for developers to try Aion 1.0 Instruct and provide feedback. 

We’re excited to see what you build with Aion Instruct on Windows. Be sure to check out THR888: Build On-Device AI Experiences w/ Windows AI APIs at Ignite 2026 to learn more about Aion Instruct (recording will be available).

To share feedback, create an Issue in the WinAppSDK repo: Issues · microsoft/WindowsAppSDK

The post Microsoft Aion 1.0 Instruct: Advancing local AI on Windows and expanding to GPU appeared first on Microsoft Foundry on Windows Blog.

Read the whole story
alvinashcraft
22 seconds ago
reply
Pennsylvania, USA
Share this story
Delete

Agent swarms need more than a message board

1 Share
Agent swarms are really distributed systems problems in disguise.
Read the whole story
alvinashcraft
3 hours ago
reply
Pennsylvania, USA
Share this story
Delete

Is the WordPress MCP server slow? I timed 160 calls on my own site.

1 Share

I asked ChatGPT and Claude if Jetpack’s MCP server is slow. Both said yes, and both pointed to the same test, one that put five everyday tasks at 11 minutes.

That didn’t match what I see on my own site. But that’s just a feeling, so I went ahead and timed it myself.

What I asked, and how long it took

I asked Claude which plugins on my site needed updates, and whether there were any site health problems. Without AI, I’d check the Plugins screen, then Jetpack Scan, then Jetpack Monitor. Here it was one question.

I asked three times with each model, in a fresh chat each time, and timed it from send to final answer.

ModelRun 1Run 2Run 3
Claude Sonnet 5.512.5 s8.5 s12.5 s
Claude Opus 5.550.0 s49.3 s34.3 s

All six runs found the same five plugin updates.

Eleven minutes is 660 seconds. My slowest run took 50 seconds.

To be fair, it isn’t the same test. That one had five tasks, and four of them made changes to the site. Mine was one task that only reads.

What’s a call?

Your AI can’t see your site directly. When you ask it something, it asks WordPress.com for what it needs, one small request at a time. Each request is a call.

To answer my plugin question, Sonnet made five or six calls. It listed my plugins, then checked Jetpack Scan, Jetpack Monitor, my site’s status, and its performance. Opus made 12 to 14 calls, and read the docs first.

So the model made the biggest difference. With the same server, site, and question, Opus took about four times as long as Sonnet. If a simple job feels slow, try a faster model like Sonnet first.

One call at a time

I also timed single calls on their own: 160 of them, across eight tools. The middle result was 931 milliseconds, about a second, and none failed.

ToolWhat it doesMedian msp90 msRuns
wpcom/jetpack-stats-overviewViews and visitors for today, the last seven days, and the last 30 days34643920
wpcom/site-settingsSite title, tagline, and general settings84999020
wpcom-mcp/posts-listList the latest posts9081,01020
wpcom-mcp/comments-listList the latest comments9161,03220
wpcom-mcp/pages-listList pages9261,04420
wpcom/plugin-listList all 16 plugins and which need updates9411,24220
wpcom-mcp/posts-getGet one full post1,4521,55720
remote:core/get-site-infoSite info, answered by my site itself1,5611,71920

(Median is the middle result. p90 means nine out of 10 calls were faster than this.)

Stats came back fastest, in about a third of a second. The two slowest calls fetched a whole post, and asked my site to answer a question itself. That second one took about 0.7 seconds longer than the similar settings call. I think that’s just the trip out to my site and back.

I also made six plain calls to the WordPress.com API for the same site, with no MCP involved, from the same computer and connection. They took 0.65 to 0.83 seconds. So most of that second looks like the normal trip to WordPress.com and back, and MCP adds a little on top.

How I ran it

  • The site. My personal website. It’s hosted on Pressable, which is also part of Automattic, and connected to WordPress.com through Jetpack.
  • The whole task. I ran it in Claude Code, not the Claude or ChatGPT apps.
  • The single calls. A small script that signs in to WordPress.com and times each call. For each tool, two warm-up calls I didn’t count, then 10 timed calls, then the same again about 12 minutes later.
  • When and where. Monday, November 23, 2026, 9:50 to 10:10 am Toronto time. Wired connection, MacBook Air, Toronto, Ontario.
  • Read-only. I only ran tools that read. I didn’t time any changes, or any other MCP servers.

I don’t know why that one test came out at 11 minutes. Maybe the write tasks take a lot more steps. Maybe it was the model, or the host. I’d honestly like to know.

To compare features instead of speed, see Jetpack’s side-by-side look at seven WordPress MCP servers: https://jetpack.com/wordpress-mcp/

Try it on your own site

It works on WordPress.com sites, and on any WordPress site with Jetpack connected, wherever it’s hosted. Connecting your AI is free on every Jetpack site.

  1. If your site isn’t on WordPress.com, get Jetpack free and connect it to WordPress.com.
  2. Add WordPress.com to Claude or ChatGPT.
  3. Sign in with the WordPress.com account your site uses, and say yes. To start safe, choose Read only.
  4. Ask the same question I did: “Which plugins on my site need updates, and are there any site health problems?” Then check the clock.

I’d love to see your numbers. For more ideas, there are 26 ready-made prompts you can paste in.

Written steps are in the WordPress.com MCP guide.





Read the whole story
alvinashcraft
3 hours ago
reply
Pennsylvania, USA
Share this story
Delete

Creating a Morph Animation Without Actually Morphing

1 Share
Fake a shape morph with plain CSS by animating border-radius, clip-path points, crossfades, and a squash-and-swap trick. Includes a live demo.
Read the whole story
alvinashcraft
3 hours ago
reply
Pennsylvania, USA
Share this story
Delete

Announcing Files v4.3.4

1 Share
Announcing Files Preview v4.3.4 for users of the preview version.

Read the whole story
alvinashcraft
3 hours ago
reply
Pennsylvania, USA
Share this story
Delete
Next Page of Stories