# streamft 1.0.5: serve adapters with the alpha they were trained with

> Source: <https://dev.to/mycute_97b39c4e34027570f9/streamft-105-serve-adapters-with-the-alpha-they-were-trained-with-3m55>
> Published: 2026-11-30 23:35:58+00:00

**Key takeaway:** Serving a LoRA adapter with alpha assumed equal to rank halves its scaling (1.0 instead of 2.0 for the default r=8/alpha=16), so read alpha and target geometry from adapter_config.json in serve, verify and merge paths.

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

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.

`apply_adapter_state` uses the stored alpha and target geometry for serving, verification and merging.`adapter_config.json` is read even when `--adapter` points at a raw `adapter.pt`.`--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.`streamft serve --model ... --adapter checkpoints/my_adapter --port 8000`.` streamft verify ...`.` messages` JSONL, not only Dolly-style rows.
29 CPU tests passed, including alpha/MLP geometry, unknown tensors, sidecar loading, malformed messages and the SFT drop counter.

```
pip install --upgrade streamft==1.0.5
streamft doctor
```

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.
