linvest21's picture
download
raw
696 Bytes
from __future__ import annotations
import os
import subprocess
import sys
from pathlib import Path
def main() -> int:
root = Path(__file__).resolve().parents[1]
sys.path.insert(0, str(root))
from training.hf_runtime_deps import install_runtime_packages
evaluator = root / "eval" / "hf_frozen_eval.py"
if not evaluator.exists():
print(f"missing evaluator script: {evaluator}", file=sys.stderr)
return 2
install_runtime_packages(include_trl=False)
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:
696 Bytes
·
Xet hash:
d198dbd1a1d6e9dc013dc3fe3c9c9f0bc24d0d7de99c9cd4ee467f294be9b6bf

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.