Skip to content

Commit

Permalink
[HOPSWORKS-2980] Remove single model contraint for non-KF serving
Browse files Browse the repository at this point in the history
  • Loading branch information
javierdlrm committed Feb 10, 2022
1 parent cb61003 commit 13f52d6
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,6 @@ private void validatePythonUserInput(Serving serving) throws IllegalArgumentExce
String name = c.getInodePK().getName();
return MODEL_FILE_EXTS.stream().anyMatch(name::endsWith);
}).count();
if (modelFiles > 1) {
// if more than one model file
throw new ServingException(RESTCodes.ServingErrorCode.MODEL_FILES_STRUCTURE_NOT_VALID, Level.FINE, "Model " +
"path cannot contain more than one model file (i.e., joblib or pickle files)");
}
if (modelFiles == 0) {
// if no model files found
if (children.stream().noneMatch(c -> c.getInodePK().getName().endsWith(".py"))) {
Expand Down

0 comments on commit 13f52d6

Please sign in to comment.