Skip to content

v3.18.0 β€” Local model optimization + self-update

Choose a tag to compare

@eniz1806 eniz1806 released this 27 Jun 17:01

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 config flash_attention / kv_cache_type; your own OLLAMA_* 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 via ollama 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 /upgrade runs pip install -U kodiqa. Disable via check_app_update: false.

Fixed

  • save_settings no longer silently drops API keys on a partial save (preserves on-disk *_api_key values unless explicitly cleared) and keeps a settings.json.bak.

566 tests pass, ruff clean.

πŸ€– Generated with Claude Code