🌟 Summary
Improves compatibility with newer Linux systems by fixing imports for some older PyTorch versions and MNN on glibc 2.41 and later.
📊 Key Changes
- 🛠️ Adds a shared import helper that clears an unused executable-stack flag from affected shared libraries when glibc rejects them.
- 🔥 Uses the fix for PyTorch 1.10–1.12 and MNN; other import errors are still raised normally.
- 📚 Updates the utility reference documentation and removes the now-redundant MNN-specific import helper.
🎯 Purpose & Impact
- ✅ Helps
import ultralyticsand MNN imports work on affected x86_64 Linux systems, including Ubuntu 26.04. - 🔄 Improves compatibility for users maintaining older PyTorch installations, without changing models or their behavior.
- 📦 This is a platform compatibility release, not a model or feature update.
What's Changed
- Load torch 1.10-1.12 on glibc 2.41+ with one shared executable-stack fix for torch and MNN by @glenn-jocher in #26866
Full Changelog: v8.4.185...v8.4.186