RVX
Local-first runtime-state snapshots for asynchronous experiments. Each ML role publishes complete structured states over HTTP; a shared RVX server pulls and retains them for latest-state inspection, historical replay, state diffs, and cross-Run comparison. Numeric trends are projections of snapshot fields, not a separate metric log.
Actor / Learner / Evaluator / node snapshot endpoints
|
HTTP Pull
|
Rust collector + SQLite WAL
|
latest / history / diff / field projections
|
experiment UI + Python CLI
A capture is a full replacement: absent fields disappear, and old snapshots remain unchanged. Nested objects, arrays, text, booleans, nulls, and finite numbers are retained. The default axis is observation wall time, not ingestion time or a synthetic global training step.
This is a published runtime observation, not a model checkpoint or process memory dump. Each Source has its own consistency boundary; RVX does not claim a globally atomic snapshot across asynchronous roles.
Install a release
The rvx PyPI distribution is one complete package: Python SDK, internal
native extension, native rvxd executable, and the built Web UI.
Prebuilt wheels target Linux x86_64/arm64 (glibc 2.28+) and macOS
x86_64/arm64 (11+), with Python 3.11+. Rust and Node are not required by users.
After the first version is published:
uv tool install rvx
rvx serve --data-dir /absolute/path/to/rvx-data
To use the SDK inside an ML project's environment instead, run uv add rvx
and import Source from rvx.
Release artifacts and PyPI Trusted Publishing are configured in
.github/workflows/release.yml;
see the release guide. A manual workflow run builds
artifacts but never publishes. The PyPI owner configures the pypi trusted
publisher before pushing a release tag.
Build from source
Requires the pinned Rust toolchain, Python 3.11+, uv, and Node.js 22+:
uv sync --locked
cargo build --locked --release -p rvx-server
npm --prefix web ci
npm --prefix web run build
uv run python scripts/package_assets.py --binary target/release/rvxd --ui web/dist
./target/release/rvxd \
--data-dir /absolute/path/to/rvx-data \
--listen 127.0.0.1:9110 \
--ui-dir /absolute/path/to/rvx/web/dist
Open http://127.0.0.1:9110/rvx. The UI and API are served by Rust, not Python.
--data-dir is required. Exactly one engine may own a data directory; do not
open a live server's directory from Python or a second server.
For a persistent service, copy web/dist into a versioned deployment directory
and point --ui-dir at that release (or an atomically switched symlink).
Do not point production at the working build directory: npm run build
would otherwise replace the live UI before its matching backend is deployed.
Only loopback listeners are supported. Browser mutations must be same-origin. The server is not an authenticated public service. Use local access or a secured tunnel; automatic Kubernetes discovery/registration is not included.
The package's uv cache keys include its Rust workspace dependencies. After native changes, rebuild/synchronize the binding with:
uv sync --locked
For an explicit maturin development build, use
uv run --no-sync maturin develop --release
and uv run --no-sync while using that build. Ordinary uv run synchronizes
the local project and may replace a manually installed development
wheel; do not assume the previously loaded native binary is still selected.
Capture a role's state
Create the metadata hierarchy using the CLI:
uv run rvx projects create async-rl
uv run rvx experiments create --project PROJECT_ID grpo
uv run rvx runs create --experiment EXPERIMENT_ID trial-1
In a role process:
from rvx import Source
source = Source(
project="async-rl",
experiment="grpo",
run_id="RUN_ID",
role="learner",
)
source.serve(port=9200)
source.capture(
{
"phase": "training",
"progress": {"step": 1024, "loss": 0.184},
"queue": {"ready": 8, "inflight": ["batch-72", "batch-73"]},
"workers": [{"rank": 0, "status": "busy"}],
},
axes={"optimizer_step": 1024, "policy_version": 128},
)
Register its reachable endpoint in the shared server:
uv run rvx sources register --run RUN_ID --role learner \
--endpoint http://127.0.0.1:9200
uv run rvx snapshots latest --run RUN_ID
uv run rvx snapshots history --run RUN_ID
uv run rvx query --run RUN_ID --field /progress/loss
Source owns a bounded native snapshot buffer, not a mandatory HTTP server.
For an existing FastAPI/Starlette app, use
app.mount("/rvx", source.asgi()); for aiohttp, use
source.attach_aiohttp(app, prefix="/rvx") before starting the app.
Register the host's reachable base URL plus /rvx as the Source endpoint.
Neither adapter creates another listener or owns the host's lifecycle.
serve() is the optional all-Rust HTTP path shown above.
capture_batch amortizes the Python/native boundary; seal() stops captures
while keeping history readable. stop_serving() stops only the owned native
listener: capture and mounted readers keep working with the same Session.
close() closes the Source and its own listener, never the attached host;
it does not acknowledge consumer persistence. Retention gaps are explicit.
Each role instance needs its own Source endpoint and fresh Session. Do not register a load-balanced Service that mixes multiple instances under one URL. The application chooses the capture boundary and supplies already available, JSON-compatible state; the SDK does not synchronize GPU tensors or inspect arbitrary application memory.
See Source SDK and mounting and the wire/query contracts.
Inspect and compare
Project, Experiment, and Run metadata remain separate from analytical Views.
The workspace inspects Source state, selects/replays historical versions,
compares full states, and plots numeric JSON-pointer paths across Runs.
Missing, deleted, null, or nonnumeric fields produce gaps, never carried-forward
values. /metrics/cpu~1percent selects a literal cpu/percent object key.
Numeric projections use float64 for plotting; raw snapshots and state diffs
retain exact supported integer values.
Exact browser views and exports require native JSON.parse source context
and JSON.rawJSON. Unsupported browsers show an upgrade error rather than
silently round snapshot numbers. Plotting still uses normal numeric arrays.
The read APIs are:
| POST endpoint | Purpose |
|---|---|
/api/snapshots/latest |
Latest full state for each selected Source |
/api/snapshots/history |
Bounded, paginated historical versions |
/api/snapshots/diff |
Added, removed, and changed fields between stored versions |
/api/snapshots/query |
Numeric field projections, optionally across Runs |
Metadata and explicit lifecycle controls remain under /api/experiments/*.
RVX_URL or rvx --url URL chooses the CLI server.
Hostmon and existing data
Hostmon is a separate project and process, with its original collectors, alerts,
Prometheus /metrics, JSONL history, and UI. Its optional [rvx_snapshots]
producer exposes full observations on its existing HTTP server. RVX requires
neither hostmon nor its Python dependencies.
For hostmon integration, add --hostmon-url http://127.0.0.1:9108 to rvxd
and register that URL as a Source with role hostmon. The optional hostmon
operational proxy is GET-only and restricted to status, catalog, collectors,
rules, and the GPU usage document. It is independent of snapshot persistence.
The former MetricServer/log API and /v1/metrics/* producer protocol are
retired. Existing numeric WAL/Parquet records, archived Sources, and metric
cursors are preserved as legacy read-only history. They are not converted into
invented runtime states. Structured history starts with the first new capture.
There is no Push ingestion endpoint or JSONL importer.
Development
mkdir -p .build
TMPDIR="$PWD/.build" cargo test --locked --workspace
TMPDIR="$PWD/.build" uv run python -m unittest discover -s tests -v
npm --prefix web run check
npm --prefix web run test:e2e
Use isolated data directories. Process tests use target/debug/rvxd, or
RVXD_BINARY for a different build. Browser tests use their own fixture server;
install its browser with cd web && npx playwright install chromium.
The snapshot architecture is a new preview, not certified by earlier scalar metric benchmarks or the old 24-hour soak. See architecture and operation, industrial UI design, and third-party notices.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
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 rvx-0.1.0-cp311-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: rvx-0.1.0-cp311-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 14.0 MB
- Tags: CPython 3.11+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b29dc08de8997f306f62ec1895dc54272ec1ad38917cb71fe575011f9b48e2c8
|
|
| MD5 |
bdde361903a7dfb81e010b40c110e601
|
|
| BLAKE2b-256 |
0a1f4163525952c44f0f64385fcd375f38f40c5aa7b26ba696f67f6f928bdcee
|
Provenance
The following attestation bundles were made for rvx-0.1.0-cp311-abi3-manylinux_2_28_x86_64.whl:
Publisher:
release.yml on HSPK/rvx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rvx-0.1.0-cp311-abi3-manylinux_2_28_x86_64.whl -
Subject digest:
b29dc08de8997f306f62ec1895dc54272ec1ad38917cb71fe575011f9b48e2c8 - Sigstore transparency entry: 2726663405
- Sigstore integration time:
-
Permalink:
HSPK/rvx@881ca7dc8a1c255f5a349db2dfdc7415f6877ca9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/HSPK
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@881ca7dc8a1c255f5a349db2dfdc7415f6877ca9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file rvx-0.1.0-cp311-abi3-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: rvx-0.1.0-cp311-abi3-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 13.8 MB
- Tags: CPython 3.11+, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aaaa2c76c5070b51c26ee2e3c02a8e6b30c8baf244bfed39991b300e4fca29c7
|
|
| MD5 |
35a764731dba4dc4c6795aff8421405f
|
|
| BLAKE2b-256 |
773638aa9df82efe3e2f158cd36acbbd70158fa8d9c55e100437c6f73be97c09
|
Provenance
The following attestation bundles were made for rvx-0.1.0-cp311-abi3-manylinux_2_28_aarch64.whl:
Publisher:
release.yml on HSPK/rvx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rvx-0.1.0-cp311-abi3-manylinux_2_28_aarch64.whl -
Subject digest:
aaaa2c76c5070b51c26ee2e3c02a8e6b30c8baf244bfed39991b300e4fca29c7 - Sigstore transparency entry: 2726663270
- Sigstore integration time:
-
Permalink:
HSPK/rvx@881ca7dc8a1c255f5a349db2dfdc7415f6877ca9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/HSPK
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@881ca7dc8a1c255f5a349db2dfdc7415f6877ca9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file rvx-0.1.0-cp311-abi3-macosx_11_0_x86_64.whl.
File metadata
- Download URL: rvx-0.1.0-cp311-abi3-macosx_11_0_x86_64.whl
- Upload date:
- Size: 12.6 MB
- Tags: CPython 3.11+, macOS 11.0+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9af20b9517eaf0ed5c523185f02dc97d9e5625321c365e9da82ca7fee566f36a
|
|
| MD5 |
9c95169a8df060dd5a9657ecc208f0e1
|
|
| BLAKE2b-256 |
b12970db1acc26155408899f88c84a1f553cb78c4083d5caff7c019d0f49c1bc
|
Provenance
The following attestation bundles were made for rvx-0.1.0-cp311-abi3-macosx_11_0_x86_64.whl:
Publisher:
release.yml on HSPK/rvx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rvx-0.1.0-cp311-abi3-macosx_11_0_x86_64.whl -
Subject digest:
9af20b9517eaf0ed5c523185f02dc97d9e5625321c365e9da82ca7fee566f36a - Sigstore transparency entry: 2726663340
- Sigstore integration time:
-
Permalink:
HSPK/rvx@881ca7dc8a1c255f5a349db2dfdc7415f6877ca9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/HSPK
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@881ca7dc8a1c255f5a349db2dfdc7415f6877ca9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file rvx-0.1.0-cp311-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: rvx-0.1.0-cp311-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 12.1 MB
- Tags: CPython 3.11+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7adbaaf7165b8b8a5882553c362459ad245f70d10c4009caca18bf910a4496fb
|
|
| MD5 |
43120018a8ddd7f72604ed12189129bd
|
|
| BLAKE2b-256 |
2b34c46c36a7e836d805949e64cffeebf0b18f7b590bde220650fb2000665f86
|
Provenance
The following attestation bundles were made for rvx-0.1.0-cp311-abi3-macosx_11_0_arm64.whl:
Publisher:
release.yml on HSPK/rvx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rvx-0.1.0-cp311-abi3-macosx_11_0_arm64.whl -
Subject digest:
7adbaaf7165b8b8a5882553c362459ad245f70d10c4009caca18bf910a4496fb - Sigstore transparency entry: 2726663453
- Sigstore integration time:
-
Permalink:
HSPK/rvx@881ca7dc8a1c255f5a349db2dfdc7415f6877ca9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/HSPK
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@881ca7dc8a1c255f5a349db2dfdc7415f6877ca9 -
Trigger Event:
push
-
Statement type: