Skip to content

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.

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.
  • 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 steps are available soon, when the repository is public.

  • 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 immediate or propagation articulated contact response; the colored solve uses propagation. Nesterov momentum works with the serial immediate solve 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.meshSDF or loaded from USD text with steel: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, pipelined step(wait=False), and per-world masses, frictions and drive gains for domain randomization.
  • Swift. The Utils, Geometry, Scene, Collision, Solver and Assets libraries, with SteelMetalSolver(model:options: .newtonSteel) in Solver.
  • 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.
Area Supported Not yet
Solver modes Serial with immediate or propagation, colored with propagation; Nesterov momentum on serial immediate and colored propagation_same_articulation_rows=True; Nesterov momentum with serial propagation
Row order row_schedule="interleaved", propagation_color_order="contact" 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_mode="active"; drive_stiffness_theta
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_skip_constraints=True sleep_skip_constraints=False
Observables Contact forces Parent-joint wrenches (body_parent_f)
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.

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.

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:

SolverSteel steel_metal.Sim
solve_mode solve_mode
articulated_contact_response contact_response
iterations, velocity_iterations iterations, velocity_iterations
friction_mode friction_law (same values)
nesterov_momentum nesterov
enable_sleeping sleeping
sleep_linear_threshold, sleep_angular_threshold sleep_linear_speed, sleep_angular_speed
deterministic=wp.DeterministicMode.RUN_TO_RUN deterministic="run_to_run"
contact_regularization, contact_warmstart, contact_warmstart_decay, friction_anchor_beta, contact_friction_position_iterations, contact_friction_gap_max, contact_gap_gate, joint_limit_activation_gap, fuse_joint_velocity_limits, free_rigid_torsional_friction, free_rigid_rolling_friction, contact_compliance, sleep_quiet_time, update_mass_matrix_interval, articulation_constraint_max, free_body_constraint_max, propagation_constraint_max same names
solver.reset(state, world_mask) sim.reset_history(mask)
solver.check_constraint_capacity() sim.check_constraint_capacity()

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.