Skip to content

Replay Spindle trainer fixes onto Miles v0.2.0 - #38

Merged
frrad merged 1 commit into
spindle-miles-v0.2.0from
spindle-v020-regression-tests
Nov 16, 2026
Merged

frrad merged 1 commit into
spindle-miles-v0.2.0from
spindle-v020-regression-tests

Conversation

@frrad

@frrad frrad commented Nov 12, 2026 •

Copy link
Copy Markdown

Replay the original Spindle trainer fixes from 9d047db23a5760414de12185b3a133363ca2fde8 onto upstream Miles v0.2.0 (8e419cc739fb09b5f21085aeacc7f6fd951084e1). The original author, author date, and commit message are preserved. Replay SHA: a94f7ae2ab58e6f05ba6747a48a8c43f6f4ef855.

The replay retains the original behavior:

  • Non-gated MoE expert targets require up/down projections without requiring a gate projection.
  • Both Bridge builders receive cp_comm_type.
  • Only materialize_adapter() enables CPU copying before adapter-list accumulation, restoring the previous scope in finally. Ordinary exports retain upstream tensor identity/device behavior.

Minimal v0.2.0 conflict adaptations:

  • Read communication settings from args.backend in both builders.
  • Keep the upstream iter_current_adapter() generator; place the original conditional copy in _export_current_adapter(), its list consumer.
  • Bind TrainerConfig instead of Namespace in the original MoE test's isolated function namespace because upstream changed the function annotation.

The original 85-line MoE test file is retained with that one-line adaptation. Migration-added tests and fixture changes have been removed. No new behavior or tests are included.

Other original commits examined:

  • 0a5ba80ddb446f59f9b9b3423fb0aa568cd00a7a: formatting only; no remaining applicable change because the longer args.backend expressions require Black's multiline layout.
  • 4b1c2d170bc3624770ba834000b5f0adce92107a and 187177a804a227e4a21d2541ac16344198a968b1: old/new Tinker SDK-name fallbacks are superseded by upstream's explicit Tinker 0.36.0 contract. assert_installed_sdk_version and validate_sdk_version reject other installed/client versions; upstream already uses the modern names.
  • 93c7a89c570421776141de7eb06295482763e39b: import formatting for those skipped compatibility imports; consequently inapplicable.

Validation: all 20 original MoE cases pass with pytest --noconftest tests/fast/backends/megatron_utils/lora/test_moe_validation.py; all commit hooks and diff whitespace checks pass. The reduced local environment lacks dependencies for full-suite collection. No deployment, GPU run, or Spindle pin change was performed for this replay.

@frrad
frrad force-pushed the spindle-miles-v0.2.0 branch from 949b877 to 8e419cc Compare November 13, 2026 15:41
@frrad frrad changed the title Test Spindle v0.2.0 bridge compatibility fixes Fix Miles v0.2.0 Bridge compatibility for Spindle Nov 13, 2026
@frrad
frrad force-pushed the spindle-v020-regression-tests branch from e6c491a to a94f7ae Compare November 13, 2026 16:18
@frrad frrad changed the title Fix Miles v0.2.0 Bridge compatibility for Spindle Replay Spindle trainer fixes onto Miles v0.2.0 Nov 13, 2026
@frrad
frrad marked this pull request as ready for review November 13, 2026 23:55
@frrad
frrad merged commit 15afe21 into spindle-miles-v0.2.0 Nov 16, 2026
frrad added a commit to modal-labs/spindle that referenced this pull request Nov 16, 2026
modal-projects/miles#38 was squash-merged into spindle-miles-v0.2.0 as
15afe21. That branch also carries the Kimi-K3 W4A16 LoRA change
(miles#39), which the earlier pin a94f7ae did not include.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants