// RUN โ€” FITS

Can the NVIDIA L40S 48GB run ERNIE-Doc (247M)?

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

ERNIE-Doc (247M) on the NVIDIA L40S 48GB

QuantFits?Max contextSpeedBeyond context
FP16 yes 643k 1276.8-1521.6 t/s ~59.1-70.4 (slow)
Q8 yes 647k 2553.5-3043.2 t/s ~118.2-140.9 (slow)
Q4 yes 649k 4559.9-5434.4 t/s ~211.1-251.6 (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 ERNIE-Doc (247M)?โ–ถ

Yes. At Q4 it generates ~4559.9-5434.4 tok/s and fits up to 649k context; beyond that it spills to system RAM offload (depends on your system RAM) and slows to ~211.1-251.6 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.