Manifolds and Modules: How Function Develops in a Neural Foundation Model