File size: 476 Bytes
87cc7f2
 
 
1
2
3
4
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')