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.10

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.10
File Size Uploaded Provenance Actions
pfnstudio_core-0.9.10.tar.gz 120.3 kB Without provenance Details for pfnstudio_core-0.9.10.tar.gz

Built distribution (wheel)

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

Total release size: 269.0 kB

Release files / pfnstudio_core-0.9.10.tar.gz

Download URL pfnstudio_core-0.9.10.tar.gz
Size 120.3 kB
Tags Source
SHA-256 checksum
How to use checksums
76e5f5704a340b4f7e78b6d3f05bedcb95407c2a0c585d84476f95fd88cfb9dc
BLAKE2b-256 checksum
How to use checksums
7a6a6171716686fa2461c27f19af8278a543f1209f4bcd6ee58cb94f6e3f9d60
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.10-py3-none-any.whl

Download URL pfnstudio_core-0.9.10-py3-none-any.whl
Size 148.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b935c2bc9715916a85bc17a65cda6da196d98ea14077d2159532ad28b99deac8
BLAKE2b-256 checksum
How to use checksums
b06ea997e100f10d4111826e60197577b64f4dad0a6803908231c209685053b3
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.10

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