Model hosting and compute

Hyperstitioncc/

Hypertune

Adapter that stores a fine-tune as trained key/value entries in a frozen model's KV cache, so one batch can mix many fine-tunes at base-model decode speed.

What’s new here

LoRA puts a small adapter at every weight matrix, which gets expensive when one batch holds many different fine-tunes. Hypertune moves the fine-tune into the KV cache instead. The adapter, called a soft prefill, is a set of trained key/value entries that sit in a frozen model’s attention cache. Per the README, this lets a batch mix many fine-tunes, plus requests with none, without per-matrix overhead.

What it does

A soft prefill is trained against a frozen base model with GRPO, SFT or any other first-order method. At serving time you prepend it to the paged KV blocks of an existing stack. The README says decoding then runs at the base model’s speed no matter how many distinct fine-tunes share the batch.

The repo also targets co-residence: adapters trained independently can be loaded together without interfering. The README’s table has 13 tasks on Qwen3-30B-A3B-Base, with 16-slot cartridges (the README’s name for the soft prefill in its results) and rank-1 LoRAs. Mean score across the 13 is 0.25 for the plain model, 0.63 for LoRA alone and 0.60 for the cartridge alone. With 13 co-resident, the cartridge scores 0.53 and LoRA falls to 0.30.

The serving benchmark ran 512 sequences by 256 decode tokens on one B200 with vLLM 0.33, and does not count prefill. The README reports vLLM LoRA slowing as distinct adapters grow while Hypertune stays flat. The README also claims it matches LoRA in RL performance across 9 domains with 100x to 500x fewer parameters. These are the authors’ own numbers.

Who it’s for

People who serve many individually fine-tuned models from one base model and find mixing LoRA fine-tunes in a batch expensive. It also suits researchers who want to try KV-cache adapters, or who care about composing independently trained fine-tunes. The plot-reproduction scripts run on Slurm, and the serving benchmark used an NVIDIA B200.

Try it

The README asks for Python 3.12. Add the vllm extra if you want to sample through vLLM.

git clone https://github.com/Hyperstitioncc/Hypertune
cd Hypertune
pip install -e ".[test]"          # Python 3.12; add ",vllm" to sample through vLLM
python -m pytest tests -q

The command line lives in shared/cli.py with bank, train, eval and stack commands. To reproduce the plots, experiments/tools/curves.py submit runs the 13-task campaign on Slurm, and experiments/serving_speed/bench.py times one serving configuration. The README has the full data-building steps.

How mature is it

Very new. The repo was created and last pushed on 2026-11-17, with 2 commits in the last 90 days and 2 contributors. It has 40 stars, 4 forks, no open issues or pull requests, and no releases. The license is MIT. The repo includes a test suite and the data behind its figures in experiments/coresidence/data/, but the benchmark numbers are the authors’ own.