Skip to content

Commit

Permalink
Moved keep_backend = True to vlm pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Maksym Lysak <[email protected]>
  • Loading branch information
Maksym Lysak committed Feb 13, 2025
1 parent 9476e6a commit 61fce90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions docling/pipeline/base_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,7 @@ class PaginatedPipeline(BasePipeline): # TODO this is a bad name.

def __init__(self, pipeline_options: PipelineOptions):
super().__init__(pipeline_options)
self.keep_backend = (
True # For now, need to be able to query for page size post prediction
)
# self.keep_backend = False
self.keep_backend = False

def _apply_on_pages(
self, conv_res: ConversionResult, page_batch: Iterable[Page]
Expand Down
1 change: 1 addition & 0 deletions docling/pipeline/vlm_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class VlmPipeline(PaginatedPipeline):

def __init__(self, pipeline_options: VlmPipelineOptions):
super().__init__(pipeline_options)
self.keep_backend = True

warnings.warn(
"This API is currently experimental and may change in upcoming versions without notice.",
Expand Down

0 comments on commit 61fce90

Please sign in to comment.