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

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

Total release size: 158.7 MB

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

Download URL miniverse_sdk-0.9.2-py3-none-win_amd64.whl
Size 22.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
a08f0e318031b510d6ff86d35a916f4855725239f1cfda0e980cdfb13e9c6118
BLAKE2b-256 checksum
How to use checksums
1552cb0132dd18dfd08d34e2ed18933bea15b2e31e1c9bb0119bf31a75dc3aea
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.2-py3-none-musllinux_1_2_x86_64.whl

Download URL miniverse_sdk-0.9.2-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
7463ffbd01eb0586001d851aca1c193c344a76180fa153ea29d05248be55cd8f
BLAKE2b-256 checksum
How to use checksums
2478e03dd5fdff1c938179e19cebb44d27b19f6a2c7354c4a23f19d378e6c50e
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.2-py3-none-musllinux_1_2_aarch64.whl

Download URL miniverse_sdk-0.9.2-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
2077f8a54b5ac8a60e5342ff49cee2e226492f73dd04a627acd3933ba954ee0f
BLAKE2b-256 checksum
How to use checksums
5e04736f56458bac901726f74a0f0a0dd21eead4683a5065a9778b4332828b7a
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.2-py3-none-manylinux_2_28_x86_64.whl

Download URL miniverse_sdk-0.9.2-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
d4c6f9ae4d84470b2bf66833f19f463c5c58db3412bd4e7e3e7a3d9824ec9d9d
BLAKE2b-256 checksum
How to use checksums
93d36ec7a0f4fc46089eace177e3b6a63003f81a3bd7161bb39421b288c6107d
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.2-py3-none-manylinux_2_28_aarch64.whl

Download URL miniverse_sdk-0.9.2-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
7ba3c88006e448c5f81566bc064aefe845464c4fa4539aa55f52203cc58f3941
BLAKE2b-256 checksum
How to use checksums
d2c76ea93b2e9917982fbdb5a48627e6831a90823cffc4093baf1fede062576d
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.2-py3-none-macosx_11_0_arm64.whl

Download URL miniverse_sdk-0.9.2-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
efe669054c8443faee3606e9a79d6529ea91f9a35fe8c4716361a10c917d2644
BLAKE2b-256 checksum
How to use checksums
e6e5b778e0582e1e907ab764994fbae00a294d13cd42d849454de6ace1ec2126
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.2-py3-none-macosx_10_12_x86_64.whl

Download URL miniverse_sdk-0.9.2-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
5680ccd3ae5c0b551528179385a796ea53cbf128dd8e7a4b86d43e1f7e888980
BLAKE2b-256 checksum
How to use checksums
c88ff6936a0ea4ee83892448c58b57b16961d54d9772ac020a0b111f996823dd
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.2

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