You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Launch parity: trn/inf get an arm64 AMI, GPU types get AL2023 without NVIDIA drivers, hibernate can never succeed (no HibernationOptions), stop/hibernate offered on one-time Spot #129
Found by the portal functional audit (2026-11-10, spawn-ts 0.8.1). Three launch-path divergences from Go spawn. Each one fails a launch, or the feature it was launched for, from the portal.
dist/aws/ec2.js:396-404 returns arm64 for /^(trn|inf)\d/. trn1, trn2, inf1 and inf2 hosts are x86_64. Go's DetectArchitecture (pkg/aws/ami.go) has no such rule, and truffle-ts's own catalog says x86_64 for trn1.2xlarge. resolveAmi therefore picks an arm64 AL2023 image, and RunInstances refuses the mismatch. Reachable from the portal: the Dashboard launch form with any trn*/inf* type, or after the guided "Trainium" watch card matches.
Checked with spawn-ts's own export: archForInstanceType("trn1.2xlarge") === "arm64", while truffle-ts gives architecture: "x86_64".
2. GPU types get plain AL2023, with no NVIDIA driver
resolveAmi (:338-355) always looks up al2023-ami-2023.*-kernel-6.1-<arch>. Go picks the DLAMI GPU image for GPU families (pkg/aws/ami.go: AMI_AL2023_GPU*, with isGPUInstance covering p6/p5e/p5/p4d/g6e/g6/g5/g5g/g4dn…). Both GPU cards in the portal's guided picker hit this: "A GPU" resolves to g6.xlarge, and "A big GPU" to p5.48xlarge ($55/h). The user pays for a GPU that nvidia-smi can't see. (The spawn side has a related container-runtime gap, spawn#606.)
3. Hibernate can never succeed
hibernate() sends StopInstances{Hibernate:true} (:246-248), but launch() never sets HibernationOptions: {Configured: true}, nor the encrypted root volume that hibernation needs. So:
the launch form's hibernate on idle checkbox launches an instance whose idle hibernate will fail on the box.
The audit's launch with that box ticked sent HibernationOptions = null.
Separately, stop and hibernate are offered on one-time Spot instances, which EC2 refuses to stop (spawn:spot-request-type=one-time is already on the tag set; bounds.js knows this at launch).
Fix:
Port Go's DetectArchitecture table, or better, read architecture from truffle-ts's catalog.
Port the GPU AMI selection.
Set HibernationOptions and an encrypted root volume when hibernateOnIdle is set, and hide hibernate on instances that weren't launched hibernatable.
Hide stop and hibernate for one-time Spot instances.
trn/inf get the AL2023 x86_64 CPU image, not a Neuron image. That is Go's deliberate choice ("a Neuron workload should pass an explicit --ami"). Auto-picking the Neuron DLAMI would have to be a Go change first.
Activity
Export LifecycleMode on its own line (#126)
scttfrdmn commentedon Nov 11, 2026
The fix is in #135, stacked on #133 and #134. It is pinned by Go vectors rendered from
[email protected].Decisions taken for Go parity:
p6-b200,p6e-gb200,p5en,gr6andg6f, filed as DetectGPUInstance misses p6-b200, p6e-gb200, p5en, gr6 and g6f: auto-AMI gives them the CPU image (no NVIDIA driver) spawn#1579. spawn-ts follows once Go is fixed and the vectors are regenerated.Not verified live (needs real AWS):
nvidia-smisees the GPU;ec2:DescribeInstanceTypes, andssm:GetParameteronarn:aws:ssm:*::parameter/aws/service/deeplearning/ami/*.Launch parity with Go spawn: arch, GPU AMI, hibernation, Spot stop, C…