Meta-learning for downstream aware and agnostic pretraining