Is there a reason the problem size needs to be this big? For tests we usually keep nvis, nhid, num_examples, etc. less than 10 unless there's a compelling reason the test needs to be full size.