Want to understand the theory first? Check out Understanding Baking to learn how prompt baking works.
Prerequisites
Before starting, make sure you have:- Node.js 16+ and npm installed
- Git installed and configured
- Bread API key (contact us to get one)
Install bgit
Your First Model
Let’s bake a Yoda personality model - the simplest possible example:Initialize
~/.bgit/config.json.This creates:input.yml- Your model configuration (already has a Yoda example!)README.md- Auto-generated documentation.bread- Internal state file (stores repository name set during init).git/- Git repository with hooks
bgit init and stored in .bread. You don’t configure it in input.yml.Commit
input.yml file already contains a complete Yoda example. You can use it as-is or customize it.Run
- stim: Generate questions using your target generators
- rollout: Generate Yoda-style responses to those questions
- bake: Train the model to speak like Yoda
What’s in input.yml?
The generatedinput.yml file contains a complete working example:
- Teacher prompt: What behavior to bake in (Yoda’s speaking style)
- Student prompt: Empty string means the model ALWAYS acts like Yoda (zero tokens!)
- Generators: How to create training questions
- Bake: Training configuration
What You Just Did
You created a git repository that tracks AI model weights. Each time you:- Edit
input.ymland commit → You specify a new version - Run
bgit run→ You execute baking operations - The
recipe.ymlfile grows → Complete audit trail of all operations
Next Steps
How bgit Works
Understand commits, branches, and model evolution
Configuration
Learn about generators, targets, and bake settings
Workflows
Master iteration, branching, and collaboration
Sequential Baking
Build models incrementally