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_stateuses the stored alpha and target geometry for serving, verification and merging. - A sibling
adapter_config.jsonis read even when--adapterpoints at a rawadapter.pt. - Adapter tensors that do not match the model raise an error instead of being dropped.
-
--sftaccepts 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
- Serve a LoRA adapter at its trained strength:
streamft serve --model ... --adapter checkpoints/my_adapter --port 8000. - Verify a fingerprint adapter without the half-strength bug:
streamft verify .... - Train on multi-turn
messagesJSONL, not only Dolly-style rows. - 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.
