• Stefy Lanza (nextime / spora )'s avatar
    config: honor same-path multi-config at runtime (key siblings by alias) · 6ec4af1c
    Stefy Lanza (nextime / spora ) authored
    The web UI stores sibling configs for one model file (distinct config_id, e.g. a
    smaller-context variant), and the front already routes by alias (_route_key:
    "two configs of the same model with distinct aliases can be assigned to
    different engines"). But engine startup keyed every text-model config by path
    (_model_id -> path), so a second same-path entry OVERWROTE the first —
    BOTH aliases then resolved to the last-registered config (verified: lisa and
    lisa-32k both got n_ctx=32768, silently changing the primary too).
    
    Fix: in main.py text-model registration, key the PRIMARY config by path (stays
    path-addressable) and each SIBLING (same path, already seen) by its ALIAS, so
    the two configs are distinct and each alias resolves to its own n_ctx. A sibling
    without an alias is skipped (can't be addressed). The GGUF loader already reads
    the file from cfg['path'], so an alias-keyed sibling still loads the right file.
    Verified: lisa->178000, lisa-32k->32768, same underlying .gguf.
    Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01Mw2KQiswmD69T45fTfjKwW
    6ec4af1c
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-nvidia.txt Loading commit data...
requirements-ocr-paddle.txt Loading commit data...
requirements-ocr.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...