Skip to content

Commit 481c60c

Browse files
authored
test new ami (#705)
* test new ami Signed-off-by: Intron7 <severin.dicks@icloud.com> * split out runners Signed-off-by: Intron7 <severin.dicks@icloud.com> * test otehr ami Signed-off-by: Intron7 <severin.dicks@icloud.com> * use t4 new ami Signed-off-by: Intron7 <severin.dicks@icloud.com> * use 13 for stable Signed-off-by: Intron7 <severin.dicks@icloud.com> --------- Signed-off-by: Intron7 <severin.dicks@icloud.com>
1 parent 2a76090 commit 481c60c

2 files changed

Lines changed: 20 additions & 14 deletions

File tree

.cirun.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
runners:
2-
# Primary: A10G. ~3-4x faster than the T4 (Ampere, tensor cores, ~600 GB/s).
2+
# A10G for dev + prerelease (cu13). scverse-standard AMI, eu-west-1.
33
- name: aws-gpu-runner-g5
44
cloud: aws
55
instance_type: g5.xlarge
6-
machine_image: ami-067a4ba2816407ee9
7-
region: eu-north-1
6+
machine_image: ami-0756bd122da9b2618
7+
region: eu-west-1
88
preemptible:
99
- true
1010
- false
1111
labels:
12-
- cirun-aws-gpu
13-
# Fallback: T4. Cheapest; cirun picks this when g5 spot is dry.
12+
- cirun-aws-gpu-a10
13+
# T4 for stable (cu13). scverse-standard AMI, eu-west-1.
1414
- name: aws-gpu-runner-g4dn
1515
cloud: aws
1616
instance_type: g4dn.xlarge
17-
machine_image: ami-067a4ba2816407ee9
18-
region: eu-north-1
17+
machine_image: ami-0756bd122da9b2618
18+
region: eu-west-1
1919
preemptible:
2020
- true
2121
- false
2222
labels:
23-
- cirun-aws-gpu
23+
- cirun-aws-gpu-t4

.github/workflows/test-gpu.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,34 +39,40 @@ jobs:
3939
enable-cache: false
4040
- id: get-envs
4141
run: |
42-
# Stable and dev environments
42+
# Stable + dev, all cu13 (stable -> T4, dev -> A10)
4343
STABLE_DEV_JSON=$(uvx --from "hatch==1.16.5" hatch env show --json | jq -c '
4444
to_entries
4545
| map(
46-
select(.key | startswith("hatch-test") and endswith("12") and (contains("prerelease") | not))
46+
select(.key | startswith("hatch-test"))
47+
| select(
48+
((.key | contains("stable")) and (.key | endswith("13")))
49+
or ((.key | contains("dev")) and (.key | endswith("13")))
50+
)
4751
| {
4852
name: .key,
4953
python: .value.python | sub("3[.]13"; "3.13.3"),
54+
runner: (if (.key | contains("stable")) then "cirun-aws-gpu-t4" else "cirun-aws-gpu-a10" end),
5055
}
5156
)')
5257
echo "stable-dev=${STABLE_DEV_JSON}" | tee -a $GITHUB_OUTPUT
5358
54-
# Prerelease environments
59+
# Prerelease environments (cu13 -> A10)
5560
PRERELEASE_JSON=$(uvx --from "hatch==1.16.5" hatch env show --json | jq -c '
5661
to_entries
5762
| map(
58-
select(.key | startswith("hatch-test") and endswith("12") and contains("prerelease"))
63+
select(.key | startswith("hatch-test") and endswith("13") and contains("prerelease"))
5964
| {
6065
name: .key,
6166
python: .value.python | sub("3[.]13"; "3.13.3"),
67+
runner: "cirun-aws-gpu-a10",
6268
}
6369
)')
6470
echo "prerelease=${PRERELEASE_JSON}" | tee -a $GITHUB_OUTPUT
6571
6672
test-stable-dev:
6773
name: Test (${{ matrix.env.name }})
6874
needs: get-envs
69-
runs-on: cirun-aws-gpu
75+
runs-on: ${{ matrix.env.runner }}
7076
timeout-minutes: 30
7177
strategy:
7278
fail-fast: false
@@ -128,7 +134,7 @@ jobs:
128134
test-prerelease:
129135
name: Test (${{ matrix.env.name }})
130136
needs: get-envs
131-
runs-on: cirun-aws-gpu
137+
runs-on: ${{ matrix.env.runner }}
132138
timeout-minutes: 30
133139
continue-on-error: true # Prerelease failures don't fail the workflow
134140
strategy:

0 commit comments

Comments
 (0)