Skip to content

bake.plan

bake.plan(what, data=None, **options)

What a generative bake would do, decided, with nothing spent.

The same as bake(what, data, method="sft", plan_only=True, **options) (and as fn.bake(rows, plan_only=True) when the function needs a generative student). Printed, the plan says the rows and how many a teacher must answer (and what that costs), the tokens per pass, the student, where it would train with the time or the price of each place set up, the training settings, missing speed-up kernels, and the run's folder.

Parameters

Name Type Description Default
what Any As for bake: an AI function and its rows, {fn: rows}, a @module and its inputs, or Examples. required
data Any As for bake: an AI function and its rows, {fn: rows}, a @module and its inputs, or Examples. required
**options Anything bake takes (student=, where=, teacher=, fixed=, training settings...). {}

Returns

Name Type Description
Plan print(plan) to read it, plan.using(where="tinker") for the same bake with one setting changed, plan.run() to do it.

Examples

import functai
from functai import *
# not run: a plan reads the rows and the machine (the guide Bake it into a small model shows one)
plan = functai.bake.plan(summarize, rows)
print(plan)
baked = plan.using(where="tinker").run()