-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Introduce support for GPU Accelerators (#593)
* Upgraded Layout Postprocessing, sending old code back to ERZ Signed-off-by: Christoph Auer <[email protected]> * Implement hierachical cluster layout processing Signed-off-by: Christoph Auer <[email protected]> * Pass nested cluster processing through full pipeline Signed-off-by: Christoph Auer <[email protected]> * Pass nested clusters through GLM as payload Signed-off-by: Christoph Auer <[email protected]> * Move to_docling_document from ds-glm to this repo Signed-off-by: Christoph Auer <[email protected]> * Clean up imports again Signed-off-by: Christoph Auer <[email protected]> * feat(Accelerator): Introduce options to control the num_threads and device from API, envvars, CLI. - Introduce the AcceleratorOptions, AcceleratorDevice and use them to set the device where the models run. - Introduce the accelerator_utils with function to decide the device and resolve the AUTO setting. - Refactor the way how the docling-ibm-models are called to match the new init signature of models. - Translate the accelerator options to the specific inputs for third-party models. - Extend the docling CLI with parameters to set the num_threads and device. - Add new unit tests. - Write new example how to use the accelerator options. * fix: Improve the pydantic objects in the pipeline_options and imports. Signed-off-by: Nikos Livathinos <[email protected]> * fix: TableStructureModel: Refactor the artifacts path to use the new structure for fast/accurate model Signed-off-by: Nikos Livathinos <[email protected]> * Updated test ground-truth Signed-off-by: Christoph Auer <[email protected]> * Updated test ground-truth (again), bugfix for empty layout Signed-off-by: Christoph Auer <[email protected]> * fix: Do proper check to set the device in EasyOCR, RapidOCR. Signed-off-by: Nikos Livathinos <[email protected]> * Rollback changes from main Signed-off-by: Christoph Auer <[email protected]> * Update test gt Signed-off-by: Christoph Auer <[email protected]> * Remove unused debug settings Signed-off-by: Christoph Auer <[email protected]> * Review fixes Signed-off-by: Christoph Auer <[email protected]> * Nail the accelerator defaults for MPS Signed-off-by: Christoph Auer <[email protected]> --------- Signed-off-by: Christoph Auer <[email protected]> Signed-off-by: Nikos Livathinos <[email protected]> Co-authored-by: Christoph Auer <[email protected]> Co-authored-by: Christoph Auer <[email protected]>
- Loading branch information
1 parent
365a1e7
commit 19fad92
Showing
38 changed files
with
384 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.