// RUN โ€” FITS

Can the NVIDIA L40S 48GB run GPT-2 (774M)?

Yes โ€” here's how fast and up to what context, with real measured numbers.

GPT-2 (774M) on the NVIDIA L40S 48GB

QuantFits?Max contextSpeedBeyond context
FP16 yes 627k 407.4-485.6 t/s ~18.9-22.5 (slow)
Q8 yes 639k 814.9-971.2 t/s ~37.7-45 (slow)
Q4 yes 644k 1455.1-1734.2 t/s ~67.4-80.3 (slow)

Estimate (memory-bound). Beyond "max context" the KV cache spills to system RAM offload (depends on your system RAM) and speed drops to the "beyond" figure.

FAQ

Can the NVIDIA L40S 48GB run GPT-2 (774M)?โ–ถ

Yes. At Q4 it generates ~1455.1-1734.2 tok/s and fits up to 644k context; beyond that it spills to system RAM offload (depends on your system RAM) and slows to ~67.4-80.3 tok/s.

How much context fits?โ–ถ

At Q4, up to about 644k tokens stay in fast memory; longer context spills to system RAM offload (depends on your system RAM) and throughput collapses.