Let's look at the other end of the fuel system. Trash in the line to the carb could migrate to the needle seat and easily stop flow during an uphill acceleration, then fall out during idle when the float closes. Check the carb for trash in the inlet well. Do you have a filter at the carb?
Just grasping at straws.