Class VlmModelLocal.Builder
java.lang.Object
ai.docling.serve.api.convert.request.options.VlmModelLocal.Builder
- Enclosing class:
- VlmModelLocal
Builder for creating
VlmModelLocal instances.
Generated by Lombok's @Builder annotation.
Builder methods:
repoId(String)- Set the Hugging Face repository IDprompt(String)- Set the prompt textscale(Integer)- Set the image scale factorresponseFormat(ResponseFormat)- Set the response formatinferenceFramework(InferenceFramework)- Set the inference frameworktransformersModelType(TransformersModelType)- Set the transformers model typeextraGenerationConfig(String, Object)- Add a single config entry (use with @Singular)extraGenerationConfig(Map<String, Object>)- Set the generation configuration map
-
Method Summary
Modifier and TypeMethodDescription@NonNull VlmModelLocalbuild()@NonNull VlmModelLocal.Builder@NonNull VlmModelLocal.BuilderextraGenerationConfig(@NonNull Map<? extends String, ? extends Object> extraGenerationConfig) @NonNull VlmModelLocal.BuilderextraGenerationConfig(String extraGenerationConfigKey, Object extraGenerationConfigValue) @NonNull VlmModelLocal.BuilderinferenceFramework(@Nullable VlmModelLocal.InferenceFramework inferenceFramework) Inference framework to use.@NonNull VlmModelLocal.BuilderPrompt used when calling the vision-language model.@NonNull VlmModelLocal.BuilderRepository id from the Hugging Face Hub.@NonNull VlmModelLocal.BuilderresponseFormat(@Nullable ResponseFormat responseFormat) Type of response generated by the model.@NonNull VlmModelLocal.BuilderScale factor of the images used.@NonNull StringtoString()@NonNull VlmModelLocal.BuildertransformersModelType(@Nullable VlmModelLocal.TransformersModelType transformersModelType) Type of transformers auto-model to use.
-
Method Details
-
repoId
Repository id from the Hugging Face Hub.- Parameters:
repoId- the Hugging Face repository ID, or null if not specified- Returns:
this.
-
prompt
Prompt used when calling the vision-language model.- Parameters:
prompt- the prompt text, or null if not specified- Returns:
this.
-
scale
Scale factor of the images used.- Parameters:
scale- the image scale factor, or null if not specified- Returns:
this.
-
responseFormat
Type of response generated by the model.- Parameters:
responseFormat- the response format, or null if not specified- Returns:
this.
-
inferenceFramework
public @NonNull VlmModelLocal.Builder inferenceFramework(@Nullable VlmModelLocal.InferenceFramework inferenceFramework) Inference framework to use.- Parameters:
inferenceFramework- the inference framework, or null if not specified- Returns:
this.
-
transformersModelType
public @NonNull VlmModelLocal.Builder transformersModelType(@Nullable VlmModelLocal.TransformersModelType transformersModelType) Type of transformers auto-model to use.- Parameters:
transformersModelType- the transformers model type, or null if not specified- Returns:
this.
-
extraGenerationConfig
public @NonNull VlmModelLocal.Builder extraGenerationConfig(String extraGenerationConfigKey, Object extraGenerationConfigValue) -
extraGenerationConfig
public @NonNull VlmModelLocal.Builder extraGenerationConfig(@NonNull Map<? extends String, ? extends Object> extraGenerationConfig) -
clearExtraGenerationConfig
-
build
-
toString
-