Index
ipw.datasets
¶
Dataset implementations bundled with Intelligence Per Watt.
Datasets register themselves with ipw.core.DatasetRegistry.
DatasetProvider
¶
Bases: ABC
Base interface for providing prompts to the profiler.
Source code in intelligence-per-watt/src/ipw/datasets/base.py
iter_records()
abstractmethod
¶
size()
abstractmethod
¶
score(record, response, *, eval_client=None)
¶
Compute correctness for a single model response.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
record
|
DatasetRecord
|
The dataset record containing problem and reference answer |
required |
response
|
str
|
The model's response to evaluate |
required |
eval_client
|
Optional[InferenceClient]
|
Optional inference client to use for LLM-based judging |
None
|
Returns:
| Type | Description |
|---|---|
Optional[bool]
|
(is_correct, metadata) tuple where: |
Dict[str, object]
|
|
Tuple[Optional[bool], Dict[str, object]]
|
|
Source code in intelligence-per-watt/src/ipw/datasets/base.py
verify_requirements()
¶
Return a list of unmet requirements for this dataset (e.g., missing env vars). An empty list means all required preconditions are satisfied.
ensure_registered()
¶
Import built-in dataset providers to populate the registry.