You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
🚀 What's New
Add ScopeGuardV2.classify() (sync and async). It reads the scope class from the logprobs of the first generated token instead of decoding the full JSON output, and returns a ScopeGuardV2Classification with scope_class, a temperature-scaled probabilities distribution, confidence, temperature, predefined_response, model and usage. For Predefined Answer, a second constrained call picks one of the listed candidate responses through vLLM structured outputs (choice); free-text descriptions fall back to a short prefilled generation. Pass resolve_predefined=False to skip it. Available on the vllm and vllm-api backends. (#51)
Add POST /orbitals/scope-guard-v2/classify to orbitals scope-guard-v2 serve, with the softmax temperature set by --decision-temperature (env SCOPE_GUARD_V2_DECISION_TEMPERATURE). (#51)
Add classify() to the hf and api backends, and batch_classify() to all four backends. The hf backend uses the pipeline's model and tokenizer directly, so it works with checkpoints already on the Hub. On the api backend, batch_classify() calls the new POST /orbitals/scope-guard-v2/batch-classify endpoint and works only once the hosted API runs this version. (#54)
Add vllm_kwargs to the vllm backend, passed unchanged to vllm.LLM (for example max_num_batched_tokens). (#54)
🔧 Internal
Bump vllm to 0.30.0 and update the packages with open security alerts. setuptools stays below 81 because vllm requires it. (#54)
Add ruff pre-commit hooks (ruff check --fix, ruff format) with lint rules pinned to E4, E7, E9, F, I, and reformat the repo once. Run uv run pre-commit install to opt in. (#52)