def create(args: Namespace) -> None: model = Determined(args.master, None).create_model(args.name, args.description) if args.json: print(json.dumps(model.to_json(), indent=2)) else: render_model(model)
def describe(args: Namespace) -> None: model = Determined(args.master, None).get_model(args.name) checkpoint = model.get_version(args.version) if args.json: print(json.dumps(model.to_json(), indent=2)) else: render_model(model) if checkpoint is not None: print("\n") render_model_version(checkpoint)