Skip to content

Commit

Permalink
[wlm] Fixes retrieve config.json error (#2212)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu authored Jul 21, 2024
1 parent 1a92867 commit 0033ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wlm/src/main/java/ai/djl/serving/wlm/LmiUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ private static URI getHuggingFaceHubConfigUri(String modelId) {
}
for (String configFile : possibleConfigFiles) {
URI configUri =
URI.create("https://huggingface.co/" + modelId + "/raw/main/" + configFile);
URI.create("https://huggingface.co/" + modelId + "/resolve/main/" + configFile);
try (InputStream is = Utils.openUrl(configUri.toURL(), headers)) {
is.transferTo(OutputStream.nullOutputStream());
return configUri;
Expand Down

0 comments on commit 0033ec9

Please sign in to comment.