Steam or boil the sweet potatoes, peel, and mash them.
Add almond flour, cocoa powder, and baking powder to the mashed sweet potatoes and mix.
Add eggs, unsweetened soy milk, and erythritol, and mix well to form a batter.
Pour the batter into a pan greased with oil.
Bake in a 180°C oven for 25 minutes.
Let it cool and cut into serving pieces.