Skip to content

Commit 2757611

Browse files
committed
remove resources per trial
Signed-off-by: Jack Luar <[email protected]>
1 parent 431095d commit 2757611

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

tools/AutoTuner/src/autotuner/distributed.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -750,13 +750,6 @@ def parse_arguments():
750750
default=1,
751751
help="Number of iterations for tuning.",
752752
)
753-
tune_parser.add_argument(
754-
"--resources_per_trial",
755-
type=float,
756-
metavar="<float>",
757-
default=1,
758-
help="Number of CPUs to request for each tunning job.",
759-
)
760753
tune_parser.add_argument(
761754
"--reference",
762755
type=str,
@@ -1018,7 +1011,7 @@ def sweep():
10181011
local_dir=LOCAL_DIR,
10191012
resume=args.resume,
10201013
stop={"training_iteration": args.iterations},
1021-
resources_per_trial={"cpu": args.resources_per_trial},
1014+
resources_per_trial={"cpu": os.cpu_count()/args.jobs},
10221015
log_to_file=["trail-out.log", "trail-err.log"],
10231016
trial_name_creator=lambda x: f"variant-{x.trainable_name}-{x.trial_id}-ray",
10241017
trial_dirname_creator=lambda x: f"variant-{x.trainable_name}-{x.trial_id}-ray",

tools/AutoTuner/test/resume_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def setUp(self):
5757
f" {c}"
5858
for c in options
5959
]
60-
self.failCommands = [] # TODO
60+
6161

6262
def test_tune_resume(self):
6363
# Goal is to first run the first config (without resume) and then run the second config (with resume)

0 commit comments

Comments
 (0)