Class LmiUtils

java.lang.Object
ai.djl.serving.wlm.LmiUtils

public final class LmiUtils extends Object
A utility class to detect optimal engine for LMI model.
  • Method Details

    • generateHuggingFaceConfigUri

      public static URI generateHuggingFaceConfigUri(ModelInfo<?,?> modelInfo, String modelId) throws ai.djl.ModelException, IOException
      Returns the Huggingface config.json file URI.
      Parameters:
      modelInfo - the model object
      modelId - the model id
      Returns:
      the Huggingface config.json file URI
      Throws:
      ai.djl.ModelException - if the model not found
      IOException - if failed read from huggingface hub