awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
arcee-ai avatar

arcee-ai/mergekit

0
View on GitHub↗
7,156 stars·738 forks·Python·LGPL-3.0·28 views

Mergekit

MergeKit is a toolkit for combining multiple pre-trained large language models into a single entity using algorithmic blending. It provides a specialized system for parameter interpolation and weight extraction to unify model capabilities.

The project distinguishes itself through an evolutionary merge optimizer that tunes parameters based on quantitative evaluation metrics. It also features a mixture of experts orchestrator capable of converting dense models into sparse architectures and a tokenizer alignment tool for transplanting embeddings between different models.

The toolkit covers a broad range of merging operations, including layer-based model assembly, task vector arithmetic, and various weight interpolation methods such as spherical linear interpolation and linear averaging. It includes utilities for parameter pruning, low-rank weight extraction, and the orchestration of multi-stage merge workflows.

Support is provided for executing resource-intensive operations on remote cloud infrastructure and generating markdown model cards for hosting hubs.

Features

  • Model Merging - Provides a comprehensive toolkit for combining multiple pretrained large language models into a single entity using algorithmic blending.
  • Model Merging - Combines multiple pre-trained models into a single entity using algorithmic blending techniques to unify capabilities.
  • Checkpoint Averaging - Combines multiple pre-trained models using linear weight averaging and task arithmetic.
  • Evolutionary Hyperparameter Tuners - Tunes merge parameters automatically using evolutionary algorithms to maximize evaluation scores.
  • Evolutionary Merge Optimization - Tunes merge parameters automatically using an evolutionary algorithm to maximize scores from evaluation metrics.
  • Task Vector Mergings - Combines specific capabilities by calculating differences from a common base model and adding them together.
  • Evolutionary Parameter Optimizers - Implements an evolutionary algorithm for tuning merge parameters based on quantitative evaluation metrics.
  • Weighted Parameter Averaging - Computes a weighted average of parameters from multiple models to create a combined version.
  • Mixture of Experts - Transforms multiple dense models into a sparse mixture-of-experts architecture by implementing a routing gating structure.
  • Weight Approximation Extraction - Extracts low-rank approximations from fine-tuned models to produce compatible adapter weights.
  • Layer-Wise Model Assembly - Provides capabilities to build hybrid model architectures by selecting and combining specific layer slices from different source checkpoints.
  • Task-Vector Arithmetic - Isolates fine-tuned capabilities by calculating parameter differences from a base model and summing those vectors.
  • Tokenizer Transplantation - Aligns and transplants tokenizer embeddings and vocabularies between models to enable speculative decoding or knowledge distillation.
  • Tokenizer Vocabulary Merging - Aligns donor tokenizers with a base model's embedding space using approximation strategies to merge vocabularies.
  • Weight Interpolation - Computes weighted linear and spherical interpolations of model parameters to blend capabilities from multiple pre-trained sources.
  • Adaptive Parameter Prunings - Retains parameters with the largest magnitude changes to preserve significant modifications during a merge.
  • Direct Checkpoint Manipulation - Implements merging algorithms directly on raw tensor files to reduce memory overhead during model assembly.
  • Checkpoint Tensor Manipulation - Applies merging algorithms directly to raw PyTorch tensor files without requiring a model object instantiation.
  • Merge Quality Benchmarking - Scores merged models using defined tasks and weighted metrics to determine the effectiveness of merge recipes.
  • Variance Masking Merges - Weights model contributions by identifying and keeping parameter positions with the highest variance across vectors.
  • Merge Pipelines - Defines sequences of merge operations where the output of one weight merge stage serves as the input for the next.
  • Sparse Architectures - Constructs sparse architectures by combining attention and normalization from a base model with expert parameters.
  • Dense-to-Sparse Conversions - Merges multiple dense models into a sparse architecture for deployment or further training.
  • Salient Change Fusions - Combines models using importance scores and divergence metrics to merge key parameter differences.
  • Magnitude-Based Parameter Pruning - Filters noise and interference by removing model parameters based on absolute change or variance across sources.
  • Magnitude-Based Prunings - Removes the smallest and largest parameter changes to isolate mid-range modifications and filter noise.
  • Model Sparsification - Implements parameter pruning and sign conflict resolution to create sparse model representations.
  • Selective Parameter Interpolations - Interpolates models by increasing the influence of a secondary model where parameters are similar to the base.
  • Interpolation Parameter Optimization - Calculates optimized weights for linear interpolation based on the geometric similarity between models.
  • Spherical Linear Interpolations - Creates smooth transitions between models using spherical linear interpolation to maintain parameter magnitude.
  • Multi-Stage Pipeline Processing - Orchestrates complex merge recipes as a sequence of interdependent processing steps where outputs feed into subsequent stages.
  • Emerging Trends - Listed in the “Emerging Trends” section of the Llm Course awesome list.
  • Model Utilities - Tools for merging multiple pretrained language models.

