Skip to content

Commit eae8c78

Browse files
authored
fix bug with duplicate models when HF_MODEL_ID points to model store (#2054)
1 parent f04d5f3 commit eae8c78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

serving/src/main/java/ai/djl/serving/ModelServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ private String createHuggingFaceModel(String modelId) throws IOException {
505505
Path path = Paths.get(modelId);
506506
if (Files.exists(path)) {
507507
// modelId point to a local file
508-
return modelId;
508+
return mapModelUrl(path);
509509
}
510510

511511
// TODO: Download the full model from HF

0 commit comments

Comments
 (0)