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.py—PriorABC and built-in prior loadermodel.py—Modelconfig + block-compositioneval.py—Evalconfig + result schemarun.py—Runmanifest + executor protocolregistry.py—@register_prior,@register_block,@register_evaland discoveryloaders.py— load YAML artifacts into typed objectsblocks/— built-in architecture blocks (transformer encoder, causal attention, heads)training/— minimal in-process training loop for thelocalcompute adapter
Project details
Release history Release notifications | RSS feed
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.4.0.tar.gz
(17.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file priorstudio_core-0.4.0.tar.gz.
File metadata
- Download URL: priorstudio_core-0.4.0.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f4b9d466442d3f261a0adcbcca5fe352d3ea1379da46453aa0f14ac20c69432
|
|
| MD5 |
6880ec3c5cedc12f45ab31a1c52e308f
|
|
| BLAKE2b-256 |
4e6bb9f6475e32fd06d22e4a0c014659666664dc052a7e48ba5f683f54b97fa9
|
File details
Details for the file priorstudio_core-0.4.0-py3-none-any.whl.
File metadata
- Download URL: priorstudio_core-0.4.0-py3-none-any.whl
- Upload date:
- Size: 23.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2969db0b7c148ce94fd708c1aadd907479210df207badd9ca07cbc937267181
|
|
| MD5 |
fab76e285fec7fefca9e9624b4c5d47e
|
|
| BLAKE2b-256 |
5d300e73c17c17c21ecf4600e19e2afa8246b0351c09dde2fe5cb968326bccbd
|