snf_experiments / method_v2 /evidence /code /packaging /install_environments.sh
CharlesZhang-USTC's picture
Add Control v2 incremental experiment results (evidence, visuals, 42 fixed samples)
a64600b verified
Raw History Blame Contribute Delete
875 Bytes
#!/usr/bin/env bash
set -euo pipefail
python3 -m pip install --no-cache-dir -r /opt/snf/packaging/requirements-common.txt
# Same GPU stack in all environments; isolate model-specific Python APIs only.
for model in meissonic self_forcing momask sd35 showo; do
python3 -m venv --system-site-packages "/opt/envs/$model"
done
/opt/envs/showo/bin/pip install --no-cache-dir \
transformers==4.41.2 tokenizers==0.19.1 peft==0.11.1 diffusers==0.30.1
/opt/envs/momask/bin/pip install --no-cache-dir \
'git+https://github.com/openai/CLIP.git@dcba3cb2e2827b402d2701e7e1c7d9fed8a20ef1'
# No Hopper-only FlashAttention-3 or incompatible old xformers wheel.
# Self Forcing uses our explicit SDPA inference fallback, recorded in run metadata.
for model in meissonic self_forcing momask sd35 showo; do
"/opt/envs/$model/bin/pip" freeze > "/opt/envs/$model/installed.freeze.txt"
done