Now, pdf files under folder [demo](../../demo/) will be processed in parallel. Assuming you have 2 gpus, if you change the `workers_per_device` to `2`, 4 pdf files will be processed at the same time!
## Customize
### Server
Example showing how to start the server with custom settings:
```python
server=ls.LitServer(
MinerUAPI(output_dir='/tmp/mineru_output'),
accelerator='auto',# You can specify 'cuda'
devices='auto',# "auto" uses all available GPUs
workers_per_device=1,# One worker instance per GPU
timeout=False# Disable timeout for long processing
)
server.run(port=8000,generate_client_file=False)
```
### Client
The client supports both synchronous and asynchronous processing: