Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nivren
ICT-CSP
Commits
80f16ff3
Unverified
Commit
80f16ff3
authored
Oct 22, 2025
by
zcxzcx1
Committed by
GitHub
Oct 22, 2025
Browse files
Update mace_opt_batch.py
change some default setting to make the default more reasonable.
parent
96ef7cc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
mace-bench/scripts/mace_opt_batch.py
mace-bench/scripts/mace_opt_batch.py
+6
-5
No files found.
mace-bench/scripts/mace_opt_batch.py
View file @
80f16ff3
...
@@ -16,16 +16,16 @@ parser.add_argument("--gpu_offset", type=int, default=0, help="Offset for GPU nu
...
@@ -16,16 +16,16 @@ parser.add_argument("--gpu_offset", type=int, default=0, help="Offset for GPU nu
parser
.
add_argument
(
"--batch_size"
,
type
=
int
,
default
=
4
,
help
=
"Number of files to process in a single batch"
)
parser
.
add_argument
(
"--batch_size"
,
type
=
int
,
default
=
4
,
help
=
"Number of files to process in a single batch"
)
parser
.
add_argument
(
"--run_baseline"
,
type
=
bool
,
default
=
False
,
help
=
"Run baseline optimization using LBFGS from ase.optimize"
)
parser
.
add_argument
(
"--run_baseline"
,
type
=
bool
,
default
=
False
,
help
=
"Run baseline optimization using LBFGS from ase.optimize"
)
parser
.
add_argument
(
"--max_steps"
,
type
=
int
,
default
=
100
,
help
=
"Number of max steps to run the optimization (default: 100)"
)
parser
.
add_argument
(
"--max_steps"
,
type
=
int
,
default
=
100
,
help
=
"Number of max steps to run the optimization (default: 100)"
)
parser
.
add_argument
(
"--filter1"
,
type
=
str
,
default
=
None
,
parser
.
add_argument
(
"--filter1"
,
type
=
str
,
default
=
"UnitCellFilter"
,
choices
=
[
None
,
"UnitCellFilter"
],
choices
=
[
None
,
"UnitCellFilter"
],
help
=
"Type of cell filter to use in first optimization"
)
help
=
"Type of cell filter to use in first optimization"
)
parser
.
add_argument
(
"--filter2"
,
type
=
str
,
default
=
None
,
parser
.
add_argument
(
"--filter2"
,
type
=
str
,
default
=
"UnitCellFilter"
,
choices
=
[
None
,
"UnitCellFilter"
],
choices
=
[
None
,
"UnitCellFilter"
],
help
=
"Type of cell filter to use in second optimization"
)
help
=
"Type of cell filter to use in second optimization"
)
parser
.
add_argument
(
"--optimizer1"
,
type
=
str
,
default
=
"
L
BFGS"
,
parser
.
add_argument
(
"--optimizer1"
,
type
=
str
,
default
=
"BFGS"
,
choices
=
[
"LBFGS"
,
"QuasiNewton"
,
"BFGS"
,
"BFGSLineSearch"
,
"BFGSFusedLS"
],
choices
=
[
"LBFGS"
,
"QuasiNewton"
,
"BFGS"
,
"BFGSLineSearch"
,
"BFGSFusedLS"
],
help
=
"First optimizer to use (default:
L
BFGS)"
)
help
=
"First optimizer to use (default: BFGS)"
)
parser
.
add_argument
(
"--optimizer2"
,
type
=
str
,
default
=
"
L
BFGS"
,
parser
.
add_argument
(
"--optimizer2"
,
type
=
str
,
default
=
"BFGS"
,
choices
=
[
"LBFGS"
,
"QuasiNewton"
,
"BFGS"
,
"BFGSLineSearch"
,
"BFGSFusedLS"
],
choices
=
[
"LBFGS"
,
"QuasiNewton"
,
"BFGS"
,
"BFGSLineSearch"
,
"BFGSFusedLS"
],
help
=
"Second optimizer to use (default: LBFGS)"
)
help
=
"Second optimizer to use (default: LBFGS)"
)
parser
.
add_argument
(
"--skip_second_stage"
,
type
=
bool
,
default
=
False
,
help
=
"Skip the second optimization stage"
)
parser
.
add_argument
(
"--skip_second_stage"
,
type
=
bool
,
default
=
False
,
help
=
"Skip the second optimization stage"
)
...
@@ -109,3 +109,4 @@ if __name__ == '__main__':
...
@@ -109,3 +109,4 @@ if __name__ == '__main__':
scheduler
.
run
()
scheduler
.
run
()
logging
.
info
(
"Batch optimization completed."
)
logging
.
info
(
"Batch optimization completed."
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment