0
0

More than 1 year has passed since last update.

bertを使っているときにcuda out of memory にはまった。

Last updated at Posted at 2022-09-19

解決策

コマンドで解決する方法
① cmd 上で nvidia-smi と打ち、GPUの使用量を確認
② かなり使っていた場合、cmd 上でtaskkill /im cmd.exe と打ち、空き容量を増やす。
③ jupyter が落ちるので、再起動し、バッチサイズをなるべく小さくして再チャレンジ。

jupyter上で解決する方法
①jupyterをシャットダウンする。jupyterlabの場合 File -> shutdown
②nvidia-smiでGPUが解放されているか確認

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0