rlmesh.Variant

classfrom rlmesh import Variant[source]

One concrete sub-environment in an EnvFactory's catalog.

Variant(id: str, params: Mapping[str, Any], /, **metadata: Any)

Return a list of these from an optional enumerate_variants() classmethod (or yield them lazily for a large catalog) to enumerate the finite, named environments a factory contains – e.g. one per benchmark task. Distinct from enumerate_params(), which declares independent sweep axes: a catalog is a flat list of named, already-bound sub-envs, the right shape when the dimensions are dependent (a task index whose range depends on the suite) and each entry has a human identity. python -m rlmesh._describe emits the catalog off-GPU for a managed dashboard / env hub to list and spawn.

Parameters

NameTypeDescription
idstrAuthor-explicit, non-empty, **factory-unique** handle (e.g. "libero_10/pick_up_the_black_bowl"). Prefer a stable upstream identity over a positional index -- a positional id silently repoints if the upstream library reorders. A hub composes a global handle as (factory identity, id).
paramsMapping[str, Any]make() kwargs binding ONLY the identity-defining params; the remaining free dials stay in the ParamSpec and are composed by the consumer (free dials = param_spec names minus these keys). Copied defensively, so reusing one dict across entries in a loop is safe.
metadataAnyOpen display bag (keyword-only). name is the one recognized key a dashboard renders as the title; every other key is domain metadata the framework passes through untouched (e.g. a robotics env's instruction).

id

attribute[source]
id

params

attribute[source]
params

metadata

attribute[source]
metadata