CMT: A Memory Compression Method for Continual Knowledge Learning of Large Language Models