Sleep training

When should I start this and what are some techniques that worked for you?