--- title: Base Checker emoji: 🌳 colorFrom: green colorTo: blue sdk: static pinned: false license: mit short_description: Catch a wrong base_model before merging LLMs --- # Base Checker: lineage-aware model merging Interactive demo for **Lineage-Aware Model Merging for Large Language Models** (B.Tech AI & Data Science major project, SMIT, 2026; Gourabdipta Ghosh and Arko Chakraborty; guide Mr. Suraj Dey). Merging methods add up each model's change from a hand-picked `base_model`. If the models share a closer ancestor, its update is counted repeatedly and the merge can collapse (68.0/48.0 vs 6.5/0.0 on GSM8K/MBPP for the same three Qwen2.5-1.5B fine-tunes). This page finds the closest common ancestor from the weights alone and checks a mergekit-style config. It runs entirely in the browser on precomputed weight statistics (Gram matrices of 196 attention/MLP matrices) for 7 Qwen2.5-1.5B-family models. The JavaScript checker gives the same verdicts as the Python tool on all 5,740 tested configurations. Code, results and the command-line tool: https://github.com/GourabDG36/lineage-aware-merging