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.0

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.0
File Actions
miniverse_sdk-0.9.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for miniverse_sdk-0.9.0-py3-none-win_amd64.whl
miniverse_sdk-0.9.0-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for miniverse_sdk-0.9.0-py3-none-musllinux_1_2_x86_64.whl
miniverse_sdk-0.9.0-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for miniverse_sdk-0.9.0-py3-none-musllinux_1_2_aarch64.whl
miniverse_sdk-0.9.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for miniverse_sdk-0.9.0-py3-none-manylinux_2_28_x86_64.whl
miniverse_sdk-0.9.0-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for miniverse_sdk-0.9.0-py3-none-manylinux_2_28_aarch64.whl
miniverse_sdk-0.9.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for miniverse_sdk-0.9.0-py3-none-macosx_11_0_arm64.whl
miniverse_sdk-0.9.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for miniverse_sdk-0.9.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 158.6 MB

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

Download URL miniverse_sdk-0.9.0-py3-none-win_amd64.whl
Size 22.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
ebf90cb1c4ce6345625bd207131e6f2b3c7e9f5ad7d374921b0970d45c20f9e6
BLAKE2b-256 checksum
How to use checksums
96e077839e38f692f6f91c9889f43cb3788615de125c60a59e4c60c2c3735c7b
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":"12","id":"bookworm","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.0-py3-none-musllinux_1_2_x86_64.whl

Download URL miniverse_sdk-0.9.0-py3-none-musllinux_1_2_x86_64.whl
Size 22.9 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
63a9b8ee89f3252a0adcd23e13c020cd0a4e6a323365d1e39c06b7fd4b03e394
BLAKE2b-256 checksum
How to use checksums
7cbf4f29395fc1b7d2f71a6687bc833e902802db4f6d47c43c060344b693748d
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":"12","id":"bookworm","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.0-py3-none-musllinux_1_2_aarch64.whl

Download URL miniverse_sdk-0.9.0-py3-none-musllinux_1_2_aarch64.whl
Size 22.6 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
9d8e5719a0f4168da467109a0cc012620dae5d772d72f3d060fd49b077f46c5e
BLAKE2b-256 checksum
How to use checksums
526c2e93667cf007fce6ac2cbb09a236458cf28580a091c0e40441748aef5b9e
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":"12","id":"bookworm","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.0-py3-none-manylinux_2_28_x86_64.whl

Download URL miniverse_sdk-0.9.0-py3-none-manylinux_2_28_x86_64.whl
Size 22.9 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
7f43a1ca16edcf37795726737785fc0d230e3edf1b1a4df44ee436bbdf7726ea
BLAKE2b-256 checksum
How to use checksums
7a1d28d2fbe074cf25d1a0712dd78ff115158e508a8c4d0342166433bd2b28af
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":"12","id":"bookworm","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.0-py3-none-manylinux_2_28_aarch64.whl

Download URL miniverse_sdk-0.9.0-py3-none-manylinux_2_28_aarch64.whl
Size 22.6 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
6fe30ac4b0e03bfdd6aac50a0d3587743eb319f8fe7f6ee742220865cbccd0df
BLAKE2b-256 checksum
How to use checksums
68197fa6bc836eb4637933e81ea0d44909136a0d3d6c2291388de510f7ca8f4f
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":"12","id":"bookworm","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.0-py3-none-macosx_11_0_arm64.whl

Download URL miniverse_sdk-0.9.0-py3-none-macosx_11_0_arm64.whl
Size 22.4 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8283b9ff032617c6e37e8714e603463e5a176d0456ac8815897e6092b8287560
BLAKE2b-256 checksum
How to use checksums
500632ba1ab15a81698ac3657dde81c90aa91d044632e684ec1544344050cf70
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":"12","id":"bookworm","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.0-py3-none-macosx_10_12_x86_64.whl

Download URL miniverse_sdk-0.9.0-py3-none-macosx_10_12_x86_64.whl
Size 22.5 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
5eea587dfe8ee079636c4c2dc9f60c9349f7e054c5ffe6e2898936c6041741e3
BLAKE2b-256 checksum
How to use checksums
13b936e0001d12d95e93f52db083d4b93ba94967d46cbb6dfad00877cbca3515
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":"12","id":"bookworm","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.0

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