SRA-RiskGate-4B (GGUF - Q4_K_M)
This repository contains the quantized GGUF weights (Q4_K_M, ~2.5 GB) for SRA-RiskGate-4B, an autonomous risk scoring, compliance verification, and dispute resolution agent for stablecoin payments (EIP-3009, x402, smart escrow).
Companion SDK & AgentKit Pre-Filter
Deploying with autonomous on-chain agents or payment gateways? Use the companion Python SDK for zero-latency deterministic pre-filtering (sanctions, address validation, depeg protection) and drop-in Coinbase AgentKit firewall support:
pip install --upgrade "sra-riskgate[agentkit]"
from coinbase_agentkit import AgentKit, ActionProviderOptions, CdpWalletProvider, CdpWalletProviderConfig
from sra_riskgate.integrations.agentkit import RiskGateActionProvider
wallet_provider = CdpWalletProvider(CdpWalletProviderConfig())
# Wraps agent execution with deterministic spending limits and depeg protection
agentkit = AgentKit(
ActionProviderOptions(
wallet_provider=wallet_provider,
action_providers=[
RiskGateActionProvider(
max_amount=1000.0, # Max transfer ceiling (USDC)
depeg_hold_pct=1.0, # Triggers manual review if depeg >= 1%
depeg_reject_pct=5.0 # Hard aborts execution if depeg >= 5%
)
]
)
)
Quickstart
1. Run via Ollama (Official Registry)
ollama run sriram1983007/sra-riskgate
2. Run via llama.cpp
./llama-cli \
-m sra-riskgate-4b-q4_k_m.gguf \
--temp 0.0 \
-n 350 \
-p "<|im_start|>system\nYou are SRA-RiskGate-4B, an autonomous stablecoin risk scoring, compliance verification, and dispute resolution agent. Output strictly valid JSON.<|im_end|>\n<|im_start|>user\n{\"payload\": {...}}<|im_end|>\n<|im_start|>assistant\n"
Note: Always run with greedy decoding (--temp 0.0) to guarantee deterministic JSON output conforming to the benchmark schema.
Benchmark Summary (Held-Out Test Set)
- SRA Composite Score: 0.9159 (Baseline: 0.4210)
- Risk Gate Decision Accuracy: 99.49% (Baseline: 44.30%)
- Unsafe Approval Rate: 0.47% (Target <= 2.0%)
- Schema Validity Rate: 100.0%
License
Distributed under the Apache 2.0 License.