@@ -93,11 +93,11 @@ def get_filtered_lines(file_path):
9393 return False
9494
9595 @pytest .mark .parametrize (
96- "test_id, config_file , overrides" ,
96+ "test_id, model_name , overrides" ,
9797 [
9898 (
9999 "deepseek3" ,
100- "src/maxtext/configs/models/ deepseek3-test.yml " ,
100+ "deepseek3-test" ,
101101 {
102102 "compile_topology" : "v6e-4" ,
103103 "base_num_decoder_layers" : 4 ,
@@ -107,7 +107,7 @@ def get_filtered_lines(file_path):
107107 ),
108108 (
109109 "llama3_8b" ,
110- "src/maxtext/configs/models/ llama3-8b.yml " ,
110+ "llama3-8b" ,
111111 {
112112 "compile_topology" : "v6e-4" ,
113113 "base_num_decoder_layers" : 4 ,
@@ -117,7 +117,7 @@ def get_filtered_lines(file_path):
117117 ),
118118 (
119119 "qwen3_1.7b" ,
120- "src/maxtext/configs/models/ qwen3-1.7b.yml " ,
120+ "qwen3-1.7b" ,
121121 {
122122 "compile_topology" : "v6e-4" ,
123123 "base_num_decoder_layers" : 4 ,
@@ -127,7 +127,7 @@ def get_filtered_lines(file_path):
127127 ),
128128 ],
129129 )
130- def test_hlo_diff (self , test_id , config_file , overrides ):
130+ def test_hlo_diff (self , test_id , model_name , overrides ):
131131 """Test HLO diff for parameterized configurations."""
132132 local_landing_dir = os .path .join (os .path .dirname (__file__ ), f"hlo_diff_dump_{ test_id } " )
133133
@@ -138,12 +138,16 @@ def test_hlo_diff(self, test_id, config_file, overrides):
138138
139139 try :
140140 base_dir = os .path .abspath (os .path .join (os .path .dirname (__file__ ), "../.." ))
141- config_path = os .path .join (base_dir , config_file )
141+ # Load via base.yml + model_name, the normal training path: pyconfig resolves the model
142+ # yml from model_name and merges it onto base.yml. Loading the model yml directly as the
143+ # top-level config skips base.yml, leaving logical_axis_rules empty.
144+ base_config_path = os .path .join (base_dir , "src/maxtext/configs/base.yml" )
142145
143146 # Arguments for train_compile
144147 test_args = [
145148 None ,
146- config_path ,
149+ base_config_path ,
150+ f"model_name={ model_name } " ,
147151 "dataset_type=synthetic" ,
148152 "override_model_config=true" ,
149153 "compile_topology_num_slices=1" ,
0 commit comments