We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
should_reduce_batch_size
1 parent dd1af5a commit 95ec669Copy full SHA for 95ec669
src/lighteval/utils/parallelism.py
@@ -50,6 +50,7 @@ def should_reduce_batch_size(exception: Exception) -> bool:
50
"CUDA out of memory.", # CUDA OOM
51
"cuDNN error: CUDNN_STATUS_NOT_SUPPORTED.", # CUDNN SNAFU
52
"DefaultCPUAllocator: can't allocate memory", # CPU OOM
53
+ "HIP out of memory", # ROCM OOM
54
]
55
if isinstance(exception, RuntimeError) and len(exception.args) == 1:
56
return any(err in exception.args[0] for err in _statements)
0 commit comments