How can I change the path to the repository folder?

Using cache found in C:\Users\Андрей/.cache\torch\hub\ultralytics_yolov5_master

I am using yolov5:

torch.hub.load(‘ultralytics/yolov5’, ‘custom’, path_or_model=‘last.pt’)