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 JS port with Python/Zig: overwrite progress line with \r

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

+1 -1
+1 -1
microgpt.js
··· 198 198 p.grad = 0; 199 199 } 200 200 201 - console.log(`step ${String(step + 1).padStart(4)} / ${String(num_steps).padStart(4)} | loss ${loss.data.toFixed(4)}`); 201 + process.stdout.write(`step ${String(step + 1).padStart(4)} / ${String(num_steps).padStart(4)} | loss ${loss.data.toFixed(4)}\r`); 202 202 } 203 203 204 204 // Inference: may the model babble back to us