streamft 1.0.4 adds multi-turn chat training without flattening conversations
The streamft library, which fine-tunes adapters on models too large for GPU memory by streaming NF4 blocks from disk, now accepts OpenAI-style messages rows. Previously its SFT loader only handled instruction/response pairs, forcing multi-turn dialogues into a single flattened string that erased turn boundaries. The new version supports system, user and assistant roles and masks the loss so only the final assistant reply is learned. Rows that do not end with an assistant turn now raise a clear error, while existing instruction/response rows continue to work. The release was published on PyPI and GitHub with 198 tests passing and 6 skipped.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in