fix(classifier): local_encoder default model is gated, switch to bart-large-mnli #48
Reference in New Issue
Block a user
Delete Branch "fix/local-encoder-default-model"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
MoritzLaurer/deberta-v3-base-zeroshot-v2(thelocal_encoderdefault) started returning 401 on an unauthenticated GET of its own model page -- gated or moved sometime after this project picked it. Discovered live 2026-09-06 when it took production down entirely (crash-loop, exit code 1).The startup check (
ensure_available) did exactly its job -- refused to boot rather than fail opaquely on the first request -- but the service still couldn't come up until the default itself was fixed.Switched to
facebook/bart-large-mnli: HuggingFace's own reference model for thezero-shot-classificationpipeline, confirmed publicly accessible live (200, vs the old model's 401, checked with a browser user-agent to rule out bot-blocking). Larger than the old default (~407M vs ~184M params), but that's the honest tradeoff for "still works."Also updated the confidence_threshold documentation in docs/local-models.md to note the
[0.0, 1.0]probability requirement from #47 (a value like80used to be silently accepted and broke classification the same way).Full suite: 1503 passed, 0 failures.