policygate-runtime 0.1.0

๐Ÿ‡ฐ๐Ÿ‡ท ํ•œ๊ตญ์–ด: README.ko.md

Decision backend and HTTP API for ThakiCloud/Thaki-PolicyGate-9B-v0.1. The model extracts a JSON IR from a Korean case plus regulation text. This code checks that IR against the source text and then answers or abstains. Backend v2.9 is the frozen v2.8 plus a numeric polarity guard that can only turn answers into abstentions.

Research preview. The API is advisory and has no side effects. Do not connect it to automated approval or denial.

pip install vllm==0.28.0                       # the backend and API themselves use only the Python standard library
python3 tests/test_examples.py                 # offline: examples, API self-test, guard unit tests
MODEL=ThakiCloud/Thaki-PolicyGate-9B-v0.1 python3 serve/launch.py
docker build -t policygate-runtime . && docker run --gpus 1 -p 8080:8080 policygate-runtime

POST /v1/decide takes {"doc", "q", "options"}, and options must include ๊ทœ์ •์ƒ ํ™•์ธ ๋ถˆ๊ฐ€. There are also GET /health and GET /v1/info.

scripts/ holds the backend modules, copied byte for byte from the research repository. Import fails if a frozen file changes: v2.9 checks the v2.8 hash, v2.8 checks v2.7, and v2.7 checks the v2.6 set listed in esg_v26.FROZEN.json. These files also contain the research evaluation harness, but the API uses only the decision path. serve/kd9b_api.py is the API (KD_BACKEND=v29). examples/ holds three development items, each with the recorded model output and the expected decision.

Numbers, limits and data provenance are in the model card. Every file is listed in SHA256SUMS and MANIFEST.json. Backend esg_v29_backend 8d3cfe6213da2d6a, API 9c0840c9d640dd32. License: Apache-2.0.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Collection including ThakiCloud/Thaki-PolicyGate-runtime