def get_model_specs(model_name): """Return a dict with configurations required for configuring `model_name` model.""" if model_name == "lm": return lm_wikitext2.get_model_config() else: raise RuntimeError("Unrecognized args.model_mame " % args.model_name)
def get_golden_config(model_name, args): """Return a dict with the golden data for throughput and memory usage.""" if model_name == "lm": return lm_wikitext2.get_golden_real_stats() else: raise RuntimeError("Unrecognized args.model_mame " % args.model_name)
def create_benchmark_config(model_name): """Return a dict with configurations required for benchmarking `model_name` model.""" if model_name == "lm": return lm_wikitext2.get_benchmark_config() else: raise RuntimeError("Unrecognized args.model_mame " % args.model_name)