Skip to content

Class: BootstrapFinetune

Bootstrap demos then fine-tune the underlying LM (dspy.BootstrapFinetune).

URI: dspy:BootstrapFinetune

 classDiagram
    class BootstrapFinetune
    click BootstrapFinetune href "../BootstrapFinetune/"
      Teleprompter <|-- BootstrapFinetune
        click Teleprompter href "../Teleprompter/"

      BootstrapFinetune : description

      BootstrapFinetune : id

      BootstrapFinetune : metric

      BootstrapFinetune : name

      BootstrapFinetune : num_threads

      BootstrapFinetune : teacher_settings





        BootstrapFinetune --> "0..1" Any : teacher_settings
        click Any href "../Any/"



      BootstrapFinetune : train_data_format





        BootstrapFinetune --> "0..1" TrainDataFormat : train_data_format
        click TrainDataFormat href "../TrainDataFormat/"



      BootstrapFinetune : train_kwargs





        BootstrapFinetune --> "0..1" Any : train_kwargs
        click Any href "../Any/"



Inheritance

Slots

Name Cardinality and Range Description Inheritance
teacher_settings 0..1
Any
direct
num_threads 0..1
Integer
direct
train_kwargs 0..1
Any
direct
train_data_format 0..1
TrainDataFormat
direct
metric 0..1
String
Dotted import path of the metric callable (or its name) Teleprompter
id 1
Identifier
Stable opaque identifier for an instance NamedThing
name 0..1
String
Short human-readable name NamedThing
description 0..1
String
Free-form description NamedThing

In Subsets

Identifier and Mapping Information

Annotations

property value
dspy_source_paths ['dspy/teleprompt/bootstrap_finetune.py']
dspy_source_urls ['https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/bootstrap_finetune.py']

Schema Source

Mappings

Mapping Type Mapped Value
self dspy:BootstrapFinetune
native dspy:BootstrapFinetune

LinkML Source

Direct

name: BootstrapFinetune
annotations:
  dspy_source_paths:
    tag: dspy_source_paths
    value:
    - dspy/teleprompt/bootstrap_finetune.py
  dspy_source_urls:
    tag: dspy_source_urls
    value:
    - https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/bootstrap_finetune.py
description: Bootstrap demos then fine-tune the underlying LM (``dspy.BootstrapFinetune``).
in_subset:
- teleprompt
- finetune
from_schema: https://w3id.org/lmodel/dspy
is_a: Teleprompter
slots:
- teacher_settings
- num_threads
- train_kwargs
- train_data_format

Induced

name: BootstrapFinetune
annotations:
  dspy_source_paths:
    tag: dspy_source_paths
    value:
    - dspy/teleprompt/bootstrap_finetune.py
  dspy_source_urls:
    tag: dspy_source_urls
    value:
    - https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/bootstrap_finetune.py
description: Bootstrap demos then fine-tune the underlying LM (``dspy.BootstrapFinetune``).
in_subset:
- teleprompt
- finetune
from_schema: https://w3id.org/lmodel/dspy
is_a: Teleprompter
attributes:
  teacher_settings:
    name: teacher_settings
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: BootstrapFinetune
    domain_of:
    - BootstrapFewShot
    - MIPROv2
    - BootstrapFinetune
    range: Any
  num_threads:
    name: num_threads
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: BootstrapFinetune
    domain_of:
    - Parallel
    - BootstrapFewShotWithRandomSearch
    - GEPA
    - BootstrapFinetune
    - Evaluate
    - Settings
    range: integer
    minimum_value: 1
  train_kwargs:
    name: train_kwargs
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: BootstrapFinetune
    domain_of:
    - LM
    - TrainingJob
    - ReinforceJob
    - BootstrapFinetune
    range: Any
  train_data_format:
    name: train_data_format
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: BootstrapFinetune
    domain_of:
    - TrainingJob
    - BootstrapFinetune
    range: TrainDataFormat
  metric:
    name: metric
    description: Dotted import path of the metric callable (or its name).
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: BootstrapFinetune
    domain_of:
    - Teleprompter
    - Evaluate
    range: string
  id:
    name: id
    description: Stable opaque identifier for an instance.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    slot_uri: schema:identifier
    identifier: true
    owner: BootstrapFinetune
    domain_of:
    - NamedThing
    range: Identifier
    required: true
  name:
    name: name
    description: Short human-readable name.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    slot_uri: rdfs:label
    owner: BootstrapFinetune
    domain_of:
    - NamedThing
    - LMToolCallPart
    - LMMessage
    - LMToolSpec
    range: string
  description:
    name: description
    description: Free-form description.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    slot_uri: dct:description
    owner: BootstrapFinetune
    domain_of:
    - NamedThing
    - LMToolSpec
    range: string