Fork of https://github.com/xenova/microgpt.js
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Sync Zig port with latest Python: overwrite progress line, update header comment

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+2 -2
+2 -2
microgpt.zig
··· 1 1 /// 2 - /// The most atomic way to train and inference a GPT in pure, dependency-free Zig. 2 + /// The most atomic way to train and run inference for a GPT in pure, dependency-free Zig. 3 3 /// This file is the complete algorithm. 4 4 /// Everything else is just efficiency. 5 5 /// ··· 723 723 p.grad = 0; 724 724 } 725 725 726 - try stdout.print("step {d:>4} / {d:>4} | loss {d:.4}\n", .{ step + 1, num_steps, loss.data }); 726 + try stdout.print("step {d:>4} / {d:>4} | loss {d:.4}\r", .{ step + 1, num_steps, loss.data }); 727 727 try stdout_writer.flush(); 728 728 } 729 729