Repository navigation
Heterogeneous sweeps (#372) + GPU auto-AMI fix (#384) - #383
Merged
Merged
Conversation
… + AMI (#372) A --param-file sweep can now vary instance_type/ami/spot per entry, so one sweep runs a workload across different instance families (price-performance benchmarks). - Per-config AMI detection keyed by (region, arch, GPU) with a memo cache, instead of forcing the first entry's AMI onto every entry — arm64 (c8g) and GPU (g6) entries previously got an x86 non-GPU AMI and failed to boot. - Entries omitting instance_type fall back to the top-level --instance-type. - Per-config OS resolution + a mixed-OS guard (a sweep must be all-Linux or all-Windows). - Tests: per-entry override parsing + arch/GPU/region AMI-cache-key separation. Detached/Lambda sweeps already accept a per-entry explicit ami: but don't auto-detect — documented as a follow-up. Closes #372.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Auto-AMI queried al2023-ami-kernel-default-gpu-* SSM params that don't exist → every GPU launch without --ami failed with ParameterNotFound. Point GPU AMIs at the real Deep Learning Base OSS Nvidia Driver GPU AMI (AL2023) in the deeplearning SSM namespace. Also fix DetectGPUInstance: add missing NVIDIA families (g6e/g7e/g7/g4dn/p4de/ p5e/p6 — newer ones silently fell back to a CPU AMI) and stop misclassifying Neuron (inf*/trn*) and AMD (g4ad) as NVIDIA GPUs. Aligned with truffle's family list. Closes #384.
Contributor
Author
|
Added the GPU auto-AMI fix (#384) to this PR — it's a prerequisite for the heterogeneous-sweep GPU example (g6/g6e/g7e entries) to actually launch. #384: auto-AMI queried Also fixed
Tests updated: real DL SSM paths + g6e/g7e/g7 regressions + Neuron/AMD negatives. Closes #384. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #372. Lets a
--param-filesweep varyinstance_type(andami/spot) per entry, so one sweep runs the same workload across different instance families — a price-performance benchmark (e.g. GROMACS on c8i/c8a/c8g/g6/g6e).What was broken
buildLaunchConfigFromParamsalready parsed per-entryinstance_type/ami/spot, butlaunchParameterSweepdetected the AMI once from the first entry and applied it to all — so arm64 (c8g) and GPU (g6) entries got an x86 non-GPU AMI and failed to boot. And entries omittinginstance_typegot no fallback to the top-level--instance-type.Changes (
cmd/launch_sweep.go)(region, arch, GPU)with a memo cache — each entry gets an arch/GPU-appropriate AMI; entries sharing an architecture reuse one SSM lookup. Explicitami:still wins.instance_typebase fallback — an entry without one inherits--instance-type.command/lifecycle can't span both).Tests (
cmd/sweep_test.go)instance_type/ami/spotoverride parsingScope note
Detached (
--detach, Lambda-orchestrated) sweeps already honor a per-entry explicitami:but don't auto-detect one — documented; auto-detection there is a larger separate change (the Lambda would need SSM AMI lookup + arch detection). No new flags, no param-file format change.Docs (heterogeneous-sweep example + the OS/detached caveats) land in a parallel umbrella PR.