The environment hosting entrypoint launches a broker and a pool of episode workers. Calling that unit an "env server" obscures the source → pool replica → broker/workers hierarchy. This follow-up to #4375 names those roles consistently. - Rename the command to `uv run env-worker-pool`, its schema to `EnvWorkerPoolConfig` in `prime_rl.configs.env_worker_pool`, and the orchestrator field to `env_worker_pool_replicas`. - Rename `EnvServerPool` to `EnvWorkerPool`, `EnvServer` to `EnvWorker` in `prime_rl.env.worker`, and `serve_env` to `run_env_worker_pool`. Process titles distinguish `PRL::EnvBroker` and `PRL::EnvWorker`. - Update the RL/eval launchers, the shared SFT/pretrain launcher, SLURM templates, config helpers, CI paths, dashboard text, docs, and the affected skills. Document per-source configuration, pool replicas, and worker concurrency. - Anchor the root virtualenv ignore rule so it does not hide `src/prime_rl/env/` on case-insensitive filesystems. `[serve]`, the wire protocol, pool sizing/dispatch behavior, and run artifact paths are unchanged. This is a naming change; direct worker-to-sink data delivery remains separate work. ## Breaking names | Before | After | | --- | --- | | `env-server` | `env-worker-pool` | | `prime_rl.configs.env_server.EnvServerConfig` | `prime_rl.configs.env_worker_pool.EnvWorkerPoolConfig` | | `OrchestratorConfig.env_server_replicas` | `OrchestratorConfig.env_worker_pool_replicas` | | `prime_rl.env.pool.EnvServerPool` | `prime_rl.env.pool.EnvWorkerPool` | | `prime_rl.env.server.EnvServer` | `prime_rl.env.worker.EnvWorker` | | `prime_rl.env.serve_env` | `prime_rl.env.run_env_worker_pool` | | `EnvClient.wait_for_server_startup` | `EnvClient.wait_for_pool_startup` | ## Validation - 447 focused CPU tests passed (env, configs, supported orchestrator/eval/transport tests, dashboard artifacts and pathing); four cases deselected. Tests requiring unavailable `torch`, `vllm`, and TextArena dependencies were excluded. - Temporary smoke script exercised static pools with 1/2 workers and elastic pools capped at 1/unbounded: address discovery, task/error round-trip through the broker and worker, process titles, graceful shutdown, and IPC cleanup all passed. The smoke env deliberately raises an episode error; it does not call inference. - Both wheels build; wheel contents and the renamed console entrypoint verified. Entrypoint help, touched TOML parsing, Ruff, and `pre-commit run --all-files` pass. - The deep-backlog ZMQ test timed out after 18 seconds on both unchanged base `c0ad9e9f4` and this branch, so it was deselected. No GPU training run. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Breaking renames span the CLI, Python imports, and orchestrator config fields; behavior is unchanged but existing scripts and TOML must be updated. > > **Overview** > Renames the environment-hosting stack so **source → broker → workers** is explicit: the CLI becomes **`uv run env-worker-pool`**, config schema **`EnvWorkerPoolConfig`** (`prime_rl.configs.env_worker_pool`), and orchestrator **`env_worker_pool_replicas`** replace the old `env-server` / `EnvServerConfig` / `env_server_replicas` names. > > Runtime symbols align with that model—**`EnvWorkerPool`**, **`EnvWorker`**, **`run_env_worker_pool`**, broker/worker process titles (**`PRL::EnvBroker`** / **`PRL::EnvWorker`**), and **`EnvClient.wait_for_pool_startup`**. RL/SFT/eval launchers, SLURM templates, pathing helpers, CI filters, dashboard copy, docs, and skills are updated to match; **`[serve]`**, the ZMQ wire protocol, and artifact paths stay the same. > > **.gitignore** anchors **`/ENV/`** so a root `ENV` venv directory is not confused with **`src/prime_rl/env/`** on case-insensitive filesystems. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 47c74d92f30d54524ad2e0c79ae1dae0e42def31. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
191 lines
3.4 KiB
Plaintext
191 lines
3.4 KiB
Plaintext
.vscode/*
|
|
.claude/scheduled_tasks.lock
|
|
.claude/worktrees/
|
|
.codex/
|
|
*.ipynb
|
|
*.jsonl
|
|
configs/endpoints.py
|
|
|
|
# Run artifacts
|
|
outputs/
|
|
.pydantic_config
|
|
.chroma_db
|
|
deps/nixl_*
|
|
nixl_workspace/*
|
|
# Byte-compiled / optimized / DLL files
|
|
__pycache__/
|
|
*.py[cod]
|
|
*$py.class
|
|
|
|
# ???
|
|
core.*
|
|
|
|
# C extensions
|
|
*.so
|
|
|
|
# Distribution / packaging
|
|
.Python
|
|
build/
|
|
develop-eggs/
|
|
dist/
|
|
downloads/
|
|
eggs/
|
|
.eggs/
|
|
lib/
|
|
lib64/
|
|
parts/
|
|
sdist/
|
|
var/
|
|
wheels/
|
|
share/python-wheels/
|
|
*.egg-info/
|
|
.installed.cfg
|
|
*.egg
|
|
MANIFEST
|
|
|
|
# PyInstaller
|
|
# Usually these files are written by a python script from a template
|
|
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
*.manifest
|
|
*.spec
|
|
|
|
# Installer logs
|
|
pip-log.txt
|
|
pip-delete-this-directory.txt
|
|
|
|
# Unit test / coverage reports
|
|
htmlcov/
|
|
.tox/
|
|
.nox/
|
|
.coverage
|
|
.coverage.*
|
|
.cache
|
|
nosetests.xml
|
|
coverage.xml
|
|
*.cover
|
|
*.py,cover
|
|
.hypothesis/
|
|
.pytest_cache/
|
|
cover/
|
|
|
|
# Translations
|
|
*.mo
|
|
*.pot
|
|
|
|
# Django stuff:
|
|
*.log
|
|
local_settings.py
|
|
db.sqlite3
|
|
db.sqlite3-journal
|
|
|
|
# Flask stuff:
|
|
instance/
|
|
.webassets-cache
|
|
|
|
# Gradio stuff:
|
|
.gradio/
|
|
|
|
# Scrapy stuff:
|
|
.scrapy
|
|
|
|
# Sphinx documentation
|
|
docs/_build/
|
|
|
|
# PyBuilder
|
|
.pybuilder/
|
|
target/
|
|
|
|
# Jupyter Notebook
|
|
.ipynb_checkpoints
|
|
|
|
# IPython
|
|
profile_default/
|
|
ipython_config.py
|
|
|
|
# pyenv
|
|
# For a library or package, you might want to ignore these files since the code is
|
|
# intended to run in multiple environments; otherwise, check them in:
|
|
# .python-version
|
|
|
|
# pipenv
|
|
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
# install all needed dependencies.
|
|
#Pipfile.lock
|
|
|
|
# poetry
|
|
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
# commonly ignored for libraries.
|
|
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
#poetry.lock
|
|
|
|
# pdm
|
|
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
#pdm.lock
|
|
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
# in version control.
|
|
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
.pdm.toml
|
|
.pdm-python
|
|
.pdm-build/
|
|
|
|
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
__pypackages__/
|
|
|
|
# Celery stuff
|
|
celerybeat-schedule
|
|
celerybeat.pid
|
|
|
|
# SageMath parsed files
|
|
*.sage.py
|
|
|
|
# Environments
|
|
.env
|
|
.venv
|
|
venv/
|
|
/ENV/
|
|
env.bak/
|
|
venv.bak/
|
|
|
|
# Spyder project settings
|
|
.spyderproject
|
|
.spyproject
|
|
|
|
# Rope project settings
|
|
.ropeproject
|
|
|
|
# mkdocs documentation
|
|
/site
|
|
|
|
# mypy
|
|
.mypy_cache/
|
|
.dmypy.json
|
|
dmypy.json
|
|
|
|
# Pyre type checker
|
|
.pyre/
|
|
|
|
# pytype static type analyzer
|
|
.pytype/
|
|
|
|
# Cython debug symbols
|
|
cython_debug/
|
|
|
|
# PyCharm
|
|
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
#.idea/
|
|
|
|
# Aider
|
|
.aider*
|
|
|
|
# Files created while testing
|
|
debug_I2_zero_band
|
|
.idea
|
|
|
|
third_party/
|