{
  "id": 16186943,
  "title": "Does Your Model Run on AWS Trainium? Look It Up",
  "url": "https://urgent.news/2026/10/23/does-your-model-run-on-aws-trainium-look-it-up",
  "topic": "ai",
  "section": "AI",
  "published": "2026-10-23T00:00:00.000Z",
  "source": {
    "name": "Hugging Face",
    "slug": "hugging-face",
    "url": "https://huggingface.co/blog/torch-neuronx-model-support"
  },
  "original_language": "en",
  "account": "In a previous post, the authors introduced TorchNeuron, a PyTorch backend for AWS Trainium, the torch-neuronx package. This allows Transformers to run its modeling code on Trainium, just as it does on other devices. The torch-neuronx model support Space answers the question of which popular models on the Hub can run unmodified on Trainium. It provides information on which models are sharded over Trainium cores, the run time, and the peak device memory required. The Space focuses on the most popular models on the Hub, sorted by downloads and trend score. Users can search for a specific model by typing part of its name in the Trending or Downloads view. The Space explains why a model may not have been tested, usually due to lack of prioritization or incompatibility. Currently, only Transformers models are tested, with text-generation and image-text-to-text models included in the selection. Plans are in place to expand the testing to diffusers, sentence transformers, and other transformer tasks. To run a selected model, users need to know the Neuron stack used, the necessary packages, and the run.py script. This script follows the TorchNeuron announcement, loading the model with from_pretrained, sharding when needed, generating with a static cache, and using torch.compile(backend=neuron). The script handles torch.distributed ranks automatically when the model is sharded. After the first run, which involves compiling the model's graphs, users can skip this step by copying the graphs from the public NEFF cache bucket, specifying the correct compiler version. Each test runs the model on a trn2 instance, sharded over the minimum number of Trainium cores that can hold its weights. Most models use tensor parallelism, while mixture-of-experts models without a tensor-parallel plan use expert parallelism only. The test generates 32 tokens and checks them, comparing the results with a single-core CPU run and a small judge model for fluent English text generation. Currently, only models that fit within 4 Trainium2 devices, i.e., up to 16 cores, are tested. A PASS indicates nothing about throughput or longer generations. The Space's data comes from the public aws-neuron/torch-neuronx-model-support dataset, with one Parquet file per pair of neuronx-cc and library versions. Each row contains the model's result, any errors, the stack versions used, and the run.py script executed. Users can query the dataset directly for more information.",
  "summary": null,
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}