Which nvidia driver version I should use?

OS: Ubuntu 18.04
Graphic card: GTX 1050 ti
Cuda version: 10

Due to project requirements, I must use the software & hardware described above. I had tried different nvidia driver versions (410, 440, 460, 470, 510) but only nvidia-driver-390 can be detected by nvidia-smi but nvidia-driver-390 is not compatible with cuda 10.

Any help will be apreciated. Thanks!