• Stefy Lanza (nextime / spora )'s avatar
    gguf: try swa_full before quantizing, and add a finer KV ladder · 5eb92e2c
    Stefy Lanza (nextime / spora ) authored
    Two levers were missing from the KV plan.
    
    The one that costs nothing: llama-cpp-python 0.3.30 accepts `swa_full`, and we
    never passed it. On a sliding-window model — gemma-4-31B has a 1024-token window
    on a 5:1 pattern — swa_full=True makes the sliding layers reserve the FULL context
    like the global ones. Turning it off reserves only the window, and it costs no
    quality: it limits context reuse across requests, not attention. So it is now both
    a config passthrough and the FIRST rung of the fallback ladder, ahead of touching
    precision at all.
    
    The other: the ladder was q8_0 then q4_0, symmetric. It is now three rungs —
    (q8_0,q8_0) 24.3 GB, (q8_0,q4_0) 18.6 GB, (q4_0,q4_0) 12.9 GB on tonight's
    measured 45.7 GB — keeping K more precise than V in the middle, since V tolerates
    quantization better.
    
    There is no rung below that: 4.5 bits (q4_0 / iq4_nl) is llama.cpp's floor for a
    KV cache. The sub-4-bit ggml types this build exposes (IQ2_*, Q2_K, IQ3_*) are
    weight quantizations, not KV cache types.
    Co-Authored-By: 's avatarClaude Opus 5 (1M context) <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_0182DhR1eFNPQyGmDrpHbedY
    5eb92e2c
Name
Last commit
Last update
codai Loading commit data...
docs Loading commit data...
packaging Loading commit data...
samples Loading commit data...
tests Loading commit data...
tools Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
AI.PROMPT Loading commit data...
CODERAI_API_DOCUMENTATION.md Loading commit data...
CoderAI.gif Loading commit data...
DISTRIBUTION.md Loading commit data...
LICENSE.md Loading commit data...
MULTIMODAL_CAPABILITIES.md Loading commit data...
MULTIMODAL_UI_EXAMPLES.md Loading commit data...
README.md Loading commit data...
REQUEST-geoclip-embeddings.md Loading commit data...
REQUEST-vpr-embeddings.md Loading commit data...
amdgpu-coredump-05000.bin Loading commit data...
build-oci.sh Loading commit data...
build.ps1 Loading commit data...
build.sh Loading commit data...
coderai Loading commit data...
coderai-broker-implementation-reference.md Loading commit data...
coderai-integration.md Loading commit data...
commands Loading commit data...
osxbuild.sh Loading commit data...
package-oci.sh Loading commit data...
package-tarball.sh Loading commit data...
requirements-crisperwhisper.txt Loading commit data...
requirements-h3.txt Loading commit data...
requirements-nemo.txt Loading commit data...
requirements-nvidia.txt Loading commit data...
requirements-ocr-paddle.txt Loading commit data...
requirements-ocr.txt Loading commit data...
requirements-pyannote.txt Loading commit data...
requirements-surya.txt Loading commit data...
requirements-vllm.txt Loading commit data...
requirements-vulkan.txt Loading commit data...
requirements.txt Loading commit data...
run-oci.sh Loading commit data...
smoke-test-oci.sh Loading commit data...
todo.md Loading commit data...
video_editor.config.json Loading commit data...