Skip to content

fix(forge): the rewire body that #1844's git-add-abort dropped — mod.rs decls + forge.rs native path - #1845

Merged
joelteply merged 1 commit into
canaryfrom
fix/native-forge-rewire-body
Jul 6, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/native-forge-rewire-body

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

#1844 shipped the Unsloth file DELETIONS but a git-add pathspec error silently aborted staging the two
files that make the deletion compile: this lands them, so canary builds again.

  • inference/mod.rs: remove pub mod unsloth_control; + pub mod unsloth_forge; (the deleted modules).
  • modules/forge.rs: forge/train → native mlx_job::spawn_train_job (fire-and-emit), train-status →
    current_train_status (watch read), probe → native_forge_capability, export-else → fail-loud; ForgeModule
    captures the bus; dead Unsloth helpers + tests removed; native-probe test added.

This is the code behind the LIVE-verified run (real 2.2 MB LoRA adapter forged via mlx_lm.lora, event-driven).
Verified locally: full crate cargo check green, 23 forge tests + mlx_job lifecycle test pass, live
forge/train → completed with a real adapter on disk. Canary was momentarily broken between #1844 and this;
this restores it.

Co-Authored-By: Claude Opus 4.8 [email protected]
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…rs decls + forge.rs native path

#1844 shipped the Unsloth file DELETIONS but a git-add pathspec error silently aborted staging the two
files that make the deletion compile: this lands them, so canary builds again.

- inference/mod.rs: remove `pub mod unsloth_control;` + `pub mod unsloth_forge;` (the deleted modules).
- modules/forge.rs: forge/train → native mlx_job::spawn_train_job (fire-and-emit), train-status →
  current_train_status (watch read), probe → native_forge_capability, export-else → fail-loud; ForgeModule
  captures the bus; dead Unsloth helpers + tests removed; native-probe test added.

This is the code behind the LIVE-verified run (real 2.2 MB LoRA adapter forged via mlx_lm.lora, event-driven).
Verified locally: full crate `cargo check` green, 23 forge tests + mlx_job lifecycle test pass, live
forge/train → completed with a real adapter on disk. Canary was momentarily broken between #1844 and this;
this restores it.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 4f76bde into canary Jul 6, 2026
@joelteply
joelteply deleted the fix/native-forge-rewire-body branch July 6, 2026 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant