The core
The core of skoro, built to the charter: three crates in which a model can be built, queried and differentiated, but no distribution exists yet. skoro-tensor is the layer over burn, whose tensors are made at an explicit precision on the Flex device or a wgpu device. skoro-core holds the spaces of quantities (the Euclidean and positive types, products, the discrete types, and the embedded types later crates declare), the primitive operations with kernels of up to second order, composites, the writer with its snapshots, branches and building scopes, addresses, terms and the probabilistic graph, explicit random keys, queries and their compiler, the passes of a program in tangent charts, generation weighed by importance, and retirement of the quantities at any collection of addresses, a namespace's among them. skoro re-exports both. Much of it was ported from the archive branch and reshaped to the charter, and REVISIT.md lists what the archive had that the core does not bring back, each to return as an entry of its own. Along the way the workflow gained the reading orders of the crates, which the end of a build reports and an entry links to.
The core of skoro, built to the charter: three crates in which a model can be built,
queried and differentiated, but no distribution exists yet. skoro-tensor is the layer over burn,
whose tensors are made at an explicit precision on the Flex device or a wgpu device. skoro-core holds the spaces of quantities (the Euclidean and positive types, products, the discrete types, and
the embedded types later crates declare), the primitive operations with kernels of up to second
order, composites, the writer with its snapshots, branches and building scopes, addresses, terms
and the probabilistic graph, explicit random keys, queries and their compiler, the passes of a
program in tangent charts, generation weighed by importance, and retirement of the quantities at
any collection of addresses, a namespace’s among them. skoro re-exports both. Much of it was ported from the archive branch and reshaped to the
charter, and REVISIT.md lists what the archive had that the core does not bring back, each to
return as an entry of its own. Along the way the workflow gained the reading orders of the crates,
which the end of a build reports and an entry links to.
Where it stands
- Mathematics
- Implementation
- Plan
- Build
- Publish
Documents
What it changed
The pages that say what this entry made true:
- How skoro is developed Every change is an entry that moves through fixed stages, mathematics first and the pages last, each approved by a person before the next begins.
- A first model Write a hierarchical normal with `sample`, generate from it and take its density and gradient given an observation, then see what the sugar is made of, from the tests of skoro itself.
- Spaces and quantities Every value in a model lives in a space, which fixes how it is stored, how it moves, and the typed handle code holds it by.
- Operations and their derivatives Maps between spaces described once and on no device, lowered to kernels that say how far they differentiate, and composed from a few primitives.
- Building a model A model is built inside a scope a writer opens, by ordinary functions of handles, and published as an immutable snapshot that may be read from any thread or forked into a branch.
- Terms and the probabilistic graph A model's density is a sum of terms, each a log-density that scores one quantity or none; the terms and quantities together make the probabilistic graph inference reads, and a retirement removes some quantities, replaces their terms, and frees what it leaves needed by nothing.
- Queries and programs A query names what to compute from a snapshot and what is observed; compiled for a device and a precision, it becomes a program whose passes give values, tangents, gradients and Hessian-vector products in tangent charts.
- Crates The workspace's crates, what each holds, and what each depends on.
The crates it changed:
History
- Started at math
- Approved math
a9ddb89 - Reopened math
caabf79An embedded type's retraction is fixed as P(x + B(x)τ), so a type such as the rotations cannot declare its own retraction, R·Exp(τ). - Approved math
6d8365d - Reopened math
6da9352A map into an embedded type can only reach it through a retraction from a base point, so the core needs a boundary operation from storage onto the type. - Approved math
404b265 - Approved implementation
cf93fe1 - Approved plan
b50d064 - Reopened implementation
292e919The test that refuses an unclaimed cubecl runtime needs an LLVM toolchain to build any such runtime, and the device check needs burn-dispatch, which burn does not re-export. - Approved implementation
e60da34 - Approved plan
6242e20 - Reopened implementation
0f50a95The variate formula ((u >> 11) + 0.5) * 2^-53 rounds to exactly 1.0 in f64 when u >> 11 is 2^53 - 1, so the open interval it promises does not hold. - Approved implementation
04d55e7 - Approved plan
659d7b3 - Reopened plan
8bffce7narrow checks a node's space inside the open scope, which arrives with the building task, so it cannot be built with the spaces. - Approved plan
ac9c2dd - Approved build
3455ef5 - Reopened math
44135d7Retirement was given a namespace, so it could remove only the quantities under one address prefix, where it should take any collection of addresses. - Approved math
dcaf04c - Approved implementation
a13281f - Approved plan
175bcd4 - Approved build
8bcae1c - Approved publish
82e9425 - Amended archive/core/implementation by mathematics-in-order
a7dd3d2 - Amended archive/core/math by mathematics-in-order
a7dd3d2 - Amended archive/core/implementation by tangent-clarification
2e5013c - Amended archive/core/math by tangent-clarification
2e5013c