Skip to content

streamft 1.0.3

Choose a tag to compare

@byjameson byjameson released this 29 Nov 00:24
· 1 commit to main since this release

streamft 1.0.3 - merge honours adapter geometry

Status: published to PyPI as streamft 1.0.3 on 2026-11-29.

Two merge bugs found while folding a QLoRA adapter trained with --targets all
into Qwen2.5-1.5B.

What changed

  • streamft merge now reads adapter_config.json and folds with the stored
    alpha. Before, it assumed alpha = rank, which silently rescaled every
    adapter trained with a different alpha (for example r=8, alpha=16).
  • streamft merge now folds MLP LoRA tensors as well as attention, so
    adapters trained with --targets all merge correctly instead of raising
    unexpected tensor errors.
  • Added adapter_geometry and merge_state_into_model helpers.
  • Added tests/test_merge_geometry.py: alpha parsing, MLP folding with a
    non-unit scaling, and an attention-only adapter that must not touch the MLP.

Install

pip install streamft==1.0.3

Verification

  • tests/test_merge_geometry.py: 3 passed.
  • Wheel built and published to PyPI (https://pypi.org/project/streamft/1.0.3/).
  • End-to-end use: merged an 18.46M-parameter, rank-16, attn+MLP adapter into
    Qwen2.5-1.5B-Instruct and produced a 3.16 GB fp16 checkpoint.

Links