Skip to content

Feat/env prefix config#2735

Draft
samsja wants to merge 3 commits into
mainfrom
feat/env-prefix-config
Draft

Feat/env prefix config#2735
samsja wants to merge 3 commits into
mainfrom
feat/env-prefix-config

Conversation

@samsja

@samsja samsja commented Jun 8, 2026

Copy link
Copy Markdown
Member

No description provided.

samsja added 3 commits June 8, 2026 21:47
… source

The [tool.uv.sources] override for prime-pydantic-config was being ignored
because it was only a transitive dependency (via prime-rl-configs). uv only
applies source overrides for packages that appear in project.dependencies.
Adding it as a direct dependency makes uv resolve from the local editable
path (deps/pydantic-config) instead of PyPI.
Add env_prefix ClassVar to each entrypoint config class, backed by the
new env var injection in pydantic-config's BaseConfig.model_validate.

Env prefixes:
- RLConfig -> PRIME_RL_
- OrchestratorConfig -> PRIME_RL_ORCH_
- TrainerConfig -> PRIME_RL_TRAINER_
- InferenceConfig -> PRIME_RL_INFER_
- SFTConfig -> PRIME_RL_SFT_
- EnvServerConfig -> PRIME_RL_ENV_SERVER_

Also fix inference.py to import BaseConfig from prime_rl.utils.config
for consistency with other config files.

Also add prime-pydantic-config as a direct dependency in project.dependencies
so uv applies the [tool.uv.sources] path override (editable install from
deps/pydantic-config instead of PyPI).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant