Sounds like it might be running too rich, but check the plugs to verify this. If it turns out to be running lean, you might have air leaks that open up when the engine heats up. I had very similar symptoms on a different Yamaha ('82 XJ750). Started up and ran great until the thing heated up...