-
Notifications
You must be signed in to change notification settings - Fork 976
Open
Labels
bugSomething isn't workingSomething isn't working
Description
System Info
- transformers.js version: 3.2.2
- iOS: 18.3.2
- macOS: 15.3.1
- Framework: Next.js (14.2.22) and Vite (6.0.5)
Environment/Platform
- Website/web-app
- Browser extension
- Server-side (e.g., Node.js, Deno, Bun)
- Desktop app (e.g., Electron)
- Other (e.g., VSCode extension)
Description
We've encountered issues with the v3 of transformers.js (specifically v3.2.2, potentially others) on iOS devices and macOS. The application crashes on iOS (both Safari and Chrome), and causes extremely high and growing memory usage (10+GB) on macOS, eventually also crashing.
Tested with the following examples:
- https://github.com/huggingface/transformers.js-examples/tree/main/next-client
- https://github.com/huggingface/transformers.js-examples/tree/main/video-object-detection
Temporary solution: As a workaround, downgrading to @xenova/[email protected] resolves the iOS crashing issue. However, this is not an ideal long-term solution.
We would greatly appreciate any insights or assistance in resolving these issues with the latest version. Thank you! 🙏
Reproduction
- Use transformers.js version 3.2.2
- Run a model (e.g., YoloV9) on an iOS device (iPhone)
- Observe that the application crashes
- Run the same model on macOS
- Check Activity Monitor and observe memory usage exceeding 10GB+ for Safari
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working