Runs rough when cold

It idles fine. This problem happens when I accelerate or load it and will go back to idle okay if I back off. If I stomp on it it will take off like a bat out of hell and then will clear and be fine. It’s only giving me a problem when cold and I am accelerating normally. It sputters, backfires, a slight smell of gas and will clear up in about a half a mile to a mile. It will then run fine as long as I wish to run it.