sequence-ai 0.62.2__tar.gz → 0.63.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 (258) hide show
  1. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/PKG-INFO +68 -98
  2. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/README.md +64 -92
  3. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/THIRD_PARTY_NOTICES.md +11 -5
  4. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/eval.md +1 -1
  5. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/platform.md +37 -41
  6. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/pyproject.toml +4 -4
  7. sequence_ai-0.63.0/seq/_replay_player/licenses/OFL-commissioner.txt +93 -0
  8. sequence_ai-0.63.0/seq/_replay_player/licenses/OFL-geist.txt +93 -0
  9. sequence_ai-0.63.0/seq/_replay_player/licenses/OFL-jetbrains-mono.txt +93 -0
  10. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/MANIFEST.json +13 -13
  11. sequence_ai-0.62.2/seq/_replay_player/player/assets/eval-player.bab69a0f0e83.js → sequence_ai-0.63.0/seq/_replay_player/player/assets/eval-player.817cbea2c156.js +1 -1
  12. sequence_ai-0.62.2/seq/_replay_player/player/assets/eval-report.4268b880981d.js → sequence_ai-0.63.0/seq/_replay_player/player/assets/eval-report.d40f5740af37.js +1 -1
  13. sequence_ai-0.62.2/seq/_replay_player/player/assets/eval-run-steps.d8c5b80df1f2.js → sequence_ai-0.63.0/seq/_replay_player/player/assets/eval-run-steps.ea92afdbd814.js +1 -1
  14. sequence_ai-0.62.2/seq/_replay_player/player/assets/explain.1cee0f1fd0bf.js → sequence_ai-0.63.0/seq/_replay_player/player/assets/explain.a38a89467f36.js +1 -1
  15. sequence_ai-0.63.0/seq/_replay_player/player/assets/explanations.39ee6ce82ee8.js +1 -0
  16. sequence_ai-0.62.2/seq/_replay_player/player/assets/gpu-reasons.fe49826297ad.js → sequence_ai-0.63.0/seq/_replay_player/player/assets/gpu-reasons.1230e607e569.js +1 -1
  17. sequence_ai-0.62.2/seq/_replay_player/player/assets/logfold.e26396f977b3.js → sequence_ai-0.63.0/seq/_replay_player/player/assets/logfold.9e76fe789745.js +1 -1
  18. sequence_ai-0.62.2/seq/_replay_player/player/assets/logrow.e7b2b335d55e.js → sequence_ai-0.63.0/seq/_replay_player/player/assets/logrow.70165a62bc5e.js +1 -1
  19. sequence_ai-0.62.2/seq/_replay_player/player/assets/logsteps.4161a518d623.js → sequence_ai-0.63.0/seq/_replay_player/player/assets/logsteps.215482e4323f.js +1 -1
  20. sequence_ai-0.62.2/seq/_replay_player/player/assets/logview.e02664204c63.js → sequence_ai-0.63.0/seq/_replay_player/player/assets/logview.f36b084f6266.js +1 -1
  21. sequence_ai-0.62.2/seq/_replay_player/player/assets/tabs.6eefd05dbbcf.js → sequence_ai-0.63.0/seq/_replay_player/player/assets/tabs.b7fcc0cd6644.js +1 -1
  22. sequence_ai-0.62.2/seq/_replay_player/player/assets/tick.10ddfab4d017.js → sequence_ai-0.63.0/seq/_replay_player/player/assets/tick.e2e4dacfce52.js +1 -1
  23. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/capacity_cli.py +5 -5
  24. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/cli.py +5 -1
  25. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/cli_parser.py +27 -7
  26. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/deploy_cli.py +9 -10
  27. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/errors.py +1 -1
  28. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/eval_cli.py +5 -5
  29. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/gpu_cli.py +71 -3
  30. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/ops_cli.py +1 -1
  31. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/registry.py +4 -4
  32. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/robot_cli.py +1 -1
  33. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/shell_cli.py +3 -4
  34. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/upgrade_cli.py +2 -2
  35. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/__init__.py +128 -7
  36. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/direct.py +18 -16
  37. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/mock_gate.py +1 -1
  38. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/transport.py +18 -6
  39. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/act/policy.py +3 -3
  40. sequence_ai-0.63.0/sequence_ai/check.py +451 -0
  41. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/engine/__init__.py +3 -0
  42. sequence_ai-0.63.0/sequence_ai/engine/openpi.py +77 -0
  43. sequence_ai-0.63.0/sequence_ai/engine/serve.py +626 -0
  44. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/engine/slack.py +1 -1
  45. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/gpu.py +164 -21
  46. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/network/__init__.py +12 -3
  47. sequence_ai-0.63.0/sequence_ai/network/bind.py +103 -0
  48. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/network/compress.py +35 -17
  49. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/network/frames.py +137 -2
  50. sequence_ai-0.63.0/sequence_ai/network/lines.py +250 -0
  51. sequence_ai-0.63.0/sequence_ai/network/link.py +519 -0
  52. sequence_ai-0.63.0/sequence_ai/network/loop.py +94 -0
  53. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/network/msgpack_io.py +19 -2
  54. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/network/one_write.py +1 -1
  55. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/network/wifi_power.py +41 -6
  56. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/network/window.py +19 -4
  57. sequence_ai-0.62.2/seq/_replay_player/player/assets/explanations.490f857ee179.js +0 -1
  58. sequence_ai-0.62.2/sequence_ai/network/link.py +0 -159
  59. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/.gitignore +0 -0
  60. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/LICENSE +0 -0
  61. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/NOTICE +0 -0
  62. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/observability.md +0 -0
  63. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/__init__.py +0 -0
  64. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/__main__.py +0 -0
  65. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_account.py +0 -0
  66. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_deploy_gateway.py +0 -0
  67. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_eval_gateway.py +0 -0
  68. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_gateway.py +0 -0
  69. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_http.py +0 -0
  70. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_observe_gateway.py +0 -0
  71. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_partial.py +0 -0
  72. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/__init__.py +0 -0
  73. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/cli.py +0 -0
  74. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/page.html +0 -0
  75. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/page.js +0 -0
  76. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/ago.a1bfba2d21a0.js +0 -0
  77. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/app-2.238b204a553e.css +0 -0
  78. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/app-3.6c02724169d5.css +0 -0
  79. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/app.afc8f10efe6e.css +0 -0
  80. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/clipboard.12b174749dd6.js +0 -0
  81. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/eval-cameras.a7a9e89b9e7e.js +0 -0
  82. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/eval-owners.59f2bae8e469.js +0 -0
  83. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/eval-page.f182d8a97489.css +0 -0
  84. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/eval-player.338c79beeb60.css +0 -0
  85. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/eval-record.081ae8c6af29.js +0 -0
  86. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/eval-status.03a5ee25baf0.js +0 -0
  87. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/fonts/commissioner-latin-ext.d1fbf3b46763.woff2 +0 -0
  88. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/fonts/commissioner-latin.e3036f0bf160.woff2 +0 -0
  89. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/fonts/geist-latin-ext.58a6b173d5ca.woff2 +0 -0
  90. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/fonts/geist-latin.9b6f5ff45b27.woff2 +0 -0
  91. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/fonts/jetbrains-mono-latin-ext.9c38cb2d0d2d.woff2 +0 -0
  92. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/fonts/jetbrains-mono-latin.2c32b9b3ee35.woff2 +0 -0
  93. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/fonts.e2eb32df5b26.css +0 -0
  94. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/globe-empty.svg +0 -0
  95. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/globe-head.svg +0 -0
  96. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/globe.b33360481339.css +0 -0
  97. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/h264-mp4.abcd10492376.js +0 -0
  98. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/icons.e3d1ddbc39d8.js +0 -0
  99. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/loghist.1e81a24a1036.js +0 -0
  100. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/logline.3085ab1b47b4.js +0 -0
  101. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/logparts.e955b939f4e0.js +0 -0
  102. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/logview.5ed0e3881673.css +0 -0
  103. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/motion.0730fc7d0fdb.js +0 -0
  104. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/msgpack.a8d98de31cc9.js +0 -0
  105. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/params.959b062dcf75.css +0 -0
  106. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/replay-format.040cfa7a6685.js +0 -0
  107. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/replay-viewer.7040e0a645a1.js +0 -0
  108. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/select.96281e97aa83.js +0 -0
  109. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/select.f24c7280310b.css +0 -0
  110. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/style.c8b20a792ccb.css +0 -0
  111. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/tabs.c9eea69d79a0.css +0 -0
  112. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/vendor/fzstd/LICENSE.txt +0 -0
  113. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/vendor/fzstd/fzstd.1a901fc5a58c.mjs +0 -0
  114. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/vendor/three/LICENSE.txt +0 -0
  115. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/vendor/three/addons/controls/OrbitControls.59b93f9eba26.js +0 -0
  116. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/vendor/three/addons/environments/RoomEnvironment.ffa46e479387.js +0 -0
  117. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/vendor/three/addons/loaders/GLTFLoader.81fa8137c127.js +0 -0
  118. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/vendor/three/addons/utils/BufferGeometryUtils.e3e4fdc097b7.js +0 -0
  119. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/vendor/three/addons/utils/SkeletonUtils.e8896ea38ab1.js +0 -0
  120. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/vendor/three/three.core.9edde002b066.js +0 -0
  121. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/vendor/three/three.module.31ae09de1193.js +0 -0
  122. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/view-as.9229ceb352c4.js +0 -0
  123. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/when.221f557f9b44.js +0 -0
  124. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/player/assets/zoom.1f945e545235.js +0 -0
  125. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/read.py +0 -0
  126. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/server.py +0 -0
  127. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/_replay_player/sources.py +0 -0
  128. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/adapter.py +0 -0
  129. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/adapter_check.py +0 -0
  130. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/adapter_cli.py +0 -0
  131. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/audit_cli.py +0 -0
  132. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/base.py +0 -0
  133. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/benchmark.py +0 -0
  134. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/benchmark_cancel_cli.py +0 -0
  135. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/benchmark_registry.py +0 -0
  136. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/benchmark_rm_cli.py +0 -0
  137. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/benchmark_source_cli.py +0 -0
  138. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/billing_cli.py +0 -0
  139. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/cli_json.py +0 -0
  140. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/clock.py +0 -0
  141. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/code_bundle.py +0 -0
  142. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/columns.py +0 -0
  143. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/data_cli.py +0 -0
  144. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/deploy.py +0 -0
  145. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/deployments_cli.py +0 -0
  146. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/deps_cost.py +0 -0
  147. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/discover.py +0 -0
  148. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/eval.py +0 -0
  149. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/human.py +0 -0
  150. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/image.py +0 -0
  151. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/key_cli.py +0 -0
  152. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/line_diff.py +0 -0
  153. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/listing.py +0 -0
  154. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/loading.py +0 -0
  155. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/login_cli.py +0 -0
  156. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/logs_cli.py +0 -0
  157. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/machines_cli.py +0 -0
  158. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/manage_cli.py +0 -0
  159. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/named.py +0 -0
  160. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/params.py +0 -0
  161. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/parts.py +0 -0
  162. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/person_cli.py +0 -0
  163. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/policy.py +0 -0
  164. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/port/__init__.py +0 -0
  165. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/port/check.py +0 -0
  166. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/port/cli.py +0 -0
  167. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/port/errors.py +0 -0
  168. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/port/export.py +0 -0
  169. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/port/motion.py +0 -0
  170. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/port/mujoco.py +0 -0
  171. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/port/sapien.py +0 -0
  172. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/port/scaffold.py +0 -0
  173. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/project_deps.py +0 -0
  174. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/replay.py +0 -0
  175. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/run_logs.py +0 -0
  176. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/safe_path.py +0 -0
  177. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/safety.py +0 -0
  178. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/secret.py +0 -0
  179. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/selection.py +0 -0
  180. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/settings_cli.py +0 -0
  181. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/source.py +0 -0
  182. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/storage_cli.py +0 -0
  183. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/storage_note.py +0 -0
  184. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/template_fetch.py +0 -0
  185. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/terminal.py +0 -0
  186. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/units.py +0 -0
  187. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/usage_hist.py +0 -0
  188. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/volume.py +0 -0
  189. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/volume_upload.py +0 -0
  190. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq/weights.py +0 -0
  191. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/seq_launch.py +0 -0
  192. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/__init__.py +0 -0
  193. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/act_size.py +0 -0
  194. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/blocks.py +0 -0
  195. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/capacity.py +0 -0
  196. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/catalogue.py +0 -0
  197. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/compress.py +0 -0
  198. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/connect_trace.py +0 -0
  199. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/diagnostics.py +0 -0
  200. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/direct_episode.py +0 -0
  201. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/direct_observe.py +0 -0
  202. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/encode.py +0 -0
  203. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/error_codes.py +0 -0
  204. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/gil.py +0 -0
  205. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/heartbeat.py +0 -0
  206. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/late.py +0 -0
  207. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/latency_stats.py +0 -0
  208. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/login.py +0 -0
  209. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/logsource.py +0 -0
  210. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/marked_observe.py +0 -0
  211. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/money.py +0 -0
  212. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/msgpack_io.py +0 -0
  213. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/names.py +0 -0
  214. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/observe_stream.py +0 -0
  215. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/outside.py +0 -0
  216. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/pinned_tls.py +0 -0
  217. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/recorder.py +0 -0
  218. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/reporting.py +0 -0
  219. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/rid.py +0 -0
  220. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/seat.py +0 -0
  221. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/stale.py +0 -0
  222. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/teleop.py +0 -0
  223. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/teleop_clock.py +0 -0
  224. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/teleop_direct.py +0 -0
  225. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/teleop_link.py +0 -0
  226. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/teleop_record.py +0 -0
  227. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/teleop_robot.py +0 -0
  228. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/teleop_video.py +0 -0
  229. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/warn.py +0 -0
  230. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/wifi_power.py +0 -0
  231. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/worker_link.py +0 -0
  232. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/worker_stream.py +0 -0
  233. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/_core/worker_transport.py +0 -0
  234. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/act/__init__.py +0 -0
  235. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/act/teleop_handle.py +0 -0
  236. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/act/types.py +0 -0
  237. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/act/waits.py +0 -0
  238. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/chat/__init__.py +0 -0
  239. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/chat/content.py +0 -0
  240. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/chat/conversation.py +0 -0
  241. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/chat/infer.py +0 -0
  242. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/chat/types.py +0 -0
  243. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/decide/__init__.py +0 -0
  244. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/decide/infer.py +0 -0
  245. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/decide/types.py +0 -0
  246. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/engine/batcher.py +0 -0
  247. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/engine/cuda_graphs.py +0 -0
  248. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/engine/replicas.py +0 -0
  249. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/errors.py +0 -0
  250. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/markers.py +0 -0
  251. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/network/_warn.py +0 -0
  252. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/network/compressed.py +0 -0
  253. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/network/latency_stats.py +0 -0
  254. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/network/lerobot.py +0 -0
  255. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/network/openpi.py +0 -0
  256. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/network/ping.py +0 -0
  257. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/network/tcp_link.py +0 -0
  258. {sequence_ai-0.62.2 → sequence_ai-0.63.0}/sequence_ai/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: sequence-ai
3
- Version: 0.62.2
3
+ Version: 0.63.0
4
4
  Summary: The inference and benchmark platform for physical AI: deploy a robot policy, run it on your robot, score it.
5
5
  Project-URL: Homepage, https://generalsequences.com
6
6
  Project-URL: Documentation, https://generalsequences.com/docs/
@@ -29,12 +29,12 @@ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
29
29
  Classifier: Typing :: Typed
30
30
  Requires-Python: >=3.9
31
31
  Requires-Dist: httpx<1,>=0.24
32
+ Requires-Dist: numpy>=1.24
32
33
  Requires-Dist: pillow>=10
33
34
  Requires-Dist: pydantic>=2; python_version >= '3.10'
34
35
  Requires-Dist: sequence-base<0.9,>=0.8.12; python_version >= '3.10'
35
- Provides-Extra: arrays
36
- Requires-Dist: numpy>=1.24; extra == 'arrays'
37
- Requires-Dist: zstandard>=0.22; extra == 'arrays'
36
+ Requires-Dist: uvicorn<1,>=0.30
37
+ Requires-Dist: zstandard>=0.22
38
38
  Provides-Extra: data
39
39
  Requires-Dist: av>=17; (python_version >= '3.10') and extra == 'data'
40
40
  Requires-Dist: numpy>=1.24; extra == 'data'
