simcheongi / train_lora.py
koreashin's picture
코드 추가: 추론·학습·LoRA 어댑터 (simcheongi 패키지, 문서, 예제, 시험)
025ab09 verified
Raw History Blame Contribute Delete
499 Bytes
#!/usr/bin/env python
"""LoRA fine-tuning of the simcheongi student (see docs/LORA.md). The base stays frozen; the adapter is saved alone.
python train_lora.py --data /data/my_bc --out runs/lora1 --steps 3000 --batch 32 --lr 2e-4 --lora-rank 16
"""
import os
import sys
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from simcheongi import training # noqa: E402
if __name__ == "__main__":
sys.exit(training.run(training.build_parser(lora=True).parse_args(), lora=True))