When the sunlight is strong, this Pokemon raises its own Attack and
Special Defense by 50%. In doubles, it also raises the Attack and
Special Defense of its partner by 50%. This effect does not stack if
two Pokemon have Flower Gift. - Smogon University

So, when Cherrim switches out, and the Sun is still active, the boosts are still there?