Files
Li Hong 160c3118ac Optimize startup speed: switch to lazy loading and auto-discovery for models
- Replaced the large hardcoded import block in `Exp_Basic` with a file scanning mechanism.
- Created a custom dictionary class to handle dynamic importing via `importlib`.
- Removed imports in `models/__init__.py` to avoid loading unnecessary dependencies.
- This significantly improves startup performance (from several minutes to less than 15s, tested on the Transformer model) and resolves dependency errors caused by missing optional libraries
2026-01-17 03:46:35 +08:00

1 line
5 B
Python