Download code/src/analyze_published_diff.py from PratikBuilds/modelclinic-experiment-001: direct link, hf CLI and curl.
- Browser
- Download file 603 Bytes
-
https://huggingface.co/datasets/PratikBuilds/modelclinic-experiment-001/resolve/main/code/src/analyze_published_diff.py
- Command line
-
hf download hf://datasets/PratikBuilds/modelclinic-experiment-001/code/src/analyze_published_diff.py
-
curl -L -o analyze_published_diff.py https://huggingface.co/datasets/PratikBuilds/modelclinic-experiment-001/resolve/main/code/src/analyze_published_diff.py
603 Bytes
| """Compatibility CLI for the full checkpoint scan and SVD analysis.""" | |
| import argparse | |
| from pathlib import Path | |
| from checkpoint_diff import compare | |
| def main(): | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("base_checkpoint", type=Path) | |
| parser.add_argument("edited_checkpoint", type=Path) | |
| parser.add_argument("--output", type=Path, default=Path("results/checkpoint_analysis/full_checkpoint_scan.json")) | |
| args = parser.parse_args() | |
| compare(str(args.base_checkpoint), str(args.edited_checkpoint), str(args.output)) | |
| if __name__ == "__main__": | |
| main() | |