v3.18.0 β Local model optimization + self-update
Make local models smaller to download, faster to run, and lighter on RAM β and let Kodiqa keep itself up to date. Backed by docs/model-optimization-research.md.
Added β local model optimization
- Flash attention + KV-cache quantization on by default for Kodiqa-spawned Ollama servers (
OLLAMA_FLASH_ATTENTION=1,OLLAMA_KV_CACHE_TYPE=q8_0) β ~half the KV-cache RAM, faster long contexts, negligible quality loss. Tune via configflash_attention/kv_cache_type; your ownOLLAMA_*env vars win. - "Fits my machine" β detects your VRAM/RAM budget and annotates the model list + HuggingFace quant picker with β fits / β tight / β too big; flags sub-4-bit quants as low-bit (may hurt coding).
- Better quant sourcing β the HuggingFace fallback prefers imatrix/dynamic uploaders (Unsloth UD-, bartowski) and labels them.
/tuneβ set local runtime knobs (num_ctx, KV-cache type, flash attention, GPU layers)./quantizeβ build a smaller variant on-device viaollama create --quantize./recommendβ strong local coding models (Qwen-Coder + a REAP-pruned MoE), with size + fit.
Added β self-update
- Startup PyPI check (once/day, offline-safe) notifies when a newer Kodiqa release exists; new
/upgraderunspip install -U kodiqa. Disable viacheck_app_update: false.
Fixed
save_settingsno longer silently drops API keys on a partial save (preserves on-disk*_api_keyvalues unless explicitly cleared) and keeps asettings.json.bak.
566 tests pass, ruff clean.
π€ Generated with Claude Code