streamft 1.0.5 fixes a silent adapter-strength bug in serving and verification.

The bug

1.0.3 fixed streamft merge to read alpha from adapter_config.json and fold MLP LoRA. But streamft serve, streamft verify and streamft verify-server still assumed alpha = rank and attention-only.

A default adapter is trained with --lora_r 8 --lora_alpha 16 (scaling 2.0). Serving it with alpha = rank gives scaling 1.0: the adapter runs at half strength. An --targets all adapter also lost its MLP tensors silently.

The fix

  • A shared apply_adapter_state uses the stored alpha and target geometry for serving, verification and merging.
  • A sibling adapter_config.json is read even when --adapter points at a raw adapter.pt.
  • Adapter tensors that do not match the model raise an error instead of being dropped.
  • --sft accepts OpenAI-style {"messages": [...]} rows and text-part content. Empty or non-list messages raise a clear error; malformed rows are skipped and counted instead of aborting the run.

What you can do

  1. Serve a LoRA adapter at its trained strength: streamft serve --model ... --adapter checkpoints/my_adapter --port 8000.
  2. Verify a fingerprint adapter without the half-strength bug: streamft verify ....
  3. Train on multi-turn messages JSONL, not only Dolly-style rows.
  4. Quantize an adapter to 4-bit and keep its geometry for later serving.

Validation

29 CPU tests passed, including alpha/MLP geometry, unknown tensors, sidecar loading, malformed messages and the SFT drop counter.

Install

pip install --upgrade streamft==1.0.5 streamft doctor 

Honest limits

This is a correctness and packaging release, not a speed release. No new GPU benchmark is claimed. The 1.0.3 merge fix is required for adapters trained with a non-default alpha.

Links