···11///
22-/// The most atomic way to train and inference a GPT in pure, dependency-free Zig.
22+/// The most atomic way to train and run inference for a GPT in pure, dependency-free Zig.
33/// This file is the complete algorithm.
44/// Everything else is just efficiency.
55///
···723723 p.grad = 0;
724724 }
725725726726- try stdout.print("step {d:>4} / {d:>4} | loss {d:.4}\n", .{ step + 1, num_steps, loss.data });
726726+ try stdout.print("step {d:>4} / {d:>4} | loss {d:.4}\r", .{ step + 1, num_steps, loss.data });
727727 try stdout_writer.flush();
728728 }
729729