Hugging Face has released a new interactive Space, torch-neuronx-model-support, designed to help developers determine which Transformers models run natively on AWS Trainium hardware. The tool provides immediate feedback on compatibility, performance metrics, and execution scripts for the most popular models on the Hub.

What Happened

The Space allows users to search for specific models by name within the Trending or Downloads views, or browse a curated selection of top-performing models. For each entry, the tool displays whether the model runs unmodified, the number of Trainium cores required for sharding, the total wall time including compilation, and peak device memory usage. If a model is not supported, the Space often explains why, such as prioritization decisions or true incompatibility. Users can also filter results by specific versions of the Neuron compiler (neuronx-cc) and the Transformers library.

Currently, the testing scope is limited to text-generation and image-text-to-text models within the Transformers library. The testing process involves loading a model on a Trainium2 (trn2) instance, sharding it across the minimum number of cores required to hold its weights, and generating 32 tokens. For single-core runs, outputs are compared against CPU baselines; for sharded models, a judge model verifies text fluency. The tool notes that tests currently cover models fitting on up to four Trainium2 devices (16 cores), and a 'PASS' result does not guarantee throughput or performance for longer generations.

Why It Matters

This release addresses a common friction point for developers adopting AWS Trainium: the uncertainty of whether existing PyTorch models will work without significant code modifications. By leveraging TorchNeuron, the native PyTorch backend for Trainium, Hugging Face enables standard Transformers code to run on the hardware. The Space provides ready-to-run scripts that utilize static caching and torch.compile with the 'neuron' backend, simplifying the deployment process.

Furthermore, all data displayed in the Space is sourced from a public dataset, aws-neuron/torch-neuronx-model-support, allowing developers to programmatically query compatibility using tools like pandas. This transparency enables teams to assess infrastructure fit before committing resources. The company plans to expand testing to include diffusers, sentence transformers, and other task types in the future.

The Bottom Line

Developers targeting AWS Trainium can now instantly verify model compatibility and retrieve execution scripts via Hugging Face's new Space, reducing deployment uncertainty for supported Transformers models.