Repository navigation
feat(core): Rich Platform support - #6178
Conversation
|
This is implemented completely differently from the design in #4458, what made you go for The first thing I tried was: [workspace]
channels = ["conda-forge"]
platforms = [{ name = "osx-arm64", subdir = "osx-arm64", virtual-packages = ["__osx=14"] }]
# [system-requirements]
# macos = "13.3"
[dependencies]
mlx = "*"Which only works with the system requirements enabled. So I believe this the virtual packages are not hooked up. There is very little for me to test right now as not sure what could work. It might be good to start out with making the |
|
I am aware that this still differs significantly from #4458. You repeatedly asked to see this ASAP, this is the minimum working set I could push to enable you to take a look. Apparently I did fail abysmally at expectation management. Sorry for that. I went with what we decided to put into the lock file: That is the bare-bones implementation we have to deal with -- at least while we stick with lockfile-v7 and Pixi has to interface with that. What is here is the plumbing: You can define, edit and delete rich platforms -- which will internally stay with the internals they have I expect. They we wired up to get passed around and target selection works for them. Satisfiability checks fail when you change platforms. The cli is just for me to debug this plumbing. It needs to change, I am fully aware of that. The |
|
The pixi.toml file seems to trigger a bit too eagerly. I'll take a look next week. |
3d42139 to
eb930a7
Compare
|
Forgot to update the docs ;-) |
[workspace]
channels = ["conda-forge"]
platforms = [{ name = "osx-arm64", platform = "osx-arm64", macos="14" }]
[system-requirements]
macos = "13.3"
[dependencies]
mlx = "*"This creates one platform with a different name: Which I think is incorrect, the platforms configuration should "win" over the The platform logic can't deal with the "rich" platforms yet. And I think we shouldn't rename them when we don't rename them. [workspace]
channels = ["conda-forge"]
platforms = ["osx-arm64", "linux-64"]
[system-requirements]
macos = "13.3"
libc = "2.27"
cuda = "11"
[dependencies]
mlx = "*"I believe the platforms should still be named [workspace]
channels = ["conda-forge"]
platforms = [
{ name = "osx-64", platform = "osx-64", macos="10.15" },
{ name = "latest-osx-arm64", platform = "osx-arm64", macos="15" },
{ name = "osx-arm64", platform = "osx-arm64", macos="14" },
"linux-64",
]
[dependencies]
mlx = "*"I'm not sure what is going on here, but somehow I got into a state where this error was shown. I can't reproduce it so maybe check the error and if there could be a code path that ends up in that error state. Because that makes no sense to me. |
|
@ruben-arts: You are hitting a limitation I do not see any good way around: We use TargetSelector a lot, which are serialized as simple strings. The rich platforms have to fit into that model (or at least I thought that would be best), so I must make sure they serialize to a string that does not cause contradictions in the TargetSelector. For this reason family names like Case 1This should have error-ed out on the platform definition (and indeed does so now;-). Case 2This is what happens: The current machine has no CUDA, so it does not match the specification of the platform attached to the workspace and errors out. That is technically correct, but the error message is abysmal and needs improvement. No question about that! And macos machines should not get the cuda virtual package defined in the first place. Update: This is what it will look in after the next push: Update II: Mac is now ignoring __cuda when generating a platfrom based on system-requirements. It still accepts the flag when you add it manually. Case 3I can not test this one: It effects macos only. Update: It should be fixed in the next push. |
1fbf69f to
568a026
Compare
Can you please make this default to |
Could you clearify in this info view which platform would be selected as the current platform? |
8543f28 to
f2d5455
Compare
|
I am not happy yet with the Then dim out anything not matching your computer? |
|
If I rename a platform it doesn't invalidate the lockfile. |
|
As discussed, could you rewrite the |
Workspace-platform UX reworkFive commits, all building on the rich-platform work that's already on the Commits
1.
|
| Command | Status before today | Status after today |
|---|---|---|
add, remove, task add/remove/alias |
mixed (strict on tasks) | unified via shared resolver |
update, list, tree, search, exec, import |
Platform (subdir) |
PixiPlatformName |
install, reinstall |
no flag | --platform <PixiPlatformName> with cross-target warning |
workspace platform list / show |
two commands | one list with rich output |
Still pending (flagged but not in this batch):
--platformparity onlock,upgrade.--platformonshell-hook(informational).- Migrate
build/publishfrom--target-platform <Platform>to a
PixiPlatformName-aware resolver.
Tests
- 1973 workspace tests pass (
cargo nextest run --workspace). - Clippy clean on all targets.
- All integration-test additions:
platform_renameunit tests (4): identity match, no-rename when target
name is already taken, no-rename for unmatched entries, default-VP
tolerance.- Task integration tests (2):
task add --platform <subdir>auto-declares;
task remove --platform <subdir>does not. pixi workspace platform listPython integration tests covering the new
output: detection header, supported marker, dim/highlight behaviour,
env/feature continuation lines,CONDA_OVERRIDE_CUDA/
PIXI_OVERRIDE_PLATFORMhonoured.resolve_install_platformunit tests (4): unset returnsNone, declared
platform resolves, cross-platform subdir resolves with warning, invalid
name errors.
CLI documentation regenerated via pixi run generate-cli-docs.
I think we should still support |
[workspace]
channels = ["conda-forge"]
description = "A mock project that does ML stuff"
name = "multi-machine"
# The platforms fields can define custom platform features, like `cuda` and `osx` in this example.
# Use the field `name` to easily manage platform specific definitions.
platforms = [
{ name = "cuda-win-64", platform = "win-64", cuda = "12"},
"win-64",
{ name = "cuda-linux-64", platform = "linux-64", cuda = "12" },
"linux-64",
{ platform = "osx-arm64", macos = "13.5" },
]
[tasks]
start = { depends-on = ["train", "test"] }
test = "python test.py"
train = "python train.py"
[dependencies]
ipykernel = "*"
matplotlib-base = "*"
polars = "*"
python = "*"
torchvision = "*"
pytorch = "*"
[target.cuda-win-64.tasks]
test = "python test.py --cuda"
train = "python train.py --cuda"
[target.cuda-linux-64.tasks]
test = "python test.py --cuda"
train = "python train.py --cuda"
[target.osx.dependencies]
mlx = ">=0.16.1,<0.17"
[target.osx.tasks]
test = "python test.py --mlx"
train = "python train.py --mlx"
[target.osx-arm64.dependencies]
mlx = "*"Having this toml, with especially this line: [target.osx-arm64.dependencies]
mlx = "*"It will add the following table after [target.osx-arm64-macos-13-5.dependencies]
mlx = "*" |
|
In the single environment usecase I would leave out the |
|
Right now changing the name in the If we don't sync the lockfile with this name I would use a different identifier for the lockfile platforms. For example changing this: platforms = [
{ name = "cuda-win-64", platform = "win-64", cuda = "12"},
]To this: platforms = [
{ name = "bla", platform = "win-64", cuda = "12"},
]Will keep this value in the lockfile right now: version: 7
platforms:
- name: cuda-win-64
subdir: win-64
virtual-packages:
- __cuda=12
- __win=10.0
- __archspec=0=x86_64 |
|
Blocking issue, we've decided previously that we don't block the run of an environment based on the system requirements but based on the virtual package requirements of the environment. e.g.: [workspace]
channels = ["conda-forge"]
platforms = ["osx-arm64"]
[dependencies]
python = "==3.12.0"
[system-requirements]
macos = "50.0"Even though The current implementation will give this error: Edit: |
|
Here are some more review notes from clanker: Panic in
|
Lock-file platform names come from rattler's permissive PlatformName but were converted to the stricter PixiPlatformName with `.expect(...)`, so a foreign or hand-edited lock file (e.g. a platform named `linux`, or one containing an underscore) crashed pixi at the boundary. Handle the mismatch per call site: satisfiability and the update path skip such names (the platform is re-solved), the lock-file rebuild keeps their packages verbatim instead of dropping them, and the diff keys on the raw name so foreign platforms still appear. Add a pixi_diff regression test.
Rename the workspace-platform `libc` friendly key to `glibc` (it always mapped to `__glibc`; the old name implied a generic libc) across the TOML model, the `pixi workspace platform` CLI flag, the JSON schema, docs, and tests. Make the libc family behave correctly when a user configures musl/eglibc, which sit beyond CEP-30's glibc-only standard: - `CONDA_OVERRIDE_GLIBC` now governs glibc alone: unset leaves libc packages untouched, an empty value removes `__glibc`, and a version pins `__glibc=<version>=0` and displaces `__musl`/`__eglibc`. It no longer rewrites or drops non-glibc families through rattler's glibc-only slot. - Run-time verification accepts `__musl`/`__eglibc` instead of silently skipping them, so a configured musl requirement is actually checked. - The detected-package display restores the declared libc family rather than showing the glibc label rattler's override slot forces. The subdir-default merge already suppresses the default `__glibc` when a libc family is declared; this adds the missing test coverage for that.
`PixiPlatform`'s `Eq`/`Hash` are by name only, so two platform entries that resolve to the same name silently collapsed into the name-keyed `IndexSet`, keeping whichever appeared first. Deserialize the entries with per-entry spans and emit a `DuplicateKey` error pointing at both occurrences instead.
The derived `Deserialize` (transparent over `String`) accepted any value - empty, reserved family names, malformed - bypassing the validation every other construction path enforces via `TryFrom`. `pixi_api` deserializes `Vec<PixiPlatformName>` from external input, so replace the derive with a hand-written impl that routes through `TryFrom` and rejects invalid names.
After renaming the platform key to `glibc`, three docs still referenced the old `libc` friendly key / a nonexistent `__libc` package in prose mappings and a CLI example; update them to `glibc`/`__glibc`. Also fix doc-comment merge artifacts: an orphaned first line and a sentence truncated mid-word on `print_autodetected_host`, and a marker-file paragraph that documented `installed_platform_data` but sat on `install_platform`.
`store_credentials_from_project` looked up each `env.platforms()` name with
`.expect("Internal error: Unknown platform used")`. A feature whose declared
`platforms` list outlives a workspace platform removal (a dangling reference)
yields a name absent from `workspace.platforms`, panicking the lookup.
Drop the panicking helper and pass the `Option` through to
`combined_dependencies`, matching the sibling
`extract_git_requirements_from_workspace`.
Unify the three divergent virtual-package renderings (pixi info, pixi workspace platform list text, and its --json) onto a single `inline_virtual_package_specs(declared, baseline)`: friendly key when one exists (`cuda`, `glibc`, ...), raw `__name` otherwise, and a bare key for a version-0 entry. The optional `baseline` filters the subdir defaults -- passed for declared platforms, omitted for the computed resolved/minimum sets.
`add_task` and `alias_task` duplicated the resolve-platform + auto-declare + `add_task` block verbatim. Lift it into `declare_platform_and_add_task` so the platform-resolution rules stay in lock-step by construction; the only difference (the feature the task lands on) is a parameter.
`get_macos_platform_tags` accepted a single-segment `__osx` version (`15` -> `15.0`) but `get_pypi_platform_from_virtual_packages` errored on it. Lift the fallback into a shared `macos_major_minor` helper used by both, so a major-only macOS version resolves the same on the tag path and the validation path.
Polish pass over the rich-platforms branch following review: - document: stop creating an empty `[feature.X]` table as a side effect of removing `[system-requirements]` from a feature that has no table - platform CLI: reject a bare `__` as a virtual-package spec - virtual_packages: rewrite the archspec if/else as an early return - environment: sort references (not clones) in `virtual_packages_match`, and expose `installed_resolved_platform` to avoid a second name-based lookup - features_ext: replace the per-feature `Box<dyn Iterator>` with `itertools::Either` - task search: drop the redundant double platform lookup - use `temp_env::with_var` instead of unsafe `set_var` in the platform test - drop a speculative TODO and dead test scaffolding Tests: - platform axis of the `UnrunnableTask` guard - host-only (not just build-only) package preservation across platform rename - `run --platform` membership error fires before any solve - `VirtualPackageArgs::into_specs` subdir-family validation
`workspace platform edit` rebuilt the whole [workspace].platforms array from a sorted view, which reordered the entries and collapsed the multi-line layout into one line. A single-platform edit now replaces only that entry in place, preserving its surrounding whitespace and the order of the other entries; the full rebuild is kept only for the legacy [system-requirements] migration, where every entry transforms at once.
* fix: don't misclassify missing python as pypi-only during upgrade (prefix-dev#6095) * chore(docs): Update the pixi publish docs (prefix-dev#6129) * fix: drop bare self-references in expand_self_extras (prefix-dev#6142) * chore(ci): Update Pixi (prefix-dev#6149) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(ci): Update GitHub Actions (prefix-dev#6148) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: use gnu target for riscv64 in install.sh (prefix-dev#6143) * feat(publish): honor workspace.s3-options when uploading to s3 (prefix-dev#6069) * feat: add oauth default login (prefix-dev#6140) * fix: propagate run-exports from host/build (prefix-dev#6151) * chore(deps): bump uv to 0.11.15 (prefix-dev#6132) * perf: install build and host environments concurrently (prefix-dev#6152) * feat(publish): add `--variant` and `--variant-config` flags (prefix-dev#6109) * chore(deps): bump rattler crates (prefix-dev#6153) * docs: Fix typo (prefix-dev#6157) * feat: add `--package-format` to `pixi publish` for tar.bz2 output (prefix-dev#6156) * fix: hook up repodata fetch reporter to gateway queries (prefix-dev#6112) * fix: invalidate build-backend metadata cache when backend spec changes (prefix-dev#6111) * chore(deps): bump rattler-build crates to latest main (prefix-dev#6163) Co-authored-by: Claude <[email protected]> * fix: normalize extras order in lockfile metadata comparison (prefix-dev#6165) * fix: trust path-based pypi overrides for transitive registry specs (prefix-dev#6169) * fix: build backends nightly build - pass through more vars to fix sccache (prefix-dev#6168) * fix: build backends build by disabling env isolation (prefix-dev#6170) * chore: version to 0.69.0 (prefix-dev#6164) * fix: conda package build for windows and osx (prefix-dev#6171) Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]> * chore: bump backend versions (prefix-dev#6173) * docs: Update `github_actions` docs for `setup-pixi` version 0.9.6 (prefix-dev#6174) Co-authored-by: Pavel Zwerschke <[email protected]> * feat: implement v3 repodata/matchspec support in pixi spec (prefix-dev#6015) * fix: bump mimalloc to 0.1.51 to fix win-arm64 process-exit crash (prefix-dev#6176) Co-authored-by: Claude <[email protected]> * feat: support `[workspace.dependencies]` (prefix-dev#6162) * fix(pypi-mapping): fetch parselmouth compressed mapping from conda-mapping.prefix.dev (prefix-dev#6172) Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]> * feat: clamp .pixi/ mtimes to SOURCE_DATE_EPOCH for reproducibility (prefix-dev#6056) * chore(ci): Update azure/trusted-signing-action action to v2 (prefix-dev#6200) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(ci): Update Rust crate shlex to v2 (prefix-dev#6201) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(ci): Update GitHub Actions (prefix-dev#6195) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(ci): Update Pixi (prefix-dev#6196) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(reinstall): wire up progress reporter and batch environments (prefix-dev#6205) Co-authored-by: Lucas Colley <[email protected]> * fix: forward termination signal (prefix-dev#6204) * fix(global): clear conda stack env for prefix-ignore trampolines (prefix-dev#6210) Co-authored-by: jinhyuk9714 <[email protected]> Co-authored-by: GitHub Actions <[email protected]> * chore(ci): Update taiki-e/install-action action to v2.79.2 (prefix-dev#6209) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * docs: clarify per-environment activation variables (prefix-dev#6214) Co-authored-by: Claude <[email protected]> Co-authored-by: Hofer-Julian <[email protected]> * fix: git url normalization (prefix-dev#6203) * feat: adopt deno_task_shell native multiline support (prefix-dev#6211) * fix: installer, use per user scope instead of system (prefix-dev#5568) * fix: disable gpg signing in git fixture repos (prefix-dev#6216) Co-authored-by: Claude <[email protected]> * fix(pixi-build-r): resolve license file to absolute path (prefix-dev#6215) * chore: use lzma-rust2 instead of xz2 (prefix-dev#5087) * feat: add skip_pyc_compilation configuration option (prefix-dev#5737) * chore: use "lock file" consistently (prefix-dev#6208) * feat(pixi-build): plumb workspace scratch directory and cache ROS distro fetches (prefix-dev#6181) * docs(cli): mention `pixi self-update` in `requires-pixi` help msg (prefix-dev#6207) * feat: git lfs support in `pixi-git` (prefix-dev#6183) * feat: parallel global update (prefix-dev#5970) * feat(pixi-build-ros): discover sibling ROS packages + marker-driven workspace globbing (prefix-dev#6182) * docs: Update link to Code of Conduct in CONTRIBUTING.md (prefix-dev#6224) * fix: tests on main did not update assertion for `.git` suffix (prefix-dev#6227) * perf: compute engine and dispatcher speedups + backend-metadata cache fix (prefix-dev#6180) * chore: use rust backend for building ros backend (prefix-dev#6228) * fix: reject build backends defined as source dependencies (prefix-dev#6230) * fix: reinstall when registry install collides with non-registry lock entry (prefix-dev#6213) Co-authored-by: Claude <[email protected]> * fix: clear error on remove with suggestions for missing dependency (prefix-dev#6218) Co-authored-by: Claude <[email protected]> * fix: seed pypi-options from global config in `--import` and existing pyproject paths (prefix-dev#6212) Co-authored-by: Claude <[email protected]> * fix: keep OS trust store for native-tls System mode (prefix-dev#6235) Co-authored-by: Claude <[email protected]> * feat: support --no-config / --config-file (prefix-dev#6222) * fix: upgrade dependency-group dependencies (prefix-dev#6241) * chore: reuse build cache by passing `--workspace` (prefix-dev#6242) * feat: extend pixi publish to support cloudsmith as a target (prefix-dev#6219) * chore: version to 0.70.0 (prefix-dev#6244) * chore(ci): Update cargo patches (prefix-dev#6247) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(ci): Update Pixi (prefix-dev#6248) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(ci): Update GitHub Actions (prefix-dev#6250) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: add --index option to specify PyPI index URL (prefix-dev#5575) * chore: bump backend versions (prefix-dev#6254) * fix: scope PyPI source-build cache by conda environment (prefix-dev#6240) This change scopes the source-build cache to the conda environment, so a wheel built against one set of conda dependencies is no longer reused in an environment that resolves different ones * fix: limit concurrent global update (prefix-dev#6253) * fix: global share command dispatcher (prefix-dev#6255) * docs: link to parselmouth mapping browser in conda/PyPI page (prefix-dev#6256) * fix(pixi-build-python): reinstall to avoid duplicate dist-info (prefix-dev#6257) Co-authored-by: Claude <[email protected]> * feat: implement extras and flags support for pixi and pixi-build (prefix-dev#5998) Co-authored-by: Bas Zalmstra <[email protected]> * feat: serialize concurrent environment installs and recover from interrupted ones (prefix-dev#6233) Co-authored-by: Claude <[email protected]> * chore(ci): Update Rust crate jiff to v0.2.27 (prefix-dev#6258) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: support conda extras for satisfiabily and solve groups (prefix-dev#6260) * chore(ci): Update GitHub Actions to v2.79.9 (prefix-dev#6261) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore: version to 0.70.1 (prefix-dev#6268) * fix: compare pypi git urls using the raw url, not uv's canonical one (prefix-dev#6272) Co-authored-by: Claude <[email protected]> * fix: keep conda-env build discriminator out of PEP 517 config_settings (prefix-dev#6273) Co-authored-by: Claude <[email protected]> * fix: accept find-links URLs during lock file satisfiability (prefix-dev#6270) Co-authored-by: Claude <[email protected]> * chore: strip debug info from dependencies in dev builds (prefix-dev#6283) * chore: Bump tikv-jemallocator to 0.7.0 (prefix-dev#6278) * ci: speed up ubuntu and macOS x86 CI (prefix-dev#6280) * feat: Improve PyPI > Conda clobber detection (prefix-dev#6292) * fix(ros): avoid pixi lock panics on unmappable ROS dependencies (prefix-dev#6290) Co-authored-by: Claude <[email protected]> * fix: preserve file permissions during atomic write operations (prefix-dev#6296) * chore: version to 0.70.2 (prefix-dev#6298) Co-authored-by: Ruben Arts <[email protected]> * feat(core): Rich Platform support (prefix-dev#6178) * test: move examples satisfiability tests to Python (prefix-dev#6300) * fix: honor workspace [cache.*] overrides for conda-pypi mapping cache (prefix-dev#6284) * fix: stop source builds rebuilding from scratch on every run (prefix-dev#6285) * fix: suggest the correct cache config key in netfs-redirect warning (prefix-dev#6282) * test: skip example satisfiability checks on unsupported platforms (prefix-dev#6311) * chore(ci): Update Pixi (prefix-dev#6305) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(ci): Update cargo patches (prefix-dev#6304) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(ci): Update GitHub Actions to v2.81.1 (prefix-dev#6307) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * refactor: pypi mapping module so that its a bit more logically named (prefix-dev#6302) * docs: Remove pixi-inject page (prefix-dev#6276) * chore(ci): Update GitHub Actions to v2.81.2 (prefix-dev#6313) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(test): make test_info_output_extended platform-agnostic (prefix-dev#6314) * test: skip pytorch doc examples on platforms they don't support (prefix-dev#6317) * fix(core): key locked records by declared platform for rich platforms (prefix-dev#6315) * chore(ci): Update GitHub Actions to v6.0.3 (prefix-dev#6319) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(ci): Update Pixi to >=0.24,<0.25 (prefix-dev#6321) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat(pixi_spec): support extras, flags and when on conda dependencies (prefix-dev#6262) * fix(satisfiability): detect extra-dependency drift for source packages (prefix-dev#6263) * docs: add a pixi-build v3 example using extras, flags and when (prefix-dev#6264) * fix(ci): Attest the tarballs and the binary inside separately (prefix-dev#6266) * chore: bump pixi-build-api-version to 5 (prefix-dev#6328) * ci: move doc examples to `pixi_build` (prefix-dev#6330) * fix: stop requiring old backend version doc example (prefix-dev#6338) * feat(test): Do not run tests un unsupported platforms --------- Co-authored-by: Bas Zalmstra <[email protected]> Co-authored-by: Tobias Hunger <[email protected]> Co-authored-by: Ben Moss <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: nichmor <[email protected]> Co-authored-by: Wolf Vollprecht <[email protected]> Co-authored-by: Pavel Zwerschke <[email protected]> Co-authored-by: Claude <[email protected]> Co-authored-by: Ruben Arts <[email protected]> Co-authored-by: Andreas Albert <[email protected]> Co-authored-by: Lucas Colley <[email protected]> Co-authored-by: Hofer-Julian <[email protected]> Co-authored-by: jinhyuk9714 <[email protected]> Co-authored-by: GitHub Actions <[email protected]> Co-authored-by: Filippo Luca Ferretti <[email protected]> Co-authored-by: samrosenf <[email protected]> Co-authored-by: Ruben Arts <[email protected]> Co-authored-by: jmayes-rx <[email protected]> Co-authored-by: Suleman Karigar <[email protected]> Co-authored-by: Tim de Jager <[email protected]> Co-authored-by: Kevin Mills <[email protected]>
…res (#76) * pixi.toml: declare explicit platforms on ide/robocap-slam/pyvrs-viewer Since pixi 0.71 (prefix-dev/pixi#6178), a feature that omits 'platforms' defaults to every platform any feature references — not the workspace list. These three features therefore inherited an osx-arm64 demand from 'common' (added in #67) that libcublas can never satisfy, so EVERY lock write in the workspace (pixi install -e <anything>, pixi lock) aborted on pixi >= 0.71 with: failed to solve requirements of environment 'robocap-slam' for platform 'osx-arm64' ... No candidates were found for libcublas Declaring the linux platforms removes the phantom demand. ide also clears the 'dev' env (which composes it). Validated on pixi 0.70.0, 0.72.2, and 0.73.0. AGENTS.md documents the rule for new features. * pixi.lock: one-time true-up under pixi 0.73.0 With the phantom demands gone, the first modern-pixi lock write solves the remaining legitimately-missing pairs: live-rerun/live-rerun-dev gain their intended osx-arm64 entries (the feature declares macOS support; the entries were only absent because pre-0.71 pixi never computed the demand). After this, 'pixi lock --check' passes clean on 0.73.0 and the lock is writable by any pixi >= 0.70. --------- Co-authored-by: pablo vela <[email protected]>
* docs: rewrite root README as a monorepo map, fix stale package docs Root README rewritten as a 2-minute orientation: what the Pixi workspace is, a verified 3-step quick start, optional direnv workflow, a complete 25-package index, and the env/task/--frozen conventions. AGENTS.md corrected to distinguish runnable, build-only, vendored, and docs-only packages. Eleven package READMEs fixed against actual pixi.toml tasks, environments, and paths (wrong env flags, dead links, renamed tasks, obsolete prerelease claims). Every remaining claim was checked against the task list or file tree; ambiguous items were left alone. Co-Authored-By: Claude Fable 5 <[email protected]> * Add in-house G3T multiview backend (#74) * Add in-house G3T multiview backend * Speed up warm G3T multiview inference * Speed up G3T RGB materialization * Add 10x G3T demo inference profile * Revert "Add 10x G3T demo inference profile" This reverts commit ac0c4c2. * Speed up confident point cloud materialization * Speed up exact confidence filtering * Fix dynamic-shape G3T calibration * Filter refined calibration point clouds * Simplify G3T runtime and address review * Add official G3T Gradio examples * Fix confidence-controlled point cloud density * Default Gradio apps to pure G3T --------- Co-authored-by: pablo vela <[email protected]> * Land the posekit stack (#63-#65) onto main (#75) * posekit docs: 11-paper pipeline comparison (evidence base for design.md) DAG decomposition of MEgATrack, UmeTrack, Kineo, EPFL Smart Kitchen, AssemblyHands(-X), MAMMA, EgoExo-Hands, SHOW3D, HO-Cap, and Look Ma No Markers: extracted pipeline figures, role-colored Graphviz DAGs, stage x paper matrix, and the abstraction proposal (design.md confirmed + 4 amendments). build.py regenerates the HTML from json/ + figures/; see README.md for the add-a-paper protocol. * simplecv docs: exoego dataset coverage audit (source labels vs logged modalities) Read-only audit of the 10 registered exoego datasets: true data source, full upstream label inventory, what the loaders parse, what reaches Rerun, gap tables with fixes, and proposed exoego:v2 schema extensions (objects, segmentation, gaze, actions, multi-person keypoints). Self-contained HTML; open in a browser. * posekit docs: rewrite pipeline-comparison build.py to house style Typed, documented, and structured: PEP 526 annotations throughout, Google docstrings, descriptive names, module-level script code moved into load_survey/render_*/main, ruff violations fixed (E702 semicolon, SIM115 open without context manager), and the dead natural-width computation dropped. Output verified byte-identical to the previously committed pipeline-comparison.html. * simplecv: get_frames_at multi-video reader API + NVDEC worker-thread context fix Add a reader-agnostic get_frames_at(frame_indices) to both MultiVideoReader (cv2, BGR numpy -> RGB CHW tensor) and TorchCodecMultiVideoReader (camera-parallel NVDEC across the worker pool). Per-video indices support timestamp alignment across drifting streams, which reader[idx] cannot express. Also fixes a latent NVDEC bug: torchcodec decoder creation from a ThreadPoolExecutor worker that never touched CUDA fails with CUDA_ERROR_INVALID_CONTEXT (error 201). _bind_cuda_context pins the primary context via torch.cuda.set_device in every decode worker, covering both the new get_frames_at path and the pre-existing iter_chunks path. * posekit: one model API for human perception networks (design.md phases 1-3) New package unifying detection, segmentation, tracking, re-ID, 2D pose, and dense landmarks behind role ABCs (PersonDetector, TopDownPose2d, PromptableSegmenter, VideoSegmenter, IdentityEncoder, TopDownDenseLandmarks2d) over three backends: torch, ONNX Runtime CUDA (IOBinding on torch data_ptrs), and TensorRT (dynamic-batch profiles min=1/opt=8/max=32, per-batch CUDA graphs, engine cache per GPU). Everything stays on the GPU: torchcodec CUDA decode in, batched grid_sample crops + UDP/classic/SimCC decoders as shared torch ops, GPU-resident prediction types out (BoxDetections, Keypoints2d, DenseLandmarks2d). Models validated against their references: YOLOX (<=4px vs rtmlib), RTMPose/RTMW (1.3px), RT-DETRv2 (<=0.31px vs HF), ViTPose (0.75px via UDP), Sapiens2 (<1px bf16 TRT), SAM3 (IoU>=0.997), SAM2/EfficientTAM streaming (IoU>=0.97), CLIP ViT-B/32 (cos>=0.985). transformers is a weights source, never a backend. Typed zoo registry + presets mirror rtmlib solutions. Registers the package in pixi.toml (posekit/posekit-dev envs, demo tasks) and pyrefly.toml. Anchors the .gitignore yolo* rule to the repo root: the unanchored pattern (meant for downloaded YOLO weights) was silently ignoring posekit/models/yolox.py and posekit/ops/yolox.py. Full design rationale in docs/design.md; per-milestone validation numbers in docs/implementation-notes.html. * mv-api + mamma: adopt posekit (GPU decode, dynamic-batch TRT, rig-path fixes) (#65) mv-api's MultiviewBodyTracker now runs on posekit roles, batched per tick and tensor-only (frames_rgb uint8 NHWC CUDA; bgr_list removed). The exoego pipeline decodes through simplecv's reader-agnostic get_frames_at — one call, camera-parallel NVDEC via TorchCodecMultiVideoReader(device="cuda") — and the default backend is TensorRT with dynamic-batch engines (no static-batch knob, any rig <=32 views just works). Parity vs the old rtmlib path: 0.3-0.6 px. Full exoego app wall time 78s -> ~17s. Also fixes pre-existing rig-migration breakage: setup_scene now builds and logs the rig layout, 2D overlays resolve rig camera pinhole paths name-first (view-index fallback) instead of legacy /world/{exo,ego}/<name> paths, and dataset pinhole params resolve camera names positionally rather than parsing them from log paths (which always yielded "cam_00" under rigs and silently fell back to estimated cameras). Guards added from adversarial review: mixed-resolution rigs fail loudly at reader construction; COCO-17 presets are rejected by the COCO-133 pipelines; filter_body_idxes is bounds-checked. mamma ships the MammaNet TopDownDenseLandmarks2d adapter (mamma.landmarks.posekit_role), bitwise-equal to its native estimator. Co-authored-by: pablo vela <[email protected]> * Review fixes from adversarial + 3-lane simplify pass (PR #75) - trt_builder: publish engines atomically (tmp + os.replace) so a killed build can't poison the existence-trusted cache; add workspace_gib and builder_optimization_level to the cache key (both affect the engine) - onnx_cuda: re-raise BeartypeException from the user_compute_stream fallback catch (repo rule; the broad catch also masked load failures) - full_exoego_pipeline: drop the exists() pre-check before the NVDEC reader swap — a missing file now raises instead of silently falling back to 2.4x-slower CPU decode (matching the stated intent) - simplecv video_io: persistent get_frames_at executor (was rebuilt every synchronized timestep in the multiview hot loop) + close() - posekit artifacts: reuse simplecv download_file (timeout, HTTP status check, streaming progress) instead of bare urlretrieve Deferred (tracked in PR notes): posekit/sapiens2-pose preprocessing consolidation, zoo registry unification, SegmentationPrompts type split, lightweight-preset RTMPose-S artifact, TRT build file-locking. * Address Copilot review: drop dead kept_nodes list, add best-effort __del__ pool cleanup --------- Co-authored-by: pablo vela <[email protected]> * Fix pixi >= 0.71 lock updates: explicit platforms on linux-only features (#76) * pixi.toml: declare explicit platforms on ide/robocap-slam/pyvrs-viewer Since pixi 0.71 (prefix-dev/pixi#6178), a feature that omits 'platforms' defaults to every platform any feature references — not the workspace list. These three features therefore inherited an osx-arm64 demand from 'common' (added in #67) that libcublas can never satisfy, so EVERY lock write in the workspace (pixi install -e <anything>, pixi lock) aborted on pixi >= 0.71 with: failed to solve requirements of environment 'robocap-slam' for platform 'osx-arm64' ... No candidates were found for libcublas Declaring the linux platforms removes the phantom demand. ide also clears the 'dev' env (which composes it). Validated on pixi 0.70.0, 0.72.2, and 0.73.0. AGENTS.md documents the rule for new features. * pixi.lock: one-time true-up under pixi 0.73.0 With the phantom demands gone, the first modern-pixi lock write solves the remaining legitimately-missing pairs: live-rerun/live-rerun-dev gain their intended osx-arm64 entries (the feature declares macOS support; the entries were only absent because pre-0.71 pixi never computed the demand). After this, 'pixi lock --check' passes clean on 0.73.0 and the lock is writable by any pixi >= 0.70. --------- Co-authored-by: pablo vela <[email protected]> * ARKitScenes full-corpus pipeline: Modal conversion, gt schema-width fix, hardened catalog registration (#80) * arkitscenes: Modal conversion pipeline (pixi-in-image, staging volume + single HF drain, S3 transfer) 32 L4 converters write to a Modal staging volume; one drain_to_hf loops upload_large_folder (HF hard-throttles repo commits, ~6/min — never point a fleet at an HF repo). transfer_to_s3 uses Modal OIDC, one-call discovery, 16 workers to stay under the xet read-token 429 threshold. * arkitscenes: fix gt schema-width blowup + harden catalog registration gt boxes move from /world/gt/boxes/box-<uid>-<label> (globally-unique paths; ~30k across the corpus) to shared slot paths box_00..box_NN with the uid as an AnyValues component. Unique entity paths become dataset schema columns and the OSS server re-merges the cumulative schema per registered file — ~cubic cost; the gt layer went from >60 min (unfinished) to 6.5 s at 5,015 files. Regression test pins the shared-path invariant. catalog.py: SKIP instead of REPLACE (REPLACE invalidates the server schema cache), poll-through-client-drop resume (the server keeps committing after the gRPC call drops; resubmits pay near-full price even on SKIP), layer-major layout auto-detect, and hard per-segment layer-completeness verification. Repro + upstream issue: rerun-io/rerun-schema-width-register-repro * arkitscenes: full-corpus runbook (steps, rate limits, storage cheat sheet, gotchas) * arkitscenes: simplification pass from parallel review - catalog.py: use the exact rerun_layer_names segment-table column (matches prompt-da) instead of fuzzy discovery; name the dual-layout path rule once in layer_files (kills the walrus-in-ternary comprehension); drop the redundant client param; add a 2h poll deadline so a dead server raises instead of polling forever; re-raise BeartypeException per repo rule. - convert_sequences.py: drop the per-sequence nvenc probe (runbook says to distrust it; read encoder provenance off the RRD instead); correct the 'workers never touch HF' comment (the skip check makes one metadata call per unstaged sequence); mark the layer list as a deliberate mirror of ingest.layers.LAYER_NAMES (not import-safe in the slim container). - transfer_to_s3.py: same mirror note on KNOWN_LAYERS. * arkitscenes: karpathy pass — fix stale docs, dangerous defaults, serve-task ulimit - convert_sequences/module + modal_jobs/__init__ docstrings described the pre-staging, sequence-major architecture; now match reality (staging volume, layer-first, drain uploader). - convert_gpu/convert_cpu defaulted prefix='rrd' — a leftover that would stage the dead sequence-major layout if ever invoked bare; default is now '' (production layer-first). All call sites pass prefix explicitly. - catalog.py docstring pointed at a nonexistent 'pixi run serve' task; now names arkitscenes-download-serve. - arkitscenes-download-serve task gains ulimit -n 65536: the in-memory server holds one open handle per registered file and the 35k-file corpus blows the default 1024 mid-registration. * arkitscenes docs: karpathy pass — fix truth drift, tighten registration lessons architecture.md: gt box schema shows slot paths + uid component (was the pre-fix uid paths this branch eliminated); catalog lifecycle says SKIP not REPLACE; drop the dead /tmp repro pointer; add the schema-width registration bug to the found-bugs list. full-run-runbook.md: registration lessons restructured to match what catalog.py actually ships (poll-through-drop, no 250-batching advice) and cite the measured 12x REPLACE penalty; recovery step names the real serve/register commands. * arkitscenes: delete the local orchestrator — abc-130k-style local flow pipeline.py (612 lines), its tests (247), tool shim, and pixi task removed. Everything it did is either retired (local corpus runs — Modal owns corpus scale at ~5h/$265 vs ~70h local) or already covered by the three existing tools: download.py --video-ids, ingest_batch.py (--skip-existing), and register_catalog.py (self-verifying). README's Scaling-up section now points at the Modal entrypoint; a Specific-sequences section documents the explicit 3-command flow. Validated end to end: 10 sequences, fresh root, three commands verbatim from the README — downloaded 6.6 GB, ingested, registered 10 segments with all 7 layers on a fresh catalog. Net -1,082 lines. * arkitscenes: register a segment-table blueprint for 3D preview cards The dataset review (segment table) now renders each row through a Spatial3DView of /world when the viewer's experimental 'Table cards and blueprints' setting is on. Registered by the same register tool via DatasetEntry.register_blueprint(uri, segment_table=True) — no extra step. TIMELINE moves from ingest/cli.py to ingest/paths.py so blueprint.py can name the video_time timeline without a circular import. * arkitscenes: strip video/depth/confidence from the table-preview blueprint With ~15 preview cards visible the dataset review dropped to ~7 FPS. Puffin trace of the live viewer: dav1d AV1 decode consumed ~119s of CPU per 10s wall (~12 cores saturated) with EncodedDepthImage (~44ms/frame) and the confidence SegmentationImage (~33ms/frame) next; Mesh3D was ~2.7ms/frame. Excluding both video streams, both depth maps, and confidence from the card's 3D view took the same headless scene from 16 FPS to 233 FPS while the cards look nearly identical (mesh, boxes, frusta kept). * arkitscenes: simplify pass on the table-blueprint change Parallel 3-reviewer findings applied: - exclusion entries use the file's /**-suffixed subtree convention (tests already assert that form for sibling views) - table blueprint app-id hardcoded 'arkitscenes-table' to match the portrait/landscape siblings instead of following dataset_name - register_blueprint(segment_table=True) guarded: it's an experimental SDK path that runs after all layers registered; a deterministic failure (e.g. older server) must not abort the run or skip main()'s completeness verification (BeartypeException still re-raised) - test_table_blueprint_hides_video_depth_and_confidence locks in the five exclusions * arkitscenes: chmod .rbl blueprints after save Caught live: a fresh .rbl written to a uid-squashing NFS mount landed mode 0000 and the server's register_blueprint failed with Permission denied. Same failure mode previously seen with hf-download metadata on this mount. * arkitscenes: save all catalog blueprints under the arkitscenes app-id Adversarial-review finding: the three .rbl files carried three different app-ids (arkitscenes-portrait/-landscape/-table) while the recordings use application_id=arkitscenes. Unify on the canonical id. * arkitscenes: address PR review comments - registered_layer_count now filters to the segment ids implied by the requested paths, so a --video-ids subset with unregistered sequences can no longer be skipped as 'already complete' just because the dataset-wide count is high (Copilot) - rich Progress bar in the dropped-call poll loop so the long server-side grind shows per-layer progress instead of silence (pablo) - pyrefly baseline regenerated: repo-relative, accurate positions, and descriptions stripped of machine-specific absolute paths so the file is deterministic across machines (Copilot); suppression verified (typecheck 0 errors) --------- Co-authored-by: pablo vela <[email protected]> * Enhance ARKitScenes ingestion and registration: update catalog file descriptor limits, improve layer registration progress handling, and add tests for server error reporting. * Rerun 0.35 migration, arkitscenes-download on common, MAMMA corpus downloader (#81) Rerun 0.34.1 -> 0.35.0 across the workspace: - rerun-sdk + gradio-rerun ==0.35.0 on every lane (common, rerun-prerelease, prompt-da-catalog, mv-api-catalog-register-mac); AGENTS.md updated. - gsplat-rust-renderer re_* crate pins =0.35.0; rust bumped to 1.97.* (0.35 crates need rustc >= 1.95); 0.35 re_viewer pulls gilrs/libudev again, so the stale libudev comment is rewritten. cargo check clean in the pixi env. - 0.35 ships the incremental video decoding fix (reality#2683); the read-group overfetch fix (reality#2799) missed the release by 8 minutes. arkitscenes-download now composes common instead of catalog-common + rerun-prerelease: registration only needs the datafusion extra, and common brings jupyterlab for notebook work. Tests/lint/typecheck green. New mamma-download-dataset tool (packages/mamma): downloads the full public MAMMA corpus (~6.85 TB verified complete, 14,464 MPI files + 8,610 MammaSyn files) with vendored manifests, 4-worker transfers, skip-valid resume, and atomic .part renames. MPI bytes go through wget (the server rejects python TLS clients); the HF phase patches in SoftFileLock (flock hangs on NFSv3 with local_lock=none) and sweeps stale locks from killed runs. wget added to the mamma feature; README documents usage. Co-authored-by: pablo vela <[email protected]> * pixi 0.73 platform semantics: named CUDA workspace platforms replace system-requirements; osx-arm64 workspace-level (#77) Co-authored-by: pablo vela <[email protected]> * Eliminate no-build-isolation source builds: prebuilt gsplat, vendored+consolidated MoGe/dinov2, static-metadata sam2 (#78) * pixi 0.73 platform semantics: named CUDA workspace platforms replace system-requirements; osx-arm64 workspace-level * Migrate source dependencies to conda packages Provide MoGe, utils3d, pipeline, and RTMLib as inline conda packages; use the prebuilt gsplat package; and remove env-provided RTMLib from consumer metadata. Make SAM2 metadata static and disable its broken torch 2.12 _C kernel by default after byte-identical fallback validation. * Drop conda onnxruntime from rtmlib inline run-deps + relock The cuda-composed envs supply PyPI onnxruntime-gpu (==1.24.0 pinned wheels); rtmlib's inline conda onnxruntime pulled 1.26.0 and made egoexo-forge unsatisfiable. Runtime import is still guaranteed by env composition. Relock: pypi rtmlib/moge/utils3d/pipeline -> conda source records everywhere, gsplat -> ai-demos prebuilt (py312_torch212_cuda130_h9a733f9_1). * AGENTS.md: record validated lock-generation matrix Linux (any host, envs not required): whole-workspace relock works — 1m48s verified on a clone with 3 of ~40 envs installed. macOS: lock --check passes; full regeneration still hits pixi's build-dispatch env requirement for editable/git pypi deps (linux-only envs can't instantiate on osx). The old torch-at-build cross-compile wall is gone. * Vendor MoGe inference subset into monopriors/third_party (g3t-style) Function-level extraction from microsoft/MoGe@925b8ed: model/{v1,v2,modules,utils} verbatim, dinov2 pruned to models+layers+hub (training-only utils/ dropped), moge/utils pruned to the inference closure (drops refine_depth_with_normal, which calls utils3d.pt.sliding_window_2d — nonexistent at the pinned utils3d rev). utils3d reduced to a 6-function shim (EasternJournalist/utils3d@3fab839) preserving utils3d.np/pt call syntax. Only edits to copied code: utils3d import rewrites. monopriors imports repointed; beartype claw-skip extended. * Rescope to no-build-isolation offenders only: revert rtmlib to git-pypi, drop moge/utils3d/pipeline inline packages rtmlib was never in no-build-isolation: its fork has static metadata with empty deps, needed no build tricks, and already locked for linux-aarch64 on main. The inline-conda form also created a conda-onnxruntime conflict that had to be patched around. Restored byte-identical to main (5 features). moge/utils3d/pipeline inline packages (4 features) are replaced by the vendored inference subset in monopriors/third_party. Relocked. * Add hypothesis property tests for the vendored utils3d shim Verified against independent references (np.sliding_window_view, Tensor.unfold, explicit meshgrid/K construction, unproject-reproject round-trip, masked-nearest-resize invariants) — not against the removed utils3d dep. Import smoke test covers the vendored moge models. Plus ruff import-order fixes in the four modules whose moge import moved to third_party. * AGENTS.md: document vendored MoGe subset and rtmlib git-pypi status * metric-depth app: stop excluding the depth image from the 3D view The Spatial3DView's point cloud IS the DepthImage back-projected through the pinhole; excluding world/camera/pinhole/depth from the view left only a bare camera frustum. Pre-existing on main; found while browser-testing the app. * Consolidate vendored dinov2 + delete dead vendored code (2,436 -> 500 lines) One third_party/dinov2 package now serves moge, depth_anything_v2, and video_depth_anything. The two source forks differ in live math (moge bakes SDPA into Attention.forward; pos-embed interpolation differs ~3.5e-6) — the consolidated ViT keeps both behind explicit constructor knobs, factory- defaulted per consumer. Deleted as verified-dead: xformers/nested-tensor/ ViT-G/register/chunked/masked/onnx paths, hub weight downloading, dino_head, sdpa-wrapper + gradient-checkpointing machinery, timeit, unused geometry helpers, and the whole utils3d shim (its two live functions moved into moge/utils/geometry_torch, equivalence-checked exactly). Mutable list defaults -> tuples; predictors pass force_projection=False (nothing reads points). Gates: dinov2 forward goldens (both forks, bit-exact, checked in as npz), moge rrd parity 48 cols atol=0, DAv2 rrd parity 14 cols atol=0, suite 41 passed, lint clean. * Harden moge loaders, dedup infer, apply conventions + lint to owned vendored code - v1: strict single-checkpoint adapter (rejects unknown config keys); v2: typed spec, strict=True — all five checkpoints verified loading with HF revisions pinned (immutable shas in the checkpoint registries). - infer: shared helpers for the common math (op order preserved); safe head gating (surface-normal predictor skips point/scale heads + CPU focal solve; defaults unchanged). - Predictors build input tensors via from_numpy + einops (no float64 round-trip). - moge + dinov2 now covered by ruff (148 -> 0 diagnostics), vulture, and beartype (claw skip reduced to g3t); jaxtyping/PEP 526 conventions applied to the owned surface; strict-loader regression tests added. Gates: moge rrd parity 48 cols atol=0, DAv2 rrd parity 14 cols atol=0, suite 45 passed under beartype, lint/vulture/pyrefly clean. * Drop the unused known-FoV inference path; fold geometry_numpy into geometry_torch No consumer passes fov_x to infer (all four predictors call with the image only), so the known-focal branch — infer's fov_x parameter, the FieldOfView alias, recover_focal_shift's focal argument, and solve_optimal_shift — was dead. With one scipy solver left, geometry_numpy.py dissolves into geometry_torch.py as a private helper. Gates: suite 45 passed, lint/typecheck/deadcode clean, moge rrd parity 48 cols atol=0. * Keep the known-FoV inference path, but as one solver instead of two Reverts the fov_x removal (c20ed9f) per review: the calibrated-FoV path should stay callable. Same capability, less code: the two near-duplicate scipy solvers merge into one _solve_focal_shift(uv, xyz, focal=None) with a shared residual (closed-form focal when unknown, fixed when given); geometry_numpy.py stays dissolved into geometry_torch.py; the fov_x tensor-coercion moves from v1/v2 into the shared recover_shift_and_intrinsics. Both solver branches and the degrees->focal conversion now have synthetic round-trip tests, so the path can't silently rot. Gates: suite 47 passed, lint/typecheck/deadcode clean, moge rrd parity 48 cols atol=0. * Eliminate Any from monopriors/models: generic predictor bases + hub-model protocols Predictor base classes become Generic[ModelT] with ModelT bound to a DeviceMovable protocol; subclasses bind concrete model types (MoGeModel, DINOv2, VideoDepthAnything, ...) and torch.hub-loaded models get local Protocols describing their used surface (UniDepthModel, StableNormal pipeline). autocast_cm typed as torch.amp.autocast. Annotation-only. Gates: pyrefly 0 errors, suite 47 passed under beartype, lint/deadcode clean, moge rrd parity 48 cols atol=0. * Rename MogeV1Predictor -> MoGeV1Predictor, moge.py -> moge_v1.py Make the v1/v2 split explicit and uniform: the class now matches the MoGeV2* casing and the module name states its version like its moge_v2.py siblings. All 17 references updated (registry Literal, match arms, gradio UIs, apis, vistadream pipelines). Gates: suite 47 passed, lint/typecheck clean, moge rrd parity 48 cols atol=0. * DepthAnythingV1: fulfill the base model contract with the pipeline's module The transformers-pipeline predictor never assigned self.model (pre-existing; formerly hidden by model: Any, then by a filler nn.Module generic binding), so the inherited set_model_device() would AttributeError. Expose the pipeline's underlying module as self.model — the declared BaseRelativePredictor[torch.nn.Module] binding is now true at runtime, verified by constructing the predictor and calling set_model_device. * Address adversarial review: fix DepthAnythingV1 device switching, finish rename migration - set_model_device now drops both stale references before rebuilding the pipeline and re-syncs self.model to the active pipeline's module; regression test asserts predictor.model is predictor.pipe.model across switches. - docs/architecture.md updated to MoGeV1Predictor — the rename is a clean break with no aliases (all in-repo consumers already migrated). - License notices deliberately not added (explicit repo-owner decision). * DepthAnythingV1: move the model in place on device switch; fix rotted pipeline shape set_model_device no longer rebuilds the pipeline — it moves the single existing model with .to(device) and syncs pipe.device, so no stale copy of the weights can ever exist. The regression test asserts identity across the switch AND runs real inference — which exposed that the predictor had rotted against current transformers: the depth pipeline returns predicted_depth as (h, w), not (1, h, w), so the old rearrange('1 h w -> ...') would crash in production. Shape expectations fixed; suite 48 passed. --------- Co-authored-by: pablo vela <[email protected]> * Refactor dataset paths and improve video logging - Introduced a new `dataset_paths.py` to centralize dataset root paths for various configurations. - Updated dataset configurations (Aria Gen2 Pilot, Ego Dex, HOT3D, Mamma, Robocap, UmeTrack) to use the new centralized paths. - Simplified video logging in `rerun_log_utils.py` by removing support for asset video logging and streamlining the logging process using `Mp4Reader`. - Added error handling for unsupported video codecs during logging. - Enhanced tests for dataset paths and unsupported dataset setups to ensure proper error messages and path configurations. --------- Co-authored-by: Pablo Vela <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]>
### What change is being made * Use [rich platforms](prefix-dev/pixi#6178) in pixi.toml * Upgrade CI workflows to pixi version 0.75.0 ### Why this change is being made Update ### Tested CI GitOrigin-RevId: 8fb5066f40de33be3ccabf12a20123878a328b3b
Description
Adds support for declaring workspace platforms as inline tables with a conda subdir plus per-virtual-package shortcut keys. The bare-string form still works and remains the default:
Remove
SystemRequirementsentirely. They get transparently mapped into features. The pixi.toml file stays unchanged -- till someone uses the command line to add a platform to a rich platorm or "enriches" a existing platform. At this point the file gets updated to the new syntax.The
pixi workspace platformcommand group is filled in:add <PLATFORM>...learns six friendly virtual-package flags (--cuda,--archspec,--libc,--linux,--macos,--windows), with--libc/--linux/--macos/--windowseach restricted to their matching subdir family. Trailing__name=version[=build_string]positionals are the raw escape hatch (mirroring the TOML__name = "..."keys).--featurescopes the addition to a feature.edit <NAME>is new — change--subdir, add/upsert virtual packages (friendly flags + trailing__name=valuepositionals), remove (--remove-virtual-package) or clear (--clear-virtual-packages).show [NAME]is new — human or--jsonoutput for one platform,--all, or--current(auto-detect this machine's subdir).removeandlistkeep their existing shape.Lock-file satisfiability now compares both the subdir and the virtual-package set for each workspace platform, and treats the virtual-package list as a set (order-independent). New non-satisfiability fixtures cover changed-subdir and changed-virtual-package; a satisfiability fixture covers virtual-package-permutation invariance.
The workspace JSON schema accepts the new platform-object form and rejects invalid names.
Closes: #4458, #346
How Has This Been Tested?
Unit tests in
pixi_manifestand integration tests intests/integration_python/test_workspace_platform.py, plus manual testing.AI Disclosure
Tools: Claude
Checklist:
schema/model.py.