Files
esh-pfi-infrastructure/services/intern-decision-serve/src/intern_decision_serve/errors.py
T
vh 5bbf0aaeba feat(intern-decision-serve): Intern-Decision-4B behind semif-serve's HTTP surface
Contract, service and tests (fake engine, no GPU). Scores through the checkpoint's own
inference.py (DecisionEngine.predict, sha256-pinned); maps semif decisions onto Jev choice
questions, packs /decide/shared into calls of at most 16, runs orderings in waves, and keeps
semif's error mapping, admission, body limit and hard VRAM cap. Deltas from semif-serve are
listed in the contract.
2026-09-30 09:04:39 -07:00

11 lines
436 B
Python

"""Torch-free exceptions shared by the HTTP layer and the engine."""
class OutOfMemory(RuntimeError):
"""The engine ran out of GPU memory during a call and has already released its cache (INV-4)."""
class ScoringFailed(RuntimeError):
"""A call failed for a reason other than validation or OOM. Raised unchained, after the failed
call's memory has been released; the original traceback is logged, not carried (INV-4)."""