Hi Ilya,
for example, you can use 8 switches to form 4 MLAG pairs, or you can use two stacks of 4 switches each and create one MLAG pair.
Stacking can be viewed as a method to create a chassis-like virtual switch using standalone switches.
MLAG allows to connect one downstream device, e.g. a server, to two independent upstream devices using port sharing (aka LAG or port-channel).
Why would you set up MLAG between two chassis switches, if you can more easily use two modules inside the chassis for redundant connections?
Erik