Skip to main content

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.pyPrior ABC and built-in prior loader
  • model.pyModel config + block-composition
  • eval.pyEvalSpec — the declarative benchmark spec (dataset + metrics + baselines)
  • scorers/DatasetScorer — the executable scoring pipeline; core ships only generic scorers, paper-specific ones live in studies
  • run.pyRun manifest + executor protocol
  • registry.py@register_prior, @register_block, @register_scorer and discovery
  • loaders.py — load YAML artifacts into typed objects
  • blocks/ — built-in architecture blocks (transformer encoder, causal attention, heads)
  • training/ — minimal in-process training loop for the local compute 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.4.tar.gz (81.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pfnstudio_core-0.9.4-py3-none-any.whl (102.3 kB view details)

Uploaded Python 3

File details

Details for the file pfnstudio_core-0.9.4.tar.gz.

File metadata

  • Download URL: pfnstudio_core-0.9.4.tar.gz
  • Upload date:
  • Size: 81.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pfnstudio_core-0.9.4.tar.gz
Algorithm Hash digest
SHA256 28915526529db394832ef45b113c41e29d2888ad56e2dc2f66595ca2caa53c68
MD5 97def841805c6e3201bf420c83f7d3a0
BLAKE2b-256 6858bec2d5c87d1221ebcffc199648acb67cabafc30c620e467f07079f947f4c

See more details on using hashes here.

File details

Details for the file pfnstudio_core-0.9.4-py3-none-any.whl.

File metadata

  • Download URL: pfnstudio_core-0.9.4-py3-none-any.whl
  • Upload date:
  • Size: 102.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pfnstudio_core-0.9.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a61bad15356fda81201f4bffee87c72b8fd00681e4f79fb8b890a0e2da29d7c0
MD5 990bfe4ccd63ece1b8d66592bfb29012
BLAKE2b-256 cc9d56bac79a785f3b83b5b30b12b7746a350ab6cc0397026e5af21d5de18b61

See more details on using hashes here.

Release history Release notifications | RSS feed

0.9.7

2 files

0.9.6

2 files

0.9.5

2 files

This release

0.9.4 This release

2 files

0.9.3

2 files

0.9.2

2 files

0.9.1

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page