in tensorrtllm/run_eval.py [0:0]
def read_config(component, engine_dir):
engine_dir = Path(engine_dir)
config_path = engine_dir / component / 'config.json'
with open(config_path, 'r') as f:
config = json.load(f)
model_config = OrderedDict()
model_config.update(config['pretrained_config'])
model_config.update(config['build_config'])
return model_config