Hold shears or an axe in one hand and a pumpkin in the other to carve it instantly. You can also carve placed pumpkins with an axe, just like using shears in vanilla.