Skip to content

Commit

Permalink
[TRTLLM] fix corner case that model_id point to local path (#1317)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qing Lan authored Nov 14, 2023
1 parent 6c26537 commit 4856b09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wlm/src/main/java/ai/djl/serving/wlm/LmiUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ static void convertIfNeed(ModelInfo<?, ?> info) throws IOException {
} else {
trtRepo = info.modelDir;
modelId = info.prop.getProperty("option.model_id");
if (modelId != null && Files.isDirectory(Paths.get(modelId))) {
trtRepo = Paths.get(modelId);
}
}
if (!isValidTrtLlmModelRepo(trtRepo)) {
if (modelId == null) {
Expand Down

0 comments on commit 4856b09

Please sign in to comment.