modelclinic-experiment-001 / code /src /prepare_remaining.py
PratikBuilds's picture
Publish initial ModelClinic Experiment 001 archive
87cc7f2 verified
Raw History Blame Contribute Delete
476 Bytes
from pathlib import Path
s=Path('modal/vllm_long.py').read_text(encoding='utf-8-sig');s=s.replace("modelclinic-vllm-long-v1","modelclinic-vllm-long-remaining");s=s.replace("elif stage=='full':pairs=[(i,c) for i in range(5) for c in CONDITIONS]", "elif stage=='remaining':pairs=[(i,c) for i in range(2,5) for c in CONDITIONS]");s=s.replace("stage must be trial or full","stage must be trial or remaining");Path('modal/vllm_long_remaining.py').write_text(s,encoding='utf8')