• Stefy Lanza (nextime / spora )'s avatar
    query transformers' mapping the way transformers defines it · c6fca1d8
    Stefy Lanza (nextime / spora ) authored
    Reported from production within the hour: `Qwen3.5-9B` now REFUSES pictures,
    "served without a vision tower" — the exact opposite of what the vision
    loading was for.
    
    transformers' `_LazyAutoMapping.get` is not `dict.get`. Its signature is
    `get(self, key, default)` and `default` is REQUIRED, so
    
        AutoModelForImageTextToText._model_mapping.get(type(cfg))
    
    raises TypeError. `is_vision_checkpoint` caught it and answered "no vision
    class" — for every checkpoint, always. Every vision model therefore loaded as
    text, and then had its pictures refused by the guard added for exactly that
    case. The probe I verified it with passed two arguments, so it tested a call
    the code does not make.
    
    Two tests now call what the code calls: one with a stub whose `get` mirrors
    the required `default`, and one through the real mapping with a config class
    this transformers actually ships.
    
    The silence was the other half. `is_vision_checkpoint` returned False without
    a word, so the engine log said nothing at all and the only symptom was a 400
    that blamed the model's configuration — which was fine. `vision_report` now
    carries the reason at every step, a checkpoint that looks like a vision model
    and is not loaded as one says so in the log, and the refusal quotes what was
    actually found rather than listing three things it might be.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014T3rZozi1Ehk96NG1WesgC
    c6fca1d8
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...
third_party 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-acestep.txt Loading commit data...
requirements-crisperwhisper.txt Loading commit data...
requirements-h3.txt Loading commit data...
requirements-latentsync.txt Loading commit data...
requirements-longcat-train.txt Loading commit data...
requirements-longcat.txt Loading commit data...
requirements-melotts.txt Loading commit data...
requirements-musetalk.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-parler.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-xtts.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...