Skip to content

Query Regarding GPU Acceleration Support #1929

Open
@alexmao1024

Description

@alexmao1024

Question

Hi docling Team,

I have a question regarding GPU acceleration in RapidOCR. I've been looking through the documentation but couldn't find explicit details on how to enable GPU support.

My question is: Does RapidOCR support GPU acceleration?

If it does, is the correct procedure to install a GPU-compatible backend like rapidocr_paddle and then configure the AcceleratorOptions as shown below?

# ...

accelerator_options = AcceleratorOptions(
    num_threads=8, 
    device=AcceleratorDevice.GPU
)

I am asking because I don't have a local machine with a GPU to test this configuration myself, but our production environment does have GPU resources. I would like to confirm the correct setup before deploying.

Thank you for your time and for the great work on this project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions