If you had to sleep train a 13 month old, how long would you let them cry??

My 13 month old co-sleeps but its not really working. He starts the night in the crib (put down asleep) and then when I am ready for bed comes to my bed. He can sometimes wake up after 1 hr asleep. And so goes the night.