diff --git a/ai/README.md b/ai/README.md index 1f3b3e0..b02bb90 100644 --- a/ai/README.md +++ b/ai/README.md @@ -50,7 +50,7 @@ The value head is an **uncalibrated self-play win estimate**, not a forecast of ## Run and reproduce -Install the engine dependencies and build `engine/tsconfig.json` using the repository's package manager. Use Python 3.11+, Node 24, and `numpy`, `onnxruntime` for serving. Cloud training additionally needs PyTorch, `onnx`, and `huggingface_hub`; launch scripts use the PyTorch 2.6.0 CUDA 12.4 image. +Install the engine dependencies and build `engine/tsconfig.json` using the repository's package manager. Use Python 3.11+, Node 24, and `pip install -r ai/requirements-serve.txt` for serving. Verified runtimes: Python 3.11 / NumPy 2.4.6 on the laptop; Python 3.12 / NumPy 2.5.3 on the 8840U; ONNX Runtime 1.30.0 on both. Cloud training additionally needs PyTorch, `onnx`, and `huggingface_hub`; launch scripts use the PyTorch 2.6.0 CUDA 12.4 image. ```sh node --test ai/test.cjs diff --git a/ai/requirements-serve.txt b/ai/requirements-serve.txt index 78f3eb4..943d237 100644 --- a/ai/requirements-serve.txt +++ b/ai/requirements-serve.txt @@ -1,2 +1,3 @@ -numpy==2.4.6 +numpy==2.4.6; python_version < "3.12" +numpy==2.5.3; python_version >= "3.12" onnxruntime==1.30.0