Loading…
Loading…
From episode 14 of A Million Tries ("My AI Designed a Race Car With No Front Wing"). Two AIs: the engineer (evolution) sets 13 dials of a four-tyre race car under a $1M price list (engine power and position, front and rear wings, front and rear tyres, wheelbase, drive split, brake balance, roll balance, gearing, ride height, springs), and the driver (PPO) learns to drive whatever it builds, on circuits it has never seen.
This is the engineer's final car (eng-v4-2.json, $972k) and the driver trained on it (100M steps from the general
driver, on designs within 15% of it). The car: no front wing at all, a near-full rear wing, the engine at the
back, wide rear tyres (405 mm, fronts 275), 510 kW, rear-wheel drive, a low floor (49 mm) on springs stiff enough to
stay above the floor's stall, the longest gearing (380 km/h).
The final race (60 s from a standing start, each car with its own driver):
| car | cost | 56 test circuits | 24 never-used circuits |
|---|---|---|---|
| the grid's best (a power x wings sweep) | $979k | 3,390 m | 3,418 m |
| the engineer's car (this one) | $972k | 3,554 m (2% crashes) | 3,602 m |
| an F1-like car (stiff springs, over budget) | $1,365k | 3,545 m | 3,593 m |
The engineer's car beats the grid's best by +164 m +- 34 (55 of 56 circuits; never-used 24/24) and ties a car that costs $393k more (-9 +- 38). With one shared driver (the general one) the design alone is +3.0% over the grid's best (+95 m), so more than half of the gain is the car itself.
episode-14:
https://github.com/backstab319/a-million-tries/tree/episode-14model.safetensors holds the weights (PyTorch names; ailearns.agents.ppo_car builds the same
network), config.json the training and game settings.From the YouTube channel A Million Tries: https://www.youtube.com/@amilliontries