When it dies, can you spray some starting fluid in the carb (or pour some gas in) and get it to start again? If so, it's a fuel feed problem and could be the fuel pump.

Another thing to check. Is the choke opening fully when it's warmed up? Could be that it's running too rich.

Some stuff to check.