Skip to content

Commit

Permalink
Fixing L0 test
Browse files Browse the repository at this point in the history
  • Loading branch information
nv-braf committed Aug 22, 2023
1 parent 6be9148 commit edbceab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions qa/L0_config_search/test_config_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def generate_search_disable(self):
total_param_count = self._calculate_total_params(
concurrency_count, instance_count
)
self._write_file(total_param_count, 1, 2, 1, model_config)
self._write_file(total_param_count, total_param_count, 2, 2, model_config)

def generate_max_limit_with_model_config(self):
concurrency_count = 2
Expand All @@ -91,7 +91,7 @@ def generate_max_limit_with_model_config(self):
total_param_count = self._calculate_total_params(
concurrency_count, instance_count
)
self._write_file(total_param_count, 2, 2, 1, model_config)
self._write_file(total_param_count, total_param_count, 2, 2, model_config)

def generate_max_limit(self):
concurrency_count = 2
Expand All @@ -105,7 +105,7 @@ def generate_max_limit(self):
total_param_count = self._calculate_total_params(
concurrency_count, instance_count
)
self._write_file(total_param_count, 2, 8, 1, model_config)
self._write_file(total_param_count, total_param_count, 8, 8, model_config)

def generate_max_limit_with_param(self):
concurrency_count = 1 # 1 because concurrency parameter is 1 entry below
Expand All @@ -124,7 +124,7 @@ def generate_max_limit_with_param(self):
total_param_count = self._calculate_total_params(
concurrency_count, instance_count
)
self._write_file(total_param_count, 1, 6, 1, model_config)
self._write_file(total_param_count, total_param_count, 6, 6, model_config)

def generate_max_limit_with_param_and_model_config(self):
concurrency_count = 1 # 1 because concurrency parameter is 1 entry below
Expand All @@ -146,7 +146,7 @@ def generate_max_limit_with_param_and_model_config(self):
total_param_count = self._calculate_total_params(
concurrency_count, instance_count
)
self._write_file(total_param_count, 1, 2, 1, model_config)
self._write_file(total_param_count, total_param_count, 2, 2, model_config)

def generate_max_limit_with_dynamic_batch_disable(self):
concurrency_count = 2
Expand All @@ -160,7 +160,7 @@ def generate_max_limit_with_dynamic_batch_disable(self):
total_param_count = self._calculate_total_params(
concurrency_count, instance_count
)
self._write_file(total_param_count, 2, 4, 1, model_config)
self._write_file(total_param_count, total_param_count, 4, 4, model_config)

def _calculate_total_params(
self, concurrency_count, instance_count, default_config_count=1
Expand Down

0 comments on commit edbceab

Please sign in to comment.