Add causal LoRA adapter lifecycle - #40
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--resume-fromand intentional training forks with--branch-from.yeto mergefor safe local adapter merges into an immutable base model with atomic, sharded SafeTensors output.Behavior and safety
merge_and_unload(safe_merge=True), publishes atomically, records provenance, and supports configurable output shard size. Output sharding limits file size, not peak merge memory.Validation
Automated
115 passed.RUST_LOG=infosetting.H200 manual validation
6a9e13bd6fc8f0983b9b99948120bc37f49c13e9: initial NF4 QLoRA, branch from sequence length 128 to 256, strict resume, lineage, all 992 adapter tensors changing, safe bf16 merge, 12 SafeTensors shards totaling 50.1 GiB, provenance, and merged-weight reload all passed on one H200.causal_conv1druntime fast path, not a merge or weight failure. Generation passed both with cache disabled and with the Transformers torch causal-convolution fallback forced. The production serving runtime should still be validated independently.