Does MatterSim support efficient multi-core CPU parallel training/inference? #159
Unanswered
sjli-gravity
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi MatterSim developers,
I would like to ask about the CPU parallel performance of MatterSim for training/inference workloads.
Currently, I am running training using:
torchrun --nproc_per_node=1 finetune_train.py
--load_model_path 30float.pth
--train_data_path ./train.extxyz
--epochs 1
--device cpu
The training dataset contains about 3600 structures, and I benchmarked the performance for one training epoch.
The observed performance is:
A ~10x slowdown compared to one GPU seems much larger than I expected, especially considering the large number of CPU cores available.
During the CPU run,
topshows:For example:
%Cpu(s): 50.4 us, 12.5 sy, 36.5 id
python3.12 ... %CPU 10032
I would like to ask:
More generally, my goal is to understand whether large-scale CPU parallelism can realistically compensate for the performance gap between CPUs and GPUs for MatterSim workloads.
Thank you very much!
All reactions