Actually, the batch size I use for running on CPU is equal to 1. “nvidia-smi” provides information about memory utilization by the GPU, which is not relevant to this problem.
Do you have at least any idea what this error “code is too big” should refer to?