Buckets:
| from __future__ import annotations | |
| import os | |
| import subprocess | |
| import sys | |
| from pathlib import Path | |
| REQUIRED_PACKAGES = [ | |
| "transformers", | |
| "peft", | |
| "datasets", | |
| "accelerate", | |
| "bitsandbytes", | |
| "safetensors", | |
| ] | |
| def main() -> int: | |
| root = Path(__file__).resolve().parents[1] | |
| evaluator = root / "eval" / "hf_frozen_eval.py" | |
| if not evaluator.exists(): | |
| print(f"missing evaluator script: {evaluator}", file=sys.stderr) | |
| return 2 | |
| subprocess.check_call([sys.executable, "-m", "pip", "install", "--upgrade", *REQUIRED_PACKAGES]) | |
| env = os.environ.copy() | |
| env["PYTHONPATH"] = str(root) | |
| return subprocess.call([sys.executable, str(evaluator), *sys.argv[1:]], env=env) | |
| if __name__ == "__main__": | |
| raise SystemExit(main()) | |
Xet Storage Details
- Size:
- 779 Bytes
- Xet hash:
- ef2fd6acaaabf96efb33487f7ce4c98429aeda8ac18261b3fd434805e03d8d61
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.