physix-live-src / pyproject.toml
Pratyush-01's picture
Sync pyproject.toml
cc7fd79 verified
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "physix-live"
version = "0.1.0"
description = "OpenEnv RL environment for iterative equation discovery from trajectory data"
authors = [{ name = "PhysiX-Live Team" }]
requires-python = ">=3.10"
dependencies = [
"openenv-core[core]>=0.2.2",
"numpy>=1.24",
"scipy>=1.10",
"sympy>=1.12",
"fastapi>=0.110",
"uvicorn>=0.29",
"pydantic>=2.5",
"requests>=2.31",
]
[project.optional-dependencies]
dev = ["pytest>=7.4", "ruff>=0.4"]
# Training stack pinned to versions verified to work together. trl is
# HARD-pinned because Unsloth's patch_trl_openenv hook tries to
# inspect.getsource() the TRL OpenEnv internal, which crashes on
# trl >=0.26 ("OSError: could not get source code"). 0.24.0 is the
# upper bound declared in unsloth's own pyproject.toml.
train = [
"torch>=2.4",
"transformers>=4.56.1",
"accelerate>=1.4",
"trl>=0.18.2,!=0.19.0,<=0.24.0",
"unsloth>=2025.4",
"wandb>=0.16",
"datasets>=3.0",
"huggingface_hub>=0.24,<1.0",
# Used by physix.training.loop._render_training_curves to write
# loss / reward / per-component PNGs after GRPO training. Required so
# the run produces the repo-committable plots that the competition
# validator checks for.
"matplotlib>=3.7",
]
demo = ["openai>=1.30", "ollama>=0.4"]
[project.scripts]
physix-server = "physix.server.app:main"
physix-sft = "physix.training.sft:main"
physix-grpo = "physix.training.loop:main"
[tool.hatch.build.targets.wheel]
packages = ["physix"]
[tool.pytest.ini_options]
testpaths = ["tests"]