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.6.0.tar.gz
(30.0 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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e27542616d24d2c3e460116c88aa80d50beebff10050a6b1b2045ef29c58bdf
|
|
| MD5 |
ef9a2f42fee13fb980bb090cd104d8a2
|
|
| BLAKE2b-256 |
3ff0f1cc9a3ae859bcd287276fea5c812c7350d615e64c5998ee20907b1ac19b
|
File details
Details for the file priorstudio_core-0.6.0-py3-none-any.whl.
File metadata
- Download URL: priorstudio_core-0.6.0-py3-none-any.whl
- Upload date:
- Size: 41.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52cfb4fb2cddf91f6bf5005718a8421b50c5e9abbf814e2697708f7e02a8c78f
|
|
| MD5 |
44dd7c14845df7ba5332596899f8a94b
|
|
| BLAKE2b-256 |
add922b3a6c551059b7f6291949578559ab62b04e7cf086a984884da25800fb6
|