you have two options,strip down the carb piece by piece and clean with gasoline(dont buy expensive chemicals you DONT NEED, i have fixed many broken bikes like this)while checking all parts for wear, check the needles, they should be very sharp, if dull they are shot, option 2 is just to get a cheap rebuild kit, and do it to it. i have a yamaha 650 special with the same problem. starts up, sounds completely perfect, no off noises pinging or anything and races to max rpm without warning. i had the bike off road test driving it, and the throttle opened up all the way making a 60 foot tall rooster tail, and shot me up to about 85 mph instantly from 30..... bad buisness. long story short im in the process of fixing it now(few internal parts needed, under $30)and cleaning the good parts. good luck