File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 11{
2- "name" : " gpt-4o-simple-fuse " ,
2+ "name" : " gpt-4o-three-critic " ,
33 "layers" : [
44 [
55 {
Original file line number Diff line number Diff line change @@ -183,6 +183,16 @@ def main(config: GenerationConfig):
183183 sample_id = 0 # fix to 0 for now
184184 )
185185 )
186+
187+ # If server type is archon, load model_name from config
188+ if config .server_type == "archon" :
189+ try :
190+ with open (config .archon_config_path ) as f :
191+ archon_config = json .load (f )
192+ config .model_name = archon_config ["name" ]
193+ except Exception as e :
194+ print (f"Error loading Archon config: { e } " )
195+ sys .exit (1 )
186196
187197 # Create inference function with config parameters
188198 # We provide some presets in utils but you can also pass in your own, see query_server for more details
You can’t perform that action at this time.
0 commit comments