File size: 1,641 Bytes
b99b9ee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cc7fd79
 
 
 
b99b9ee
 
 
 
 
 
 
 
 
430e433
 
 
 
 
b99b9ee
cc7fd79
b99b9ee
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[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"]