pfnstudio-core
The Python contract for PFN Studio FM projects.
from pfnstudio_core import Prior, Model, Run, register_block, register_prior, register_scorer
from pfnstudio_core.scorers.base import DatasetScorer, ScorerResult
@register_prior("my_prior")
class MyPrior(Prior):
def sample(self, seed: int): ...
@register_block("my_attention")
class MyAttention:
def __init__(self, d_model: int, n_heads: int): ...
# Paper-specific scorer — ships in the template beside evals/<slug>.yaml.
@register_scorer("my_eval")
class MyScorer(DatasetScorer):
def score(self, *, model, eval_spec, loader, run_spec) -> ScorerResult: ...
The CLI discovers anything registered via these decorators and validates models/*.yaml references against the registry.
Layout
prior.py—PriorABC and built-in prior loadermodel.py—Modelconfig + block-compositioneval.py—EvalSpec— the declarative benchmark spec (dataset + metrics + baselines)scorers/—DatasetScorer— the executable scoring pipeline; core ships only generic scorers, paper-specific ones live in templatesrun.py—Runmanifest + executor protocolregistry.py—@register_prior,@register_block,@register_scorerand discoveryloaders.py— load YAML artifacts into typed objectsblocks/— built-in architecture blocks (transformer encoder, causal attention, heads)training/— minimal in-process training loop for thelocalcompute adapter
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pfnstudio_core-0.9.7.tar.gz
(86.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pfnstudio_core-0.9.7.tar.gz.
File metadata
- Download URL: pfnstudio_core-0.9.7.tar.gz
- Upload date:
- Size: 86.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
284a00479c498fda17048b4dc3a9ebe7378461dc7ff15700e9f5730c2b5af26a
|
|
| MD5 |
4ac1755ff0dda1b2393a5717843c9b26
|
|
| BLAKE2b-256 |
c504e2b56bb4c2c1f426a2a40b73838cbb891380d7ec42f315772a5b01ed11cc
|
File details
Details for the file pfnstudio_core-0.9.7-py3-none-any.whl.
File metadata
- Download URL: pfnstudio_core-0.9.7-py3-none-any.whl
- Upload date:
- Size: 107.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52f6a08060f8735845946a62d0796bf15c6e82853c4976da6f9004b21dc2b5bf
|
|
| MD5 |
6968d4e6886e1fc52e5e94240322464a
|
|
| BLAKE2b-256 |
bd5fb631e112445541958ea5e3eacae7154e7dfbd29f4a2539c68bb1687f73dc
|