Mediator: Memory-efficient LLM Merging with Less Parameter Conflicts and Uncertainty Based Routing