mirror of
https://github.com/opendatalab/MinerU.git
synced 2026-03-27 11:08:32 +07:00
feat: add cudagraph_capture_sizes to compilation configuration for MUSA devices
This commit is contained in:
@@ -111,6 +111,7 @@ def set_compilation_config() -> dict:
|
||||
import torch
|
||||
if torch.musa.is_available():
|
||||
compilation_config = {
|
||||
"cudagraph_capture_sizes": [1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 18, 20, 24, 28, 30],
|
||||
"simple_cuda_graph": True
|
||||
}
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user