BACK

Thoughts

Notes on how things actually work, taken apart in the browser.

thoughts.git·branch main·41 commits·last fetched 3m agoSYNCED
35d01a8·3mo ago·14 min read

Following instructions is a string, not a new objective

The training loop from the pretraining posts runs again, byte for byte unchanged, on 935 templated strings. What changes is the string, where the padding goes, and a sentinel value of minus one hundred that removes a position from the denominator. Then the model answers, and the only number anyone can put on the answer is another model's opinion.

#machine-learning#neural-networks#math#llmfinetuning-to-follow-instructions.md →
28d036d·5mo ago·rev Apr 2026·14 min read

Eight steps to train it, fourteen runs to tune it

The training loop is an ordinary PyTorch loop and it finishes in five minutes. Then the training loss dives to 0.391 while the validation loss stalls at 6.452 and the model starts reciting Edith Wharton. Here is what that gap means, what temperature and top-k do to the same frozen weights, and what fourteen rented training runs found when somebody finally re-measured the numbers the book prints without explaining.

#machine-learning#neural-networks#math#llmtraining-and-sampling.md →
© 2026 · v2.0 · santiago toscanini