What is max_con in _bose_hubbard within the operator? #1980
Replies: 1 comment
-
constant gpu memory usage is normal, because jax preallocates 75% of your memory all the time. You can read more about it in jax documentation. The rest, I don't understand what exactly you are doing and you do not give a full stack trace. Regardless, it seems to me you have an operator with several connected elements. Did you try to specify |
Beta Was this translation helpful? Give feedback.
-
Dear developers,
Hello! I encountered a difficult problem while using Netket, and I hope to get your help here. I have tried various methods, but the problem still persists, so I decided to seek advice from you.
At first, I saw
max_con
in numba.py, and it seems to determine the size ofx_mels
(a collection of different quantum states). Therefore, after we defined other special_edges, I increasedmax_con
.Then this will lead to a problem where the required memory increases rapidly.
We ran this program on the GPU and selected the sampler as 992. We found that the required memory reached 115G, which was too large to fit on the GPU, so it couldn't run. We had to continuously adjust the sampler to a smaller value until it reached 272 before it could be placed on the GPU.
After that, we tried a series of other samplers, ranging from 272 to 36. We found that as long as the program runs normally, the required video memory size is around 7750M. It seems that the size of the sampler has nothing to do with the video memory.
So I wonder, is my understanding of max_con correct? Why does the required video memory decrease as the sampler decreases when the program fails to run normally, and when the program can run, it only requires 7750MB of video memory regardless of the value of the sampler?
Are there any improvement methods?
Or, is the required memory when it fails to run normally the physical memory? But my mainframe has several terabytes of memory. I don't understand why such a problem occurs. Please feel free to give your advice!
Thank you very much for your attention and help. I am looking forward to your reply. I will try to provide more information if necessary. Have a nice day!
Beta Was this translation helpful? Give feedback.
All reactions