@@ -64,8 +64,6 @@ Provides-Extra: port
64
64
  Requires-Dist: mujoco-warp==3.15.0; (python_version >= '3.10') and extra == 'port'
65
65
  Requires-Dist: mujoco==3.15.0; (python_version >= '3.10') and extra == 'port'
66
66
  Requires-Dist: sapien==3.0.3; (python_version >= '3.10' and platform_machine != 'aarch64') and extra == 'port'
67
- Provides-Extra: server
68
- Requires-Dist: uvicorn<1,>=0.30; extra == 'server'
69
67
  Provides-Extra: teleop
70
68
  Requires-Dist: aiortc<1.17,>=1.16; (python_version >= '3.11') and extra == 'teleop'
71
69
  Requires-Dist: av>=17; (python_version >= '3.11') and extra == 'teleop'
@@ -86,9 +84,10 @@ Description-Content-Type: text/markdown
86
84
  <a href="https://github.com/General-Sequences/sequence-ai/blob/main/LICENSE"><img alt="license: Apache-2.0" src="https://img.shields.io/badge/license-Apache--2.0-15775C?style=flat-square"></a>
87
85
  </p>
88
86
 
89
- `sequence-ai` is an open-source SDK for serving robot policies from remote GPUs over wide-area networks (WANs). It
90
- supports all open-source robot policies. It runs on your own GPU, or on one rented from
91
- [General Sequences](https://generalsequences.com) near your robot: on the robot, only what `connect()` is given changes.
87
+ `sequence-ai` is an open-source framework for serving robot policies from remote GPUs over wide-area networks (WANs). It
88
+ is used with openpi, LeRobot, GR00T and Octo policies, and with any policy given as a function. It runs on your own
89
+ GPU, or on one rented from [General Sequences](https://generalsequences.com) near your robot: on the robot, only what
90
+ `connect()` is given changes.
92
91
 
93
92
  Give it a policy server and a robot. On the GPU, it replays the module a model calls many times per inference from CUDA
94
93
  graphs, with exactly the same outputs, and batches several robots' requests within the slack their action chunks
@@ -104,34 +103,45 @@ Wide-Area Network). Each component is one file that can be added to existing cod
104
103
  <a href="#inference-layer">Inference layer</a> ·
105
104
  <a href="#network-layer">Network layer</a> ·
106
105
  <a href="#results">Results</a> ·
107
- <a href="#limitations">Limitations</a> ·
108
106
  <a href="#documentation">Docs</a>
109
107
  </p>
110
108
 
111
109
  ## Install
112
110
 
113
111
  ```bash
114
- pip install sequence-ai # the robot's client, the seq command, every component
115
- pip install "sequence-ai[server,arrays]" # and uvicorn, numpy, zstandard: the quick start's server
112
+ pip install sequence-ai # both sides: serve() on the GPU, connect() on the robot, every component, the seq command
116
113
  ```
117
114
 
118
- Python 3.9 or later for the client and the components, on Linux and macOS; the `seq` command needs Python 3.10 or
115
+ One package, two parts: the open-source framework (`serve()`, `connect()` to an address, `sequence_ai.engine`,
116
+ `sequence_ai.network`) and the client of General Sequences' GPUs and hosted deployments (`seq`, `sequence_ai.gpu`,
117
+ `connect()` to a deployment's name). Python 3.9 or later for the client and the components, on Linux and macOS; the `seq` command needs Python 3.10 or
119
118
  later. `cuda_graphs` uses the torch your model already has (2.4 or later). Each component is one file, and most import
120
119
  only the standard library, so copying a file into your project works as well.
121
120
 
122
121
  ## Quick start
123
122
 
124
- On the robot, one call applies the client-side network components to one connection:
123
+ On the GPU, one call serves your model, given as a function:
125
124
 
126
125
  ```python
127
126
  import sequence_ai
128
127
 
128
+ sequence_ai.serve(policy_user, port=8000, example=observation_user) # policy_user(observation) -> what the robot needs
129
+ ```
130
+
131
+ On the robot, one call connects to it:
132
+
133
+ ```python
129
134
  with sequence_ai.connect("http://your-gpu:8000") as policy_user: # BBR, TCP keepalive, a ping while idle, msgpack
130
135
  policy_user.observe({"image": frame_user, "state": state_user})
131
136
  actions_user = policy_user.act()["actions"]
132
137
  ```
133
138
 
134
- On the GPU, the inference components wrap the model you already have:
139
+ Both sides' defaults are on: pictures go as JPEG, large arrays are compressed where that saves time, the policy runs on
140
+ a thread of its own and is warmed up before the server says it is ready.
141
+ [What is on by default](https://github.com/General-Sequences/sequence-ai/blob/main/docs/what-is-on-by-default.md) lists each part and how to turn it off, and
142
+ `python -m sequence_ai.check http://your-gpu:8000` says which are on.
143
+
144
+ In a server of your own, the inference components wrap the model you already have:
135
145
 
136
146
  ```python
137
147
  from sequence_ai.engine import cuda_graphs
@@ -162,11 +172,14 @@ request 0: 8 actions of 7 numbers, the first [128. 128. 128.]
162
172
 
163
173
  ## Three ways to run it
164
174
 
165
- | | Whose GPU | What you run on it | On the robot |
166
- |---|---|---|---|
167
- | **Your own server** | Yours, or any GPU the robot can reach | Your policy server, with the components you add | `connect("http://your-gpu:8000")` |
168
- | **A GPU near your robot** | One rented from General Sequences, by city | The same server | `connect("http://<its address>:8000")` |
169
- | **A hosted deployment** | General Sequences' | Nothing: the platform builds your policy, serves it and scores it | `connect("my_policy_user")` |
175
+ The code is the same on all three: `serve(policy)` on the GPU, `connect(...)` on the robot. Only where the GPU comes
176
+ from changes.
177
+
178
+ | Where the GPU comes from | On the GPU | On the robot |
179
+ |---|---|---|
180
+ | **Your own**, or any GPU the robot can reach | `sequence_ai.serve(policy_user)` | `connect("http://your-gpu:8000")` |
181
+ | **Rented from General Sequences** near your robot, by city | `sequence_ai.serve(policy_user)` | `connect("http://<its address>:8000")` |
182
+ | **A hosted deployment** of General Sequences | nothing: the platform builds your policy, serves it and scores it | `connect("my_policy_user")` |
170
183
 
171
184
  The first needs no account and costs nothing. The other two are paid services of General Sequences, billed while a GPU
172
185
  runs, and their commands are in this package:
@@ -189,9 +202,10 @@ teleoperation, and every `seq` command.
189
202
  │ your control loop │ │ your policy │
190
203
  ├─────────────────────────┤ observation ├───────────────────────────┤
191
204
  │ sequence_ai.network │ ───────────────────▶ │ sequence_ai.engine │
192
- │ connect · openpi │ │ cuda_graphs · batcher │
193
- │ window · compress │ WAN │ replicas · slack │
194
- │ frames · wifi_power │ ├───────────────────────────┤
205
+ │ connect · openpi │ │ serve · cuda_graphs │
206
+ │ window · compress │ WAN │ batcher · replicas │
207
+ │ frames · wifi_power │ │ slack │
208
+ │ │ ├───────────────────────────┤
195
209
  │ │ ◀─────────────────── │ sequence_ai.network │
196
210
  │ │ action chunk │ one_write · ping │
197
211
  └─────────────────────────┘ │ tcp_link · compressed │
@@ -203,8 +217,8 @@ teleoperation, and every `seq` command.
203
217
  **`sequence_ai.network`** is the connection between a robot and the GPU its policy runs on. On the robot, `connect()`
204
218
  applies the client-side components to one connection, and `openpi.keep()` does the same on the connection that openpi's
205
219
  own client holds. On the server, `one_write` and `ping` wrap a uvicorn or a WebSocket server. **`sequence_ai.engine`**
206
- is the inference layer on the GPU: `cuda_graphs` shortens one inference, `batcher` and `slack` share a GPU among robots,
207
- and `replicas` runs one process per GPU. **`bench/`** measures a link before anything is added to it.
220
+ is the inference layer on the GPU: `serve()` serves a policy with the server's side of both layers on, `cuda_graphs`
221
+ shortens one inference, `batcher` and `slack` share a GPU among robots, and `replicas` runs one process per GPU. **`bench/`** measures a link before anything is added to it.
208
222
 
209
223
  ## The problem, by layer
210
224
 
@@ -236,6 +250,7 @@ Sequences, reached with this package's `seq gpu` commands. [Three ways to run it
236
250
 
237
251
  | Component | What it does | To add it | Requires |
238
252
  |---|---|---|---|
253
+ | [`serve`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/engine/serve.py) | Serves a policy, given as a function or a batch function, to robots elsewhere: on a thread of its own, pings answered at once, a warm-up, pictures and compressed arrays restored. `openpi.batched(policy)` makes an openpi policy a batch function. | one call | what sequence-ai installs |
239
254
  | [`cuda_graphs`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/engine/cuda_graphs.py) | Replays a torch module that your model calls many times per run from CUDA graphs captured from its own eager kernels. A graph is kept only when its output is exactly the same. | one call | torch 2.4 or later, a CUDA GPU |
240
255
  | [`batcher`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/engine/batcher.py) | Batches the calls waiting for a model into one call, in the batch sizes the model lists. | one object, one `await` | nothing |
241
256
  | [`replicas`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/engine/replicas.py) | Runs replicas of a model, each in its own process on the GPU assigned to it, and replaces one that dies. | one object, one `await` | nothing |
@@ -257,10 +272,11 @@ seating_user = slack.Seating(table_user, play_user["buffer_s"] * 1000, sizes=[1,
257
272
  seats_user, over_user = seating_user.seat([("near", 30.0), ("far", 200.0)]) # (robot, its RTT in ms)
258
273
  ```
259
274
 
260
- - **`cuda_graphs`** counts the calls each module gets over a few runs (`Census`), captures the module that is called
261
- many times per run with the same shapes, and checks each new shape against eager mode byte for byte. A shape whose
262
- capture fails or differs runs in eager mode from then on. The module stays the same object of the same class, with its
263
- weights, `state_dict` and hooks unchanged.
275
+ - **`cuda_graphs`** speeds up PyTorch policies whose time goes to launching kernels; a JAX policy such as π0.5 already
276
+ compiles its kernels into one program. It counts the calls each module gets over a few runs (`Census`), captures the
277
+ module that is called many times per run with the same shapes, and checks each new shape against eager mode byte for
278
+ byte. A shape whose capture fails or differs runs in eager mode from then on. The module stays the same object of the
279
+ same class, with its weights, `state_dict` and hooks unchanged.
264
280
  [How do I make a PyTorch robot policy faster without changing its outputs?](https://github.com/General-Sequences/sequence-ai/blob/main/docs/how-do-i-make-a-pytorch-robot-policy-faster-without-changing-its-outputs.md)
265
281
  - **`batcher`** dispatches a batch as soon as it is full, or `wait_ms` after its first call while the model is free.
266
282
  While the model is busy, waiting calls accumulate and are dispatched together. Only the listed sizes are used, and a
@@ -284,12 +300,12 @@ seats_user, over_user = seating_user.seat([("near", 30.0), ("far", 200.0)])
284
300
  |---|---|---|---|
285
301
  | [`window`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/network/window.py) | client | Keeps the connection's congestion window across the robot's pauses: BBR on its socket, TCP keepalive, a ping while the connection is idle. | nothing |
286
302
  | [`compress`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/network/compress.py) | client | Compresses an observation's large arrays only where that saves more upload time than it costs. | nothing; zstd where it is installed |
287
- | [`frames`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/network/frames.py) | client | Resizes a camera frame to the policy's input size before upload. | Pillow |
303
+ | [`frames`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/network/frames.py) | both | Sends each picture as JPEG and turns it back into its array on the server; resizes a frame to the policy's input size. | Pillow |
288
304
  | [`wifi_power`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/network/wifi_power.py) | client | Detects Wi-Fi power saving on the robot's link and reports how to disable it. | Linux |
289
305
  | [`one_write`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/network/one_write.py) | server | Sends each HTTP response of a uvicorn server in one write instead of three. | uvicorn |
290
306
  | [`tcp_link`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/network/tcp_link.py) | server | Reads each client's TCP state from the server's kernel: RTT, retransmitted segments, congestion window. | Linux |
291
307
  | [`compressed`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/network/compressed.py) | server | Decompresses what the client compressed, byte for byte. | numpy; zstandard for zstd |
292
- | [`ping`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/network/ping.py) | server | A server-side ping, so that the robot's connection is never idle: the options to pass to your server. | a WebSocket server |
308
+ | [`ping`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/network/ping.py) | server | A server-side ping, so that the robot's connection is not left idle while the server can answer it: the options to pass to your server. | a WebSocket server |
293
309
  | [`msgpack_io`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/network/msgpack_io.py) | both | Encodes observations and responses as msgpack, with numpy arrays as raw bytes. Also reads openpi's layout. | nothing |
294
310
  | [`latency_stats`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/network/latency_stats.py) | both | Counters, gauges and latencies with their p50, p95 and p99, read as one snapshot. | nothing |
295
311
 
@@ -297,7 +313,9 @@ Combined, and for clients you may already use:
297
313
 
298
314
  | | Side | What it does | Requires |
299
315
  |---|---|---|---|
300
- | [`connect`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/network/link.py) | client | The client-side components on one connection to your own server. | httpx |
316
+ | [`connect`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/network/link.py) | client | The client-side components on one connection to your own server, JPEG and compression while the server says it restores them. | httpx |
317
+ | [`lines`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/network/lines.py) | client | `connect(url, lines=["eth0", "wwan0"])`: each act sent over each of the robot's uplinks, each line bound to its own network interface, and the first answer used; `serve()` runs the policy once for the copies. [How](https://github.com/General-Sequences/sequence-ai/blob/main/docs/how-do-i-send-each-act-over-two-uplinks.md) | httpx; Linux 5.7 or later, or macOS |
318
+ | [`check`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/check.py) | client | `python -m sequence_ai.check <url>`: which defaults are on between a robot and its server, and what the server is. | httpx |
301
319
  | [`openpi`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/network/openpi.py) | client | The client-side components on the connection held by openpi's own client. | openpi-client |
302
320
  | [`lerobot`](https://github.com/General-Sequences/sequence-ai/blob/main/sequence_ai/network/lerobot.py) | both | The Zenoh setting that keeps LeRobot's remote-inference connection from going idle. | lerobot 0.7 |
303
321
  | [`bench/`](https://github.com/General-Sequences/sequence-ai/tree/main/bench/) | both | Measures your own link: what a pause, a ping and a camera stream cost on it. | nothing |
@@ -323,85 +341,37 @@ type, and inference time is the main lever.
323
341
 
324
342
  Inference layer:
325
343
 
326
- | Component | Measured on | Without | With |
327
- |---|---|---|---|
328
- | `cuda_graphs` | The diffusion transformer of GR00T N1.7 on one L4; outputs compared on inputs it was not captured on | 224 ms per run | 146 ms per run (1.54×), exactly the same outputs |
329
- | `cuda_graphs` and `torch.compile` | The same model and GPU | `torch.compile(backend="cudagraphs")`: 225 ms (1.00×). inductor: 1.45×, outputs 0.0051 apart on average | 1.54×, exactly the same outputs |
330
- | `cuda_graphs` | A small flow-style model of many small kernels on one T4 ([`examples/check_on_a_gpu.py`](https://github.com/General-Sequences/sequence-ai/blob/main/examples/check_on_a_gpu.py)) | 16.1 ms per run | 2.4 ms per run, byte for byte |
331
- | Batching | π0.5 on one L4, the model's own batched call | 5.99 requests per second at batch 1 | 8.21, 9.38, 10.52 and 10.66 at batches of 2, 4, 8 and 16 (1.78×) |
332
- | `slack`: the load a replica takes | Four robots, 300 s and about 2,100 requests per run, a stand-in model paced like a 15 Hz policy, in the serving stack the component was taken from | All four on one replica, a load of 0.95: 85.7% of responses within the 467 ms buffer | Two per replica on two replicas, a load of 0.88: 94.1% |
344
+ | Component | Result | Measured on |
345
+ |---|---|---|
346
+ | `cuda_graphs` | 1.54× faster (224 → 146 ms), exactly the same outputs | GR00T N1.7's diffusion transformer, one L4 |
347
+ | `cuda_graphs` against `torch.compile` | 1.54×, against 1.45× with different outputs (inductor) and 1.00× (cudagraphs) | the same model and GPU |
348
+ | `cuda_graphs` | 6.7× faster (16.1 → 2.4 ms), byte for byte | a small model of many small kernels, one T4 |
349
+ | Batching | up to 1.78× the requests per second (5.99 → 10.66) | π0.5, one L4, batch 16 |
350
+ | `slack` | 94.1% of responses in time, against 85.7% with all robots on one replica | four robots, a model paced like a 15 Hz policy |
333
351
 
334
352
  Network layer:
335
353
 
336
- | Component | Measured on | Without | With |
337
- |---|---|---|---|
338
- | `window`, `ping`: each of four ways | A 24 KB upload 0.53 s after each response; two cloud machines, RTTs of 12, 21, 41, 65, 81 and 101 ms; 40 uploads per cell | 2.0 round trips, 40 of 40 uploads | 1.0 round trips, 0 of 40: the server's ping, the robot's ping, BBR on the robot's socket, or `tcp_slow_start_after_idle=0` |
339
- | `window`: BBR | A robot sending a request every 0.53 s with 24 KB of frames; RTT about 21 ms; 40 requests per setting | 40 of 40 requests took one extra round trip (21.5 ms) | 0 of 40 (0.5 to 3.0 ms) |
340
- | `window`: BBR, with 1% loss | The 24 KB upload at 22 ms with 1% loss on the link | 40 of 40 uploads took one extra round trip | 0 of 40 |
341
- | `openpi`, and `ping` over a WebSocket | A 100 KB upload 0.53 s after each response; an openpi-style WebSocket client; RTTs of 11, 21, 41 and 81 ms; 40 uploads per cell | 37.6, 44.4, 82.4 and 163.8 ms (3.3, 2.1, 2.0 and 2.0 round trips) | 12.7, 22.7, 41.8 and 82.6 ms with `openpi.keep()` (1.1, 1.1, 1.0 and 1.0 round trips); 1.2, 1.1, 1.0 and 1.0 round trips with the server pinging |
342
- | `lerobot` | A 100 KB request 0.53 s after each response between two Zenoh peers; the same machines and RTTs | 38.1, 44.8, 82.8 and 164.3 ms (3.4, 2.1, 2.0 and 2.0 round trips) | 13.9, 23.2, 42.3 and 82.2 ms with the keep-alive file on both ends (1.2, 1.1, 1.0 and 1.0 round trips) |
343
- | `ping`, the server's ping | 100 KB, 500 KB and 1 MB after 500 ms of silence; RTTs of 11.7 and 69.2 ms; 20 per cell | 3.0 round trips each | 1.1, 1.1 and 1.25 |
344
- | `window.Warm`, the robot's ping | 162 KB uploads 3 s apart; RTT 226 ms; 30 requests per setting | 303.6 ms for the upload to arrive | under 1 ms |
345
- | `one_write` | A GET behind one kind of tunnel; TCP connect p50 89.5 ms | 189.7 ms (headers, then body) | 106.7 ms (one write) |
346
- | `compress` | Camera frames of 172,800 bytes, decoded from a public dataset's video, on a laptop | 172,800 bytes | about 1.9 times smaller, for 0.37 ms to compress and 0.21 ms to decompress |
354
+ | Component | Result | Measured on |
355
+ |---|---|---|
356
+ | `window`, `ping` | an upload after a pause in 1.0 round trips, not 2.0 | a 24 KB upload, RTTs of 12 to 101 ms |
357
+ | `window`: BBR | no extra round trip after a pause, also with 1% loss | a 24 KB upload, RTT about 21 ms |
358
+ | `ping`, the server's | 1.1 to 1.25 round trips, not 3.0 | 100 KB to 1 MB after 500 ms of silence |
359
+ | `window.Warm`, the robot's ping | under 1 ms, not 303.6 ms, for an upload to arrive | 162 KB uploads 3 s apart, RTT 226 ms |
360
+ | `one_write` | 106.7 ms, not 189.7, for a response | a GET through a tunnel |
361
+ | `compress` | camera frames about 1.9 times smaller, 0.37 ms to compress | frames from a public dataset's video |
347
362
 
348
363
  [Measurements](https://github.com/General-Sequences/sequence-ai/blob/main/docs/measurements.md) lists every command, and [`bench/`](https://github.com/General-Sequences/sequence-ai/tree/main/bench/) measures your own link.
349
364
 
350
- ## Limitations
351
-
352
- - **`cuda_graphs` is for PyTorch models bound by kernel launches.** π0.5 under JAX already fuses and graphs its
353
- kernels and was 98% GPU-busy: there is no launch overhead to remove. A module called once per run, or with shapes
354
- that change on every call, gains nothing. Only GR00T N1.7's diffusion transformer and a small test model have been
355
- captured.
356
- - **Batching does not amortize a model's prefix.** On π0.5 the prefix (images and prompt) took 138 ms per request at
357
- batch 1 and 119 ms at batch 16, so the gain levels off near 1.78×. Called as a server calls it, each observation
358
- through the policy's input and output transforms, a batch of 8 gave 1.52× (5.1 to 7.8 requests per second). On
359
- that model and an L4, batching added no capacity: one replica served 2 robots of a 15 Hz policy in time, and so
360
- did openpi's own server, one request at a time.
361
- [How many robots can one GPU serve?](https://github.com/General-Sequences/sequence-ai/blob/main/docs/how-many-robots-can-one-gpu-serve.md#checked-on-a-real-model)
362
- - **Two replicas on one GPU give no throughput gain.** With π0.5 on an L4, two replicas whose calls overlapped each
363
- took 2.1 times as long as one alone. With the CUDA Multi-Process Service (MPS) they were 6 to 9% faster than that.
364
- Use one replica per GPU.
365
- - **`batcher` and `replicas` have unit tests and no measurement of their own.** The batching result measures the
366
- model's own batched call. The `slack` results come from the serving stack the file was taken from, and from runs
367
- of the file itself around the batched calls of π0.5, GR00T N1.6 and SmolVLA on an L4, in a test server with
368
- simulated robots. No inference component has been run inside openpi's own policy server or LeRobot's.
369
- - **`slack` computes a capacity on a simulated clock, not on your model under load.** It runs the robots as its loop
370
- would serve them, from up to 128 starts, and a number of robots is within capacity when 95% of their responses are
371
- in time. From three models' batch times on an L4 it gives 2 robots of a 15 Hz policy for π0.5 and GR00T N1.6,
372
- which 2 robots confirmed, and 1 for SmolVLA, where a formula for the load had given 8 and 4 robots had 95% of
373
- their responses late. Rerun on SmolVLA, 3 robots had late responses and 2 had none: the 1 comes from the limit on
374
- the load, which may be low for that model.
375
- [Why the capacity is computed on a clock](https://github.com/General-Sequences/sequence-ai/blob/main/docs/how-many-robots-can-one-gpu-serve.md#why-the-capacity-is-computed-on-a-clock)
376
- has the measurement, and [`examples/fleet_on_a_clock.py`](https://github.com/General-Sequences/sequence-ai/blob/main/examples/fleet_on_a_clock.py) prints what the clock runs
377
- for your batch times.
378
- - **A policy that leaves no slack is not batched by `slack`.** Where the robot sends a request only when a chunk is
379
- fully executed, a replica serves one robot.
380
- - **The idle restart costs nothing on a long link.** At an RTT of 242 ms the 24 KB upload took 1.0 round trips with
381
- no component, and at about 101 and 241 ms a robot on a fixed 0.53 s period took 0 or 1 extra round trips in 40.
382
- Whether a robot is affected depends on its RTT, its pause and its upload size: [`bench/`](https://github.com/General-Sequences/sequence-ai/tree/main/bench/) measures it.
383
- - **A ping does not restore a window that losses cut.** With 1% loss at RTTs of 22 and 101 ms, 31 and 35 of 40
384
- uploads still took an extra round trip with the robot's ping. BBR removed it at 22 ms.
385
- - **On one home connection the ping helped only small uploads.** From a Linux client, a 100 KB upload after a pause went
386
- from 5.5 round trips to 1.7 with the server's ping. 500 KB and 1 MB took 7.8 and 12.7 round trips with it and 10.3 and
387
- 13.4 without: the line's upload rate and packet loss were the cost, and BBR took 5.1 and 8.3.
388
- [The table](https://github.com/General-Sequences/sequence-ai/blob/main/docs/measurements.md#from-a-linux-client-on-a-home-connection) has every cell.
389
- - **`openpi.keep()` and the LeRobot setting were measured mostly with stand-ins.** The WebSocket and Zenoh measurements
390
- used the `websockets` library and two Zenoh peers. `openpi.keep()` was also run once with openpi's own server and
391
- client, on one link, two episodes per setting; the LeRobot setting was not run with LeRobot's own server and robot.
392
- - **`one_write` was measured behind one kind of tunnel**, not on a direct connection.
393
-
394
- [Measurements](https://github.com/General-Sequences/sequence-ai/blob/main/docs/measurements.md#limitations) has the rest.
395
-
396
365
  ## Repository layout
397
366
 
398
367
  ```
399
368
  sequence_ai/
400
- engine/ inference layer: cuda_graphs · batcher · replicas · slack
369
+ engine/ inference layer: serve · openpi · cuda_graphs · batcher · replicas · slack
401
370
  network/ network layer
402
371
  client: connect · window · compress · frames · wifi_power · openpi
403
372
  server: one_write · ping · tcp_link · compressed
404
373
  both: msgpack_io · latency_stats · lerobot
374
+ check.py python -m sequence_ai.check: which defaults are on between a robot and its server
405
375
  ... the client for General Sequences' GPUs and deployments: connect, gpu, teleop, record
406
376
  seq/ the seq command, and the decorators a hosted policy or benchmark is written with
407
377
  bench/ measures a link: a TCP client and server, WebSocket, Zenoh
@@ -486,5 +456,5 @@ If you use `sequence-ai` in research, please cite it:
486
456
 
487
457
  ## License
488
458
 
489
- [Apache-2.0](https://github.com/General-Sequences/sequence-ai/blob/main/LICENSE). Copyright 2026 General Sequences Company. One component is adapted from another project, and the
459
+ [Apache-2.0](https://github.com/General-Sequences/sequence-ai/blob/main/LICENSE). Copyright 2026 General Sequences Company. Parts of two components are adapted from another project, and the
490
460
  page `seq eval replay` serves carries others' files: [THIRD_PARTY_NOTICES.md](https://github.com/General-Sequences/sequence-ai/blob/main/THIRD_PARTY_NOTICES.md).