• Stefy Lanza (nextime / spora )'s avatar
    colibri: download the GLM-5.2 container from the Models interface like any other · 1b7187d4
    Stefy Lanza (nextime / spora ) authored
    The GLM-5.2 model is a DIRECTORY (an HF repo of int4 .safetensors shards + config +
    tokenizer/MTP head), not a single file/GGUF — so it downloads via the normal
    whole-repo snapshot and lives in the HF cache snapshot dir.
    
    - routes: _COLIBRI_DEFAULT_MODELS catalog (mastouri/GLM-5.2-colibri-int4-g64-with-
      int8-mtp) + GET /admin/api/colibri/default-models; extend /admin/api/model-add to
      accept `backend` and `alias` so a downloaded repo registers as a colibri-backed
      model in one step.
    - settings.html: a "Download the GLM-5.2 container" picker + button in the colibri
      card — full-repo snapshot (no file_pattern → a directory), then registers it as a
      colibri model addressable by the configured model id.
    - backends/colibri: _resolve_container resolves an HF repo id → its local snapshot
      DIRECTORY (snapshot_download local_files_only), so a normally-downloaded model
      serves without any manual path wiring.
    - models.html: add "colibri" to the per-model backend dropdown (manual add path).
    - app: allow the new catalog endpoint through the no-auth admin allowlist.
    Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01LoSpEthysqmseCc6Geizty
    1b7187d4
__init__.py 4.11 KB