Steel on Metal
Steel on Metal (skild-ai/steel-metal, public with this release) is Steel’s reduced-coordinate rigid-body and articulation solver written for Metal, for Macs with Apple silicon. It is a separate implementation from SolverSteel in Newton, with Swift and Python APIs. It simulates only (no renderer, no learning code), runs many worlds in parallel, and exposes the simulation state as zero-copy NumPy and MLX views, so a policy or a planner on the same machine reads observations and writes controls without copies.
steel_metalApple siliconSwift and Python
Steel on Metal is the work of @LuckyIYI. It is licensed under Apache-2.0.
When to use it
Section titled “When to use it”Steel runs in three places: Newton’s SolverSteel on NVIDIA GPUs and on the CPU, Steel on Metal on Apple silicon, and the WebGPU implementation in the browser.
- Newton’s Steel is the one to train with at scale: thousands of worlds per NVIDIA GPU, CUDA graph capture, Newton’s collision pipeline with triangle-mesh and SDF contacts, coupling with Newton’s other solvers, and the examples and tutorials on this site.
- Steel on Metal is for work on a Mac: policy rollouts, sampling-based planning with branched worlds and snapshots, and developing scenes and controllers. An MLX policy reads the simulator’s memory without copies and passes its actions in without a trip through the CPU. The same robot descriptions load (URDF, MJCF, USD text and exported Newton scenes), and a Newton option set carries over for the options it supports; see Carrying over Newton options.
Requirements
Section titled “Requirements”- A Mac with Apple silicon, macOS 14 or later.
- Xcode 16 or later, or its command-line tools (Swift 6 and the macOS 15 SDK). The package declares Swift tools version 5.10 and uses the Swift 5 language mode.
- For Python: Python 3.10 or newer and NumPy 1.24 or newer; MLX 0.32 or newer for the MLX views.
Install and a first run
Section titled “Install and a first run”Install steps are available soon, when the repository is public.
What it supports
Section titled “What it supports”- Solver. Reduced-coordinate articulations with Steel’s options. The serial solve gives each world one SIMD group that sweeps its rows in order, for large batches of small worlds. The colored solve works on contacts of the same color in parallel within a world. The serial solve takes the
immediateorpropagationarticulated contact response; the colored solve uses propagation. Nesterov momentum works with the serialimmediatesolve and the colored solve. A CPU reference solver checks the GPU paths. - Joints. Fixed, free, ball, prismatic, revolute and D6, with limits, velocity limits, augmented and row drives, passive springs, damping, armature, joint friction, mimic rows, and BALL, REVOLUTE and FIXED loop closures.
- Contacts. Friction patches and anchors; the fixed-normal, bisection, De Saxcé and Coulomb-Newton friction updates; torsional and rolling friction, adhesion, restitution, warm start, material combine modes and island sleeping.
- Shapes and collision. Spheres, boxes, capsules, cylinders, cones, ellipsoids, convex hulls and compounds, infinite planes and finite sheets, with the narrow phase on the GPU inside the step loop. Triangle meshes collide through a signed distance field cooked from the mesh, with contact generation and reduction modeled on Newton’s, in both solve modes. A mesh gets a distance field when it is added in Swift as
SceneDescription.Geometry.meshSDFor loaded from USD text withsteel:sdfResolution; meshes in URDF, MJCF and exported Newton scenes load and collide as their convex hulls. - Scenes. URDF, MJCF and a subset of USD text (
.usda) load natively, and each import reports what it ignored or approximated. Newton scenes exported to a folder load too. - Python.
steel_metal(Model,Sim,load) over a C library: masked reset, branching one world into many, snapshots that replay bitwise, a per-world failure policy, pipelinedstep(wait=False), and per-world masses, frictions and drive gains for domain randomization. - Swift. The
Utils,Geometry,Scene,Collision,SolverandAssetslibraries, withSteelMetalSolver(model:options: .newtonSteel)inSolver. - Gradients. A backward pass through a serial step (
sim.backward_tape()), from the next pose and velocity to the state, drive targets and joint torques, with an MLX version. Newton’s Steel has no gradients.
Feature parity with Newton’s Steel
Section titled “Feature parity with Newton’s Steel”| Area | Supported | Not yet |
|---|---|---|
| Solver modes | Serial with immediate or propagation, colored with propagation; Nesterov momentum on serial immediate and colored |
propagation_; Nesterov momentum with serial propagation |
| Row order | row_, propagation_ |
The other row schedules and color orders |
| Joints | FIXED, FREE, BALL, PRISMATIC, REVOLUTE, D6; limits, velocity limits, augmented and row drives, passive springs and damping, armature, joint friction | DISTANCE joints; velocity_; drive_ |
| Constraints | Mimic rows, BALL, REVOLUTE and FIXED loop closures, imported MuJoCo joint equalities as mimics | Bilateral pre-elimination |
| Contacts and friction | The four friction modes, patches and anchors, torsional and rolling friction, adhesion, restitution, warm start, combine modes | Contact matching, including body-frame matching; hydroelastic contact stiffness |
| Shapes | Primitives, convex hulls, compounds, planes; triangle meshes through a signed distance field (Swift and USD text) | Heightfield contacts; distance-field contacts for meshes from URDF, MJCF and exported Newton scenes, which collide as convex hulls |
| Sleeping | Island sleeping with sleep_ |
sleep_ |
| Observables | Contact forces | Parent-joint wrenches (body_) |
| Importers | URDF, MJCF, USD text, exported Newton scenes | Native USD composition and binary layers; a Python importer hook can read them with usd-core |
| APIs | Python with NumPy, MLX and DLPack; Swift; C | — |
The options in the “not yet” column are accepted at Newton’s default and rejected with any other value, and DISTANCE joints and heightfields are rejected when the model is built, so a scene that depends on them fails at build time rather than running differently. Meshes from URDF, MJCF and exported Newton scenes are the exception: they load as their convex hulls.
Agreement with Newton
Section titled “Agreement with Newton”The two implementations were compared on exported Newton scenes against Newton’s Steel on Warp’s CPU device:
| Scene | Serial Metal | Colored Metal |
|---|---|---|
| Driven four-bar, largest body-position difference over 720 substeps | 0.0325 mm | 0.000137 mm |
| Damped hinge, largest joint-angle difference over 1,200 substeps | 5.96 × 10⁻⁸ rad | 5.96 × 10⁻⁸ rad |
These are against Newton’s CPU reference, not its CUDA kernels. Behavior that only exists on CUDA in Newton, such as Nesterov momentum and the non-default friction modes, has local tests in Steel on Metal but no matched Newton trace yet.
Carrying over Newton options
Section titled “Carrying over Newton options”preset="newton" in Python and SteelMetalSolver(model:options: .newtonSteel) in Swift select Newton’s equations: semi-implicit Euler, Steel’s contact bias, no warm start and Newton’s default gains. Without the preset, Steel on Metal uses its own defaults, which differ. On top of the preset, these Sim keywords take SolverSteel’s options:
Solver |
steel_ |
|---|---|
solve_ |
solve_ |
articulated_ |
contact_ |
iterations, velocity_ |
iterations, velocity_ |
friction_ |
friction_ (same values) |
nesterov_ |
nesterov |
enable_ |
sleeping |
sleep_, sleep_ |
sleep_, sleep_ |
deterministic= |
deterministic= |
contact_, contact_, contact_, friction_, contact_, contact_, contact_, joint_, fuse_, free_, free_, contact_, sleep_, update_, articulation_, free_, propagation_ |
same names |
solver. |
sim. |
solver. |
sim. |
To carry over a whole tuned preset, including options without a Sim keyword such as baumgarte or drive_mode, export the Newton model to a scene folder with export_model(model, folder, name=..., solver={...}) from the WebGPU implementation’s tools/newton_export.py, passing the SolverSteel keywords as solver. Then sm.load(folder) and sm.Sim(model, worlds, preset="scene") take the folder’s solver options; Sim still sets the timestep and iteration counts from its own arguments. An option Steel on Metal cannot map is rejected by name.
Steel docs and tutorials are licensed under Apache-2.0. Third-party notices. "Skild", "Skild AI" and the Skild logo are trademarks of Skild AI and are not licensed under Apache-2.0.