Maybe the bikes vibration/road bumps are causing it to shut off or you could have something out of whack on the carb . Make sure you cleaned the carb well and got it back together correctly. Bad gas? You didn't change any Jets when rebuilding the carb?