linvest21's picture
download
raw
713 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
trainer = root / "training" / "hf_fingpt_train.py"
if not trainer.exists():
print(f"missing trainer script: {trainer}", file=sys.stderr)
return 2
install_runtime_packages(include_trl=True)
env = os.environ.copy()
env["PYTHONPATH"] = str(root)
command = [sys.executable, str(trainer), *sys.argv[1:]]
return subprocess.call(command, env=env)
if __name__ == "__main__":
raise SystemExit(main())

Xet Storage Details

Size:
713 Bytes
·
Xet hash:
5883b1124b8a9916646fbba075a68cbe3d803a9e7c8403ffc84bb57a82fb4b23

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