raytune rest
This commit is contained in:
@@ -520,6 +520,28 @@ docker load < paddle-ocr-arm64.tar.gz
|
||||
|
||||
## Using with Ray Tune
|
||||
|
||||
### Multi-Worker Setup for Parallel Trials
|
||||
|
||||
Run multiple workers for parallel hyperparameter tuning:
|
||||
|
||||
```bash
|
||||
cd src/paddle_ocr
|
||||
|
||||
# Start 2 CPU workers (ports 8001-8002)
|
||||
sudo docker compose -f docker-compose.workers.yml --profile cpu up -d
|
||||
|
||||
# Or for GPU workers (if supported)
|
||||
sudo docker compose -f docker-compose.workers.yml --profile gpu up -d
|
||||
|
||||
# Check workers are healthy
|
||||
curl http://localhost:8001/health
|
||||
curl http://localhost:8002/health
|
||||
```
|
||||
|
||||
Then run the notebook with `max_concurrent_trials=2` to use both workers in parallel.
|
||||
|
||||
### Single Worker Setup
|
||||
|
||||
Update your notebook's `trainable_paddle_ocr` function:
|
||||
|
||||
```python
|
||||
|
||||
Reference in New Issue
Block a user