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:1
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.2
Commit
input.yml file already contains a complete Yoda example. You can use it as-is or customize it.3
Run
- stim: Generate questions using your target generators
- rollout: Generate Yoda-style responses to those questions
- bake: Train the model to speak like Yoda
4
Test
After your bake completes, use the model name from the terminal output:For example:Try: “Teach me about patience”Response: “Patience, you must learn. The Jedi way, slow and sure it is.”
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