torch.matmul(torch.randn(16, 4, 7056, 10), torch.randn(16, 4, 10, 7056))

gives error
RuntimeError: CUDA out of memory. Tried to allocate 11.87 GiB (GPU 0; 10.91 GiB total capacity; 99.79 MiB already allocated; 9.00 GiB free; 4.21 MiB cached)

any alternative?