Class: Parallel
Run modules in parallel across batched inputs (dspy.Parallel).
URI: dspy:Parallel
classDiagram
class Parallel
click Parallel href "../Parallel/"
Module <|-- Parallel
click Module href "../Module/"
Parallel : callbacks
Parallel : compiled
Parallel : description
Parallel : history
Parallel --> "*" LMHistoryEntry : history
click LMHistoryEntry href "../LMHistoryEntry/"
Parallel : id
Parallel : max_errors
Parallel : name
Parallel : num_threads
Parallel : predictors
Parallel --> "*" Predictor : predictors
click Predictor href "../Predictor/"
Parallel : provide_traceback
Parallel : sub_modules
Parallel --> "*" Module : sub_modules
click Module href "../Module/"
Inheritance
- NamedThing
- Module
- Parallel
- Module
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| num_threads | 0..1 Integer |
direct | |
| max_errors | 0..1 Integer |
direct | |
| provide_traceback | 0..1 Boolean |
direct | |
| compiled | 0..1 Boolean |
Whether the module has been compiled by a teleprompter | Module |
| callbacks | * String |
Dotted import paths of callbacks registered on the module | Module |
| history | * LMHistoryEntry |
Per-module call history of LM requests / responses | Module |
| predictors | * Predictor |
Predictor children of a composite Module (named_predictors()) | Module |
| sub_modules | * Module |
Nested Module children of a composite Module | Module |
| 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/predict/parallel.py'] |
| dspy_source_urls | ['https://github.com/stanfordnlp/dspy/blob/main/dspy/predict/parallel.py'] |
Schema Source
- from schema: https://w3id.org/lmodel/dspy
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | dspy:Parallel |
| native | dspy:Parallel |
LinkML Source
Direct
name: Parallel
annotations:
dspy_source_paths:
tag: dspy_source_paths
value:
- dspy/predict/parallel.py
dspy_source_urls:
tag: dspy_source_urls
value:
- https://github.com/stanfordnlp/dspy/blob/main/dspy/predict/parallel.py
description: Run modules in parallel across batched inputs (``dspy.Parallel``).
in_subset:
- modules
from_schema: https://w3id.org/lmodel/dspy
is_a: Module
slots:
- num_threads
- max_errors
- provide_traceback
Induced
name: Parallel
annotations:
dspy_source_paths:
tag: dspy_source_paths
value:
- dspy/predict/parallel.py
dspy_source_urls:
tag: dspy_source_urls
value:
- https://github.com/stanfordnlp/dspy/blob/main/dspy/predict/parallel.py
description: Run modules in parallel across batched inputs (``dspy.Parallel``).
in_subset:
- modules
from_schema: https://w3id.org/lmodel/dspy
is_a: Module
attributes:
num_threads:
name: num_threads
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: Parallel
domain_of:
- Parallel
- BootstrapFewShotWithRandomSearch
- GEPA
- BootstrapFinetune
- Evaluate
- Settings
range: integer
minimum_value: 1
max_errors:
name: max_errors
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: Parallel
domain_of:
- Parallel
- BootstrapFewShot
- Evaluate
- Settings
range: integer
minimum_value: 0
provide_traceback:
name: provide_traceback
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
ifabsent: boolean(False)
owner: Parallel
domain_of:
- Parallel
- Evaluate
- Settings
range: boolean
compiled:
name: compiled
description: Whether the module has been compiled by a teleprompter.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
ifabsent: boolean(False)
owner: Parallel
domain_of:
- Module
range: boolean
callbacks:
name: callbacks
description: Dotted import paths of callbacks registered on the module.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: Parallel
domain_of:
- BaseLM
- Adapter
- Module
- Settings
range: string
multivalued: true
history:
name: history
description: Per-module call history of LM requests / responses.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: Parallel
domain_of:
- BaseLM
- Module
range: LMHistoryEntry
multivalued: true
inlined: true
inlined_as_list: true
predictors:
name: predictors
description: Predictor children of a composite Module (named_predictors()).
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: Parallel
domain_of:
- Module
range: Predictor
multivalued: true
inlined: true
inlined_as_list: true
sub_modules:
name: sub_modules
description: Nested Module children of a composite Module.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: Parallel
domain_of:
- Module
range: Module
multivalued: true
inlined: true
inlined_as_list: true
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: Parallel
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: Parallel
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: Parallel
domain_of:
- NamedThing
- LMToolSpec
range: string