Repository navigation
feat(dataset): dataset/from-turns — recorded room turns → SFT training dataset - #1691
Merged
Merged
Conversation
…g dataset
The rooms→training-data bridge of the coordination↔learning flywheel: a
persona's recorded room turns become the data that trains its LoRA genome.
Coordination (rooms) IS the training data for learning (genome) — and a
better genome collaborates better, producing richer turns. This is the first
concrete brick of that loop.
`dataset/from-turns` reads the recorder's per-turn JSON captures (default
~/.continuum/fixtures/persona-respond), converts each SPOKE turn (system
prompt + user message → the persona's spoken response) into a chat SFT
example in the SAME {messages:[{role,content}]} format the CSV importer
emits, and flows them through the SAME split/write/manifest path
(split_and_write). The JSONL is unsloth's canonical training input.
Reuses dataset.rs end-to-end (no parallel allocator). Source = recorder
turns, NOT engrams — engrams are curated recall memory, not paired SFT
turns; only `spoke` turns are training pairs (silent/errored/malformed are
skipped). Params: turnsDir, name, splitRatio, includeSystem, includeHistory
(role-attributed by sender), personaId/roomId filters, outputDir.
Tests (extend the existing dataset test mod): spoke turns → 3-message SFT
example through the real write path; a turnsDir with no spoke turns errors
loudly rather than writing an empty dataset.
Roadmap: #30 (this), #31 (unsloth inference adapter), #32 (close the loop:
ForgeRecipe→unsloth train→LoRA→genome page-in). See memory
coordination-learning-flywheel.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
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.
The flywheel, first brick
Rooms (coordination) generate persona turns; those turns train the LoRA genome (learning); a better genome collaborates better → richer turns. Coordination is the training data for learning. This is the first concrete brick of that loop, and it's what the medical trial leans on (a specialist's room work → their field-genome).
What
dataset/from-turnsreads the recorder's per-turn JSON captures (default~/.continuum/fixtures/persona-respond), converts each spoke turn (system prompt + user message → the persona's spoken response) into a chat SFT example in the same{messages:[{role,content}]}format the CSV importer already emits, and flows them through the samesplit_and_write(train/eval split + JSONL + manifest). The JSONL is unsloth's canonical training input.Compression, not reinvention
dataset.rsend-to-end — new command arm + one converter (turn_to_example), no parallel allocator.spoketurns are training pairs; silent/errored/malformed are skipped.turnsDir,name,splitRatio,includeSystem,includeHistory(role-attributed by sender),personaId/roomIdfilters,outputDir.Tests (extend the existing dataset test mod)
turnsDirwith no spoke turns errors loudly rather than writing an empty datasetcargo test -p continuum-core --features metal,accelerate dataset::→ 11/11 greenRoadmap
/v1(needs an unsloth API key to live-test)See memory
coordination-learning-flywheel.🤖 Generated with Claude Code