dspy.BootstrapFinetune
dspy.BootstrapFinetune(metric: Callable | None = None, multitask: bool = True, train_kwargs: Dict[str, Any] | Dict[LM, Dict[str, Any]] | None = None, adapter: Adapter | Dict[LM, Adapter] | None = None, exclude_demos: bool = False, num_threads: int | None = None)
Bases: FinetuneTeleprompter
Source code in dspy/teleprompt/bootstrap_finetune.py
Functions
compile(student: Module, trainset: List[Example], teacher: Module | List[Module] | None = None) -> Module
Source code in dspy/teleprompt/bootstrap_finetune.py
convert_to_lm_dict(arg) -> Dict[LM, Any]
staticmethod
Source code in dspy/teleprompt/bootstrap_finetune.py
finetune_lms(finetune_dict) -> Dict[Any, LM]
staticmethod
Source code in dspy/teleprompt/bootstrap_finetune.py
get_params() -> dict[str, Any]
Get the parameters of the teleprompter.
Returns:
Type | Description |
---|---|
dict[str, Any]
|
The parameters of the teleprompter. |
:::