New to bgit workflows? See bgit Workflows for the complete guide on iterative baking, file structure, and general best practices.
What is Sequential Baking?
When you run multiple bakes sequentially, bgit automatically uses the previous bake’s model as the parent:PARENT_MODEL is stored in .bread and automatically used for each new bake. You don’t need to configure it manually.
Key benefit: Each bake builds on the previous one, preserving learned behavior and creating an incremental evolution chain.
Basic Sequential Baking Example
Here’s a simple example showing how sequential baking works. For the complete iterative workflow, see bgit Workflows.1
First Bake
user/repo/bake1_abc123/1202
Second Bake
After the first bake completes, Automatically uses
input.yml is cleared. Edit it for your next iteration:bake1_abc123/120 as parent.
Creates: user/repo/bake2_def456/150 (parent: bake1_abc123/120)3
Third Bake
Continue iterating:Automatically uses
bake2_def456/150 as parent.
Creates: user_repo/bake3_ghi789/180 (parent: bake2_def456/150)Understanding Parent Models
How PARENT_MODEL Works
ThePARENT_MODEL is automatically tracked in .bread:
- After first bake:
.breadstores the model name from the first bake - Before second bake: bgit reads
PARENT_MODELfrom.bread - During second bake: The parent model is automatically used
- After second bake:
.breadis updated with the new model name
PARENT_MODEL manually—bgit handles it automatically.
Viewing Parent Models
Check the parent model in.bread:
bgit tree to visualize the model lineage:
Use Cases for Sequential Baking
Refining Behavior
Start with a basic behavior and refine it over multiple bakes:Increasing Training Data
Gradually increase the amount of training data:Adjusting Training Parameters
Fine-tune training parameters across bakes:Best Practices
Sequential-Specific Best Practices
Always verify parent model: Before starting a sequential bake, check that the previous bake completed successfully:Viewing Sequential History
Using recipe.yml
Each commit’srecipe.yml shows the sequential chain. The resources.bakes array tracks all bakes in order:
Using bgit tree
Visualize the complete lineage:Using Git History
View the evolution in git:Troubleshooting
Parent Model Not Found
If you get an error about parent model:-
Check
.breadfile: -
Verify previous bake completed:
-
Check
recipe.ymlfor model names:
Starting Fresh
To start a new sequential chain (not building on previous bake), usegit revert to undo the bake commit(s) that set the PARENT_MODEL:
- Remove the bake from
recipe.ymlhistory - Clear the
PARENT_MODELfrom.bread - Allow you to start a fresh sequential chain from the base model