nablapo 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. nablapo-0.1.0/LICENSE +202 -0
  2. nablapo-0.1.0/MANIFEST.in +3 -0
  3. nablapo-0.1.0/NOTICE +9 -0
  4. nablapo-0.1.0/PKG-INFO +194 -0
  5. nablapo-0.1.0/README.md +153 -0
  6. nablapo-0.1.0/THIRD_PARTY_NOTICES.md +162 -0
  7. nablapo-0.1.0/configs/MANIFEST.toml +322 -0
  8. nablapo-0.1.0/configs/bench/default.toml +86 -0
  9. nablapo-0.1.0/configs/bench/wm_imagine.toml +74 -0
  10. nablapo-0.1.0/configs/bench/wm_jac.toml +95 -0
  11. nablapo-0.1.0/configs/demos/hoi_box.toml +59 -0
  12. nablapo-0.1.0/configs/demos/hoi_box_wm.toml +6 -0
  13. nablapo-0.1.0/configs/demos/joint_joystick_lafan1.toml +134 -0
  14. nablapo-0.1.0/configs/demos/joystick_early.toml +125 -0
  15. nablapo-0.1.0/configs/demos/joystick_early_wm.toml +16 -0
  16. nablapo-0.1.0/configs/demos/terrain_minimal.toml +38 -0
  17. nablapo-0.1.0/configs/demos/tracking_lafan1.toml +11 -0
  18. nablapo-0.1.0/configs/eval/bench_nominal.toml +5 -0
  19. nablapo-0.1.0/configs/eval/hoi_box_nominal.toml +10 -0
  20. nablapo-0.1.0/configs/eval/joystick_grid.toml +14 -0
  21. nablapo-0.1.0/configs/eval/joystick_grid_dr.toml +14 -0
  22. nablapo-0.1.0/configs/eval/lafan1_nominal_origin.toml +9 -0
  23. nablapo-0.1.0/configs/eval/lafan1_nominal_v1.toml +8 -0
  24. nablapo-0.1.0/configs/eval/terrain_flat_steady.toml +6 -0
  25. nablapo-0.1.0/configs/eval/terrain_lanes.toml +5 -0
  26. nablapo-0.1.0/configs/eval/terrain_stand_step.toml +6 -0
  27. nablapo-0.1.0/configs/lafan1_tracking.toml +13 -0
  28. nablapo-0.1.0/configs/paper/nablamimic_arxiv_v1/ablations/h32.toml +8 -0
  29. nablapo-0.1.0/configs/paper/nablamimic_arxiv_v1/ablations/no_clip.toml +42 -0
  30. nablapo-0.1.0/configs/paper/nablamimic_arxiv_v1/ablations/no_pods.toml +43 -0
  31. nablapo-0.1.0/configs/paper/nablamimic_arxiv_v1/ablations/no_replay.toml +9 -0
  32. nablapo-0.1.0/configs/paper/nablamimic_arxiv_v1/ablations/uniform_resets.toml +8 -0
  33. nablapo-0.1.0/configs/paper/nablamimic_arxiv_v1/lafan1_absolute.toml +43 -0
  34. nablapo-0.1.0/configs/paper/nablamimic_arxiv_v1/lafan1_absolute_mjw.toml +10 -0
  35. nablapo-0.1.0/configs/paper/nablamimic_arxiv_v1/lafan1_residual.toml +5 -0
  36. nablapo-0.1.0/configs/paper/nablamimic_arxiv_v1/lafan1_residual_mjw.toml +3 -0
  37. nablapo-0.1.0/configs/paper/nablamimic_arxiv_v2/lafan1_residual_ema_w100.toml +43 -0
  38. nablapo-0.1.0/configs/paper/nablamimic_arxiv_v2/lafan1_tracking.toml +39 -0
  39. nablapo-0.1.0/configs/tech/actor_ema.toml +13 -0
  40. nablapo-0.1.0/configs/tech/anchor_to_decoder.toml +11 -0
  41. nablapo-0.1.0/configs/tech/applied_action_obs.toml +10 -0
  42. nablapo-0.1.0/configs/tech/bf16_matmuls.toml +10 -0
  43. nablapo-0.1.0/configs/tech/cotangent_clip.toml +11 -0
  44. nablapo-0.1.0/configs/tech/critic_pre_state.toml +10 -0
  45. nablapo-0.1.0/configs/tech/domain_randomization.toml +14 -0
  46. nablapo-0.1.0/configs/tech/eval_guided_resets.toml +15 -0
  47. nablapo-0.1.0/configs/tech/late_lr_drop.toml +11 -0
  48. nablapo-0.1.0/configs/tech/lr_boost.toml +11 -0
  49. nablapo-0.1.0/configs/tech/lr_hold_cosine.toml +17 -0
  50. nablapo-0.1.0/configs/tech/mask_after_done.toml +10 -0
  51. nablapo-0.1.0/configs/tech/muon_actor.toml +11 -0
  52. nablapo-0.1.0/configs/tech/mup_silu_layernorm.toml +22 -0
  53. nablapo-0.1.0/configs/tech/pods_targets.toml +22 -0
  54. nablapo-0.1.0/configs/tech/replay_starts.toml +17 -0
  55. nablapo-0.1.0/configs/tech/residual_actions.toml +10 -0
  56. nablapo-0.1.0/configs/tech/return_resets.toml +11 -0
  57. nablapo-0.1.0/configs/tech/termination_penalty.toml +25 -0
  58. nablapo-0.1.0/docs/pypi_readme.md +153 -0
  59. nablapo-0.1.0/patches/mujoco_warp/0001-adjoint-switches-clamped-kv-and-contact-normal.diff +153 -0
  60. nablapo-0.1.0/patches/mujoco_warp/0002-near-parallel-capsule-segment-parameters.diff +62 -0
  61. nablapo-0.1.0/patches/mujoco_warp/0003-soft-actuator-clamp-switch.diff +114 -0
  62. nablapo-0.1.0/patches/mujoco_warp/0004-ift-solve-without-cholesky-ceiling.diff +138 -0
  63. nablapo-0.1.0/patches/mujoco_warp/README.md +39 -0
  64. nablapo-0.1.0/patches/mujoco_warp/tree.sha256 +5 -0
  65. nablapo-0.1.0/pyproject.toml +62 -0
  66. nablapo-0.1.0/setup.cfg +4 -0
  67. nablapo-0.1.0/setup.py +29 -0
  68. nablapo-0.1.0/src/nablapo/__init__.py +7 -0
  69. nablapo-0.1.0/src/nablapo/cli/__init__.py +1 -0
  70. nablapo-0.1.0/src/nablapo/cli/eval.py +31 -0
  71. nablapo-0.1.0/src/nablapo/cli/export.py +56 -0
  72. nablapo-0.1.0/src/nablapo/cli/setup_warp.py +93 -0
  73. nablapo-0.1.0/src/nablapo/cli/train.py +52 -0
  74. nablapo-0.1.0/src/nablapo/config/__init__.py +5 -0
  75. nablapo-0.1.0/src/nablapo/config/loader.py +341 -0
  76. nablapo-0.1.0/src/nablapo/config/schema.py +159 -0
  77. nablapo-0.1.0/src/nablapo/config/sections.py +17 -0
  78. nablapo-0.1.0/src/nablapo/core/__init__.py +2 -0
  79. nablapo-0.1.0/src/nablapo/core/aux.py +52 -0
  80. nablapo-0.1.0/src/nablapo/core/checkpoint.py +73 -0
  81. nablapo-0.1.0/src/nablapo/core/collector.py +64 -0
  82. nablapo-0.1.0/src/nablapo/core/config.py +200 -0
  83. nablapo-0.1.0/src/nablapo/core/critic.py +84 -0
  84. nablapo-0.1.0/src/nablapo/core/ema.py +6 -0
  85. nablapo-0.1.0/src/nablapo/core/optim/__init__.py +1 -0
  86. nablapo-0.1.0/src/nablapo/core/optim/adam.py +12 -0
  87. nablapo-0.1.0/src/nablapo/core/optim/muon.py +45 -0
  88. nablapo-0.1.0/src/nablapo/core/probe.py +31 -0
  89. nablapo-0.1.0/src/nablapo/core/schedules.py +58 -0
  90. nablapo-0.1.0/src/nablapo/core/targets.py +116 -0
  91. nablapo-0.1.0/src/nablapo/core/trainer.py +599 -0
  92. nablapo-0.1.0/src/nablapo/core/tree.py +40 -0
  93. nablapo-0.1.0/src/nablapo/core/windows.py +210 -0
  94. nablapo-0.1.0/src/nablapo/core/wm.py +167 -0
  95. nablapo-0.1.0/src/nablapo/data/__init__.py +83 -0
  96. nablapo-0.1.0/src/nablapo/data/lafan1_g1.sha256 +42 -0
  97. nablapo-0.1.0/src/nablapo/data/models.toml +299 -0
  98. nablapo-0.1.0/src/nablapo/eval/__init__.py +3 -0
  99. nablapo-0.1.0/src/nablapo/eval/config.py +17 -0
  100. nablapo-0.1.0/src/nablapo/eval/runner.py +117 -0
  101. nablapo-0.1.0/src/nablapo/ext/__init__.py +69 -0
  102. nablapo-0.1.0/src/nablapo/nets/__init__.py +1 -0
  103. nablapo-0.1.0/src/nablapo/nets/actor.py +86 -0
  104. nablapo-0.1.0/src/nablapo/nets/critic.py +12 -0
  105. nablapo-0.1.0/src/nablapo/nets/mlp.py +95 -0
  106. nablapo-0.1.0/src/nablapo/physics/__init__.py +7 -0
  107. nablapo-0.1.0/src/nablapo/physics/_smooth_gen.py +209 -0
  108. nablapo-0.1.0/src/nablapo/physics/_warp_rne.py +105 -0
  109. nablapo-0.1.0/src/nablapo/physics/engine.py +51 -0
  110. nablapo-0.1.0/src/nablapo/physics/mjw_options.py +46 -0
  111. nablapo-0.1.0/src/nablapo/physics/warp.py +283 -0
  112. nablapo-0.1.0/src/nablapo/physics/warp_backend.py +18 -0
  113. nablapo-0.1.0/src/nablapo/policy/__init__.py +3 -0
  114. nablapo-0.1.0/src/nablapo/policy/load.py +121 -0
  115. nablapo-0.1.0/src/nablapo/policy/spec.py +55 -0
  116. nablapo-0.1.0/src/nablapo/samplers/__init__.py +4 -0
  117. nablapo-0.1.0/src/nablapo/samplers/config.py +39 -0
  118. nablapo-0.1.0/src/nablapo/samplers/probes.py +58 -0
  119. nablapo-0.1.0/src/nablapo/samplers/reset.py +60 -0
  120. nablapo-0.1.0/src/nablapo/tasks/__init__.py +1 -0
  121. nablapo-0.1.0/src/nablapo/tasks/api.py +164 -0
  122. nablapo-0.1.0/src/nablapo/tasks/bench/__init__.py +1 -0
  123. nablapo-0.1.0/src/nablapo/tasks/bench/config.py +22 -0
  124. nablapo-0.1.0/src/nablapo/tasks/bench/env.py +185 -0
  125. nablapo-0.1.0/src/nablapo/tasks/bench/evaluate.py +42 -0
  126. nablapo-0.1.0/src/nablapo/tasks/bench/task.py +48 -0
  127. nablapo-0.1.0/src/nablapo/tasks/g1/__init__.py +1 -0
  128. nablapo-0.1.0/src/nablapo/tasks/g1/dr.py +144 -0
  129. nablapo-0.1.0/src/nablapo/tasks/g1/model.py +64 -0
  130. nablapo-0.1.0/src/nablapo/tasks/g1/robot.py +109 -0
  131. nablapo-0.1.0/src/nablapo/tasks/hoi/__init__.py +8 -0
  132. nablapo-0.1.0/src/nablapo/tasks/hoi/blocks.py +134 -0
  133. nablapo-0.1.0/src/nablapo/tasks/hoi/config.py +162 -0
  134. nablapo-0.1.0/src/nablapo/tasks/hoi/env.py +742 -0
  135. nablapo-0.1.0/src/nablapo/tasks/hoi/evaluate.py +111 -0
  136. nablapo-0.1.0/src/nablapo/tasks/hoi/geometry.py +109 -0
  137. nablapo-0.1.0/src/nablapo/tasks/hoi/motion.py +133 -0
  138. nablapo-0.1.0/src/nablapo/tasks/hoi/scene.py +131 -0
  139. nablapo-0.1.0/src/nablapo/tasks/hoi/starts.py +63 -0
  140. nablapo-0.1.0/src/nablapo/tasks/hoi/task.py +111 -0
  141. nablapo-0.1.0/src/nablapo/tasks/joint/__init__.py +2 -0
  142. nablapo-0.1.0/src/nablapo/tasks/joint/config.py +84 -0
  143. nablapo-0.1.0/src/nablapo/tasks/joint/env.py +244 -0
  144. nablapo-0.1.0/src/nablapo/tasks/joint/task.py +105 -0
  145. nablapo-0.1.0/src/nablapo/tasks/joystick/__init__.py +1 -0
  146. nablapo-0.1.0/src/nablapo/tasks/joystick/config.py +128 -0
  147. nablapo-0.1.0/src/nablapo/tasks/joystick/env.py +717 -0
  148. nablapo-0.1.0/src/nablapo/tasks/joystick/evaluate.py +104 -0
  149. nablapo-0.1.0/src/nablapo/tasks/joystick/gait.py +58 -0
  150. nablapo-0.1.0/src/nablapo/tasks/joystick/task.py +104 -0
  151. nablapo-0.1.0/src/nablapo/tasks/registry.py +64 -0
  152. nablapo-0.1.0/src/nablapo/tasks/terrain/__init__.py +13 -0
  153. nablapo-0.1.0/src/nablapo/tasks/terrain/config.py +135 -0
  154. nablapo-0.1.0/src/nablapo/tasks/terrain/env.py +667 -0
  155. nablapo-0.1.0/src/nablapo/tasks/terrain/evaluate.py +214 -0
  156. nablapo-0.1.0/src/nablapo/tasks/terrain/generator.py +155 -0
  157. nablapo-0.1.0/src/nablapo/tasks/terrain/hooks.py +386 -0
  158. nablapo-0.1.0/src/nablapo/tasks/terrain/sensors.py +129 -0
  159. nablapo-0.1.0/src/nablapo/tasks/terrain/source.py +182 -0
  160. nablapo-0.1.0/src/nablapo/tasks/terrain/task.py +212 -0
  161. nablapo-0.1.0/src/nablapo/tasks/tracking/__init__.py +1 -0
  162. nablapo-0.1.0/src/nablapo/tasks/tracking/config.py +86 -0
  163. nablapo-0.1.0/src/nablapo/tasks/tracking/env.py +526 -0
  164. nablapo-0.1.0/src/nablapo/tasks/tracking/evaluate.py +139 -0
  165. nablapo-0.1.0/src/nablapo/tasks/tracking/motion.py +157 -0
  166. nablapo-0.1.0/src/nablapo/tasks/tracking/task.py +111 -0
  167. nablapo-0.1.0/src/nablapo/wm/__init__.py +33 -0
  168. nablapo-0.1.0/src/nablapo/wm/models.py +452 -0
  169. nablapo-0.1.0/src/nablapo.egg-info/PKG-INFO +194 -0
  170. nablapo-0.1.0/src/nablapo.egg-info/SOURCES.txt +191 -0
  171. nablapo-0.1.0/src/nablapo.egg-info/dependency_links.txt +1 -0
  172. nablapo-0.1.0/src/nablapo.egg-info/entry_points.txt +5 -0
  173. nablapo-0.1.0/src/nablapo.egg-info/requires.txt +30 -0
  174. nablapo-0.1.0/src/nablapo.egg-info/top_level.txt +1 -0
  175. nablapo-0.1.0/tests/test_baselines.py +108 -0
  176. nablapo-0.1.0/tests/test_config_loader.py +195 -0
  177. nablapo-0.1.0/tests/test_configs_public.py +20 -0
  178. nablapo-0.1.0/tests/test_core.py +171 -0
  179. nablapo-0.1.0/tests/test_docs.py +13 -0
  180. nablapo-0.1.0/tests/test_ext.py +35 -0
  181. nablapo-0.1.0/tests/test_hoi.py +312 -0
  182. nablapo-0.1.0/tests/test_import_graph.py +36 -0
  183. nablapo-0.1.0/tests/test_joint.py +172 -0
  184. nablapo-0.1.0/tests/test_joystick.py +191 -0
  185. nablapo-0.1.0/tests/test_model.py +20 -0
  186. nablapo-0.1.0/tests/test_models_manifest.py +39 -0
  187. nablapo-0.1.0/tests/test_policy.py +64 -0
  188. nablapo-0.1.0/tests/test_public.py +37 -0
  189. nablapo-0.1.0/tests/test_registry.py +24 -0
  190. nablapo-0.1.0/tests/test_setup_warp.py +26 -0
  191. nablapo-0.1.0/tests/test_terrain.py +317 -0
  192. nablapo-0.1.0/tests/test_tracking_env.py +57 -0
  193. nablapo-0.1.0/tests/test_verify.py +16 -0
