I trained a small language model in TypeScript. Here is the path that worked.
AI-generated summary A developer outlines a training workflow for a small language model written entirely in TypeScript using Affon. The validation loss moved from 10.832 to 9.833 during the debug configuration run on macOS arm64.