Skip to content

chore: bump mlx-swift-lm to b620ae8 - #243

Merged
solderzzc merged 4 commits into
mainfrom
chore/bump-mlx-swift-lm-b620ae8
Oct 25, 2026
Merged

solderzzc merged 4 commits into
mainfrom
chore/bump-mlx-swift-lm-b620ae8

Conversation

@solderzzc

Copy link
Copy Markdown
Member

Points the submodule at the merge of SharpAI/mlx-swift-lm#85 (upstream ml-explore/mlx-swift-lm bb0d5b0 sync: LoRA training fix). SwiftLM does not reference the LoRA training code, so this is a pin update only.

🤖 Generated with Claude Code

solderzzc and others added 4 commits October 21, 2026 21:52
…-lm#85)

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The server integration job for Qwen2.5-0.5B dies with SIGSEGV during prefill on
the mlx-swift-lm b620ae8 bump, intermittently (4 of 5 attempts so far, passing
on the rest). The CI log has no stack, so this turns on the Swift runtime
backtracer for the E2E step and dumps the macOS crash report on failure.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The integration job retries the server test up to three times, so a crash in
attempt 1 that passes on attempt 2 shows as a green job. The crash report dump
only ran when the whole job failed, which hid every such crash. Collect the
report after each failed attempt instead, limited to reports newer than that
attempt's start.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The onPrefillDone save ran on the first streamed token, while the producer
had already started the next decode step on the same KVCacheSimple.
PromptCache.save read the live key/value arrays on the HTTP thread during
that update. With mlx-swift f93decf freeing the old context before replacing
it, the race surfaces as a use-after-free (SIGBUS in CI).

Move the save to the .info case, which is the producer's last yield, so no
cache writes happen after it. Early exits (stop sequence, client disconnect,
error before .info) no longer save the prompt cache; multi-turn clients
re-prefill those prompts.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@solderzzc
solderzzc merged commit 57ea94b into main Oct 25, 2026
15 checks passed
@solderzzc
solderzzc deleted the chore/bump-mlx-swift-lm-b620ae8 branch October 25, 2026 18:10
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.

1 participant