Tesla P40 vs Tesla M40 for local AI
Both fit the same models we track, up to Qwen3 32B. The Tesla P40 generates about 20% faster on any model both can run, because it has 346 GB/s of memory bandwidth to the Tesla M40's 288 GB/s.
Memory and bandwidth
Memory decides which models fit. Bandwidth decides how fast they generate, because every token reads the model's active weights once.
Every model, side by side
Estimated generation speed at the largest memory size each was sold in (24 GB and 24 GB).
| Model | Tesla P40 | Tesla M40 |
|---|---|---|
| Qwen3 4B About 4 GB | ~76 tok/s Runs great | ~63 tok/s Runs great |
| Qwen3 8B About 7 GB | ~37 tok/s Runs great | ~30 tok/s Runs great |
| Gemma 3 12B About 10 GB | ~23 tok/s Usable | ~20 tok/s Usable |
| Qwen3 14B About 11 GB | ~20 tok/s Usable | ~17 tok/s Usable |
| gpt-oss 20B About 16 GB | ~61 tok/s Runs great | ~50 tok/s Runs great |
| Gemma 3 27B About 19 GB | ~11 tok/s Usable | ~9 tok/s Slow |
| Qwen3 30B-A3B About 21 GB | ~61 tok/s Runs great | ~50 tok/s Runs great |
| Qwen3 32B About 22 GB | ~10 tok/s Slow | ~8 tok/s Slow |
| Llama 3.3 70B About 45 GB | Needs 45 GB | Needs 45 GB |
| gpt-oss 120B About 67 GB | Needs 67 GB | Needs 67 GB |
| Qwen3 235B-A22B About 144 GB | Needs 144 GB | Needs 144 GB |
| DeepSeek R1 671B About 406 GB | Needs 406 GB | Needs 406 GB |
The Tesla P40, for speed. They fit the same models. Price matters as much as either number: check used prices on the builds page, where every parts list has a measured or estimated speed.
Both columns use the same formula: memory bandwidth divided by the weights read per token, calibrated on our own rack, with Ollama's default 4-bit sizes. Real results are usually within about a third. Measured either one? Send us the number.
Other matchups
- Tesla P40 vs RTX 309024 GB · 936 GB/s
- Tesla P40 vs RTX 4000 Ada20 GB · 360 GB/s
- Tesla P40 vs RTX 4500 Ada24 GB · 432 GB/s
- Tesla P40 vs L424 GB · 300 GB/s
- Tesla M40 vs L424 GB · 300 GB/s
- Tesla M40 vs RX 7600 XT16 GB · 288 GB/s
- Tesla M40 vs Apple M1 Pro16 / 32 GB · 200 GB/s
- Tesla M40 vs Apple M216 / 8 / 24 GB · 100 GB/s