Download build_manifest.py from SabaPivot/repro-differentiable-conformal-training-for-llm-reasoning-factuality: direct link, hf CLI and curl.
- Browser
- Download file 462 Bytes
-
https://huggingface.co/spaces/SabaPivot/repro-differentiable-conformal-training-for-llm-reasoning-factuality/resolve/main/build_manifest.py
- Command line
-
hf download hf://spaces/SabaPivot/repro-differentiable-conformal-training-for-llm-reasoning-factuality/build_manifest.py
-
curl -L -o build_manifest.py https://huggingface.co/spaces/SabaPivot/repro-differentiable-conformal-training-for-llm-reasoning-factuality/resolve/main/build_manifest.py
462 Bytes
| #!/usr/bin/env python3 | |
| import hashlib | |
| from pathlib import Path | |
| r=Path(__file__).resolve().parent;o=r/'BUNDLE_SHA256SUMS.txt' | |
| def d(p): | |
| h=hashlib.sha256() | |
| with p.open('rb') as f: | |
| for b in iter(lambda:f.read(1<<20),b''):h.update(b) | |
| return h.hexdigest() | |
| rows=[f'{d(p)} {p.relative_to(r).as_posix()}' for p in sorted(r.rglob('*')) if p.is_file() and p!=o and '__pycache__' not in p.parts];o.write_text('\n'.join(rows)+'\n');print(f'wrote {len(rows)} entries') | |