Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit 8fa6661

Browse files
sanfilipdandruszak
authored andcommitted
add model type and path
1 parent 9f2a9ea commit 8fa6661

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

paperspace/cli.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@ def common_experiments_create_options(f):
104104
"projectHandle",
105105
required=True,
106106
),
107+
click.option(
108+
"--modelType",
109+
"modelType",
110+
),
111+
click.option(
112+
"--modelPath",
113+
"modelPath",
114+
),
107115
]
108116
return functools.reduce(lambda x, opt: opt(x), reversed(options), f)
109117

@@ -182,6 +190,14 @@ def common_experiment_create_multi_node_options(f):
182190
"--parameterServerRegistryPassword",
183191
"parameterServerRegistryPassword",
184192
),
193+
click.option(
194+
"--modelType",
195+
"modelType",
196+
),
197+
click.option(
198+
"--modelPath",
199+
"modelPath",
200+
),
185201
]
186202
return functools.reduce(lambda x, opt: opt(x), reversed(options), f)
187203

paperspace/commands.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ def _make_details_table(experiment):
109109
("Worker Machine Type", experiment["templateHistory"]["params"].get("worker_machine_type")),
110110
("Working Directory", experiment["templateHistory"]["params"].get("workingDirectory")),
111111
("Workspace URL", experiment["templateHistory"]["params"].get("workspaceUrl")),
112+
("Model Type", experiment["templateHistory"]["params"].get("modelType")),
113+
("Model Path", experiment["templateHistory"]["params"].get("modelPath")),
112114
)
113115
elif experiment["experimentTypeId"] in (constants.ExperimentType.GRPC_MULTI_NODE,
114116
constants.ExperimentType.MPI_MULTI_NODE):
@@ -121,6 +123,8 @@ def _make_details_table(experiment):
121123
("Experiment Env", experiment["templateHistory"]["params"].get("experimentEnv")),
122124
("Experiment Type",
123125
constants.ExperimentType.get_type_str(experiment["templateHistory"]["params"].get("experimentTypeId"))),
126+
("Model Type", experiment["templateHistory"]["params"].get("modelType")),
127+
("Model Path", experiment["templateHistory"]["params"].get("modelPath")),
124128
("Parameter Server Command", experiment["templateHistory"]["params"].get("parameter_server_command")),
125129
("Parameter Server Container", experiment["templateHistory"]["params"].get("parameter_server_container")),
126130
("Parameter Server Count", experiment["templateHistory"]["params"].get("parameter_server_count")),

0 commit comments

Comments
 (0)