g5g.2xlarge vs trn1.2xlarge
| g5g.2xlarge | trn1.2xlarge |
| GPU instance | Machine Learning ASIC |
| Machine Learning (ML), 3D visualizations, graphics-heavy remote workstations, 3D rendering, application streaming, video encoding, and server-side graphics tasks. g – GPU (Graphics Processing Unit) 5 – Generation g – AWS Graviton processor 2xlarge – Size | Machine Learning (ML) training trn – AWS Trainium 1 – Generation 2xlarge – Size |
| 8 | 8 |
| 16 GiB | 32 GiB |
| arm64 | x86_64 |
| AWS Graviton2 Processor | Intel Xeon Scalable (Icelake) |
| 2.5 GHz | 3.5 GHz |
| 1 | 2 |
| yes | no |
| T4g | |
| NVIDIA | |
| 1 | 1 |
| 16 GiB | |
| 16 GiB | |
| no | no |
| 16 GiB | 32 GiB |
| no | no |
| g5g.16xlarge, g5g.2xlarge, g5g.4xlarge, g5g.8xlarge, g5g.metal, g5g.xlarge | trn1.2xlarge, trn1.32xlarge |
| g5.2xlarge | |
| ml.trn1.2xlarge | |
| no | no |
| no | no |
| no | no |
| EBS only | 1 x 475 NVMe SSD |
| default | default |
| supported | supported |
| required | required |
| up to 4500 MBps | up to 20480 MBps |
| 2375 Mbps | 5000 Mbps |
| 296.875 Mbps | 625 Mbps |
| 12000 IOPS | 16250 IOPS |
| 20000 IOPS | 65000 IOPS |
| 4750 Mbps | 20000 Mbps |
| 593.75 Mbps | 2500 Mbps |
| Up to 10 Gigabit | 12500 Megabit |
| yes | yes |
| 4 | 4 |
| 1 | 1 |
| 15 | 15 |
| 15 | 15 |
| yes | yes |
| required | required |
| no | no |
| no | yes |
| no | no |
| 1.00x | 2.03x |
Regional Prices
Geography | Region | g5g.2xlarge | trn1.2xlarge |
|---|---|---|---|
| Europe | Europe (Spain) (eu-south-2) | 0.6205 | n/a |
| Hidden | Hidden (hidden-1) | 0.6839 | n/a |
| Hidden | Hidden (hidden-2) | 0.6955 | n/a |
| Hidden | Hidden (hidden-3) | 0.7505 | n/a |
| Hidden | Hidden (hidden-4) | 0.7780 | n/a |
| US | US East (Ohio) (us-east-2) | n/a | 1.3438 |
| US | US East (Virginia) (us-east-1) | 0.5560 | 1.3438 |
| US | US West (Oregon) (us-west-2) | 0.5560 | 1.3438 |