diff --git a/docs/sphinx/source/changelog.md b/docs/sphinx/source/changelog.md index aab398880..0475611fe 100644 --- a/docs/sphinx/source/changelog.md +++ b/docs/sphinx/source/changelog.md @@ -192,6 +192,19 @@ PyPI 版本变更与未发布变更;发布日期采用 PyPI 上传日期。完 覆盖率门槛(`pyproject.toml` 中 `fail-under = 40`) ([#2584](https://github.com/Motphys/UniLab/pull/2584), [#706](https://github.com/Motphys/UniLab/issues/706))。 +- The default and ROCm profiles now pin `unisim-core==2.7.3`, which removes + the per-reset host-blocking stream synchronize from MJWarp's device reset + randomization scatter (unilabsim/unisim#537): under the default deferred + finite-validation mode the reset hot path no longer drains the Torch stream + on every reset when backend-owned graphs are off. Paired with the masked DR + writers in #2630, fixed-shape autoreset is sync-free end to end + ([#2623](https://github.com/Motphys/UniLab/issues/2623))。 + 默认与 ROCm profile 现在均钉定 `unisim-core==2.7.3`:该版本移除了 MJWarp + 设备 reset 随机化 scatter 处每次 reset 阻塞 host 的 stream 同步 + (unilabsim/unisim#537)——在默认的 deferred 有限值校验模式下,关闭 + backend 自有 graph 时 reset 热路径不再每步排空 Torch stream。与 #2630 的 + 掩码 DR 写入门配合,fixed-shape autoreset 端到端免同步 + ([#2623](https://github.com/Motphys/UniLab/issues/2623))。 - `ManagerRng.choice` drops the `replacement` parameter: sampling was always with replacement (`replacement=False` raised `NotImplementedError` from the API's introduction), and a parameter that can only ever take its default diff --git a/pyproject.rocm.toml b/pyproject.rocm.toml index fd06e0366..35337d63f 100644 --- a/pyproject.rocm.toml +++ b/pyproject.rocm.toml @@ -23,7 +23,7 @@ classifiers = [ requires-python = ">=3.10,<3.14" dependencies = [ "numpy", - "unisim-core==2.7.2", + "unisim-core==2.7.3", "prettytable>=3.10", "torch==2.14.0", "triton-rocm==3.8.0 ; sys_platform == 'linux' and platform_machine == 'x86_64'", @@ -68,7 +68,7 @@ mujoco = [ "mujoco~=3.11.0", "mjbatch-uni~=0.2.5", ] -motrix = ["unisim-core[motrix]==2.7.2"] +motrix = ["unisim-core[motrix]==2.7.3"] genesis = ["genesis-world==1.3.3"] # Keep the training-stack extra aligned with pyproject.toml. unirl = [ diff --git a/pyproject.toml b/pyproject.toml index 2a74f5a7c..49d714aa7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ classifiers = [ requires-python = ">=3.10,<3.14" dependencies = [ "numpy", - "unisim-core==2.7.2", + "unisim-core==2.7.3", "prettytable>=3.10", # A range (not an exact pin) lets ROCm users substitute a ROCm torch # build; uv.lock pins the tested CUDA builds via tool.uv.sources. @@ -102,12 +102,12 @@ newton = [ "pyglet>=2.1.6,<3", "imgui-bundle>=1.92.0", ] -motrix = ["unisim-core[motrix]==2.7.2"] +motrix = ["unisim-core[motrix]==2.7.3"] genesis = ["genesis-world==1.3.3"] # Wheels are CPython 3.12/3.13 Linux x86_64 only; the marker keeps uv lock # resolvable for the other required-environments. superdex = [ - "unisim-core[superdex]==2.7.2 ; python_version >= '3.12' and sys_platform == 'linux' and platform_machine == 'x86_64'", + "unisim-core[superdex]==2.7.3 ; python_version >= '3.12' and sys_platform == 'linux' and platform_machine == 'x86_64'", ] # Tensor ray perception is optional and is discovered through UniSim's public # caster factory. The PyPI distribution is `uniray`; the import namespace is diff --git a/uv.lock b/uv.lock index 6301722c6..c0b5e4e0f 100644 --- a/uv.lock +++ b/uv.lock @@ -5298,9 +5298,9 @@ requires-dist = [ { name = "trimesh", specifier = ">=3.21.7" }, { name = "typing-extensions" }, { name = "uniray", extras = ["warp"], marker = "extra == 'ray'", specifier = "==0.1.1" }, - { name = "unisim-core", specifier = "==2.7.2" }, - { name = "unisim-core", extras = ["motrix"], marker = "extra == 'motrix'", specifier = "==2.7.2" }, - { name = "unisim-core", extras = ["superdex"], marker = "python_full_version >= '3.12' and platform_machine == 'x86_64' and sys_platform == 'linux' and extra == 'superdex'", specifier = "==2.7.2" }, + { name = "unisim-core", specifier = "==2.7.3" }, + { name = "unisim-core", extras = ["motrix"], marker = "extra == 'motrix'", specifier = "==2.7.3" }, + { name = "unisim-core", extras = ["superdex"], marker = "python_full_version >= '3.12' and platform_machine == 'x86_64' and sys_platform == 'linux' and extra == 'superdex'", specifier = "==2.7.3" }, { name = "viser", specifier = ">=1.0.26" }, { name = "wandb", marker = "extra == 'unirl'", specifier = ">=0.22.3" }, { name = "warp-lang", marker = "extra == 'mjwarp'", specifier = "==1.16.0" }, @@ -5339,15 +5339,15 @@ warp = [ [[package]] name = "unisim-core" -version = "2.7.2" +version = "2.7.3" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, { name = "numpy", version = "2.4.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/43/07/ae3f21493c90650945a6f38ef9d3da96aec43aa026977a5737250e0233ef/unisim_core-2.7.2.tar.gz", hash = "sha256:2e4953bcf6305b1eba03f46682c4459c3a9a6db8f94e226caa8b19a67249890f", size = 794663, upload-time = "2026-11-15T10:01:34.706Z" } +sdist = { url = "https://files.pythonhosted.org/packages/02/4c/d8993be09456fd344acfb6138cc470703e53e37208764c6c37d1818153f7/unisim_core-2.7.3.tar.gz", hash = "sha256:12ffd4656eb89a109a837fc65c53b81675dafb8b06a2fe1fb9a528d2bf970203", size = 794784, upload-time = "2026-11-19T15:42:19.439Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/97/8f/3301542c442106d8bb84bce525793bbc697dc2e4e60c9d135285900e4274/unisim_core-2.7.2-py3-none-any.whl", hash = "sha256:f5c3ce679f34bef2174244319a9129ca7f5f271014ce37b451589ca68665055a", size = 844308, upload-time = "2026-11-15T10:01:32.886Z" }, + { url = "https://files.pythonhosted.org/packages/53/0c/a2625971739ad6ebacacc976dff70f5b0826dce29955b4f432eb6226a6f9/unisim_core-2.7.3-py3-none-any.whl", hash = "sha256:b36a7f2267c17d044f0047250d2da1a1306b1e6cfad21a6d5197549da5893c62", size = 844453, upload-time = "2026-11-19T15:42:17.956Z" }, ] [package.optional-dependencies] diff --git a/uv.rocm.lock b/uv.rocm.lock index 53de996cf..bb52b18ac 100644 --- a/uv.rocm.lock +++ b/uv.rocm.lock @@ -4815,8 +4815,8 @@ requires-dist = [ { name = "trimesh", specifier = ">=3.21.7" }, { name = "triton-rocm", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'", specifier = "==3.8.0", index = "https://download.pytorch.org/whl/rocm7.2" }, { name = "typing-extensions" }, - { name = "unisim-core", specifier = "==2.7.2" }, - { name = "unisim-core", extras = ["motrix"], marker = "extra == 'motrix'", specifier = "==2.7.2" }, + { name = "unisim-core", specifier = "==2.7.3" }, + { name = "unisim-core", extras = ["motrix"], marker = "extra == 'motrix'", specifier = "==2.7.3" }, { name = "viser", specifier = ">=1.0.26" }, { name = "wandb", marker = "extra == 'unirl'", specifier = ">=0.22.3" }, ] @@ -4834,15 +4834,15 @@ dev = [ [[package]] name = "unisim-core" -version = "2.7.2" +version = "2.7.3" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, { name = "numpy", version = "2.4.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/43/07/ae3f21493c90650945a6f38ef9d3da96aec43aa026977a5737250e0233ef/unisim_core-2.7.2.tar.gz", hash = "sha256:2e4953bcf6305b1eba03f46682c4459c3a9a6db8f94e226caa8b19a67249890f", size = 794663, upload-time = "2026-11-15T10:01:34.706Z" } +sdist = { url = "https://files.pythonhosted.org/packages/02/4c/d8993be09456fd344acfb6138cc470703e53e37208764c6c37d1818153f7/unisim_core-2.7.3.tar.gz", hash = "sha256:12ffd4656eb89a109a837fc65c53b81675dafb8b06a2fe1fb9a528d2bf970203", size = 794784, upload-time = "2026-11-19T15:42:19.439Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/97/8f/3301542c442106d8bb84bce525793bbc697dc2e4e60c9d135285900e4274/unisim_core-2.7.2-py3-none-any.whl", hash = "sha256:f5c3ce679f34bef2174244319a9129ca7f5f271014ce37b451589ca68665055a", size = 844308, upload-time = "2026-11-15T10:01:32.886Z" }, + { url = "https://files.pythonhosted.org/packages/53/0c/a2625971739ad6ebacacc976dff70f5b0826dce29955b4f432eb6226a6f9/unisim_core-2.7.3-py3-none-any.whl", hash = "sha256:b36a7f2267c17d044f0047250d2da1a1306b1e6cfad21a6d5197549da5893c62", size = 844453, upload-time = "2026-11-19T15:42:17.956Z" }, ] [package.optional-dependencies]