huggingface / huggingface/swift-chat
App Fatal Error When Last Model is Missing
- Dominant language
- Swift
- Stars
- 597
- Forks
- 49
- PR merge metrics
- No merged PRs in 30d
Description
Love this app, gonna be really useful in my research. I had tried using a small model a few months back (tried to add it from my downloads) and the app froze, so I removed the model and tried to add a new one. However upon re-running the app, even after fresh clones of the repo, the app immediately crashes here when trying to load the model:
I've isolated this to when the app is trying to load the `lastCompiledModel` pulling data from `Application Support/hf-compiled-transformers`. If the shortcut/reference to the last loaded model is gone, the app doesn't handle this very well and crashes.
Could be a small improvement for this but, the fix is to wipe that `hf-compiled-transformers` folder altogether. But could add in some error checking to be able to handle if the model that you previously had loaded is missing.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the app's lastCompiledModel loading path and reproduce the crash after removing the referenced model from Application Support/hf-compiled-transformers. Trace how a missing shortcut or model is handled; done means the app no longer crashes when the previously loaded model is unavailable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- desktop, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100