Star history

Star history chart for arcee-ai/mergekitStar history chart for arcee-ai/mergekit

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Mergekit

These projects share indexed features with Mergekit. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • cg123/mergekitcg123 avatar

    cg123/mergekit

    7,158View on GitHub↗

    Mergekit is a toolkit for combining multiple pretrained large language models into a single model. It functions as an architecture assembler and merging system that transfers capabilities between models using weighted algorithms and layer-wise assembly without requiring additional training. The project provides specialized utilities for extracting low-rank approximations from fine-tuned models to create portable parameter updates. It also includes a framework for converting dense language models into a mixture of experts architecture by constructing gating mechanisms to route inputs to specia

    Python
    View on GitHub↗7,158
  • sgl-project/sglangsgl-project avatar

    sgl-project/sglang

    29,079View on GitHub↗

    Sglang is a high-performance inference engine and serving system designed for large language and multimodal models. It provides a programmable interface for orchestrating complex generation workflows, enabling developers to coordinate multi-turn dialogues, tool invocations, and reasoning chains through a domain-specific language. The platform is built to support production-scale deployments, offering an OpenAI-compatible API that allows for integration with existing application ecosystems. The system distinguishes itself through a disaggregated architecture that separates compute-intensive pr

    Pythonattentionblackwellcuda
    View on GitHub↗29,079
  • xai-org/grok-1xai-org avatar

    xai-org/grok-1

    51,690View on GitHub↗

    Grok-1 is an open-weights large language model implementation featuring a sparse mixture-of-experts architecture. It is designed for high-performance text generation and natural language processing by activating only a subset of specialized expert layers per token. The model utilizes 8-bit weight quantization to reduce memory overhead and accelerate loading. To manage its high parameter count, the implementation supports activation sharding, which distributes the memory load across multiple hardware devices during execution. The project covers large-scale model inference, including text comp

    Python
    View on GitHub↗51,690
  • kohya-ss/sd-scriptskohya-ss avatar

    kohya-ss/sd-scripts

    7,133View on GitHub↗

    sd-scripts is a suite of utilities designed for fine-tuning generative models, preprocessing datasets, and converting model weights. It provides a collection of scripts for executing Stable Diffusion training through methods such as DreamBooth, textual inversion, and full fine-tuning, alongside a framework for creating and managing Low-Rank Adaptation weights. The project features specialized capabilities for model weight conversion between different architectures and precision formats. It includes tools for merging adaptation weights into base models, extracting weights from trained models,

    Python
    View on GitHub↗7,133
Compare all 30 related projects→

Frequently asked questions

What does arcee-ai/mergekit do?

MergeKit is a toolkit for combining multiple pre-trained large language models into a single entity using algorithmic blending. It provides a specialized system for parameter interpolation and weight extraction to unify model capabilities.

What are the main features of arcee-ai/mergekit?

The main features of arcee-ai/mergekit are: Model Merging, Checkpoint Averaging, Evolutionary Hyperparameter Tuners, Evolutionary Merge Optimization, Task Vector Mergings, Evolutionary Parameter Optimizers, Weighted Parameter Averaging, Mixture of Experts.

Which projects share features with arcee-ai/mergekit?

Projects with overlapping indexed features include: cg123/mergekit — Mergekit is a toolkit for combining multiple pretrained large language models into a single model. It functions as an… sgl-project/sglang — Sglang is a high-performance inference engine and serving system designed for large language and multimodal models. It… xai-org/grok-1 — Grok-1 is an open-weights large language model implementation featuring a sparse mixture-of-experts architecture. It… kohya-ss/sd-scripts — sd-scripts is a suite of utilities designed for fine-tuning generative models, preprocessing datasets, and converting… microsoft/deepspeed — DeepSpeed is a distributed deep learning optimization library and framework designed for the training and inference of… facebookresearch/fairseq — Fairseq is a PyTorch toolkit for sequence-to-sequence modeling, specializing in neural machine translation, automatic…