Skip to content

Harden model download recovery - #6

Merged
LTCyogi merged 4 commits into
LTCyogi:masterfrom
joshwegener:pr/05-model-recovery
Apr 4, 2026
Merged

Harden model download recovery#6
LTCyogi merged 4 commits into
LTCyogi:masterfrom
joshwegener:pr/05-model-recovery

Conversation

@joshwegener

@joshwegener joshwegener commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • harden in-app model downloads with HTTP status checks and invalid-model cleanup
  • restore the previous model if a model switch fails instead of leaving Yell pointed at a bad file
  • make download-model.sh fail on HTTP errors and only promote fully downloaded files

Verification

  • swiftc -typecheck -target arm64-apple-macosx14.0 -sdk "$(xcrun --show-sdk-path)" -I include -I vendor/whisper.cpp/include -I vendor/whisper.cpp/ggml/include Sources/*.swift
  • bash -n download-model.sh && ./build.sh
  • ./download-model.sh

@LTCyogi

LTCyogi commented Apr 4, 2026

Copy link
Copy Markdown
Owner

Same thing here, there are a few conflict regions

@joshwegener
joshwegener force-pushed the pr/05-model-recovery branch from b782aad to 65d8ede Compare April 4, 2026 01:50
@joshwegener

Copy link
Copy Markdown
Contributor Author

Rebased onto current master and force-pushed the branch.

Conflicts are resolved, and I re-ran local verification on the rebased branch:

  • bash -n build.sh
  • bash -n download-model.sh
  • ./download-model.sh ggml-tiny.en.bin
  • ./build.sh

GitHub CI is now running on the updated head.

@LTCyogi
LTCyogi merged commit d9cfe92 into LTCyogi:master Apr 4, 2026
1 check passed
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.

2 participants