MOSS-Image-Edit-OpenVINO / code /chain_vint8.sh
aqualaguna's picture
Add files using upload-large-folder tool
4a1ea7b verified
Raw History Blame Contribute Delete
954 Bytes
#!/bin/bash
# fidelity + speed of the INT8 weight-only IRs on the card against the fp32 CPU references (one GPU job, serial)
PY=/opt/mossimage/venv/bin/python
cd ${CODE_DIR:-/opt/mossimage/code_u1}
echo "##### DiT sft-int8 (keepdown build, 512x512 cases A/B/C)"; $PY -u verify_dit.py --device GPU --which sft --suffix _int8_keepdown
echo "##### TE int8 long prompts (default compute)"; $PY -u verify_te_long.py --device GPU --te-dir te_int8
echo "##### TE int8 long prompts (f32 compute)"; $PY -u verify_te_long.py --device GPU --te-dir te_int8 --precision f32
echo "##### TE int8 short prompts"; $PY -u verify_te.py --device GPU --te-dir te_int8
echo "##### sampler sft-int8 256x256 4 steps vs the original pipeline"; $PY -u ref_e2e.py ov --size 256 --steps 4 --seed 7 --variant sft-int8
echo "##### sampler sft-int8 with f32 TE"; $PY -u ref_e2e.py ov --size 256 --steps 4 --seed 7 --variant sft-int8 --te-precision f32