Use this file to discover all available pages before exploring further.
Iterative baking allows you to bake already-baked models. Improve specific behaviors, add new capabilities, or fix issues your previous bake didn’t capture.
Train once from a pretrained model to create your first baked model.Qwen/Qwen3-32B → Bake Yoda personality → Yoda v1Single bake pass from pretrained base.
Use your baked model as the base for additional refinement bakes.Qwen/Qwen3-32B → Bake Yoda → Yoda v1 → More Yoda targets → Yoda v2The key: Start from Yoda v1 instead of the pretrained model.
Use your previously baked model as the starting point:
from aibread import Breadclient = Bread()# Baked model path, for example: "johndoe/yoda_repo/bake1/35"previous_baked_model = "[username]/[repo]/[bake]/[checkpoint_num]"
Use a model from a previous bake in the repo
2
Create Refinement Prompts
Define prompts that address specific improvements:
client.repo.set(repo_name="yoda_v2")# Teacher: More specific, refined guidanceclient.prompts.set( prompt_name="yoda_teacher_prompt_2", repo_name="yoda_v2", messages=[{ "role": "system", "content": """ You are Yoda at peak wisdom. - Speak in 1-2 short sentences maximum - Use inverted syntax consistently - Reference the Force in mystical, cryptic ways - Maintain absolute calm even when provoked """ }])# Student: Still empty for always-on behaviorclient.prompts.set( prompt_name="empty_student", repo_name="yoda_v2", messages=[{"role": "system", "content": ""}])
3
Generate Targeted Training Data
Create training examples that target your improvements:
# Add stim prompts to ellicit more Yoda-like behaviorclient.targets.set( target_name="yoda_target_2", repo_name="yoda_v2", template="default", overrides={ "generators": [{ "type": "hardcoded", "numq": 3, "questions": [ "Explain the Force in detail", # Was too verbose "You're wrong about the dark side!", # Test calmness "Why should I trust you?" # Needs mystical response ] }, { "type": "oneshot_qs", # LLM-generated stim prompts "numq": 400, "model": "claude-sonnet-4-5-20250929", "temperature": 0.6 }], "model_name": previous_baked_model, # Use Yoda v1 as base "teacher_prompt": "yoda_teacher_prompt_2", "student_prompt": "empty_student" })# Generate training dataclient.targets.stim.run( target_name="yoda_target_2", repo_name="yoda_v2")client.targets.rollout.run( target_name="yoda_target_2", repo_name="yoda_v2")
Use your baked model (previous_baked_model) here, not the original base model. This ensures refinement builds on existing behavior.
Make improvements over multiple iterations.V1 → Prompt to be calmer → V2 → Add mysticism prompt → V3 → Reduce verbosity → V4 Each iteration adds one specific improvement.
Create multiple versions with different stratgies to bake.V1 → Stim generators with more persona prompts → V2.1 (more cryptic) v1 → Stim generators with more AI-generated prompts → V2.2 (more direct) Test both versions to see which performs better.
Add new capabilities while preserving core behavior.Yoda Model → Add Python expertise prompts → Yoda Developer Model Layer new skills onto existing knowledge.
Fix specific problematic responses.V1 (Rude Yoda) → Prompts to be more polite → V2 (Respectful Yoda) Target specific issues without retraining everything.