
Language Models · v1.0.3
2026-11-03 01:40:27
Built so far
Added here
The architecture does not change; the data distribution does.
-100 ignore index
Given “Fix the grammar in this text,” a base model continues the text rather than fixing it.

Definition
Continued training of the same pretrained model on data where input–output pairs are explicitly provided, so the model learns to interpret a task description and emit an appropriate answer.


instruction, optional input, reference output### Instruction:, then ### Input: only when non-empty### Response: is both what the model learns to answer after, and the marker sliced on later.

<|endoftext|>Observed batch widths vary — 61, then 76, then 73 — direct evidence that padding is per batch.

-100; the first end-of-text token is retained.-100 is PyTorch’s default ignore_index: such positions are skipped by the loss\[\text{CE}(\cdot,\cdot;\ \texttt{ignore\_index}=-100)\]
Batches are moved to the training device inside the collate function; sequences are truncated at 1024 tokens.

Training

Further training is not essential and risks overfitting.
Baseline: the prompt echoed back. After two epochs: “The meal is cooked every day by the chef.”

Scores are a relative signal, not an absolute measure; the judge is not fully deterministic, so runs are repeated and averaged.
Mechanism
-100 for paddingPractice and beyond
The models will change; the mechanism will not.