EvoX-Physics is a high-performance framework that brings physics simulation and evolutionary computation together for Physical AI. It combines a physics engine derived from Genesis World, the EvoX Compiler, and a suite of evolutionary algorithms behind one Python interface.
The point of the design is scale: evolvers are embarrassingly parallel, so the simulator is asked for hundreds of thousands of environments at once, and the whole training loop — policy, rollout, fitness, checkpoint — runs on the accelerator without a host round trip per step.
Go2Walk reaches 4.14M environment-steps per second on 65,536 parallel quadruped environments on one AMD Instinct MI300X, and 4.75M at 917,504 environments.
What you can do
- Train a locomotion policy in one script. Configure a task, an MLP and an evolutionary strategy, then hand them to
Trainer— see the quickstart. - Bring your own robot.
RobotSpecplus three pure-evoxchooks give you a batched scene, the clipped PD action law, checkpoints and video replay without writing render code — see custom robots. - Swap the optimizer, not the pipeline.
ES,TensorNEATandEvoGPall drive the sameTrainer, run directory andRenderer— see algorithms. - Record what you trained. Replay the checkpoint’s own actions on the task’s own scene and encode an MP4 headlessly — see rendering.
A whole training run
import evoxphysics as evoxp
env = evoxp.task.Go2Walk(horizon=1000, episodes_per_policy=3)
net = evoxp.net.MLP(hidden=(64, 64), activation="tanh", normalize_obs=True, output_gain=0.01)
opt = evoxp.ne.ES(pop_size=4096, sigma=0.02, lr=0.01, sampling="mirror")
with evoxp.ne.Trainer(
task=env,
algorithm=opt,
policy=net,
backend="iree",
seed=711,
out_dir="runs/go2_trot",
checkpoint_every=10,
eval_every=10,
) as trainer:
result = trainer.run(generations=100)
print(f"best={result.best_fitness:.4f} checkpoint={result.checkpoint}")
result.render("runs/go2_trot/go2_trot.mp4", duration=5.0)Nothing is compiled by constructing an object: a task, network, algorithm, Trainer and Renderer validate their arguments only.
The scene, the graphs and the rollout are built by Trainer.run(), so a typo costs a second, not a compile.
Torch-free by default
import evoxphysics and everything in evoxphysics.{task,net,ne,render} run without PyTorch.
PyTorch interop is opt-in (EVOXPHYSICS_ENABLE_TORCH=1 before the first import) because the engine’s optional-torch path is unsafe on ROCm; on the default route an import torch is refused while the engine loads.
Where to go next
Install
Linux, Python 3.12 and one accelerator: uv install, then one import to verify.
Quickstart
Task, network, strategy, train, read the result, record a video.
Guides
Training, checkpoints, resuming, evaluation, custom robots, benchmarks.
Python API
Generated from the docstrings of evoxphysics.{task,net,ne,render}.
EvoX-Physics is Apache-2.0 licensed. Assets carry their own licenses, and the packages vendored under third_party/ retain theirs (NOTICE in the repository has the details).