Passing the torch is a metaphor which means that you are passing on some traditions or knowledge to someone else. It can't be an allusion because allusion is a reference to something outside of the text; simile is comparison using words such as like or as; personification is when non-human entities or objects have human characteristics.
Miep Gies is voluntarily putting her life at risk and endangering herself and her status by housing Anne Frank and her family inside her house; Anne Frank was the one hiding, differing their perspectives heavily.