Buckets:
| 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_preference_train.py" | |
| if not trainer.exists(): | |
| print(f"missing preference trainer script: {trainer}", file=sys.stderr) | |
| return 2 | |
| install_runtime_packages(include_trl=True) | |
| env = os.environ.copy() | |
| env["PYTHONPATH"] = str(root) | |
| return subprocess.call([sys.executable, str(trainer), *sys.argv[1:]], env=env) | |
| if __name__ == "__main__": | |
| raise SystemExit(main()) | |
Xet Storage Details
- Size:
- 705 Bytes
- Xet hash:
- a94c4bd6de9bbf6baae2a03372f3aa1ad0b00cb19444b15fc64124b3ecf40102
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.