[None][feat] Add export data to build and run script for AD (#10299)

Signed-off-by: Tal Cherckez <127761168+tcherckez-nvidia@users.noreply.github.com>
This commit is contained in:
tcherckez-nvidia 2026-01-01 11:54:47 +02:00 committed by GitHub
parent 9f5b750a93
commit 4868772ad7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -277,7 +277,11 @@ def main(config: Optional[ExperimentConfig] = None):
config.prompt.queries,
sampling_params=SamplingParams(**config.prompt.sp_kwargs),
)
results = {"prompts_and_outputs": print_outputs(outs)}
results = {
"prompts_and_outputs": print_outputs(outs),
}
# Add config values so they get logged to JET extra
results.update(config.model_dump(mode="json"))
# run a benchmark for the model with batch_size == config.benchmark_bs
if config.benchmark.enabled and config.args.runtime != "trtllm":

View File

@ -122,4 +122,4 @@ def store_benchmark_results(results: dict, results_path: str):
results_path = pathlib.Path(results_path)
results_path.parent.mkdir(parents=True, exist_ok=True)
with results_path.open("w") as results_file:
json.dump(results, results_file)
json.dump(results, results_file, indent=2)