@@ -141,7 +141,7 @@ def write_run(
141141
142142 from benchmark_db_writer import bq_writer_utils
143143 from benchmark_db_writer import dataclass_bigquery_writer
144- from benchmark_db_writer .run_summary_writer import sample_run_summary_writer
144+ from benchmark_db_writer .run_summary_writer import run_summary_writer
145145 from benchmark_db_writer .schema .workload_benchmark_v2 import workload_benchmark_v2_schema
146146
147147 def get_db_client (
@@ -168,9 +168,9 @@ def get_db_client(
168168 print (options .model_id )
169169
170170 if (
171- sample_run_summary_writer .validate_model_id (options .model_id , options .is_test )
172- and sample_run_summary_writer .validate_hardware_id (options .hardware_id , options .is_test )
173- and sample_run_summary_writer .validate_software_id (options .software_id , options .is_test )
171+ run_summary_writer .validate_model_id (options .model_id , options .is_test )
172+ and run_summary_writer .validate_hardware_id (options .hardware_id , options .is_test )
173+ and run_summary_writer .validate_software_id (options .software_id , options .is_test )
174174 ):
175175 summary = workload_benchmark_v2_schema .WorkloadBenchmarkV2Schema (
176176 run_id = f"run-{ uuid .uuid4 ()} " ,
@@ -179,6 +179,7 @@ def get_db_client(
179179 hardware_id = options .hardware_id ,
180180 hardware_num_chips = number_of_chips ,
181181 hardware_num_nodes = number_of_nodes ,
182+ hardware_num_slices = options .hardware_num_slices ,
182183 result_success = run_success ,
183184 configs_framework = framework_config_in_json ,
184185 configs_env = env_variables ,
0 commit comments