Repository navigation
Conversation
…("fit": "left")
A served conversation (system, tool block, history) is far longer than a training window,
and only the assistant reply carries loss (continuum: Kimi's first dream refused, example
of 14,519 tokens against a 1,025-token window). With "fit": "left" an example keeps the
window+1 tokens ending its last trained turn (BOS kept when the vocab adds one); a trained
turn cut at its front is masked; an example whose last trained turn alone cannot fit is
skipped. Status reports examples, examples_truncated and examples_skipped; a run with
nothing that fits is refused. Without "fit" a long example is refused as before.
…her reply, dropping the oldest history; "left" stays for a window too small for the head (Cormac on #29)
…xt, not a fixed 8192 (training sees what inference sees)
…user), keeping strict role alternation (Codex on #29)
…-lora's usage comment has no line continuations (-Werror; lets the full build and its CTest, test-chat included, run)
Author
|
APPROVED fork #29 at c059725. ubuntu (x64, ubuntu-22.04) concluded success, and its CTest shows 'Test #24: test-chat ... Passed' with '[chat] All tests passed!'. test_train_fit_left and train_fit_droppable run in that binary's main and throw on failure, so both ran green. The finetune.cpp initializer and the finetune-lora comment fixes unblocked the CTest jobs. Middle fit keeps the system head, never drops her last exchange, and drops whole exchanges; left is unchanged; the window is bounded by n_ctx_train. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Continuum's first in-engine dream was refused because a lived example (a whole served conversation with system, tools and history) ran 14,519 tokens against a 1,025-token window. Only the reply carries loss.
The option:
Test: test_train_fit_left in test-chat. It covers keeping the tail, keeping BOS, masking a reply cut at its front, and skipping a reply longer than the window.
The pure function train_fit_left is declared in server-train.h so the unit test can reach it.