nablapo-0.1.0/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,3 @@
1
+ # The sdist carries configs/ and patches/ for the wheel built from it (setup.py).
2
+ graft configs
3
+ graft patches
nablapo-0.1.0/NOTICE ADDED
@@ -0,0 +1,9 @@
1
+ NablaPO
2
+ Copyright 2026 The NablaPO Authors
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+ It includes or adapts third-party material, listed with its licences in THIRD_PARTY_NOTICES.md:
7
+ patches to MuJoCo Warp (Apache-2.0, The Newton Developers), constants transcribed from mjlab (Apache-2.0,
8
+ The mjlab Developers), a re-implementation following rsl_rl's PPO (BSD-3-Clause, ETH Zurich and NVIDIA) and the
9
+ tracking reward terms, observations and adaptive sampling of BeyondMimic (MIT, The Isaac Lab Project Developers).
nablapo-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,194 @@
1
+ Metadata-Version: 2.4
2
+ Name: nablapo
3
+ Version: 0.1.0
4
+ Summary: NablaPO: first-order policy optimization through exact differentiable simulators (JAX)
5
+ Author: The NablaPO Authors
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Repository, https://github.com/sailab-ai/NablaPO
8
+ Classifier: Environment :: GPU :: NVIDIA CUDA :: 12
9
+ Classifier: Intended Audience :: Science/Research
10
+ Classifier: Operating System :: POSIX :: Linux
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
13
+ Requires-Python: >=3.12
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ License-File: NOTICE
17
+ License-File: THIRD_PARTY_NOTICES.md
18
+ Requires-Dist: numpy>=2.0
19
+ Provides-Extra: jax
20
+ Requires-Dist: jax==0.12.0.1; extra == "jax"
21
+ Requires-Dist: optax==0.2.8; extra == "jax"
22
+ Requires-Dist: mujoco==3.17.0; extra == "jax"
23
+ Requires-Dist: mujoco-mjx==3.17.0; extra == "jax"
24
+ Requires-Dist: scipy>=1.11; extra == "jax"
25
+ Provides-Extra: cuda
26
+ Requires-Dist: jax[cuda12]==0.12.0.1; extra == "cuda"
27
+ Provides-Extra: engine
28
+ Requires-Dist: nablaengine[jax]==1.0.5; extra == "engine"
29
+ Provides-Extra: warp
30
+ Requires-Dist: warp-lang==1.18.0; extra == "warp"
31
+ Provides-Extra: dmc
32
+ Requires-Dist: dm_control>=1.0.20; extra == "dmc"
33
+ Provides-Extra: brax
34
+ Requires-Dist: brax>=0.12; extra == "brax"
35
+ Provides-Extra: data
36
+ Requires-Dist: huggingface_hub>=0.24; extra == "data"
37
+ Provides-Extra: checks
38
+ Requires-Dist: pytest>=8; extra == "checks"
39
+ Requires-Dist: ruff>=0.6; extra == "checks"
40
+ Dynamic: license-file
41
+
42
+ <h1 align="center">βˆ‡PO: Ultra-Efficient Policy Optimization<br>Through Environment Gradients</h1>
43
+
44
+ <p align="center"><b>Many tasks. Minutes each.</b><br>All trained with βˆ‡PO and the NablaEngine differentiable simulator, on one GPU.</p>
45
+
46
+ <p align="center">
47
+ <a href="https://arxiv.org/abs/2611.39503"><img alt="Paper" src="https://sailab.ai/nablapo/assets/readme/badge_arxiv.svg" height="36"></a>
48
+ <a href="https://sailab.ai/nablapo/"><img alt="Project page" src="https://sailab.ai/nablapo/assets/readme/badge_page.svg" height="36"></a>
49
+ <a href="https://github.com/sailab-ai/NablaEngine"><img alt="NablaEngine" src="https://sailab.ai/nablapo/assets/readme/badge_engine.svg" height="36"></a>
50
+ <a href="https://github.com/sailab-ai/NablaPO/blob/main/LICENSE"><img alt="License" src="https://sailab.ai/nablapo/assets/readme/badge_license.svg" height="36"></a>
51
+ </p>
52
+
53
+ <p align="center">
54
+ <picture>
55
+ <source media="(prefers-color-scheme: dark)" srcset="https://sailab.ai/nablapo/assets/readme/tasks_grid_dark.gif?v=2">
56
+ <img src="https://sailab.ai/nablapo/assets/readme/tasks_grid.gif?v=2" width="960" alt="Nine tasks trained with βˆ‡PO, each with its training time: joystick + motion tracking 11 min, motion tracking 5 min, velocity tracking 3 min, BONES-SEED tracking 12.4 min, multi-terrain traversal 5.6 min, humanoid-object interaction 3.2 min, climb with hands 2.8 h, approach, sit, stand up 3.8 h, climbing stairs with a depth camera 32 min">
57
+ </picture>
58
+ </p>
59
+ <p align="center"><sub>Minutes from the first update to each task's success criterion, on one GPU, mean over seeds. GPUs: A100
60
+ (joystick + tracking); RTX PRO 6000 or RTX PRO 6000-equivalent time (the others). Criteria: <a href="https://sailab.ai/nablapo/#tasks">project page</a>.</sub></p>
61
+
62
+ βˆ‡PO (NablaPO, pronounced "Napo") is a first-order policy optimization library: it backpropagates the return through an
63
+ exact differentiable simulator ([NablaEngine](https://github.com/sailab-ai/NablaEngine) or a patched MuJoCo Warp), in JAX.
64
+
65
+ ## ✨ Highlights
66
+
67
+ - **Fast.** One policy for all 40 LAFAN1 clips reaches PPO's 6-hour return in 1.2 minutes on one GPU: 220Γ— faster.
68
+ - **Scales.** One policy tracks all 129,418 motions of BONES-SEED: every one of six seeds is below 20 failed motions
69
+ within 12.4 minutes.
70
+ - **Exact gradients.** Per-sample gradient clipping and gradient-derived action targets make the simulator's own
71
+ derivatives usable on contact-rich dynamics.
72
+ - **One learner, many tasks.** Motion tracking, joystick velocity control, joint joystick and tracking, multi-terrain
73
+ locomotion, humanoid-object interaction and DeepMind Control / Brax tasks, all through one task interface.
74
+ - **Powered by NablaEngine.** 2.3M humanoid steps per second with gradients on one RTX PRO 6000.
75
+ - **World-model switch.** `[wm] mode = "backward"` replaces the simulator's derivatives with those of a world model fit
76
+ online, on every task.
77
+ - **NumPy deployment.** A released policy is a weights file and a JSON specification; it runs with NumPy alone.
78
+
79
+ ## πŸƒ βˆ‡Mimic: whole-body motion tracking on LAFAN1
80
+
81
+ <p align="center">
82
+ <img src="https://sailab.ai/nablapo/assets/readme/results_lafan1.png" width="880" alt="LAFAN1 return against training time for βˆ‡PO, InstantTrack, SuperMimic and PPO: βˆ‡PO reaches 0.866 in 4.4 minutes, 41Γ— faster than SuperMimic's reported 3 hours and 7.5Γ— faster than InstantTrack">
83
+ </p>
84
+
85
+ Training time to reach each return level: **220Γ—** faster than PPO, **41Γ—** faster than SuperMimic's reported 3 hours,
86
+ **18.7Γ—** faster than InstantTrack.
87
+
88
+ | Return level | βˆ‡PO | InstantTrack | SuperMimic | PPO |
89
+ |---|---|---|---|---|
90
+ | 0.721, PPO's return after 6 hours | **1.2 min** | 1.5 min | 16.1 min | 4.4 h |
91
+ | 0.866, SuperMimic's reported 3-hour score | **4.4 min** | 33.2 min | 3 h (paper) | not reached |
92
+ | 0.890, InstantTrack's plateau | **8.3 min** | 2.6 h | not reached | not reached |
93
+ | 0.938, βˆ‡PO's plateau | **81.4 min** | not reached | not reached | not reached |
94
+
95
+ <sub>Full-clip return over all 40 LAFAN1 clips, scored in MuJoCo Warp; after a fall the rest of the clip scores zero. 3 seeds
96
+ per method, all trained on one RTX PRO 6000. PPO: BeyondMimic's configuration, plateau 0.782. InstantTrack v1.4 and
97
+ SuperMimic: official code.</sub>
98
+
99
+ ## πŸ“ˆ BONES-SEED: 129,418 motions, learned in 12 minutes
100
+
101
+ <p align="center">
102
+ <img src="https://sailab.ai/nablapo/assets/readme/results_bones.png" width="880" alt="BONES-SEED failed motions against training minutes: βˆ‡PO has 1.4Γ— fewer failed motions than BlinkMimic 2 at 12.6 min (16.5 vs 22.5), is more than 14Γ— faster than SuperMimic and 1.2Γ— faster than BlinkMimic 2 as reported">
103
+ </p>
104
+ <sub>The full BONES-SEED library, each motion played to the end in MuJoCo Warp; failed: motions with a fall. Lines: median
105
+ over seeds; bands: the middle half. Minutes on one RTX PRO 6000 (βˆ‡PO trained on a B300, converted at the measured time per
106
+ update). BlinkMimic 2: its code and released configuration, 3 seeds; reported: from its README. SuperMimic: read from its
107
+ paper's figures. Multipliers: <a href="https://sailab.ai/nablapo/#bones">project page</a>. BONES-SEED data scripts and
108
+ training configuration: coming in 0.1.1.</sub>
109
+
110
+ ## πŸŽ›οΈ Not just humanoids: 16 control benchmarks
111
+
112
+ <p align="center">
113
+ <img src="https://sailab.ai/nablapo/assets/readme/results_bench.png" width="880" alt="Sixteen DeepMind Control and Brax tasks on one V100: minutes to 80% of peak return for βˆ‡PO and PPO on every task; 16 of 16 reach 80% of peak return faster than PPO, 14 of 16 highest final return, 16 of 16 ahead of SHAC">
114
+ </p>
115
+ <sub>Minutes: V100 training time until the median seed reaches 80% of the best mean final return among single-configuration
116
+ methods. Final return: mean over seeds of 10 deterministic episodes in the original simulator. Some tasks use settings tuned
117
+ from the unified recipe. All methods trained in NablaEngine; SHAC and AHAC with their published settings.</sub>
118
+
119
+ πŸ“„ [Paper](https://arxiv.org/abs/2611.39503) Β· 🌐 [Project page](https://sailab.ai/nablapo/) Β· βš™οΈ [NablaEngine](https://github.com/sailab-ai/NablaEngine)
120
+
121
+ ## πŸ› οΈ Installation
122
+
123
+ Linux x86_64, an NVIDIA GPU with a CUDA 12 driver, Python 3.12, and the `nvcc` of a CUDA 12.x toolkit (12.8 or newer
124
+ for Blackwell GPUs) for NablaEngine's one-time build.
125
+
126
+ ```bash
127
+ git clone https://github.com/sailab-ai/NablaPO && cd NablaPO
128
+ bash scripts/setup_env.sh # .venv: pinned versions, patched MuJoCo Warp, Menagerie's G1, NablaEngine, nablapo
129
+ source .venv/bin/activate
130
+ ```
131
+
132
+ Only the policy loader: `pip install nablapo` (NumPy only). Details: [docs/installation.md](https://github.com/sailab-ai/NablaPO/blob/main/docs/installation.md).
133
+
134
+ ## πŸš€ Quick start
135
+
136
+ ```bash
137
+ export XLA_PYTHON_CLIENT_PREALLOCATE=false
138
+ nablapo-train configs/bench/default.toml --out runs/cheetah --set task.env=cheetah-run # DeepMind Control
139
+
140
+ bash scripts/download_lafan1.sh && export LAFAN1_G1_DIR=$PWD/data/lafan1_g1 # LAFAN1 (CC BY-NC-ND 4.0)
141
+ nablapo-train configs/demos/tracking_lafan1.toml --out runs/tracking # G1 motion tracking
142
+ nablapo-train configs/demos/joystick_early.toml --out runs/joystick # G1 velocity commands
143
+
144
+ nablapo-eval runs/tracking # evaluate checkpoints -> runs/tracking/eval_*.json
145
+ nablapo-export-policy runs/joystick --out release/joystick # actor.npz + policy_spec.json
146
+ ```
147
+
148
+ Options after the config override it (`--set run.seed=1`); a stopped run continues with `nablapo-train --out DIR
149
+ --resume latest`. The demos and their results: [docs/demos.md](https://github.com/sailab-ai/NablaPO/blob/main/docs/demos.md).
150
+
151
+ ## πŸ€– Deployment
152
+
153
+ ```python
154
+ import nablapo.policy
155
+
156
+ pol = nablapo.policy.load("release/joystick") # NumPy only, no simulator
157
+ a = pol.act(history, goal) # observation history and goal -> action
158
+ q = pol.targets(a) # joint setpoints for the PD controller
159
+ ```
160
+
161
+ The observation layout, PD gains, joint order and control timestep are in `policy_spec.json`
162
+ ([docs/policy.md](https://github.com/sailab-ai/NablaPO/blob/main/docs/policy.md)). The released policies (the joystick base and the 16 bench policies) follow in a
163
+ later release; `src/nablapo/data/models.toml` lists them with the sha256 of every file.
164
+
165
+ ## πŸ“š Documentation
166
+
167
+ [docs/README.md](https://github.com/sailab-ai/NablaPO/blob/main/docs/README.md): installation, configuration, writing a task, each task family, the learner,
168
+ samplers, WM mode, evaluation, policy format, extensions, and the public API ([docs/api.md](https://github.com/sailab-ai/NablaPO/blob/main/docs/api.md)).
169
+
170
+ ## πŸ“ Citation
171
+
172
+ ```bibtex
173
+ @article{lu2026nablapo,
174
+ title = {$\nabla$PO: Ultra-Efficient Policy Optimization Through Environment Gradients},
175
+ author = {Lu, Weyl and Zhu, Gao and Lai, Weijie and Xia, Zaishuo and Chen, Yubei},
176
+ journal = {arXiv preprint arXiv:2611.39503},
177
+ year = {2026}
178
+ }
179
+
180
+ @article{lu2026nablamimic,
181
+ title = {$\nabla$Mimic: Ultra-Efficient Humanoid Control with Differentiable Simulation},
182
+ author = {Lu, Weyl and Chen, Yubei},
183
+ journal = {arXiv preprint arXiv:2610.41654},
184
+ year = {2026}
185
+ }
186
+ ```
187
+
188
+ ## πŸ™ Acknowledgments
189
+
190
+ Policy averaging, residual actions and the structured residual world model of the WM mode (`it`) with its mirror augmentation follow [InstantTrack](https://github.com/Huy-Quang-Dao/instantTrack).
191
+
192
+ ## πŸ“„ License
193
+
194
+ Apache License 2.0 (`LICENSE`, `NOTICE`); third-party code, models and data: `THIRD_PARTY_NOTICES.md`.
@@ -0,0 +1,153 @@
1
+ <h1 align="center">βˆ‡PO: Ultra-Efficient Policy Optimization<br>Through Environment Gradients</h1>
2
+
3
+ <p align="center"><b>Many tasks. Minutes each.</b><br>All trained with βˆ‡PO and the NablaEngine differentiable simulator, on one GPU.</p>
4
+
5
+ <p align="center">
6
+ <a href="https://arxiv.org/abs/2611.39503"><img alt="Paper" src="https://sailab.ai/nablapo/assets/readme/badge_arxiv.svg" height="36"></a>
7
+ <a href="https://sailab.ai/nablapo/"><img alt="Project page" src="https://sailab.ai/nablapo/assets/readme/badge_page.svg" height="36"></a>
8
+ <a href="https://github.com/sailab-ai/NablaEngine"><img alt="NablaEngine" src="https://sailab.ai/nablapo/assets/readme/badge_engine.svg" height="36"></a>
9
+ <a href="https://github.com/sailab-ai/NablaPO/blob/main/LICENSE"><img alt="License" src="https://sailab.ai/nablapo/assets/readme/badge_license.svg" height="36"></a>
10
+ </p>
11
+
12
+ <p align="center">
13
+ <picture>
14
+ <source media="(prefers-color-scheme: dark)" srcset="assets/tasks_grid_dark.gif">
15
+ <img src="assets/tasks_grid.gif" width="1080" alt="Nine tasks trained with βˆ‡PO, each with its training time: joystick + motion tracking 11 min, motion tracking 5 min, velocity tracking 3 min, BONES-SEED tracking 12.4 min, multi-terrain traversal 5.6 min, humanoid-object interaction 3.2 min, climb with hands 2.8 h, approach, sit, stand up 3.8 h, climbing stairs with a depth camera 32 min">
16
+ </picture>
17
+ </p>
18
+ <p align="center"><sub>Minutes from the first update to each task's success criterion, on one GPU, mean over seeds. GPUs: A100
19
+ (joystick + tracking); RTX PRO 6000 or RTX PRO 6000-equivalent time (the others). Criteria: <a href="https://sailab.ai/nablapo/#tasks">project page</a>.</sub></p>
20
+
21
+ βˆ‡PO (NablaPO, pronounced "Napo") is a first-order policy optimization library: it backpropagates the return through an
22
+ exact differentiable simulator ([NablaEngine](https://github.com/sailab-ai/NablaEngine) or a patched MuJoCo Warp), in JAX.
23
+
24
+ ## ✨ Highlights
25
+
26
+ - **Fast.** One policy for all 40 LAFAN1 clips reaches PPO's 6-hour return in 1.2 minutes on one GPU: 220Γ— faster.
27
+ - **Scales.** One policy tracks all 129,418 motions of BONES-SEED: every one of six seeds is below 20 failed motions
28
+ within 12.4 minutes.
29
+ - **Exact gradients.** Per-sample gradient clipping and gradient-derived action targets make the simulator's own
30
+ derivatives usable on contact-rich dynamics.
31
+ - **One learner, many tasks.** Motion tracking, joystick velocity control, joint joystick and tracking, multi-terrain
32
+ locomotion, humanoid-object interaction and DeepMind Control / Brax tasks, all through one task interface.
33
+ - **Powered by NablaEngine.** 2.3M humanoid steps per second with gradients on one RTX PRO 6000.
34
+ - **World-model switch.** `[wm] mode = "backward"` replaces the simulator's derivatives with those of a world model fit
35
+ online, on every task.
36
+ - **NumPy deployment.** A released policy is a weights file and a JSON specification; it runs with NumPy alone.
37
+
38
+ ## πŸƒ βˆ‡Mimic: whole-body motion tracking on LAFAN1
39
+
40
+ <p align="center">
41
+ <img src="https://sailab.ai/nablapo/assets/readme/results_lafan1.png" width="880" alt="LAFAN1 return against training time for βˆ‡PO, InstantTrack, SuperMimic and PPO: βˆ‡PO reaches 0.866 in 4.4 minutes, 41Γ— faster than SuperMimic's reported 3 hours and 7.5Γ— faster than InstantTrack">
42
+ </p>
43
+
44
+ Training time to reach each return level: **220Γ—** faster than PPO, **41Γ—** faster than SuperMimic's reported 3 hours,
45
+ **18.7Γ—** faster than InstantTrack.
46
+
47
+ | Return level | βˆ‡PO | InstantTrack | SuperMimic | PPO |
48
+ |---|---|---|---|---|
49
+ | 0.721, PPO's return after 6 hours | **1.2 min** | 1.5 min | 16.1 min | 4.4 h |
50
+ | 0.866, SuperMimic's reported 3-hour score | **4.4 min** | 33.2 min | 3 h (paper) | not reached |
51
+ | 0.890, InstantTrack's plateau | **8.3 min** | 2.6 h | not reached | not reached |
52
+ | 0.938, βˆ‡PO's plateau | **81.4 min** | not reached | not reached | not reached |
53
+
54
+ <sub>Full-clip return over all 40 LAFAN1 clips, scored in MuJoCo Warp; after a fall the rest of the clip scores zero. 3 seeds
55
+ per method, all trained on one RTX PRO 6000. PPO: BeyondMimic's configuration, plateau 0.782. InstantTrack v1.4 and
56
+ SuperMimic: official code.</sub>
57
+
58
+ ## πŸ“ˆ BONES-SEED: 129,418 motions, learned in 12 minutes
59
+
60
+ <p align="center">
61
+ <img src="https://sailab.ai/nablapo/assets/readme/results_bones.png" width="880" alt="BONES-SEED failed motions against training minutes: βˆ‡PO has 1.4Γ— fewer failed motions than BlinkMimic 2 at 12.6 min (16.5 vs 22.5), is more than 14Γ— faster than SuperMimic and 1.2Γ— faster than BlinkMimic 2 as reported">
62
+ </p>
63
+ <sub>The full BONES-SEED library, each motion played to the end in MuJoCo Warp; failed: motions with a fall. Lines: median
64
+ over seeds; bands: the middle half. Minutes on one RTX PRO 6000 (βˆ‡PO trained on a B300, converted at the measured time per
65
+ update). BlinkMimic 2: its code and released configuration, 3 seeds; reported: from its README. SuperMimic: read from its
66
+ paper's figures. Multipliers: <a href="https://sailab.ai/nablapo/#bones">project page</a>. BONES-SEED data scripts and
67
+ training configuration: coming in 0.1.1.</sub>
68
+
69
+ ## πŸŽ›οΈ Not just humanoids: 16 control benchmarks
70
+
71
+ <p align="center">
72
+ <img src="https://sailab.ai/nablapo/assets/readme/results_bench.png" width="880" alt="Sixteen DeepMind Control and Brax tasks on one V100: minutes to 80% of peak return for βˆ‡PO and PPO on every task; 16 of 16 reach 80% of peak return faster than PPO, 14 of 16 highest final return, 16 of 16 ahead of SHAC">
73
+ </p>
74
+ <sub>Minutes: V100 training time until the median seed reaches 80% of the best mean final return among single-configuration
75
+ methods. Final return: mean over seeds of 10 deterministic episodes in the original simulator. Some tasks use settings tuned
76
+ from the unified recipe. All methods trained in NablaEngine; SHAC and AHAC with their published settings.</sub>
77
+
78
+ πŸ“„ [Paper](https://arxiv.org/abs/2611.39503) Β· 🌐 [Project page](https://sailab.ai/nablapo/) Β· βš™οΈ [NablaEngine](https://github.com/sailab-ai/NablaEngine)
79
+
80
+ ## πŸ› οΈ Installation
81
+
82
+ Linux x86_64, an NVIDIA GPU with a CUDA 12 driver, Python 3.12, and the `nvcc` of a CUDA 12.x toolkit (12.8 or newer
83
+ for Blackwell GPUs) for NablaEngine's one-time build.
84
+
85
+ ```bash
86
+ git clone https://github.com/sailab-ai/NablaPO && cd NablaPO
87
+ bash scripts/setup_env.sh # .venv: pinned versions, patched MuJoCo Warp, Menagerie's G1, NablaEngine, nablapo
88
+ source .venv/bin/activate
89
+ ```
90
+
91
+ Only the policy loader: `pip install nablapo` (NumPy only). Details: [docs/installation.md](https://github.com/sailab-ai/NablaPO/blob/main/docs/installation.md).
92
+
93
+ ## πŸš€ Quick start
94
+
95
+ ```bash
96
+ export XLA_PYTHON_CLIENT_PREALLOCATE=false
97
+ nablapo-train configs/bench/default.toml --out runs/cheetah --set task.env=cheetah-run # DeepMind Control
98
+
99
+ bash scripts/download_lafan1.sh && export LAFAN1_G1_DIR=$PWD/data/lafan1_g1 # LAFAN1 (CC BY-NC-ND 4.0)
100
+ nablapo-train configs/demos/tracking_lafan1.toml --out runs/tracking # G1 motion tracking
101
+ nablapo-train configs/demos/joystick_early.toml --out runs/joystick # G1 velocity commands
102
+
103
+ nablapo-eval runs/tracking # evaluate checkpoints -> runs/tracking/eval_*.json
104
+ nablapo-export-policy runs/joystick --out release/joystick # actor.npz + policy_spec.json
105
+ ```
106
+
107
+ Options after the config override it (`--set run.seed=1`); a stopped run continues with `nablapo-train --out DIR
108
+ --resume latest`. The demos and their results: [docs/demos.md](https://github.com/sailab-ai/NablaPO/blob/main/docs/demos.md).
109
+
110
+ ## πŸ€– Deployment
111
+
112
+ ```python
113
+ import nablapo.policy
114
+
115
+ pol = nablapo.policy.load("release/joystick") # NumPy only, no simulator
116
+ a = pol.act(history, goal) # observation history and goal -> action
117
+ q = pol.targets(a) # joint setpoints for the PD controller
118
+ ```
119
+
120
+ The observation layout, PD gains, joint order and control timestep are in `policy_spec.json`
121
+ ([docs/policy.md](https://github.com/sailab-ai/NablaPO/blob/main/docs/policy.md)). The released policies (the joystick base and the 16 bench policies) follow in a
122
+ later release; `src/nablapo/data/models.toml` lists them with the sha256 of every file.
123
+
124
+ ## πŸ“š Documentation
125
+
126
+ [docs/README.md](https://github.com/sailab-ai/NablaPO/blob/main/docs/README.md): installation, configuration, writing a task, each task family, the learner,
127
+ samplers, WM mode, evaluation, policy format, extensions, and the public API ([docs/api.md](https://github.com/sailab-ai/NablaPO/blob/main/docs/api.md)).
128
+
129
+ ## πŸ“ Citation
130
+
131
+ ```bibtex
132
+ @article{lu2026nablapo,
133
+ title = {$\nabla$PO: Ultra-Efficient Policy Optimization Through Environment Gradients},
134
+ author = {Lu, Weyl and Zhu, Gao and Lai, Weijie and Xia, Zaishuo and Chen, Yubei},
135
+ journal = {arXiv preprint arXiv:2611.39503},
136
+ year = {2026}
137
+ }
138
+
139
+ @article{lu2026nablamimic,
140
+ title = {$\nabla$Mimic: Ultra-Efficient Humanoid Control with Differentiable Simulation},
141
+ author = {Lu, Weyl and Chen, Yubei},
142
+ journal = {arXiv preprint arXiv:2610.41654},
143
+ year = {2026}
144
+ }
145
+ ```
146
+
147
+ ## πŸ™ Acknowledgments
148
+
149
+ Policy averaging, residual actions and the structured residual world model of the WM mode (`it`) with its mirror augmentation follow [InstantTrack](https://github.com/Huy-Quang-Dao/instantTrack).
150
+
151
+ ## πŸ“„ License
152
+
153
+ Apache License 2.0 (`LICENSE`, `NOTICE`); third-party code, models and data: `THIRD_PARTY_NOTICES.md`.