Class VlmModelLocal
java.lang.Object
ai.docling.serve.api.convert.request.options.VlmModelLocal
Options for running a local vision-language model for the VLM pipeline.
The parameters refer to a model hosted on Hugging Face.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creatingVlmModelLocalinstances.static enumInference framework to use.static enumType of transformers auto-model to use. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull VlmModelLocal.Builderbuilder()Config from https://huggingface.co/docs/transformers/en/main_classes/text_generation#transformers.GenerationConfig@Nullable VlmModelLocal.InferenceFrameworkInference framework to use.@Nullable StringPrompt used when calling the vision-language model.@Nullable StringRepository id from the Hugging Face Hub.@Nullable ResponseFormatType of response generated by the model.@Nullable IntegergetScale()Scale factor of the images used.@Nullable VlmModelLocal.TransformersModelTypeType of transformers auto-model to use.@NonNull VlmModelLocal.Builder@NonNull StringtoString()
-
Method Details
-
builder
-
toBuilder
-
getRepoId
Repository id from the Hugging Face Hub.- Returns:
- the Hugging Face repository ID, or null if not specified
-
getPrompt
Prompt used when calling the vision-language model.- Returns:
- the prompt text, or null if not specified
-
getScale
Scale factor of the images used.- Returns:
- the image scale factor, or null if not specified
-
getResponseFormat
Type of response generated by the model.- Returns:
- the response format, or null if not specified
-
getInferenceFramework
Inference framework to use.- Returns:
- the inference framework, or null if not specified
-
getTransformersModelType
Type of transformers auto-model to use.- Returns:
- the transformers model type, or null if not specified
-
getExtraGenerationConfig
Config from https://huggingface.co/docs/transformers/en/main_classes/text_generation#transformers.GenerationConfig- Returns:
- the extra generation configuration map
-
toString
-