Pynvml provides the only the amount of video memory allocated. Nvidia-smi provides the amount of dedicated.