Repository navigation
feat(forge): forge/export — package a trained checkpoint into the pageable LoRA layer - #1696
Merged
Merged
Conversation
…eable LoRA layer (genome loop, Phase 5 slice 2) The "reproduction" step of the genome economy: turns a forge/train checkpoint into the unit the grid exchanges. `--format lora` exports the LoRA adapter (the pageable genome layer); `gguf` exports a quantized standalone (quantization threaded only for that path). continuum builds the invocation; unsloth packages. Drives `unsloth export <checkpoint> <out> --format ...` off the main thread (tokio::process). Missing-checkpoint and missing-unsloth fail loud. The arg construction is a pure `build_export_args` so the invocation is pinned by unit tests WITHOUT needing a real checkpoint (no --dry-run on export). Tests (extend the forge mod): lora omits --quantization; gguf includes it; missing-checkpoint guard (skip-if-no-unsloth). 13/13 forge tests pass. Remaining for #32: the grid CARD — content-addressed alloy_hash of the exported layer + populate the ForgeArtifact + emit to the catalog — and page-in (genome.activate_skill). See memory lora-layers-as-p2p-exchanged-genome. Co-Authored-By: Claude Opus 4.8 <[email protected]>
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.
The reproduction step
Turns a
forge/traincheckpoint into the unit the grid exchanges — a pageable LoRA layer (--format lora), or a quantized GGUF standalone. continuum builds the invocation; unsloth packages.What
unsloth export <checkpoint> <out> --format ...off the main thread; quantization threaded only on the GGUF path.build_export_argsso the invocation is pinned by unit tests without a real checkpoint (export has no--dry-run).Tests (extend the forge mod)
export_args_for_lora_omit_quantization·export_args_for_gguf_include_quantization·forge_export_errors_on_missing_checkpointRemaining for #32
The grid card — content-addressed
alloy_hashof the exported layer → populate theForgeArtifact→ emit to the catalog — and page-in (genome.activate_skill).See memory
lora-layers-as-p2p-exchanged-genome.🤖 Generated with Claude Code