// RUN โ€” FITS

Can the NVIDIA L40S 48GB run CodeT5-base?

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

CodeT5-base on the NVIDIA L40S 48GB

QuantFits?Max contextSpeedBeyond context
FP16 yes 644k 1433.5-1708.4 t/s ~66.4-79.1 (slow)
Q8 yes 648k 2866.9-3416.7 t/s ~132.7-158.2 (slow)
Q4 yes 649k 5119.5-6101.3 t/s ~237-282.5 (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 CodeT5-base?โ–ถ

Yes. At Q4 it generates ~5119.5-6101.3 tok/s and fits up to 649k context; beyond that it spills to system RAM offload (depends on your system RAM) and slows to ~237-282.5 tok/s.

How much context fits?โ–ถ

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