Skip to main content

Core abstractions for PFN Studio — Prior, Model, Eval, Run, and the block registry.

Project description

pfnstudio-core

The Python contract for PFN Studio FM projects.

from pfnstudio_core import Prior, Model, Eval, Run, register_block, register_prior

@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): ...

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.pyEval config + result schema
  • run.pyRun manifest + executor protocol
  • registry.py@register_prior, @register_block, @register_eval 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

Project details


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.7.0.tar.gz (51.8 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.7.0-py3-none-any.whl (69.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pfnstudio_core-0.7.0.tar.gz
Algorithm Hash digest
SHA256 9d4ff83b9b8833bbec61da2a255163588799ef73119f639d70a96788a24f3395
MD5 595926f61d082a3a3d410118e4be650a
BLAKE2b-256 686ccea4c7f7a5ea4d6435fdff533717c641c6e9a96887f9501d949dd2d93940

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pfnstudio_core-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8af2d8f22ff89f872d26ff445785387e87f987617cacf9e43f699d27b7bd1440
MD5 d281786515f2fdc64ab2a2df3b7209c1
BLAKE2b-256 0a72bfe1169891875c77eb469acaa40a03b566a17d4c6fff3d1301a285c5d9e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page