Skip to content

Single-launch auto-AMI picks x86_64 for m9g (Graviton5) — unknown arm64 families not detected as arm64 #410

Closed

Description

@scttfrdmn

Summary

On a plain spawn launch (not a sweep), auto-AMI selection picks an x86_64 AMI for an arm64 instance type (m9g.24xlarge, Graviton5), so the launch fails immediately:

InvalidParameterValue: The architecture 'arm64' of the specified instance type
does not match the architecture 'x86_64' of the specified AMI. Specify an
instance type and an AMI that have matching architectures, and try again.

Older Graviton families launched through the same single-launch auto-AMI path in the same campaign resolved a correct arm64 AL2023 AMI with no issue: c6g.16xlarge, c7g.16xlarge, c8g.24xlarge all booted fine. Only m9g.24xlarge got an x86_64 AMI.

Root cause (likely)

The single-launch auto-AMI arch detection appears to recognize arm64 from a known set of Graviton instance families (c6g/c7g/c8g/m7g/… ). m9g is a new 2026 family (Graviton5) and isn't in that set, so arch detection falls through to the x86_64 default and an x86_64 AMI is selected — producing the arch-mismatch above.

This is distinct from #384 (GPU auto-AMI) and from the sweep per-config AMI fix in #383 (which keys AMI on (region, arch, GPU) but only in launchParameterSweep). This is the non-sweep spawn launch code path, and the failure mode is arch misdetection, not GPU/driver selection.

Repro

spawn launch test-m9g --instance-type m9g.24xlarge --region us-east-1 --command "true"
# -> InvalidParameterValue: architecture 'arm64' ... does not match 'x86_64' AMI

vs. the same command with c8g.24xlarge succeeds.

Suggested fix

Don't rely on an allowlist of Graviton family prefixes. Determine arch authoritatively from the instance type itself via DescribeInstanceTypes (ProcessorInfo.SupportedArchitectures → arm64 / x86_64), then pick the AMI to match. That's future-proof for any new family (m9g, r9g, c9g, hpc7g, …) without a code change per launch. Same lookup the sweep path in #383 would benefit from sharing.

Workaround

Pass an explicit arm64 AMI: --ami ami-02e447f4c654c7179 (AL2023 arm64, us-east-1). This launches correctly, confirming the only problem is auto-AMI arch selection.

Context

Hit while extending a GROMACS price-performance benchmark (aws-gromacs) to a full Graviton generational ladder c6g→c7g→c8g→m9g (Graviton2→5). m9g is the one rung the harness can't launch without the --ami workaround.

Activity

  1. added
    bug
    on Jul 19, 2026
  2. scttfrdmn commented on Jul 19, 2026

    @scttfrdmn
    ContributorAuthor

    Confirmed fixed in 0.83.1. spawn launch --instance-type m9g.24xlarge (no --ami) now auto-selects the correct arm64 AL2023 AMI (ami-02e447f4c654c7179 in us-east-1) and boots arm64 cleanly — same result the --ami workaround produced. Dropping the per-instance AMI pin on my side. Thanks for the quick turnaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions