Skip to main content

miniverse-sdk

pip install miniverse-sdk installs two things: the miniverse Python package, which logs training runs, and the native miniverse executable, which serves them locally and pushes them to miniverse.bot. It replaces the 0.8 and earlier miniverse-sdk releases, whose miniverse_sdk package uploaded to the removed cloud APIs.

import miniverse

run = miniverse.init("runs/walk-7", base="walker.mini", name="Walk 7")
for step in range(10_000):
    loss, reward = train_one_step()
    run.log({"train/loss": loss, "train/reward": reward}, step=step)
    if step % 1000 == 0:
        torch.onnx.export(policy, example, "exports/policy.onnx")
        run.checkpoint(step, {"policy": "exports/policy.onnx"})
run.finish()
miniverse serve runs
  • miniverse.init(run_dir, base, *, name, description, rank, push) writes run.json, copies the base .mini to base.mini, and opens a new metric file for this process. Resuming a run requires the same base bytes.
  • run.log(metrics, step=) writes each value as a Rerun Scalar at metrics/<name> on the step timeline. A later value at the same step replaces the earlier one.
  • run.checkpoint(step, models, label=) copies one ONNX file per base model ID into checkpoints/step-<step>/ and publishes the marker last.
  • run.finish() flushes the metric file. with miniverse.init(...) as run: calls it for you, and so does interpreter exit.

Under torchrun, every rank calls the same code. Each rank writes its own metrics/rank<N>-attempt<K>.rrd; only rank 0 writes run metadata and checkpoints. The rank comes from RANK, or pass rank=.

push=True also mirrors the run to miniverse.bot while it trains, by running miniverse push --watch and one final miniverse push at finish. Set MINIVERSE_TOKEN to a personal access token for the first push.

miniverse.onnx.embed_contract(model, contract, output) embeds the v0.3 simulation contract in an exported model. It needs pip install 'miniverse-sdk[onnx]'.

The files are plain JSON, ZIP, ONNX, and Rerun 0.42 RRD. Jobs that already log with rerun-sdk can write the same layout without this package; run miniverse agent-help run-directory for the contract.

Building

Build @dollhouse/miniverse and @dollhouse/miniverse-training-ui first, because the executable embeds them, then build platform wheels with maturin. Each wheel holds the Python package and that platform's executable. The wheel workflow builds Linux x86_64/aarch64 for musl and glibc, macOS x86_64/arm64, and Windows x86_64 and uploads CI artifacts only. Nothing publishes to PyPI automatically. The package version comes from Cargo and must be above 0.8.0 before the first upload.

Metadata

Release files for miniverse-sdk 0.9.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for miniverse-sdk 0.9.3
File Actions
miniverse_sdk-0.9.3-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for miniverse_sdk-0.9.3-py3-none-win_amd64.whl
miniverse_sdk-0.9.3-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for miniverse_sdk-0.9.3-py3-none-musllinux_1_2_x86_64.whl
miniverse_sdk-0.9.3-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for miniverse_sdk-0.9.3-py3-none-musllinux_1_2_aarch64.whl
miniverse_sdk-0.9.3-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for miniverse_sdk-0.9.3-py3-none-manylinux_2_28_x86_64.whl
miniverse_sdk-0.9.3-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for miniverse_sdk-0.9.3-py3-none-manylinux_2_28_aarch64.whl
miniverse_sdk-0.9.3-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for miniverse_sdk-0.9.3-py3-none-macosx_11_0_arm64.whl
miniverse_sdk-0.9.3-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for miniverse_sdk-0.9.3-py3-none-macosx_10_12_x86_64.whl

Total release size: 162.8 MB

Release files / miniverse_sdk-0.9.3-py3-none-win_amd64.whl

Download URL miniverse_sdk-0.9.3-py3-none-win_amd64.whl
Size 23.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
3c9d36c2ea1b49a9af8714ac7d15e5e1f338982b9eaa388ee382dc4e88732d1a
BLAKE2b-256 checksum
How to use checksums
f3a2697c7f1c586e01278b99a8ca1d52ab8b5438eb14136d30a449eca99ff31c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / miniverse_sdk-0.9.3-py3-none-musllinux_1_2_x86_64.whl

Download URL miniverse_sdk-0.9.3-py3-none-musllinux_1_2_x86_64.whl
Size 23.5 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
bc7c06b9e87a92d09bc59b16d759490135a317060c44bda2f13f06657687c80c
BLAKE2b-256 checksum
How to use checksums
d2cd1cd850d446b896f3ad181860dd39da96dbb49018adb635161993483b2907
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / miniverse_sdk-0.9.3-py3-none-musllinux_1_2_aarch64.whl

Download URL miniverse_sdk-0.9.3-py3-none-musllinux_1_2_aarch64.whl
Size 23.2 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
55b20d3a6711337a563ec7a418579be371d25e7288a5f831db200734cf4266e0
BLAKE2b-256 checksum
How to use checksums
ababa1f2051c6e4d92416efdd7373d43d75c4f8302ac00839c515f2dc2c5216c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / miniverse_sdk-0.9.3-py3-none-manylinux_2_28_x86_64.whl

Download URL miniverse_sdk-0.9.3-py3-none-manylinux_2_28_x86_64.whl
Size 23.5 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
2e256849ff8de9870d49ac4bb3dacf311fa844225e8a41498e6f8681c2c8638a
BLAKE2b-256 checksum
How to use checksums
2b2b3b30b0881da3ebe29b2116438bbb60c91929050ca9f966471ce5f617c158
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / miniverse_sdk-0.9.3-py3-none-manylinux_2_28_aarch64.whl

Download URL miniverse_sdk-0.9.3-py3-none-manylinux_2_28_aarch64.whl
Size 23.2 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
0a42eff96bb7164f4783ffe195a2c871c56e83af622e5f67c139e141f28d1a86
BLAKE2b-256 checksum
How to use checksums
21d3c94e67e0082fec0382709137be81eb1eb7f4b929fd60a899b5471a670d9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / miniverse_sdk-0.9.3-py3-none-macosx_11_0_arm64.whl

Download URL miniverse_sdk-0.9.3-py3-none-macosx_11_0_arm64.whl
Size 23.0 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8bfddee3f77bc5db532377a9b5a295453890ac73204f366a90cd0278901582b7
BLAKE2b-256 checksum
How to use checksums
0606260525c464306934edd0e245fd1457f2193e8a66502308b16b2c0aed3343
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / miniverse_sdk-0.9.3-py3-none-macosx_10_12_x86_64.whl

Download URL miniverse_sdk-0.9.3-py3-none-macosx_10_12_x86_64.whl
Size 23.1 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
82457bd18bd79a7451200d786722b3e4174182441b4964b513798f12613c44ae
BLAKE2b-256 checksum
How to use checksums
41574eee97a4a9c7b61ad04b7e1679adcbac66af4a359830496d167b1842ea88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for miniverse-sdk 0.9.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page