DrC-ILP-8B

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

Companion Model: For sub-millisecond structured and text decisions on Qwen3-8B-4bit, see certen/DrC-Decision-8B.

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

Benchmark Suite Metric Stock Qwen3-8B-4bit DrC-ILP-8B Delta
Held-Out Evidence Calibration (N=144 unseen queries) Accuracy
Brier Skill Score (↑)
ECE (↓)
49.3%
0.310
0.136
90.3%
0.712
0.055
+41.0 pp
+0.402
-0.081
Closed-Action Policy Perturbations (N=48) Decision Accuracy
Forbidden Violations
52.1%
0.0%
91.7%
0.0%
+39.6 pp
0.0 pp
Unseen Multi-Hop & Count Constraints (N=96) Decision Accuracy
Forbidden Violations
50.0%
0.0%
58.3%
0.0%
+8.3 pp
0.0 pp
General Multi-Step Tool Use Regression Baseline 0.0% regression 0.0 pp

Key Capabilities

  • High-Precision Evidence Assessment: Lifts unseen evidence-verification accuracy from 49.3% to 90.3% (+41.0 pp) over Stock Qwen3-8B-4bit while cutting calibration error (ECE) by 60%.
  • Hard-Constraint Compliance: Respects explicit exclusion rules and abstains cleanly when required evidence is pending (0.0% forbidden violations).
  • Non-Destructive Adapter Format: Preserves base Qwen3-8B-4bit behavior across general conversation and tool use.

Quickstart

Download Adapter

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

Run with mlx-lm CLI

python -m mlx_lm generate \
  --model mlx-community/Qwen3-8B-4bit \
  --adapter-path ./DrC-ILP-8B \
  --max-tokens 192 \
  --prompt "Options: [approve_release, hold_release, escalate_review]. Policy: approve_release requires verified QA signoff and no active security freeze. State: QA signoff is verified and no security freeze is active. Forbidden: []. Choose the best option or abstain."

Run in Python (mlx_lm)

from mlx_lm import generate, load

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

prompt = (
    "Options: [dispatch_primary, route_backup]. "
    "Policy: dispatch_primary requires an inspected and calibrated unit; "
    "route_backup requires a pressurized backup unit. "
    "State: Primary unit is inspected and calibrated; backup unit is offline. "
    "Forbidden: []. Select the valid option or abstain."
)
messages = [{"role": "user", "content": prompt}]
formatted = tokenizer.apply_chat_template(
    messages, tokenize=False, add_generation_prompt=True
)
print(generate(model, tokenizer, prompt=formatted, max_tokens=192))

Sample Prompts

1. Constrained Option Selection

Options: [ship_standard, ship_cold_chain, hold_order]
Policy:
- ship_cold_chain: temperature-sensitive cargo with verified thermal packaging
- ship_standard: ambient cargo with completed customs clearance
State: Cargo is temperature-sensitive and thermal packaging passed inspection.
Forbidden: [ship_standard]
Question: Which option should be selected?

2. Safe Abstention Under Missing Evidence

Options: [apply_change, escalate_freeze]
Policy:
- apply_change: change ticket is approved and no change freeze is active
- escalate_freeze: change freeze is active and emergency override is granted
State: Change ticket is approved, but the change-freeze status check is still pending.
Forbidden: []
Question: Which option should be selected, or should the system abstain?
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-8B

Finetuned
Qwen/Qwen3-8B
Adapter
(10)
this model