Towards Automatic Continual Learning: A Self-Adaptive Framework for Continual Instruction Tuning