Always take ventilators in the cabin. Never pack in luggage.
Forewarn the airline just as you do with your wheelchair.
For booking and flying have a doctor's letter describing: the make/model and confirmation of sealed batteries, no oxygen etc.
Bring enough fully charged batteries with you to power your portable ventilator.
It is likely easier to use your mask and bipap, so that you can concentrate on sitting up.