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.8.0.tar.gz (56.9 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.8.0-py3-none-any.whl (76.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pfnstudio_core-0.8.0.tar.gz
  • Upload date:
  • Size: 56.9 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.8.0.tar.gz
Algorithm Hash digest
SHA256 87f6d2fd6cd085db5da776e544585f157d87ce8890fa4e7f134fe03b532472f2
MD5 38dd04e5b4b3ff63a4e75bb23746a0f4
BLAKE2b-256 9be64069a7f8f8e8132348f85947813c8aba06ed23dd8e55b9059b4f0c665695

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pfnstudio_core-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 76.1 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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9fb38ad44edb280c37c6c8f60ac398bdb5d3abc051621c3224812150b2ced2f1
MD5 23353eb6943beba0d2ee26b3d8a4168d
BLAKE2b-256 f7f5c1b584f195672404a7df234d3ae4765da127c66aebe1a0368de9ce431689

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