I’ve used Carapils (aka Carafoam or Dextrine) in several brews. One of those brews, a clone of Lagunitas IPA, called for 180g of Carapils (for a 5 gal brew). I had 90g on hand. It turned out fine.
Several other grains are going to help with head retention, and if you’re brewing an IPA, you might be using one or another. In particular, Caraamber and any of your Caramel/Crystal malts, regardless of color, are going to help.
The Lagunitas clone I brewed had 150g of Crystal 60 in it, which is the reason, I think, that it retained a head. In a later brew, a pale ale, I again used only 90g of Carapils, along with Caramunich II and Caramel Aromatic, neither of which to my knowledge help with head retention. The head on that brew fizzled rather quickly.
Anecdotal, but hope it helps.