How justvugg/colibri works
colibri is a local large-model runtime: users install or select a model, then chat with it through a browser UI or API gateway; inference can also generate images or decisions. The README documents hardware-aware setup, resumable downloads, CPU/Vulkan/CUDA execution, and a broad family of model engines. The graph includes those documented capabilities and sampled UI, gateway, agent, and training modules. Many runtime/setup implementations were not excerpted, so their connections are shown only where documented or evidenced by the source index.
Main entry points: colibri.c Model engines · setup_flow.py Setup workflow · server.py Chat UI server · App.tsx Web dashboard
Components 21
Setup and models
- Setup workflow
c/setup_flow.py - Hardware detection
c/setup_hw.py - Model catalog
c/setup_catalog.py - Model downloads
c/setup_download.py - Family registry
c/family_registry.py
Inference runtime
- Model engines
c/colibri.c - GGUF loading
c/st_gguf.h - GPU backends
c/backend_vulkan.c - Image generation
c/image_engine.py - Decision models
c/laya.c
Gateway and clients
- Inference gateway
c/openai_server.py - Chat UI server
ui/server.py - Web dashboard
web/src/App.tsx - Browser API client
web/src/lib/api.ts - Agent integration
ui/agents.py - Responses adapter
ui/responses_shim.py
Model adaptation
- QLoRA trainer
c/train/train_main.c - Training forward pass
c/train/train_model.h
Other components
- User
- Operator
- Model files
Connections 23
- User → Setup workflow: selects model
README.md - Setup workflow → Hardware detection: detects hardware
README.md - Setup workflow → Model catalog: recommends model
README.md - Setup workflow → Model downloads: downloads weights
README.md - Model downloads → Model files: writes files
README.md - Setup workflow → Model engines: starts runtime
README.md - Model engines → Family registry: selects family
- Model engines → GGUF loading: loads GGUF
- Model engines → GPU backends: runs on GPU
README.md - Model engines → Model files: reads weights
README.md - Model engines → Image generation: supports image runs
README.md - Model engines → Decision models: runs decision models
README.md - User → Web dashboard: chats or generates
README.md - Web dashboard → Browser API client: requests inference
web/src/App.tsx - Browser API client → Inference gateway: calls API
- Inference gateway → Model engines: dispatches inference
- Web dashboard → Chat UI server: uses dashboard
- Chat UI server → Inference gateway: proxies requests
ui/server.py - Chat UI server → Agent integration: routes agent actions
ui/server.py - Chat UI server → Responses adapter: adapts responses
ui/server.py - Operator → QLoRA trainer: trains adapter
c/train/train_main.c - QLoRA trainer → Training forward pass: runs training
c/train/train_main.c - QLoRA trainer → Model files: loads base model