Download code/src/fetch_protocol_source.py from PratikBuilds/modelclinic-experiment-001: direct link, hf CLI and curl.
- Browser
- Download file 398 Bytes
-
https://huggingface.co/datasets/PratikBuilds/modelclinic-experiment-001/resolve/main/code/src/fetch_protocol_source.py
- Command line
-
hf download hf://datasets/PratikBuilds/modelclinic-experiment-001/code/src/fetch_protocol_source.py
-
curl -L -o fetch_protocol_source.py https://huggingface.co/datasets/PratikBuilds/modelclinic-experiment-001/resolve/main/code/src/fetch_protocol_source.py
398 Bytes
| import requests,pathlib | |
| p=pathlib.Path('research_source');p.mkdir(exist_ok=True) | |
| base='https://raw.githubusercontent.com/RikiyaT/lm_understand-logs/4d09ba6d6a7e891dd8063974dfe81b3d78e3494f/exp8_math/code/' | |
| for name in ['profiles.py','evaluate.py','mathqa.py']: | |
| r=requests.get(base+name,timeout=30);print(name,r.status_code,len(r.content));r.raise_for_status();(p/name).write_bytes(r.content) | |