Place the cauliflower florets, water, 2 teaspoons (10 ml / 0.3 fl oz) salt, peppercorns, bay leaves, and allspice into a 5- to 6-quart or 4.7- to 5.7-L slow cooker. For easy removal, place the whole spices in a spice bag.
Cover and cook on high for 3 to 4 hours or on low for 6 to 8 hours, until the cauliflower is tender.
While the cauliflower cooks, melt the ghee in a skillet over medium-high heat.
Add the sliced onion and cook for about 10 minutes, stirring occasionally, until golden brown.
Add the minced garlic and cook for one more minute until fragrant.
Remove from heat and set aside.
Once the cauliflower is tender, turn off the slow cooker. Carefully drain the cauliflower in a colander and discard the spices. Return the drained cauliflower to the slow cooker pot.
Use an immersion blender to process the cauliflower directly in the pot for a chunky texture, or transfer in batches to a food processor for a super-smooth purée.
Add the cooked onion and garlic mixture, including all the ghee from the pan, to the cauliflower and process again to combine.
Stir in the freshly chopped herbs.
Taste and season with additional salt and pepper if needed.
Serve immediately or let cool before storing in an airtight container for up to 5 days.