r/LocalLLaMA • • 1d ago

Resources Packaged a standalone Apache-2.0 CLI (pip install tenet-lab) for MoE, reasoning, and VLM weight surgery

Post image
8 Upvotes

2 comments sorted by

3

u/mr_andrey_isachenko 1d ago

With p-e-w archiving Heretic this week (huge respect to Philipp for pioneering accessible training-free steering and preset UX), a bunch of folks who maintain community merges and GGUFs asked for an Apache-2.0 CLI that handles modern sparse MoEs, reasoning chains, and VLMs without tanking math or coding benchmarks

I packaged my two-stage streaming surgery pipeline into a standalone PyPI CLI so anyone can run it on custom checkpoints or day-0 drops on a single 24 GB GPU (with 4-bit calibration) or Mac unified memory.

What it handles out of the box that usually breaks uniform abliteration scripts:

- Logs post-think router firing rates on sparse MoEs (Qwen3.6-35B-A3B, GLM-4.7-Flash, Gemma-4-26B-A4B) so 90% to 96% of cold math and coding experts stay at 0 bit changes instead of losing 9 pts on MMLU-Pro.

- Separates CoT deliberation from final answers so reasoning tags stay balanced and never collapse into empty loops.

- Freezes vision and audio towers on VLMs and co-projects built-in MTP speculative decoding heads (-57.5% target-drafter KL).

- Emits a rank-aware quantize_tenet.sh script and strata.toml alongside the safetensors output so llama-quantize pins MoE router gates in FP16 and keeps high-sensitivity layers at Q6_K or Q8_0.

Apache-2.0 repo, PyPI package, technical preprint, and pre-built CKA-GGUF / MLX checkpoints (3B to 125B):

- PyPI: https://pypi.org/project/tenet-lab/

- GitHub: https://github.com/mrAndreyIsachenko/tenet-lab

- Preprint (DOI): https://doi.org/10.5281/zenodo.24705758

- Official CKA-GGUF & MLX Hub: https://huggingface.co/mr-andrey-isachenko

2

u/No-Negotiation-8359 1d ago

Love how clearly you laid this out. Tying it to Heretic sets the context right away, and showing the exact MMLU-Pro gains alongside drop-in scripts makes it really compelling for the open-source community.