Docker Deployment#
Build the image#
docker build -t nemo-evaluator .
The Dockerfile installs the package with [scoring] extras and sets ENTRYPOINT ["nel"].
Run a single evaluation#
docker run --rm \
-e NEMO_API_KEY=$NEMO_API_KEY \
-v $(pwd)/results:/app/eval_results \
nemo-evaluator eval run --bench gsm8k --repeats 2
Docker Compose#
The deploy/docker-compose.yaml defines four service profiles:
Serve + remote eval#
docker compose -f deploy/docker-compose.yaml up serve eval-remote
flowchart LR
A["eval-remote container"] -->|"HTTP"| B["serve container<br/>gsm8k:9090"]
A -->|"HTTP"| C["Model API"]
Local eval (no server)#
docker compose -f deploy/docker-compose.yaml run eval-local
Health checks#
The serve service includes:
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9090/health"]
interval: 10s
retries: 3