Files
strata/requirements.txt
T
Niko1221 afc33c260e setup: reproducible installs - the checkout's own engine release, pinned Hugging Face revisions, pinned Python packages (#214)
- The ready-made engine: with the default --prebuilt, setup looks at releases/download/v<version>/ first (the
  version CMakeLists.txt says, source_version()) and falls back to releases/latest with a message when that
  release is not published (yet).  An explicit --prebuilt / STRATA_PREBUILT_URL is used as before; an
  installed engine new enough is kept without asking the network.
- Hugging Face: every model family's shards and vision encoder come from a fixed commit (HF_REVISIONS, the repos'
  `sha` on 2026-09-30), tools/mtp_fetch.py reads the BF16 checkpoint at its commit (STRATA_MTP_REVISION
  overrides).  A revision a repository no longer has falls back to its current files, with a message.  Files
  already downloaded keep their names and .done marks, so nothing is downloaded again.
- Python: requirements.txt pins the packages and their dependencies (numpy per Python range, 3.10+), used by
  setup's pip step and the Dockerfile.  A venv set up before this (bare names in .strata-pip.json) is left as it
  is; only packages it never had are installed, pinned.

Tests: tools/test_setup_pins.py (mocked network: the tag URL first, latest as the fallback, an installed engine
kept, a gone revision falling back to main in download() and mtp_fetch, the pip step for fresh, old and bumped
installs).
2026-09-30 20:58:44 +02:00

24 lines
688 B
Plaintext

# The Python packages setup.py installs into .venv, pinned so a checkout installs the same ones on any day (#214).
# setup.py's pip step reads this file; an install from before it keeps the packages it has.
# Python 3.10+ (numpy's newest releases need a newer Python: one line per range).
numpy==2.5.3; python_version >= "3.12"
numpy==2.4.6; python_version == "3.11"
numpy==2.2.6; python_version < "3.11"
jinja2==3.1.6
regex==2026.9.10
pyyaml==6.0.3
tqdm==4.70.1
requests==2.34.2
cmake==4.4.3
ninja==1.13.2
pillow==12.3.0
psutil==7.2.2
# their dependencies
markupsafe==3.0.3
certifi==2026.7.22
charset-normalizer==3.5.1
idna==3.20
urllib3==2.8.0
colorama==0.4.6; sys_platform == "win32"