A Med IP-057 weighs around 1300g and will give you a nice, high quality ride for between $400-$500 saving you 625g.
A 30mm wide carbon wheelset will weight around 1650g and also provide a small improve in ride quality for around $600-$700 saving you about 364g.
If you don't have $1,000 to spend on both, it is a tough choice. If you upgrade the frame, you will probably spend a bit more money upgrading a few other things like headset, bottom bracket, cables, etc so total cost of either the frame or the wheels might be similar.
It's easier to upgrade only the wheels as they are an easier thing to change out, however, if you are up for it, changing out the frame will make a bigger difference in ride quality (in my opinion), and will save you more weight.