DrC-ILP-4B

DrC-ILP-4B is a lightweight, non-destructive MLX LoRA adapter built on mlx-community/Qwen3-4B-4bit for rule-governed option selection, calibrated evidence verification, strict constraint compliance, and safe abstention when required information is missing.

Companion Models: See certen/DrC-Decision-4B for sub-millisecond structured/multimodal decisions and certen/DrC-Think-4B for multi-step deliberative reasoning.

Benchmark Comparison vs. Stock Qwen3-4B-4bit

Benchmark Suite Metric Stock Qwen3-4B-4bit DrC-ILP-4B Delta
Closed-Action Policy Perturbations (N=48) Decision Accuracy
Forbidden Violations
56.2%
4.2%
91.7%
0.0%
+35.5 pp
-4.2 pp
Coding-Agent Action Gate (N=76, 5-action + abstain) Decision Accuracy
Forbidden Violations
46.1%
0.0%
96.1%
0.0%
+50.0 pp
0.0 pp
Held-Out Evidence Calibration (N=144 unseen queries) Accuracy
Brier Skill Score (↑)
51.4%
0.439
60.4%
0.635
+9.0 pp
+0.196
General Multi-Step Tool Use Pass Rate 41.7% 41.7% 0.0 pp regression

Key Capabilities

  • Calibrated Evidence Verification: Distinguishes supported, refuted, and missing facts in natural-language text (+0.196 Brier Skill Score over Stock Qwen3-4B-4bit) rather than guessing over unstated conditions.
  • Strict Constraint Compliance: Evaluates changing natural-language constraints at 0.0% forbidden-action violations when paired with the DrC runtime.
  • Non-Destructive Adapter Format: Loads alongside mlx-community/Qwen3-4B-4bit without overwriting base model weights.

Quickstart

Download Adapter

hf download certen/DrC-ILP-4B --local-dir ./DrC-ILP-4B

Run with mlx-lm CLI

python -m mlx_lm generate \
  --model mlx-community/Qwen3-4B-4bit \
  --adapter-path ./DrC-ILP-4B \
  --max-tokens 256 \
  --prompt "Select the single permitted action or abstain if required information is missing. Context: Production database migration ticket #482 has passing staging checks and DBA sign-off, and no active incident is open. Options: run_migration, rollback_release, request_missing_info. Constraints: Never run_migration during an active incident."

Run in Python (mlx_lm)

from mlx_lm import generate, load

model, tokenizer = load(
    "mlx-community/Qwen3-4B-4bit",
    adapter_path="./DrC-ILP-4B",
)

messages = [
    {
        "role": "system",
        "content": "Evaluate the context against the stated options and constraints. Choose one valid option or abstain when required evidence is absent.",
    },
    {
        "role": "user",
        "content": (
            "Context: Cold-chain shipment #910 arrived with intact tamper seals and a "
            "verified logger readout of 4.1 C (threshold <= 8.0 C).\n"
            "Options: release_lot, quarantine_lot, abstain_missing_data\n"
            "Constraints: Do not release_lot if tamper seals are broken or temperature exceeds 8.0 C."
        ),
    },
]

prompt = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
    enable_thinking=False,
)
response = generate(model, tokenizer, prompt=prompt, max_tokens=256)
print(response)

Sample Prompts

1. Constrained Option Selection

Context: Change request CR-204 targets eu-west-1, automated canary checks passed, and on-call approval is recorded. Freeze window is inactive.
Options:
- promote_canary
- abort_rollout
- abstain
Constraints:
- Do not promote_canary when a freeze window is active or on-call approval is missing.

2. Safe Abstention Under Missing Information

Context: Wire transfer review WT-771 shows verified beneficiary details, but sanctions screening status has not yet been returned by compliance.
Options:
- approve_transfer
- reject_transfer
- abstain
Constraints:
- Only approve_transfer when both beneficiary verification and sanctions clearance are confirmed.
Downloads last month

-

Downloads are not tracked for this model. How to track
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for certen/DrC-ILP-4B

Finetuned
Qwen/Qwen3-4B
Adapter
(11)
this model