Sleep Training??

Heather
Basically I want to know what it is?
How it's done And when you do it.
My LO is almost 4months old and EBF.
Currently only sleeps 2 hrs tops. Goes to bed between 7-8pm. Then from 3am its a struggle to get him back in his cot. He'll only sleep on me after 3am.