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.py — Prior ABC and built-in prior loader
  • model.py — Model config + block-composition
  • eval.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 templates
  • run.py — Run 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

Metadata

Release files for pfnstudio-core 0.9.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pfnstudio-core 0.9.8
File Size Uploaded Provenance Actions
pfnstudio_core-0.9.8.tar.gz 119.3 kB Without provenance Details for pfnstudio_core-0.9.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pfnstudio-core 0.9.8
File Interpreter ABI Platform Actions
pfnstudio_core-0.9.8-py3-none-any.whl Python 3 none any Details for pfnstudio_core-0.9.8-py3-none-any.whl

Total release size: 267.0 kB

Release files / pfnstudio_core-0.9.8.tar.gz

Download URL pfnstudio_core-0.9.8.tar.gz
Size 119.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a15cda61d718be4cac1cd2745723bc307f307e59e36f31afce40ea2ab04a6229
BLAKE2b-256 checksum
How to use checksums
ee4bb1d9f764848f430940c2f20e0271bea99e72e2e1ade213a40d5a24e9fc08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / pfnstudio_core-0.9.8-py3-none-any.whl

Download URL pfnstudio_core-0.9.8-py3-none-any.whl
Size 147.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4b3f061d29b81fb16539a15b53e92b97692502d914d3a25c514a4d9f9b770bd
BLAKE2b-256 checksum
How to use checksums
cd5248b018490a29b43f0b8a0f215ab597f021ea07eea82b8894e6d9af3e99fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for pfnstudio-core 0.9.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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