Skip to content

Commit

Permalink
Use g4dn.xlarge2 instance rather than g5.xlarge
Browse files Browse the repository at this point in the history
  • Loading branch information
philmcmahon committed Jan 27, 2025
1 parent 097d2de commit 2a6443a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/cdk/lib/transcription-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ export class TranscriptionService extends GuStack {
machineImage: MachineImage.genericLinux({
'eu-west-1': gpuWorkerAmi.valueAsString,
}),
instanceType: InstanceType.of(InstanceClass.G5, InstanceSize.XLARGE),
instanceType: InstanceType.of(InstanceClass.G4DN, InstanceSize.XLARGE2),
blockDevices: [
{
deviceName: '/dev/sda1',
Expand All @@ -436,6 +436,8 @@ export class TranscriptionService extends GuStack {

const gpuInstanceTypes = isProd
? [
InstanceType.of(InstanceClass.G4DN, InstanceSize.XLARGE2),
InstanceType.of(InstanceClass.G4DN, InstanceSize.XLARGE),
InstanceType.of(InstanceClass.G5, InstanceSize.XLARGE),
InstanceType.of(InstanceClass.G6, InstanceSize.XLARGE),
]
Expand Down Expand Up @@ -496,7 +498,7 @@ export class TranscriptionService extends GuStack {
launchTemplate: gpuLaunchTemplate,
instancesDistribution: {
...asgProps.mixedInstancesPolicy.instancesDistribution,
spotMaxPrice: '1.1230',
spotMaxPrice: '0.7520',
},
launchTemplateOverrides: gpuInstanceTypes.map(instanceTypeToOverride),
},
Expand Down

0 comments on commit 2a6443a

Please sign in to comment.