File size: 875 Bytes
a64600b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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