• Stefy Lanza (nextime / spora )'s avatar
    ask the backend whether it can time words, and do not hand a CTC pipeline a None (v0.5.3) · 2754079b
    Stefy Lanza (nextime / spora ) authored
    Follow-up to v0.5.2, from measuring the fix instead of trusting it. Asking the
    running install for word timings on 4.3 seconds of Italian it had just
    synthesised showed two more faults in the same chain, both of which answer 200
    with the timings missing.
    
    A CTC pipeline cannot take `generate_kwargs=None`: it iterates it and raises
    `TypeError: 'NoneType' object is not iterable`. The backend passed exactly
    that whenever a model had no generate kwargs, which is every wav2vec2/MMS
    checkpoint -- and the retry below it then turned the failure into a text-only
    success, so the only trace was one line in the log. `wav2vec2-it` returned 0
    words before this and the same 14 the pipeline always produced after. The
    kwarg is now omitted when empty rather than passed as None.
    
    And the pick has to consider the language, not just the backend: a model that
    declares `languages` REFUSES the rest with a 400, so an install with
    `wav2vec2-it` and `wav2vec2-en` has two models that each report word timings
    and each reject the other's language. Picking one for the wrong language would
    have replaced one silent fallback with another.
    
    Measured, on sixteen configured audio models: ten cannot time words at all.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01S8LAP3ueNzQJtwzhgVbq66
    2754079b
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-crisperwhisper.txt Loading commit data...
requirements-h3.txt Loading commit data...
requirements-longcat-train.txt Loading commit data...
requirements-longcat.txt Loading commit data...
requirements-melotts.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...