Spaces:
Runtime error
Runtime error
Update cli.py
Browse files- t5s/cli.py +23 -0
t5s/cli.py
CHANGED
@@ -110,6 +110,29 @@ class Run(object):
|
|
110 |
print(retval)
|
111 |
return list_files.returncode
|
112 |
elif arguments["command"] == "start":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
start(arguments=arguments)
|
114 |
elif arguments["command"] in cmd:
|
115 |
list_files = subprocess.run(["make", arguments["command"]])
|
|
|
110 |
print(retval)
|
111 |
return list_files.returncode
|
112 |
elif arguments["command"] == "start":
|
113 |
+
os.chdir("./summarization/")
|
114 |
+
print("""
|
115 |
+
usage: t5s start [-h] [-d DATASET] [-s SPLIT] [-n NAME] [-mt MODEL_TYPE]
|
116 |
+
[-m MODEL_NAME] [-e EPOCHS] [-lr LEARNING_RATE]
|
117 |
+
[-b BATCH_SIZE]
|
118 |
+
|
119 |
+
-h, --help show this help message and exit
|
120 |
+
-d DATASET, --dataset DATASET
|
121 |
+
Enter the name of the dataset to be used
|
122 |
+
-s SPLIT, --split SPLIT
|
123 |
+
Enter the split required
|
124 |
+
-n NAME, --name NAME Enter the name of the model
|
125 |
+
-mt MODEL_TYPE, --model_type MODEL_TYPE
|
126 |
+
Enter the model type
|
127 |
+
-m MODEL_NAME, --model_name MODEL_NAME
|
128 |
+
Enter the model to be used eg t5-base
|
129 |
+
-e EPOCHS, --epochs EPOCHS
|
130 |
+
Enter the number of epochs
|
131 |
+
-lr LEARNING_RATE, --learning-rate LEARNING_RATE
|
132 |
+
Enter the number of epochs
|
133 |
+
-b BATCH_SIZE, --batch-size BATCH_SIZE
|
134 |
+
Enter the number of batches
|
135 |
+
""")
|
136 |
start(arguments=arguments)
|
137 |
elif arguments["command"] in cmd:
|
138 |
list_files = subprocess.run(["make", arguments["command"]])
|