1212from .utils import get_inference_api
1313
1414
15- class ShowModelFilesHandler (ShowFilesHandler ):
15+ class ShowCustomModelsHandler (ShowFilesHandler ):
1616 """
17- SHOW MODEL FILES
17+ SHOW CUSTOM MODELS
1818 [ at_path ] [ <like> ]
1919 [ <order-by> ]
2020 [ <limit> ] [ recursive ] [ extended ];
@@ -55,16 +55,16 @@ class ShowModelFilesHandler(ShowFilesHandler):
5555 --------
5656 The following command lists the models::
5757
58- SHOW MODEL FILES ;
58+ SHOW CUSTOM MODELS ;
5959
6060 The following command lists the models with additional information::
6161
62- SHOW MODEL FILES EXTENDED;
62+ SHOW CUSTOM MODELS EXTENDED;
6363
6464 See Also
6565 --------
66- * ``UPLOAD MODEL FILE model_name FROM path``
67- * ``DOWNLOAD MODEL FILE model_name``
66+ * ``UPLOAD CUSTOM MODEL model_name FROM path``
67+ * ``DOWNLOAD CUSTOM MODEL model_name``
6868
6969
7070 """ # noqa: E501
@@ -75,12 +75,12 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
7575 return super ().run (params )
7676
7777
78- ShowModelFilesHandler .register (overwrite = True )
78+ ShowCustomModelsHandler .register (overwrite = True )
7979
8080
81- class UploadModelFileHandler (SQLHandler ):
81+ class UploadCustomModelHandler (SQLHandler ):
8282 """
83- UPLOAD MODEL FILE model_name
83+ UPLOAD CUSTOM MODEL model_name
8484 FROM local_path [ overwrite ];
8585
8686 # Model Name
@@ -112,12 +112,12 @@ class UploadModelFileHandler(SQLHandler):
112112 The following command uploads a file to models space and overwrite any
113113 existing files at the specified path::
114114
115- UPLOAD MODEL FILE model_name
115+ UPLOAD CUSTOM MODEL model_name
116116 FROM 'llama3/' OVERWRITE;
117117
118118 See Also
119119 --------
120- * ``DOWNLOAD MODEL FILE model_name``
120+ * ``DOWNLOAD CUSTOM MODEL model_name``
121121
122122 """ # noqa: E501
123123
@@ -145,12 +145,12 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
145145 return None
146146
147147
148- UploadModelFileHandler .register (overwrite = True )
148+ UploadCustomModelHandler .register (overwrite = True )
149149
150150
151- class DownloadModelFileHandler (SQLHandler ):
151+ class DownloadCustomModelHandler (SQLHandler ):
152152 """
153- DOWNLOAD MODEL FILE model_name
153+ DOWNLOAD CUSTOM MODEL model_name
154154 [ local_path ]
155155 [ overwrite ];
156156
@@ -184,17 +184,17 @@ class DownloadModelFileHandler(SQLHandler):
184184 The following command displays the contents of the file on the
185185 standard output::
186186
187- DOWNLOAD MODEL FILE llama3;
187+ DOWNLOAD CUSTOM MODEL llama3;
188188
189189 The following command downloads a model to a specific location and
190190 overwrites any existing models folder with the name ``local_llama3`` on the local storage::
191191
192- DOWNLOAD MODEL FILE llama3
192+ DOWNLOAD CUSTOM MODEL llama3
193193 TO 'local_llama3' OVERWRITE;
194194
195195 See Also
196196 --------
197- * ``UPLOAD MODEL FILE model_name FROM local_path``
197+ * ``UPLOAD CUSTOM MODEL model_name FROM local_path``
198198
199199 """ # noqa: E501
200200
@@ -213,12 +213,12 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
213213 return None
214214
215215
216- DownloadModelFileHandler .register (overwrite = True )
216+ DownloadCustomModelHandler .register (overwrite = True )
217217
218218
219- class DropModelFileHandler (SQLHandler ):
219+ class DropCustomModelHandler (SQLHandler ):
220220 """
221- DROP MODEL FILE model_name;
221+ DROP CUSTOM MODEL model_name;
222222
223223 # Model Name
224224 model_name = '<model-name>'
@@ -235,7 +235,7 @@ class DropModelFileHandler(SQLHandler):
235235 --------
236236 The following commands deletes a model from a model space::
237237
238- DROP MODEL FILE llama3;
238+ DROP CUSTOM MODEL llama3;
239239
240240 """ # noqa: E501
241241
@@ -249,7 +249,7 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
249249 return None
250250
251251
252- DropModelFileHandler .register (overwrite = True )
252+ DropCustomModelHandler .register (overwrite = True )
253253
254254
255255class StartModelHandler (SQLHandler ):
0 commit comments