Spaces:
Sleeping
Sleeping
Commit History
-
Update requirements and improve model loading logic
- Added a comment in requirements.txt to clarify the optional dependency on transformers for local inference mode. - Suppressed warnings related to missing PyTorch in transformers within the UI initialization. - Refactored model.py to use TYPE_CHECKING for imports, ensuring compatibility and avoiding runtime errors when PyTorch is not available. - Enhanced device resolution logic and added assertions to ensure the device is properly set before model operations.f8fe299 -
Enhance model loading and configuration. Added BORDERLESS_PRELOAD_MODEL to .env.example and updated README.md for clarity. Refactored device resolution in model.py for improved GPU handling and logging. Added warning filter for UserWarning in ui/__init__.py.
55f84e8 -
MiniCPM5 ZeroGPU migration
147e220