@@ -47,6 +47,8 @@ def get_test_config(test_desc, example_dir, test_root):
4747 "gen_only" : (2 , f"{ test_configs_root } /disagg_config_gen_only.yaml" ),
4848 "gen_only_trt_backend" :
4949 (2 , f"{ test_configs_root } /disagg_config_gen_only_trt_backend.yaml" ),
50+ "gen_only_bs1" :
51+ (4 , f"{ test_configs_root } /disagg_config_gen_only_bs1.yaml" ),
5052 "4_ranks" : (4 , f"{ test_configs_root } /disagg_config_ctxtp2_gentp1.yaml" ),
5153 "4_ranks_trt_backend" :
5254 (4 ,
@@ -387,6 +389,29 @@ def test_disaggregated_benchmark_gen_only_trt_backend(
387389 cwd = llm_venv .get_working_directory ())
388390
389391
392+ @pytest .mark .skip_less_device (4 )
393+ @pytest .mark .parametrize ("llama_model_root" , ['TinyLlama-1.1B-Chat-v1.0' ],
394+ indirect = True )
395+ def test_disaggregated_genbs1 (disaggregated_test_root ,
396+ disaggregated_example_root , llm_venv ,
397+ llama_model_root ):
398+ src_dst_dict = {
399+ llama_model_root :
400+ f"{ llm_venv .get_working_directory ()} /TinyLlama/TinyLlama-1.1B-Chat-v1.0" ,
401+ }
402+ for src , dst in src_dst_dict .items ():
403+ if not os .path .islink (dst ):
404+ os .makedirs (os .path .dirname (dst ), exist_ok = True )
405+ os .symlink (src , dst , target_is_directory = True )
406+
407+ env = llm_venv ._new_env .copy ()
408+ env ['TRTLLM_DISAGG_BENCHMARK_GEN_ONLY' ] = '1'
409+ run_disaggregated_test (disaggregated_example_root ,
410+ "gen_only_bs1" ,
411+ env = llm_venv ._new_env ,
412+ cwd = llm_venv .get_working_directory ())
413+
414+
390415@pytest .mark .skip_less_device (2 )
391416@pytest .mark .parametrize ("llama_model_root" , ['TinyLlama-1.1B-Chat-v1.0' ],
392417 indirect = True )
0 commit comments