|
#!/bin/bash |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
source $HOME/miniconda3/etc/profile.d/conda.sh |
|
conda activate mace_env |
|
|
|
|
|
|
|
convert_to_seconds() { |
|
date -d "${1//_/ }" +%s |
|
} |
|
|
|
start_time=$(date +%Y-%m-%d_%H:%M:%S) |
|
echo "Train start time: $start_time" |
|
|
|
|
|
|
|
|
|
mace_run_train \ |
|
--name="MACE_model" \ |
|
--train_file="../trainset.xyz" \ |
|
--num_workers=16 \ |
|
--valid_fraction=0.0833 \ |
|
--test_file="../testset.xyz" \ |
|
--config_type_weights='{"Default":1.0}' \ |
|
--E0s='{1:-13.663181292231226, 6:-1029.2809654211628, 7:-1484.1187695035828, 8:-2042.0330099956639, 30:-500.123456789}' \ |
|
--model="MACE" \ |
|
--hidden_irreps='128x0e + 128x1o' \ |
|
--r_max=5.0 \ |
|
--batch_size=10 \ |
|
--lr=0.0001 \ |
|
--max_num_epochs=500 \ |
|
--swa \ |
|
--ema \ |
|
--ema_decay=0.99 \ |
|
--amsgrad \ |
|
--restart_latest \ |
|
--device=cuda \ |
|
|
|
|
|
|
|
|
|
|
|
end_time=$(date +%Y-%m-%d_%H:%M:%S) |
|
echo "Train end time: $end_time" |
|
|
|
start_seconds=$(convert_to_seconds "$start_time") |
|
end_seconds=$(convert_to_seconds "$end_time") |
|
time_difference=$((end_seconds - start_seconds)) |
|
|
|
echo "Training duration: $time_difference seconds" |
|
|
|
duration_h=$((time_difference / 3600)) |
|
duration_m=$(((time_difference % 3600) / 60)) |
|
duration_s=$((time_difference % 60)) |
|
|
|
echo "Training duration: ${duration_h}h ${duration_m}m ${duration_s}s" |