Skip to main content

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

Project description

priorstudio-core

The Python contract for PriorStudio FM projects.

from priorstudio_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

priorstudio_core-0.5.0.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

priorstudio_core-0.5.0-py3-none-any.whl (31.9 kB view details)

Uploaded Python 3

File details

Details for the file priorstudio_core-0.5.0.tar.gz.

File metadata

  • Download URL: priorstudio_core-0.5.0.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for priorstudio_core-0.5.0.tar.gz
Algorithm Hash digest
SHA256 04e7eec369638942d219044f4f28b650ba3e11d004eabb4620816d8e80951458
MD5 14a34aee11f65f8681a50826fd0cce22
BLAKE2b-256 642a81ece16f126588c23b5bf21ff4b2c60705d0786f16cd3467ad35251d65a5

See more details on using hashes here.

File details

Details for the file priorstudio_core-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for priorstudio_core-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc91ce86c1d0de2d8ad3892dd89b455bdc750fe0c7e4103b314656b2e624910e
MD5 1c55bbf9df6350919f9665ffc03b54a8
BLAKE2b-256 4c0e39e8b0f3a0effc8169d12a2f0ccf62f779e4c15b0df3e0f3d8299aef82c1

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