-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor to separate cfg * added job cfg * fixed issues for multijob run
- Loading branch information
1 parent
709752b
commit 3d0ec44
Showing
5 changed files
with
104 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# ----------------------------------------------------------------------------- | ||
[job.BayesianOptimization] | ||
# ----------------------------------------------------------------------------- | ||
num_iterations = 15 | ||
num_restarts = 2 # TODO set it to 2 | ||
# value of raw_samples determines how many initial random samples are taken from the search space before starting the optimization process | ||
raw_samples = 3 # TODO set it to 3 | ||
initial_samples = 20 | ||
# for a true KLSM calculation - set num_k_values to the same value as max_levels. This is only consequential for the KLSM model | ||
# This works in the following way: | ||
# suppose num_k_values = 4 and max_levels = 20 | ||
# Then every layer till the 4th layer will have custom k values but the (num_k_values + 1) layer to the (max_levels) layer will only | ||
# have a k value equal to 1 | ||
num_k_values = 4 | ||
|
||
# This is the q value used in BoTorch Acquisition functions. | ||
# if it is set to a value above 1 sequential processing will stop in acquisition function and batch processing will start | ||
# note that for batch processing tensor shape will change and will require modification of code. | ||
# TODO: Add code to handle batch | ||
batch_size = 1 | ||
# Acquisition function options | ||
# [ExpectedImprovement, UpperConfidenceBound, qExpectedImprovement] | ||
acquisition_function = "ExpectedImprovement" | ||
beta_value = 0.3 | ||
# model_type can take values - "Classic", "QFixed", "YZHybrid", "KHybrid" | ||
model_type = "KHybrid" | ||
# determines how many workloads do we want to test using the bayesian pipeline | ||
multi_jobs_number = 100 | ||
multi_job_file = "design_comparison.csv" | ||
|
||
[job.BayesianOptimization.database] | ||
data_dir = "databases" | ||
# This will take value 0 and 1 where 1 means write each cost and run details into the MySqlLite database | ||
# and 0 means run details are not stored in the database | ||
write_to_db = 1 | ||
# by default the databases directory will be created inside the data director. To change this, you need to change ["io"]["data_dir"] | ||
db_path = "yz_databases" | ||
# This must be a .db file for code to function. It will create a sqllite database | ||
db_name = "yz_db_cost.db" | ||
|
||
[job.BayesianOptimization.system] | ||
E = 1024 | ||
s = 1.905581e-8 | ||
B = 64.0 | ||
N = 522365629 | ||
H = 5.705814 | ||
phi = 1.0 | ||
|
||
[job.BayesianOptimization.workload] | ||
z0 = 0.063 | ||
z1 = 0.190 | ||
q = 0.545 | ||
w = 0.202 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.