Recorded 2026-11-25. Vocalsynth retires NVIDIA L40S for training and selects memory-bandwidth-matched accelerators (RTX 5090 as primary SkyPilot default, A100 for Modal or workloads above 32 GB VRAM, and RTX 4090 as budget fallback).
Context
Early cloud runs targeted NVIDIA L40S (48 GB GDDR6, 864 GB/s bandwidth, 362 TFLOP/s dense BF16) for wide availability and large VRAM. Subsequent roofline calculations and cloud run profiling across Experiment #7 and Experiment #8 showed that Vocalsynth’s active 63M-parameter model (width = 512, ffn = 2048, layers = 12) is bounded by memory bandwidth and CPU data prefetching rather than 48 GB capacity or peak tensor FLOPs:
- Low arithmetic intensity versus L40S ridge point: L40S carries a
419 FLOPs/ByteBF16 ridge point, whereasffn(512to2048) hits~408 FLOPs/Byte,qkvhits384,attn.outhits256, and adapters (512to64) sit at57 FLOPs/Byte. - VRAM below 32 GB after static sequence packing: With
torch.compile,FlexAttention, and fixed-grid packing atmax_batch_frames = 52,000, peak VRAM dropped to20.24 GiBonRTX 5090(Run #7.2.5) and20.59 GiBonA100-40GB(Run #7.2.3). Single-singer adapter runs (Run #8.2.2,16,000frames) peaked at4.38 GiB. - Early microbatch saturation: At
width = 512, matmul arithmetic intensity reaches 98% of asymptote by 20,000 frames and 99% by 40,000 frames, so smaller microbatches paired with gradient accumulation retain compute efficiency on 24–32 GB GPUs.
Measured cloud run and hardware comparison
| Run | Hardware and backend | Configuration summary | Peak VRAM | Median throughput | Unstarved peak throughput |
|---|---|---|---|---|---|
7.1 |
SkyPilot L40S |
Label-only, eager, 80,000 frames |
30.95 GiB |
24.48 TFLOP/s |
35.11 TFLOP/s |
7.2.3 |
Modal A100-40GB |
Dual-path, compile, 52,000 frames |
20.59 GiB |
18.20 TFLOP/s |
71.24 TFLOP/s |
7.2.4 |
Modal A100-40GB |
Dual-path, compile, 80,000 frames |
31.64 GiB |
42.22 TFLOP/s |
73.73 TFLOP/s |
7.2.5 |
SkyPilot RTX 5090 |
Dual-path, compile, 52,000 frames |
20.24 GiB |
27.36–30.65 TFLOP/s |
73.04 TFLOP/s |
8.2.2 |
Modal L40S |
Adapter (244 Chia slices, compile) |
4.38 GiB |
78.92 TFLOP/s |
79.46 TFLOP/s |
Compiled dual-path runs reached nearly identical ~71–74 TFLOP/s unstarved peaks on both A100-40GB and RTX 5090 right after checkpoint/render pauses refilled CPU prefetch buffers (CPU prefetching analysis). L40S hit 78.92 TFLOP/s in 8.2.2 only because all 244 tiny Chia slices fit in the 2 GiB LRU cache without prefetch eviction.
| GPU | VRAM | Memory bandwidth | Ridge point | Selected role |
|---|---|---|---|---|
L40S |
48 GB GDDR6 |
864 GB/s |
419 FLOPs/Byte |
Retired |
RTX 4090 |
24 GB GDDR6X |
1,008 GB/s |
164 FLOPs/Byte |
Secondary budget fallback (<= 52,000 frames or grad accum) |
RTX 5090 |
32 GB GDDR7 |
1,792 GB/s |
117 FLOPs/Byte |
Primary SkyPilot default (2.07x L40S bandwidth) |
A100 80GB SXM4 |
80 GB HBM2e |
2,039 GB/s |
153 FLOPs/Byte |
Primary high-VRAM and Modal target |
H100 SXM |
80 GB HBM3 |
3,350 GB/s |
295 FLOPs/Byte |
Deferred until wider models (width >= 1024) |
Decision
- Retire
L40Sfor Vocalsynth pretraining and adaptation on Modal and SkyPilot. - Default SkyPilot jobs to
RTX 5090(32 GB), useA100(80 GB SXM4on SkyPilot,A100-40GBorA100-80GBon Modal) when workloads exceed 32 GB or run on Modal, and keepRTX 4090(24 GB) as a low-cost fallback.
Consequences and revisit conditions
- Upgrading to
H100 SXMadds little benefit while CPU data prefetching limits steady-state throughput to~30 TFLOP/s. Host RAM and vCPU allocation remain paired carefully alongside GPU selection. - Re-evaluate
H100,RTX PRO 6000, orB200once model widths reach1024+and Stage 2–3 corpora exceed 1,000 h.



