33e509560728165f99694a094fe06b84fb082184
Major changes: - Remove unused ML libraries: torch, scikit-learn, langchain-core, langchain-text-splitters, langchain-community, faiss-cpu - Comment out unused langchain imports in utils/core.py (only used in commented-out code) - Keep transformers (used in persona_dialogue.py for sentiment analysis) Results: - Container size reduced from 14.5GB to 2.6GB - 82% reduction (11.9GB saved) - Bot runs correctly without errors - All functionality preserved Removed packages: - torch: ~1.0-1.5GB (not used, only in soprano_to_rvc/) - scikit-learn: ~200-300MB (not used in bot/) - langchain-core: ~50-100MB (not used, only in commented code) - langchain-text-splitters: ~30-50MB (not used, only in commented code) - langchain-community: ~50-80MB (not used, only in commented code) - faiss-cpu: ~100-200MB (not used in bot/) This is Phase 1 of container optimization (Quick Wins). Further optimizations possible: - OpenCV headless (150-200MB) - Evaluate Playwright usage (500MB-1GB) - Alpine base image (1-1.5GB) - Multi-stage builds (200-400MB)
soprano_to_rvc
@ 1b54e4d5e2
Description
Llama.cpp-powered Hatsune Miku Discord bot with autonomous features, chat, and image generation
Languages
Python
82%
HTML
9.6%
JavaScript
4.8%
Jupyter Notebook
1.4%
Shell
1.1%
Other
1.1%