Download train_lora.py from koreashin/simcheongi: direct link, hf CLI and curl.
- Browser
- Download file 499 Bytes
-
https://huggingface.co/koreashin/simcheongi/resolve/main/train_lora.py
- Command line
-
hf download hf://koreashin/simcheongi/train_lora.py
-
curl -L -o train_lora.py https://huggingface.co/koreashin/simcheongi/resolve/main/train_lora.py
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)) | |