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

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.11
File Size Uploaded Provenance Actions
pfnstudio_core-0.9.11.tar.gz 128.1 kB Without provenance Details for pfnstudio_core-0.9.11.tar.gz

Built distribution (wheel)

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

Total release size: 285.4 kB

Release files / pfnstudio_core-0.9.11.tar.gz

Download URL pfnstudio_core-0.9.11.tar.gz
Size 128.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8301cd9712e27ff53d686d71bda87fc8a393a183234eda96ff44526dd967e79b
BLAKE2b-256 checksum
How to use checksums
ae0e422d8ad2606453e887a7c40b7c21b4ee94580afa231a45447c77855b5918
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.11-py3-none-any.whl

Download URL pfnstudio_core-0.9.11-py3-none-any.whl
Size 157.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60478d6ad236dffcb0236953652d0df31f8ff4062bef3ef4e63eb54aa94ccfea
BLAKE2b-256 checksum
How to use checksums
5b86acda762271588f5ef0351a459ce2010bb383ae968f7e98cabbfb8f1c984f
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.11

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