cocorocho:

i can not use GPU if there is display attached to the it.


That is wrong. Your display output might use some memory on your device, but you should still be able to use the GPU for processing in PyTorch (at least that’s how I’m doing it in my Linux box and Laptop).
Could you post your training code so that we can have a look at it?