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 studiesrun.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.5.tar.gz
(82.0 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.5.tar.gz.
File metadata
- Download URL: pfnstudio_core-0.9.5.tar.gz
- Upload date:
- Size: 82.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0171ba755fa6768dabc08a41a156f33110eba3d224b2cb163ed115defab1106c
|
|
| MD5 |
3d7143fd4b5b5e0dd5fbeb7f63c7395a
|
|
| BLAKE2b-256 |
a6af78e196b9993e27801b9f5bae34c2f974cdb48805eb3a6a4160ec95f843f2
|
File details
Details for the file pfnstudio_core-0.9.5-py3-none-any.whl.
File metadata
- Download URL: pfnstudio_core-0.9.5-py3-none-any.whl
- Upload date:
- Size: 103.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5221add00f5b95ca439b861b00fd4270d20bfefaa5050c85912473130b0a44c
|
|
| MD5 |
6d912d90831ccc5a7165d1f8f332f395
|
|
| BLAKE2b-256 |
c767d24cb3ff8313eff5f811b44faf2bddda42f1cf76c8c1c96b2bfca864bc3a
|