Reproducibility
Environment
Optional: nix develop first (see flake.nix) for GDAL/PROJ/GEOS/poppler as real compiled
binaries instead of relying on Homebrew/apt (which hit a registry outage mid-project - see
below). Python dependencies always go through uv/requirements.txt regardless.
nix develop # optional - system libs (gdal, poppler, ...), see flake.nix
bash scripts/setup.sh # uv venv + pinned requirements.txt (MPS-native torch)
source ../.venv/bin/activate # created outside the project tree by setup.sh
bash scripts/verify_environment.sh # versions, MPS device strategy, fast unit tests
bash scripts/download_models.sh # pre-fetch Qwen3 + SigLIP-2 (NOT datasets)
bash scripts/smoke_test.sh # full pipeline on synthetic data (Apple Silicon)
Dependency pin note: requirements.txt/pyproject.toml intentionally leave the Hugging Face
ecosystem packages (huggingface-hub, tokenizers, accelerate, safetensors) as version
floors rather than exact pins. An earlier exact pin (huggingface-hub==0.26.2) went stale against
transformers==4.55.0's own minimum requirement (>=0.34.0) and made a fresh
uv pip install -r requirements.txt unresolvable - floors avoid that class of bug recurring as
transformers itself moves its floors forward. httpx2 is also required (not just httpx) for
tests/test_app.py's starlette.testclient.TestClient on current starlette releases.
Exact versions actually used and validated in this repository's own development/test runs:
| Component | Version |
|---|---|
| Python | 3.11.14 |
| PyTorch | 2.5.1 |
| Transformers | 4.55.0 |
| Accelerate | 1.15.0 |
| OS / hardware | macOS 26.6.2, Apple M5 Pro, 48GB unified memory (no CUDA) |
| DeepSpeed | not installed/used (CUDA-only; optional [cuda] extra) |
| FlashAttention | not installed/used (CUDA-only) |
Full pin list: requirements.txt / pyproject.toml. environment.yml mirrors the same pins for
conda users. Dockerfile provides a CPU/Linux container for CI; Mac training runs natively via MPS.
What was actually run in this environment
- All 144 automated tests (
pytest tests/), including theslowmarker (real Qwen3-0.6B + SigLIP-2-base weights, real forward/backward/generation/checkpoint round-trip). scripts/smoke_test.py, all 12 steps, on real MPS hardware.- The full SatQuery AI FastAPI backend, end-to-end, via
tests/test_app.py(agentic routing + compatibility checking + real model inference + JSON report generation). tools/count_parameters.py/tools/inspect_model.pyagainst the smaller (0.6B) checkpoint, per docs/assumptions.md #A12's disk-conservation choice - see REPRODUCTION_REPORT.md for actual numbers.
What was NOT run (and why)
- Real PCMA Stage 1/2 training at paper scale. No 8xH100 cluster is available; no dataset
large enough to meaningfully train was downloaded (explicit scope + disk constraints). The
training code path itself (
training/trainer.py,training/train.py) is exercised byscripts/smoke_test.py's forward/backward/checkpoint steps, just not for a real multi-epoch run. - Full benchmark evaluation reproducing paper Tables III-XVIII. Requires the actual benchmark
images (VRSBench, RSVQA, CDVQA, etc.), none of which were downloaded.
evaluation/*.pyandevaluation/paper_results.pyare ready to consume real predictions the moment those images are obtained and a checkpoint is trained. - DeepSpeed / multi-GPU distributed training. No CUDA hardware in this environment.
configs/deepspeed_zero2.jsonis complete and matches the paper's stated config, but is untested here.
Determinism notes
torch.manual_seedis used in tests for reproducible synthetic data, but no global seeding is imposed ontraining/train.py(left to the user, since exact reproducibility across hardware/driver versions is not achievable in general and the paper does not specify a seed).- SigLIP-2's positional-embedding resize and Qwen3's attention path have MPS-specific code paths (docs/assumptions.md #A13) that do not exist on CUDA - results are not expected to be bit-identical across CUDA vs. MPS runs of this repository.