Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/FareedKhan-dev/train-llm-from-scratch
/ train_sft.py
File
train_sft.py
scripts/train_sft.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
""
"
2
Supervised Fine-Tuning of the pretrained base on packed instruction data.
3
4
Loads the base checkpoint, trains
with
the prompt-masked SFT loss, periodically reports
Callers
nothing calls this directly
Calls
1
main
Function · 0.70
Tested by
no test coverage detected