simulo 0.25.0__tar.gz → 0.26.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.
- {simulo-0.25.0/src/simulo.egg-info → simulo-0.26.0}/PKG-INFO +2 -2
- {simulo-0.25.0 → simulo-0.26.0}/pyproject.toml +2 -2
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/__init__.py +6 -5
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/app.py +81 -12
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/cli.py +95 -1
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/submit_api.py +11 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/templates/inference/app.py.tmpl +4 -3
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/templates/scenario/app.py.tmpl +2 -1
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/templates/training/app.py.tmpl +2 -1
- {simulo-0.25.0 → simulo-0.26.0/src/simulo.egg-info}/PKG-INFO +2 -2
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo.egg-info/requires.txt +1 -1
- {simulo-0.25.0 → simulo-0.26.0}/MANIFEST.in +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/PYPI.md +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/setup.cfg +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/__init__.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/_entrypoint.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/_mounts.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/_runner.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/_secure_downloads.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/asset.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/asset_api.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/asset_package.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/asset_pins.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/builtin_aliases.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/bundle.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/cancel_api.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/config.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/credentials.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/discovery.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/export_api.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/export_bundle.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/facades.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/http.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/identity_api.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/install_samples.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/jobs_api.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/learning.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/login.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/mode.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/outputs.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/packaging.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/preflight_api.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/preflight_render.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/registry.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/runtime.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/runtime_display.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/seed_ref.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/stub.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/templates/__init__.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/templates/inference/simuloignore.tmpl +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/templates/scenario/simuloignore.tmpl +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/templates/training/simuloignore.tmpl +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/view_fragment.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/view_session_api.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/_client/volume.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/callbacks.py +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo/py.typed +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo.egg-info/SOURCES.txt +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo.egg-info/dependency_links.txt +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo.egg-info/entry_points.txt +0 -0
- {simulo-0.25.0 → simulo-0.26.0}/src/simulo.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: simulo
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.26.0
|
|
4
4
|
Summary: Simulo SDK and CLI — define robotics simulation and training apps in Python and run them on the Simulo cloud.
|
|
5
5
|
Author-email: Simulo Team <team@simulo.ai>
|
|
6
6
|
License: BSD-3-Clause
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
15
15
|
Classifier: Typing :: Typed
|
|
16
16
|
Requires-Python: >=3.11
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
|
-
Requires-Dist: simulo-interfaces<0.
|
|
18
|
+
Requires-Dist: simulo-interfaces<0.20,>=0.19.0
|
|
19
19
|
Requires-Dist: mcap<2,>=1.3
|
|
20
20
|
Requires-Dist: defusedxml>=0.7.1
|
|
21
21
|
Requires-Dist: usd-core<27,>=26.5
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "simulo"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.26.0"
|
|
8
8
|
description = "Simulo SDK and CLI — define robotics simulation and training apps in Python and run them on the Simulo cloud."
|
|
9
9
|
readme = "PYPI.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -26,7 +26,7 @@ classifiers = [
|
|
|
26
26
|
# mcap: used by `simulo recordings` to read back a downloaded recording and
|
|
27
27
|
# verify it (message count) — MIT-licensed, deps only lz4+zstandard.
|
|
28
28
|
dependencies = [
|
|
29
|
-
"simulo-interfaces>=0.
|
|
29
|
+
"simulo-interfaces>=0.19.0,<0.20",
|
|
30
30
|
"mcap>=1.3,<2",
|
|
31
31
|
# Hardened XML parsing for URDF ingestion (USD Asset Catalogs, PR-12 fix
|
|
32
32
|
# loop 2, security NIT): stdlib xml.etree.ElementTree relies on
|
|
@@ -29,10 +29,10 @@ missed that way before the rule replaced it.
|
|
|
29
29
|
Three kinds of name live on ``simulo``:
|
|
30
30
|
|
|
31
31
|
* **Platform** names — ``App / Runtime / Volume / Asset / Output /
|
|
32
|
-
OutputKind / callbacks`` — are **real, eager** attributes bound
|
|
33
|
-
They are always torch-free (``Output`` is the ``simulo-interfaces``
|
|
34
|
-
contract dataclass, ``OutputKind`` its wire-stable
|
|
35
|
-
re-exported).
|
|
32
|
+
OutputKind / SystemType / callbacks`` — are **real, eager** attributes bound
|
|
33
|
+
below. They are always torch-free (``Output`` is the ``simulo-interfaces``
|
|
34
|
+
contract dataclass, ``OutputKind`` and ``SystemType`` its wire-stable
|
|
35
|
+
``StrEnum``\\ s, all three re-exported).
|
|
36
36
|
* **Contract vocabulary** — the shared error hierarchy (``SimuloError`` and its
|
|
37
37
|
subclasses), the ``NewType`` identifier aliases (``JobId``, ``ProjectId``, …),
|
|
38
38
|
and the authoring value types that are not already carried by the lazy
|
|
@@ -152,7 +152,7 @@ from simulo.interfaces.authoring import (
|
|
|
152
152
|
USDWorld,
|
|
153
153
|
VisualMarkerBase,
|
|
154
154
|
)
|
|
155
|
-
from simulo.interfaces.platform import Output, OutputKind
|
|
155
|
+
from simulo.interfaces.platform import Output, OutputKind, SystemType
|
|
156
156
|
|
|
157
157
|
# Public surface = eager platform exports (real attributes; ``__getattr__`` never
|
|
158
158
|
# fires for these) + the lazily-resolved learning names. Kept a static literal so
|
|
@@ -162,6 +162,7 @@ __all__ = [
|
|
|
162
162
|
"App",
|
|
163
163
|
"Output",
|
|
164
164
|
"OutputKind",
|
|
165
|
+
"SystemType",
|
|
165
166
|
"Runtime",
|
|
166
167
|
"Volume",
|
|
167
168
|
"Asset",
|
|
@@ -41,7 +41,8 @@ from simulo._client.runtime import DEFAULT_RUNTIME
|
|
|
41
41
|
from simulo.interfaces.ids import JobId, parse_job_public_id
|
|
42
42
|
from simulo.interfaces.platform import JobCallbackProtocol
|
|
43
43
|
from simulo.interfaces.platform.app import Mount
|
|
44
|
-
from simulo.interfaces.platform.enums import ResumePolicy
|
|
44
|
+
from simulo.interfaces.platform.enums import ResumePolicy, SystemType
|
|
45
|
+
from simulo.interfaces.platform.systems import SYSTEM_SPECS
|
|
45
46
|
|
|
46
47
|
if TYPE_CHECKING: # typing-only; avoids a module-scope dependency on the HTTP client
|
|
47
48
|
from simulo._client.preflight_api import PreflightOutcome
|
|
@@ -427,6 +428,14 @@ def _spawn_cloud(
|
|
|
427
428
|
content-addressed identity must never change based on whether this
|
|
428
429
|
particular execution asked for a live stream.
|
|
429
430
|
|
|
431
|
+
The requested GPU system tier (system-tier-catalog-1362, M50-persistence)
|
|
432
|
+
is NOT a parameter here — it is read from the already-parsed manifest's
|
|
433
|
+
``jobs[job_name]["resources"]["system"]`` (the wire value
|
|
434
|
+
``@app.job(system=...)`` already validated and recorded at decoration
|
|
435
|
+
time) and forwarded to ``create_job`` below as an optional top-level
|
|
436
|
+
sibling of ``args``, for the identical package-hash-invariance reason as
|
|
437
|
+
``viewstream``.
|
|
438
|
+
|
|
430
439
|
``seed_from`` (``simulo run --from``, explicit-run-intent plan) follows
|
|
431
440
|
the identical rule: the seed reference is a SUBMIT-time job property,
|
|
432
441
|
never a package property — it rides the job-create call only, verbatim
|
|
@@ -496,6 +505,15 @@ def _spawn_cloud(
|
|
|
496
505
|
package_id = str(package_id)
|
|
497
506
|
source_digest = str(manifest.get("source_digest", ""))
|
|
498
507
|
args = dict(manifest.get("args") or {})
|
|
508
|
+
# The requested GPU system tier (system-tier-catalog-1362, M50-persistence)
|
|
509
|
+
# — already validated at `@app.job(system=...)` decoration time and
|
|
510
|
+
# recorded on THIS job's own manifest entry as `resources["system"]`
|
|
511
|
+
# (the tier's wire value, e.g. "tier1"; see `decorate()`'s
|
|
512
|
+
# `resources["system"] = system.value`). Read from the already-parsed
|
|
513
|
+
# manifest rather than threaded in as a new parameter, since the value
|
|
514
|
+
# already lives there, keyed by this same `job_name`.
|
|
515
|
+
job_entry = manifest.get("jobs", {}).get(job_name) or {}
|
|
516
|
+
system = (job_entry.get("resources") or {}).get("system")
|
|
499
517
|
|
|
500
518
|
tar_path = ensure_tar(package_path)
|
|
501
519
|
archive_bytes = tar_path.read_bytes()
|
|
@@ -549,6 +567,7 @@ def _spawn_cloud(
|
|
|
549
567
|
seed_from_job_id=seed_from,
|
|
550
568
|
assets=asset_pins,
|
|
551
569
|
app_name=app_name,
|
|
570
|
+
system=system,
|
|
552
571
|
)
|
|
553
572
|
|
|
554
573
|
raw_public_id = record.get("public_id")
|
|
@@ -970,7 +989,7 @@ class App:
|
|
|
970
989
|
|
|
971
990
|
app = simulo.App("cartpole")
|
|
972
991
|
|
|
973
|
-
@app.job(
|
|
992
|
+
@app.job(system=simulo.SystemType.TIER_1)
|
|
974
993
|
def train(iterations: int = 1000):
|
|
975
994
|
...
|
|
976
995
|
|
|
@@ -1044,7 +1063,7 @@ class App:
|
|
|
1044
1063
|
*,
|
|
1045
1064
|
callbacks: Sequence[JobCallbackProtocol] = ...,
|
|
1046
1065
|
resume: ResumePolicy = ...,
|
|
1047
|
-
|
|
1066
|
+
system: Optional[SystemType] = ...,
|
|
1048
1067
|
timeout: Optional[int] = ...,
|
|
1049
1068
|
retries: int = ...,
|
|
1050
1069
|
**extra: Any,
|
|
@@ -1056,14 +1075,15 @@ class App:
|
|
|
1056
1075
|
*,
|
|
1057
1076
|
callbacks: Sequence[JobCallbackProtocol] = (),
|
|
1058
1077
|
resume: ResumePolicy = ResumePolicy.AUTO,
|
|
1059
|
-
|
|
1078
|
+
system: Optional[SystemType] = None,
|
|
1060
1079
|
timeout: Optional[int] = None,
|
|
1061
1080
|
retries: int = 0,
|
|
1062
1081
|
**extra: Any,
|
|
1063
1082
|
) -> Union[JobFunction, Callable[[F], JobFunction]]:
|
|
1064
1083
|
"""Register a function as a job of this app. Records metadata; never runs the body.
|
|
1065
1084
|
|
|
1066
|
-
Usable bare (``@app.job``) or with options
|
|
1085
|
+
Usable bare (``@app.job``) or with options
|
|
1086
|
+
(``@app.job(system=simulo.SystemType.TIER_1)``).
|
|
1067
1087
|
Returns a :class:`JobFunction` wrapping the original function — calling
|
|
1068
1088
|
it still runs the body in-process; ``.spawn()`` / ``.submit()`` submit it
|
|
1069
1089
|
to the platform instead.
|
|
@@ -1077,8 +1097,17 @@ class App:
|
|
|
1077
1097
|
resume: How the job resumes from a discovered checkpoint
|
|
1078
1098
|
(:class:`~simulo.interfaces.platform.enums.ResumePolicy`,
|
|
1079
1099
|
default ``AUTO``).
|
|
1080
|
-
|
|
1081
|
-
|
|
1100
|
+
system: The GPU system tier to request, as a
|
|
1101
|
+
:class:`simulo.SystemType` member (e.g.
|
|
1102
|
+
``simulo.SystemType.TIER_1``), recorded in the job's resource
|
|
1103
|
+
spec as ``resources["system"]`` (the tier's wire value, e.g.
|
|
1104
|
+
``"tier1"``). Validated HERE, at decoration time, against the
|
|
1105
|
+
published catalog: a value that is not a ``SystemType`` member
|
|
1106
|
+
(a raw string such as ``"tier1"`` included) raises
|
|
1107
|
+
``TypeError``, and a tier the platform cannot provision yet
|
|
1108
|
+
raises ``ValueError``. ``simulo systems`` lists every tier and
|
|
1109
|
+
which are available today. The selection is recorded on the
|
|
1110
|
+
job; it does not yet choose hardware.
|
|
1082
1111
|
timeout: Wall-clock limit for one managed execution, in seconds
|
|
1083
1112
|
(a positive integer; validated HERE, at decoration time — a
|
|
1084
1113
|
zero, negative, or non-integer value raises ``ValueError``
|
|
@@ -1094,13 +1123,15 @@ class App:
|
|
|
1094
1123
|
retries: Automatic re-attempts after a failure (default 0). All
|
|
1095
1124
|
attempts share one ``timeout`` budget.
|
|
1096
1125
|
**extra: Additional resource requests, recorded verbatim in the
|
|
1097
|
-
job's resource spec.
|
|
1098
|
-
``produces`` and ``
|
|
1099
|
-
else passes through to the resource spec unchanged.
|
|
1126
|
+
job's resource spec. Three names are RESERVED and rejected —
|
|
1127
|
+
``produces``, ``consumes`` and ``gpu`` (see Raises below);
|
|
1128
|
+
everything else passes through to the resource spec unchanged.
|
|
1100
1129
|
|
|
1101
1130
|
Raises:
|
|
1102
1131
|
ValueError: ``timeout`` is not ``None`` and is not a positive
|
|
1103
1132
|
integer. ``True`` and ``False`` are not accepted as timeouts.
|
|
1133
|
+
Also raised when ``system`` names a tier the platform cannot
|
|
1134
|
+
provision yet (``SYSTEM_SPECS[system].available`` is false).
|
|
1104
1135
|
TypeError: ``produces=`` or ``consumes=`` was passed. Outputs are
|
|
1105
1136
|
not declared on the decorator. Callbacks such as
|
|
1106
1137
|
``ResumableCheckpoint`` already declare their supported
|
|
@@ -1108,6 +1139,11 @@ class App:
|
|
|
1108
1139
|
volume for files another job needs. ``consumes=`` is reserved;
|
|
1109
1140
|
continue from a checkpoint with
|
|
1110
1141
|
``simulo run --from <job>[:latest|:best]`` instead.
|
|
1142
|
+
Also raised for ``gpu=`` (the free-text GPU request this
|
|
1143
|
+
parameter replaced; it would otherwise fall through
|
|
1144
|
+
``**extra`` into the resource spec unvalidated) and for a
|
|
1145
|
+
``system`` value that is not a :class:`simulo.SystemType`
|
|
1146
|
+
member.
|
|
1111
1147
|
"""
|
|
1112
1148
|
if timeout is not None and (isinstance(timeout, bool) or not isinstance(timeout, int) or timeout < 1):
|
|
1113
1149
|
raise ValueError(
|
|
@@ -1127,11 +1163,44 @@ class App:
|
|
|
1127
1163
|
"today. To chain jobs, run with `simulo run --from <job>[:latest|:best]`. Remove "
|
|
1128
1164
|
"consumes=."
|
|
1129
1165
|
)
|
|
1166
|
+
# ``gpu`` was a real named parameter until the system-tier catalog
|
|
1167
|
+
# replaced it (#1362). Removing it from the signature alone does NOT
|
|
1168
|
+
# reject ``gpu="L4"``: CPython routes the unknown keyword into
|
|
1169
|
+
# ``**extra`` and it would land in the resource spec exactly as before,
|
|
1170
|
+
# unvalidated. This guard is what makes the rename a rejection.
|
|
1171
|
+
if "gpu" in extra:
|
|
1172
|
+
raise TypeError(
|
|
1173
|
+
"@app.job(gpu=...) is no longer supported. Request a GPU system tier instead: "
|
|
1174
|
+
"@app.job(system=simulo.SystemType.TIER_1). Run `simulo systems` to list the "
|
|
1175
|
+
"tiers and which are available today. Remove gpu=."
|
|
1176
|
+
)
|
|
1177
|
+
if system is not None:
|
|
1178
|
+
# Static lookups against the published catalog — no fleet state
|
|
1179
|
+
# is consulted. A raw string is refused even when it spells a
|
|
1180
|
+
# valid wire value, so the one accepted spelling is the enum.
|
|
1181
|
+
if not isinstance(system, SystemType):
|
|
1182
|
+
raise TypeError(
|
|
1183
|
+
"@app.job(system=...) must be a simulo.SystemType member, e.g. "
|
|
1184
|
+
f"system=simulo.SystemType.TIER_1; got {system!r}. Run `simulo systems` to "
|
|
1185
|
+
"list the tiers."
|
|
1186
|
+
)
|
|
1187
|
+
spec = SYSTEM_SPECS[system]
|
|
1188
|
+
if not spec.available:
|
|
1189
|
+
available = ", ".join(
|
|
1190
|
+
f"SystemType.{tier.name} ({entry.gpu_model})"
|
|
1191
|
+
for tier, entry in SYSTEM_SPECS.items()
|
|
1192
|
+
if entry.available
|
|
1193
|
+
)
|
|
1194
|
+
raise ValueError(
|
|
1195
|
+
f"@app.job(system=SystemType.{system.name}) ({spec.gpu_model}) is not available on "
|
|
1196
|
+
f"the platform yet. Available today: {available}. Run `simulo systems` for the "
|
|
1197
|
+
"full catalog."
|
|
1198
|
+
)
|
|
1130
1199
|
|
|
1131
1200
|
def decorate(func: F) -> JobFunction:
|
|
1132
1201
|
resources: dict[str, Any] = {}
|
|
1133
|
-
if
|
|
1134
|
-
resources["
|
|
1202
|
+
if system is not None:
|
|
1203
|
+
resources["system"] = system.value
|
|
1135
1204
|
resources.update(extra)
|
|
1136
1205
|
spec = JobSpec(
|
|
1137
1206
|
name=func.__name__,
|
|
@@ -57,6 +57,14 @@ wheel's own bundled resources.
|
|
|
57
57
|
``./simulo-samples`` with normal Git history. It uses neither client settings nor
|
|
58
58
|
saved sign-in state; a failed clone is removed before it can appear at that path.
|
|
59
59
|
|
|
60
|
+
``simulo systems [--json]`` lists the published GPU system tiers (``SystemType`` /
|
|
61
|
+
``SYSTEM_SPECS`` from ``simulo-interfaces``) that ``@app.job(system=...)`` accepts —
|
|
62
|
+
table or ``--json``. This reads only that static, in-package catalog: no client
|
|
63
|
+
construction, no credential resolution, no network call. Today's fleet is one shared
|
|
64
|
+
machine, so the listing is descriptive rather than a live capability check — the
|
|
65
|
+
tier a job requests is recorded on the job, not scheduled against, and the table's
|
|
66
|
+
own footer says so.
|
|
67
|
+
|
|
60
68
|
**Auth** (``simulo login`` / ``logout`` / ``whoami``) drives the OAuth 2.0 +
|
|
61
69
|
PKCE loopback flow and manages
|
|
62
70
|
``~/.simulo/credentials``.
|
|
@@ -214,6 +222,7 @@ from simulo.interfaces.ids import (
|
|
|
214
222
|
parse_output_public_id,
|
|
215
223
|
parse_recording_public_id,
|
|
216
224
|
)
|
|
225
|
+
from simulo.interfaces.platform import SYSTEM_SPECS, SystemType
|
|
217
226
|
from simulo.interfaces.platform.asset_catalog import (
|
|
218
227
|
ASSET_ARCHIVE_TOO_LARGE_CODE,
|
|
219
228
|
ASSET_KINDS,
|
|
@@ -6982,6 +6991,77 @@ def _print_table(headers: tuple[str, ...], rows: Sequence[tuple[str, ...]]) -> N
|
|
|
6982
6991
|
print(" ".join(cell.ljust(width) for cell, width in zip(line, widths)).rstrip())
|
|
6983
6992
|
|
|
6984
6993
|
|
|
6994
|
+
#: One line, plain language, no jargon: forecloses the exact misreading issue
|
|
6995
|
+
#: #1512 documents in the wild (the samples repository's "no GPU requested"
|
|
6996
|
+
#: silently being read as "schedules faster" — untrue on a single-fleet
|
|
6997
|
+
#: platform). A numbered tier ladder invites the identical misreading in the
|
|
6998
|
+
#: other direction — "higher tier, faster/better scheduling" — for
|
|
6999
|
+
#: ``system=SystemType.TIER_4``, so this explicitly rules out BOTH readings,
|
|
7000
|
+
#: not just states the record-only fact and hopes the reader draws the right
|
|
7001
|
+
#: conclusion. Printed by the table view only: ``--json`` is a machine
|
|
7002
|
+
#: contract and never carries prose.
|
|
7003
|
+
_SYSTEMS_FOOTER = (
|
|
7004
|
+
"Your `system=` choice is recorded on the job. It does not select your hardware today: "
|
|
7005
|
+
"no tier schedules faster or trains better than another, and neither does leaving "
|
|
7006
|
+
"`system=` out entirely."
|
|
7007
|
+
)
|
|
7008
|
+
|
|
7009
|
+
|
|
7010
|
+
def _system_tier_label(system: SystemType) -> str:
|
|
7011
|
+
"""The human-facing tier label for the table view, e.g. ``SystemType.TIER_1`` ->
|
|
7012
|
+
``"Tier 1 (tier1)"``. The parenthesized wire value is the exact string
|
|
7013
|
+
``system=`` accepts (what ``--json`` prints under the ``"system"`` key);
|
|
7014
|
+
the table would otherwise show a reader nothing they could type."""
|
|
7015
|
+
return f"{system.name.replace('_', ' ').title()} ({system.value})"
|
|
7016
|
+
|
|
7017
|
+
|
|
7018
|
+
def _cmd_systems(args: argparse.Namespace) -> int:
|
|
7019
|
+
"""``simulo systems [--json]`` — list the published GPU system tiers.
|
|
7020
|
+
|
|
7021
|
+
Reads only the static, in-package ``SYSTEM_SPECS`` catalog from
|
|
7022
|
+
``simulo-interfaces``: no client construction, no credential resolution,
|
|
7023
|
+
no network call of any kind. Always lists all four tiers, including the
|
|
7024
|
+
two not yet available — the point is to show what exists and what the
|
|
7025
|
+
fleet can provision TODAY, not to hide the rest.
|
|
7026
|
+
|
|
7027
|
+
The raw AWS SKU behind a tier never appears in either output — the whole
|
|
7028
|
+
reason this catalog names abstract tiers instead of a hardware SKU (see
|
|
7029
|
+
``SystemSpec``'s own docstring for the field that stays off every
|
|
7030
|
+
user-facing surface, including this one).
|
|
7031
|
+
"""
|
|
7032
|
+
if args.json:
|
|
7033
|
+
records = [
|
|
7034
|
+
{
|
|
7035
|
+
"system": system.value,
|
|
7036
|
+
"gpu_model": spec.gpu_model,
|
|
7037
|
+
"vram_gb": spec.vram_gb,
|
|
7038
|
+
"vcpu": spec.vcpu,
|
|
7039
|
+
"memory_gb": spec.memory_gb,
|
|
7040
|
+
"max_parallel_envs": spec.max_parallel_envs,
|
|
7041
|
+
"available": spec.available,
|
|
7042
|
+
}
|
|
7043
|
+
for system, spec in SYSTEM_SPECS.items()
|
|
7044
|
+
]
|
|
7045
|
+
print(json.dumps(records, indent=2))
|
|
7046
|
+
return 0
|
|
7047
|
+
|
|
7048
|
+
rows = [
|
|
7049
|
+
(
|
|
7050
|
+
_system_tier_label(system),
|
|
7051
|
+
spec.gpu_model,
|
|
7052
|
+
f"{spec.vram_gb} GB",
|
|
7053
|
+
str(spec.vcpu),
|
|
7054
|
+
f"{spec.memory_gb} GB",
|
|
7055
|
+
str(spec.max_parallel_envs) if spec.max_parallel_envs is not None else "not yet measured",
|
|
7056
|
+
"available" if spec.available else "not yet available",
|
|
7057
|
+
)
|
|
7058
|
+
for system, spec in SYSTEM_SPECS.items()
|
|
7059
|
+
]
|
|
7060
|
+
_print_table(("TIER", "GPU MODEL", "VRAM", "VCPU", "MEMORY", "MAX PARALLEL ENVS", "STATUS"), rows)
|
|
7061
|
+
print(_SYSTEMS_FOOTER)
|
|
7062
|
+
return 0
|
|
7063
|
+
|
|
7064
|
+
|
|
6985
7065
|
#: The frozen local-development cache root for ``simulo asset get``:
|
|
6986
7066
|
#: ``~/.simulo/assets/<org>/<kind>/<name>/v<N>/`` — colon-free segments,
|
|
6987
7067
|
#: NTFS-safe. Mirrors ``credentials.CREDENTIALS_PATH``'s
|
|
@@ -8013,7 +8093,7 @@ def _build_parser() -> argparse.ArgumentParser:
|
|
|
8013
8093
|
prog="simulo",
|
|
8014
8094
|
description=(
|
|
8015
8095
|
"Simulo thin client — submit an app to the Simulo cloud and observe its runs "
|
|
8016
|
-
"(simulo jobs / logs / result / recordings / models / outputs / export / view / cancel)."
|
|
8096
|
+
"(simulo systems / jobs / logs / result / recordings / models / outputs / export / view / cancel)."
|
|
8017
8097
|
),
|
|
8018
8098
|
)
|
|
8019
8099
|
# ``action="version"`` fires (prints + exits 0) while argparse is still
|
|
@@ -8757,6 +8837,20 @@ def _build_parser() -> argparse.ArgumentParser:
|
|
|
8757
8837
|
)
|
|
8758
8838
|
models.set_defaults(func=_observe_handler(models, _cmd_models))
|
|
8759
8839
|
|
|
8840
|
+
systems = sub.add_parser(
|
|
8841
|
+
"systems",
|
|
8842
|
+
help=(
|
|
8843
|
+
"List the published GPU system tiers `@app.job(system=...)` accepts — table or "
|
|
8844
|
+
"--json. Reads only the in-package catalog: no network call."
|
|
8845
|
+
),
|
|
8846
|
+
)
|
|
8847
|
+
systems.add_argument(
|
|
8848
|
+
"--json",
|
|
8849
|
+
action="store_true",
|
|
8850
|
+
help="Print the tier catalog as a JSON array instead of a table (automation-friendly).",
|
|
8851
|
+
)
|
|
8852
|
+
systems.set_defaults(func=_observe_handler(systems, _cmd_systems))
|
|
8853
|
+
|
|
8760
8854
|
# `simulo export` — one command, no arguments, on the happy path. Every
|
|
8761
8855
|
# option below overrides a default that was already correct (#654): the
|
|
8762
8856
|
# latest job, its best checkpoint, ONNX, download, unpack. A new REQUIRED
|
|
@@ -420,6 +420,7 @@ class SubmitApiClient:
|
|
|
420
420
|
seed_from_job_id: Optional[str] = None,
|
|
421
421
|
assets: Optional[list[dict[str, str]]] = None,
|
|
422
422
|
app_name: Optional[str] = None,
|
|
423
|
+
system: Optional[str] = None,
|
|
423
424
|
) -> dict[str, Any]:
|
|
424
425
|
"""``POST /v1/jobs`` — create the job that executes *package_id*.
|
|
425
426
|
|
|
@@ -441,6 +442,14 @@ class SubmitApiClient:
|
|
|
441
442
|
predates the live-visualization plan's ``JobSubmitRequest`` field
|
|
442
443
|
simply ignores an absent key, same as it ignores any unknown field.
|
|
443
444
|
|
|
445
|
+
``system`` (system-tier-catalog-1362, M50-persistence) is the
|
|
446
|
+
already-validated tier wire value (e.g. ``"tier1"``) from the job's
|
|
447
|
+
own manifest ``resources["system"]`` — an OPTIONAL top-level sibling
|
|
448
|
+
of ``args`` for the same package-hash-invariance reason as
|
|
449
|
+
``viewstream`` above. Sent only when truthy: a control plane that
|
|
450
|
+
predates this field ignores the extra key, and the run proceeds
|
|
451
|
+
exactly as it did before ``system=`` existed.
|
|
452
|
+
|
|
444
453
|
``seed_from_job_id`` (``simulo run --from``, explicit-run-intent
|
|
445
454
|
plan) follows the exact same sibling-of-``args`` rule for the exact
|
|
446
455
|
same package-hash reason — a seed is a property of THIS submission,
|
|
@@ -500,6 +509,8 @@ class SubmitApiClient:
|
|
|
500
509
|
body["app_name"] = app_name
|
|
501
510
|
if viewstream:
|
|
502
511
|
body["viewstream"] = True
|
|
512
|
+
if system:
|
|
513
|
+
body["system"] = system
|
|
503
514
|
if seed_from_job_id is not None:
|
|
504
515
|
body[_SEED_FROM_JOB_ID_FIELD] = seed_from_job_id
|
|
505
516
|
if assets:
|
|
@@ -209,8 +209,9 @@ def _make_env(num_envs: int) -> Any:
|
|
|
209
209
|
)
|
|
210
210
|
|
|
211
211
|
|
|
212
|
+
# system= picks a GPU tier from the published catalog; run `simulo systems` to see them.
|
|
212
213
|
@app.job(
|
|
213
|
-
|
|
214
|
+
system=simulo.SystemType.TIER_1,
|
|
214
215
|
timeout=8 * 60 * 60,
|
|
215
216
|
retries=2,
|
|
216
217
|
callbacks=[simulo.callbacks.ResumableCheckpoint(every=50)],
|
|
@@ -239,7 +240,7 @@ def train(num_envs: int = 512, max_iterations: int = 20) -> dict[str, Any]:
|
|
|
239
240
|
return {"checkpoint": checkpoint, "policy": policy_path, "num_envs": num_envs, **stats}
|
|
240
241
|
|
|
241
242
|
|
|
242
|
-
@app.job(
|
|
243
|
+
@app.job(system=simulo.SystemType.TIER_1, timeout=2 * 60 * 60)
|
|
243
244
|
def evaluate(num_episodes: int = 10, num_rounds: int = 5) -> dict[str, Any]:
|
|
244
245
|
"""Evaluate the saved checkpoint over several rounds; aggregate with numpy."""
|
|
245
246
|
import json
|
|
@@ -283,7 +284,7 @@ def evaluate(num_episodes: int = 10, num_rounds: int = 5) -> dict[str, Any]:
|
|
|
283
284
|
return {"report": report_path, **report}
|
|
284
285
|
|
|
285
286
|
|
|
286
|
-
@app.job(
|
|
287
|
+
@app.job(system=simulo.SystemType.TIER_1, timeout=1 * 60 * 60)
|
|
287
288
|
def rollout(num_steps: int = 200) -> dict[str, Any]:
|
|
288
289
|
"""Inference path: play the exported TorchScript policy and record it to MCAP.
|
|
289
290
|
|
|
@@ -64,7 +64,8 @@ class {{APP_NAME}}Scenario(simulo.Scenario): # -> ScenarioProtocol at submit, r
|
|
|
64
64
|
app = simulo.App("{{APP_NAME}}")
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
# system= picks a GPU tier from the published catalog; run `simulo systems` to see them.
|
|
68
|
+
@app.job(system=simulo.SystemType.TIER_1, timeout=30 * 60)
|
|
68
69
|
def simulate(num_steps: int = 1000, num_envs: int = 4) -> dict[str, Any]:
|
|
69
70
|
"""Run the scenario headless on the worker. EDIT: device / step count / env count.
|
|
70
71
|
|
|
@@ -193,8 +193,9 @@ class {{APP_NAME}}Task(simulo.Task):
|
|
|
193
193
|
# Retries are safe: ResumableCheckpoint declares periodic checkpoints (every 50
|
|
194
194
|
# iterations) and resume defaults to "auto", so a retried / preempted run resumes
|
|
195
195
|
# from the latest checkpoint instead of restarting.
|
|
196
|
+
# system= picks a GPU tier from the published catalog; run `simulo systems` to see them.
|
|
196
197
|
@app.job(
|
|
197
|
-
|
|
198
|
+
system=simulo.SystemType.TIER_1,
|
|
198
199
|
timeout=8 * 60 * 60,
|
|
199
200
|
retries=2,
|
|
200
201
|
callbacks=[simulo.callbacks.ResumableCheckpoint(every=50)],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: simulo
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.26.0
|
|
4
4
|
Summary: Simulo SDK and CLI — define robotics simulation and training apps in Python and run them on the Simulo cloud.
|
|
5
5
|
Author-email: Simulo Team <team@simulo.ai>
|
|
6
6
|
License: BSD-3-Clause
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
15
15
|
Classifier: Typing :: Typed
|
|
16
16
|
Requires-Python: >=3.11
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
|
-
Requires-Dist: simulo-interfaces<0.
|
|
18
|
+
Requires-Dist: simulo-interfaces<0.20,>=0.19.0
|
|
19
19
|
Requires-Dist: mcap<2,>=1.3
|
|
20
20
|
Requires-Dist: defusedxml>=0.7.1
|
|
21
21
|
Requires-Dist: usd-core<27,>=26.5
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|