Dies after 2 miles, why?

needle and float in carb are sticking closed, takes two miles to use up the gas in the bowl so the car dies, heat pressure from the fuel pump and the slow flow of fuel into the carb free up the float and/or needle and seat allowing the car to run again, when you park it the fuel evaporates and they get sticky again probably due to gunk and/or varnish, a good carb clean and rebuild should fix it