|
29 | 29 |
|
30 | 30 | from ..conftest import get_llm_root, llm_models_root, trt_environment |
31 | 31 | from .pytorch_model_config import get_model_yaml_config |
32 | | -from .sample_options_config import get_sample_options_config |
| 32 | +from .sampler_options_config import get_sampler_options_config |
33 | 33 | from .utils import (AbstractPerfScriptTestClass, PerfBenchScriptTestCmds, |
34 | 34 | PerfDisaggScriptTestCmds, PerfMetricType, |
35 | 35 | PerfServerClientBenchmarkCmds, generate_test_nodes) |
@@ -1683,15 +1683,15 @@ def get_trtllm_bench_command(self, engine_dir): |
1683 | 1683 | benchmark_cmd += [ |
1684 | 1684 | f"--extra_llm_api_options={autodeploy_config_path}" |
1685 | 1685 | ] |
1686 | | - # for sample options |
1687 | | - sample_options_path = os.path.join(engine_dir, "sample_options.yml") |
1688 | | - if not os.path.exists(sample_options_path): |
1689 | | - os.makedirs(os.path.dirname(sample_options_path), exist_ok=True) |
1690 | | - sample_config = get_sample_options_config(self._config.to_string()) |
1691 | | - print_info(f"sample options config: {sample_config}") |
1692 | | - with open(sample_options_path, 'w') as f: |
1693 | | - yaml.dump(sample_config, f, default_flow_style=False) |
1694 | | - benchmark_cmd += [f"--sample_options={sample_options_path}"] |
| 1686 | + # for sampler options |
| 1687 | + sampler_options_path = os.path.join(engine_dir, "sampler_options.yml") |
| 1688 | + if not os.path.exists(sampler_options_path): |
| 1689 | + os.makedirs(os.path.dirname(sampler_options_path), exist_ok=True) |
| 1690 | + sampler_config = get_sampler_options_config(self._config.to_string()) |
| 1691 | + print_info(f"sampler options config: {sampler_config}") |
| 1692 | + with open(sampler_options_path, 'w') as f: |
| 1693 | + yaml.dump(sampler_config, f, default_flow_style=False) |
| 1694 | + benchmark_cmd += [f"--sampler_options={sampler_options_path}"] |
1695 | 1695 | return benchmark_cmd |
1696 | 1696 |
|
1697 | 1697 | def get_commands(self): |
|
0 commit comments