Does Your Model Run on AWS Trainium? Look It Up
Use the Hugging Face Space to quickly see which models run unmodified on AWS Trainium and follow the provided script to run them yourself.

Introduction
If you work with HuggingâŻFace models and are curious whether they can run on AWS Trainium, a new Space makes the answer trivial. It lists the most popular models, shows whether they run unmodified with the `torchâneuronx` backend, and provides the exact script and environment needed to reproduce the results on your own Trainium instance.
How the Space works
- Model selection â The Space shows a curated "Selected" view of topâdownloaded and trending models. You can also switch to the Trending or Downloads tabs to search any model by name.
- Result columns â For each entry youâll see:
- Pass/fail status - Number of Trainium cores used (sharding) - Wallâtime including compilation - Peak device memory
- Why a model is missing â If a model isnât listed, the Space explains whether it was deliberately skipped (e.g., low priority) or truly incompatible with the current `torchâneuronx` stack.
- Version control â You can pick the Neuron compiler (`neuronxâcc`) and Transformers versions to see how results change across releases.
Running a model yourself
- Pick a model â Click a row to expand the details. The Space displays the exact Neuron stack that was tested and a readyâtoârun `run.py` script.
- Set up the environment â On a Trainium2 (`trn2`) instance, use the AWS Neuron Deep Learning Container and install the listed packages.
- Execute â Run the script with `python3 run.py`. The script handles distributed launch internally, so you donât need `torchrun`.
- Skip recompilation (optional) â The first run compiles the model graph. To avoid this step, sync the preâcompiled NEFF cache from the public bucket:
``` hf buckets sync hf://buckets/aws-neuron/torch-neuronx-neff-cache/neuronxcc-<version> /tmp/neff_cache ``` The Space provides the exact command for the compiler version used.
What ârunsâ really means
- Sharding â Models are placed on the smallest number of Trainium cores that can hold their weights, typically using tensorâparallelism. Mixtureâofâexperts models may use expertâparallelism.
- Verification â After loading, the test generates 32 tokens. For singleâcore runs, the output is compared to a CPU reference; for sharded runs, a lightweight judge model checks fluency.
- Scope â Currently only models that fit on up to four Trainium2 devices (16 cores) are evaluated. A PASS indicates successful loading and a short generation, not sustained throughput.
Accessing the raw dataset
All results originate from the public dataset `aws-neuron/torch-neuronx-model-support`. It stores a Parquet file for each combination of compiler and library versions. You can query it directly in Python: ```python import pandas as pd df = pd.readparquet("hf://datasets/aws-neuron/torch-neuronx-model-support/data") print(df[df.modelid == "Qwen/Qwen3-0.6B"][['neuronxcc','library','libraryversion','neuron_cores','result']]) ``` The dataset card explains each column and the meaning of the result codes.
Practical takeaways
- Quick lookup â Before spending time provisioning Trainium, check the Space to confirm support.
- Reproducible runs â Use the provided script and NEFF cache to replicate the benchmark on your own hardware.
- Future expansion â The current focus is on textâgeneration and imageâtextâtoâtext models, but support for diffusers, sentenceâtransformers, and other tasks is planned.
--- Next time you wonder whether a HuggingâŻFace model runs on AWS Trainium, simply search the Space, copy the script, and get running in minutes.
Source
Read original sourceWhy we picked this
Core AI content about running models on AWS Trainium hardware