modelclinic-experiment-001 / code /src /prepare_nothink.py
PratikBuilds's picture
Publish initial ModelClinic Experiment 001 archive
87cc7f2 verified
Raw History Blame Contribute Delete
854 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-nothink-v1").replace("CONDITIONS=['base','edited','constant'];MAX_TIME=1800;MAX_NEW=32768","CONDITIONS=['base_no_thinking'];MAX_TIME=900;MAX_NEW=8192")
s=s.replace("timeout=2100,scaledown_window=2,max_containers=3","timeout=1200,scaledown_window=2,max_containers=2").replace('/cache/modelclinic/vllm_long_v1','/cache/modelclinic/vllm_nothink_v1').replace('max_model_len=34816','max_model_len=10240').replace('enable_thinking=True','enable_thinking=False').replace('temperature=.6,top_p=.95','temperature=.7,top_p=.8').replace("'thinking':True,'settings':{'temperature':.6,'top_p':.95", "'thinking':False,'settings':{'temperature':.7,'top_p':.8")
Path('modal/vllm_nothink.py').write_text(s,encoding='utf8')