Both Tynda and Komsomolsk-na-Amure have a couple of sleeping options if you plan to overnight in either (and often, if you break your journey at all you'll have no option but to overnight, as trains are not frequent on this part of the line), but otherwise the train is the best place to sleep.