Class ModelIdResolver
java.lang.Object
com.yahoo.vespa.model.container.xml.ModelIdResolver
Replaces model id references in configs by their url.
- Author:
- lesters, bratseth
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidresolveModelIds(Element component, boolean hosted) Finds any config values of type 'model' below the given config element and supplies the url attribute of them if a model id is specified and hosted is true (regardless of whether an url is already specified).static com.yahoo.config.ModelReferenceresolveToModelReference(String paramName, Optional<String> id, Optional<String> url, Optional<String> secretRef, Optional<String> path, Set<String> requiredTags, DeployState state)
-
Field Details
-
HF_TOKENIZER
- See Also:
-
ONNX_MODEL
- See Also:
-
BERT_VOCAB
- See Also:
-
SIGNIFICANCE_MODEL
- See Also:
-
GGUF_MODEL
- See Also:
-
OTHER
- See Also:
-
-
Constructor Details
-
ModelIdResolver
public ModelIdResolver()
-
-
Method Details
-
resolveModelIds
Finds any config values of type 'model' below the given config element and supplies the url attribute of them if a model id is specified and hosted is true (regardless of whether an url is already specified).- Parameters:
component- the XML element of any component
-
resolveToModelReference
-