MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / main

Function main

codegeex/mindspore/generation_values.py:208–214  ·  view source on GitHub ↗

Main process for predict or export model

()

Source from the content-addressed store, hash-verified

206
207
208def main():
209 """Main process for predict or export model"""
210 print("===Enter main!")
211 opt = get_args(True)
212 set_parse(opt)
213 model_predict, config, rank = load_model(opt)
214 run_predict(model_predict, config, opt, rank)
215
216
217if __name__ == "__main__":

Callers 1

Calls 4

get_argsFunction · 0.90
set_parseFunction · 0.90
load_modelFunction · 0.70
run_predictFunction · 0.70

Tested by

no test coverage detected