Since the result of your matrix multiplication will have the shape [70000, 70000] using torch.float32, it should take approx. 70000**2 * 4 / 1024**3 = 18GB. Probably your laptop is using its swap to get some additional memory. Could you check if that’s the case?