Download code/src/prepare_remaining.py from PratikBuilds/modelclinic-experiment-001: direct link, hf CLI and curl.
- Browser
- Download file 476 Bytes
-
https://huggingface.co/datasets/PratikBuilds/modelclinic-experiment-001/resolve/main/code/src/prepare_remaining.py
- Command line
-
hf download hf://datasets/PratikBuilds/modelclinic-experiment-001/code/src/prepare_remaining.py
-
curl -L -o prepare_remaining.py https://huggingface.co/datasets/PratikBuilds/modelclinic-experiment-001/resolve/main/code/src/prepare_remaining.py
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') | |