- Jun 03, 2026
-
-
Stefy Lanza (nextime / spora ) authored
-
- May 11, 2026
-
-
Stefy Lanza (nextime / spora ) authored
-
- May 05, 2026
-
-
Stefy Lanza (nextime / spora ) authored
-
Stefy Lanza (nextime / spora ) authored
-
- Mar 20, 2026
-
-
Your Name authored
- Remove auto-detection logic, just use download_model from cache - User can specify --download-file-pattern for non-GGUF models
-
Your Name authored
- Scan HuggingFace repo to detect available file patterns - Try multiple patterns (.gguf, .safetensors, .bin, .pt, .pth) - Default to .gguf if nothing found
-
- Mar 19, 2026
-
-
Your Name authored
- **Model Manager**: Central coordinator for model lifecycle, alias resolution, loading/unloading - **Cache Module**: Handles downloading, caching, and storage of models - **API Modules**: Request models from Model Manager (not directly from cache) Key changes: - Removed resolve_and_load_model() from cache - moved logic to Model Manager - Model Manager now downloads/caches models at startup when registered - API modules use multi_model_manager.load_model() instead of cache functions - Proper separation: Cache=storage, Manager=lifecycle coordination, APIs=requests This fixes the incorrect direct API-to-cache coupling and establishes proper architectural boundaries.
-
Your Name authored
- Updated load_model() to handle three input types: 1. Local files: Use directly without caching 2. URLs: Download to cache if not cached, then use 3. HF model IDs: Download via HF API if not cached, then use - Updated get_cached_model_path() to validate local files - Enhanced module documentation to reflect new capabilities - All model types (text, image, audio, etc.) can now use any input type
-
Your Name authored
- Updated remove_cached_model() to remove entire repo directories when matching by repo_id - Previously only removed individual files, now removes complete repository cache - Handles both files and directories in removal process - More thorough cleanup of HuggingFace cached models
-
Your Name authored
- Added unified load_model() function as main entry point for model loading - Updated WhisperServerManager to use centralized load_model() instead of inline logic - Removed proxy methods from MultiModelManager - use cache module directly - All cache functions now work seamlessly with both GGUF and HF model caches - Improved separation of concerns: cache module handles all caching/downloading
-
Your Name authored
- Updated get_cached_model_path() to check both coderai and HF caches - Updated download_model() to handle both URLs and HF model IDs automatically - Made download_huggingface_model() consistent with unified API - Updated module docstring to reflect unified cache functionality - All cache functions now work seamlessly with both cache types
-
Your Name authored
- Updated remove_cached_model() to search by repo_id for HuggingFace models - Moved cache management options (--list-cached-models, --remove-model, --remove-all-models) to run before heavy imports - Improved cache operations to use centralized functions in codai.models.cache module - Fixed model removal to work with full repo IDs like 'TheBloke/Llama-2-7B-GGUF'
-
Your Name authored
- Add list_cached_models_info() function to codai.models.cache module - Move cache listing logic from main.py to the cache module - Update main.py to use the centralized function early (before heavy imports) - Improves code organization and avoids unnecessary imports for --list-cached-models
-
Your Name authored
- Updated get_all_cache_dirs() to properly find HuggingFace hub directory - Now checks for ~/.cache/huggingface/hub/ instead of just ~/.cache/huggingface/ - This fixes --list-cached-models not showing HuggingFace cached models
-
- Mar 16, 2026
-
-
Your Name authored
Created codai/models/cache/__init__.py with: - get_model_cache_dir() - get_all_cache_dirs() - get_cached_model_path() - is_huggingface_model_id() - download_huggingface_model() - download_model() - list_cached_models() - remove_cached_model() - remove_all_cached_models() This extracts the cache-related functionality into a separate module.
-