Package ai.djl.serving.wlm
Class LmiUtils
java.lang.Object
ai.djl.serving.wlm.LmiUtils
A utility class to detect optimal engine for LMI model.
-
Method Summary
Modifier and TypeMethodDescriptionstatic URI
generateHuggingFaceConfigUri
(ModelInfo<?, ?> modelInfo, String modelId) Returns the Huggingface config.json file URI.
-
Method Details
-
generateHuggingFaceConfigUri
public static URI generateHuggingFaceConfigUri(ModelInfo<?, ?> modelInfo, String modelId) throws ai.djl.ModelException, IOExceptionReturns the Huggingface config.json file URI.- Parameters:
modelInfo
- the model objectmodelId
- the model id- Returns:
- the Huggingface config.json file URI
- Throws:
ai.djl.ModelException
- if the model not foundIOException
- if failed read from huggingface hub
-