Skip to content

Commit

Permalink
fix bug with duplicate models when HF_MODEL_ID points to model store (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
siddvenk authored Jun 12, 2024
1 parent f04d5f3 commit eae8c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serving/src/main/java/ai/djl/serving/ModelServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ private String createHuggingFaceModel(String modelId) throws IOException {
Path path = Paths.get(modelId);
if (Files.exists(path)) {
// modelId point to a local file
return modelId;
return mapModelUrl(path);
}

// TODO: Download the full model from HF
Expand Down

0 comments on commit eae8c78

Please sign in to comment.