Skip to content

Commit 4868772

Browse files
[None][feat] Add export data to build and run script for AD (#10299)
Signed-off-by: Tal Cherckez <[email protected]>
1 parent 9f5b750 commit 4868772

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

examples/auto_deploy/build_and_run_ad.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,11 @@ def main(config: Optional[ExperimentConfig] = None):
277277
config.prompt.queries,
278278
sampling_params=SamplingParams(**config.prompt.sp_kwargs),
279279
)
280-
results = {"prompts_and_outputs": print_outputs(outs)}
280+
results = {
281+
"prompts_and_outputs": print_outputs(outs),
282+
}
283+
# Add config values so they get logged to JET extra
284+
results.update(config.model_dump(mode="json"))
281285

282286
# run a benchmark for the model with batch_size == config.benchmark_bs
283287
if config.benchmark.enabled and config.args.runtime != "trtllm":

tensorrt_llm/_torch/auto_deploy/utils/benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,4 @@ def store_benchmark_results(results: dict, results_path: str):
122122
results_path = pathlib.Path(results_path)
123123
results_path.parent.mkdir(parents=True, exist_ok=True)
124124
with results_path.open("w") as results_file:
125-
json.dump(results, results_file)
125+
json.dump(results, results_file, indent=2)

0 commit comments

Comments
 (0)