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.6.0.tar.gz (30.0 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.6.0-py3-none-any.whl (41.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for priorstudio_core-0.6.0.tar.gz
Algorithm Hash digest
SHA256 8e27542616d24d2c3e460116c88aa80d50beebff10050a6b1b2045ef29c58bdf
MD5 ef9a2f42fee13fb980bb090cd104d8a2
BLAKE2b-256 3ff0f1cc9a3ae859bcd287276fea5c812c7350d615e64c5998ee20907b1ac19b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for priorstudio_core-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52cfb4fb2cddf91f6bf5005718a8421b50c5e9abbf814e2697708f7e02a8c78f
MD5 44dd7c14845df7ba5332596899f8a94b
BLAKE2b-256 add922b3a6c551059b7f6291949578559ab62b04e7cf086a984884da25800fb6

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