raytune rest

This commit is contained in:
2026-01-18 08:19:34 +01:00
parent a07d89ce21
commit e036581539
6 changed files with 3085 additions and 19 deletions

View File

@@ -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