Short answer
To reliably hold 10, 20, or 50 kg, a neodymium magnet must have a rated pulling force significantly higher than the actual load.
In practice, a safety factor of 2–3× is recommended, as rated pulling force is measured under ideal laboratory conditions.