VeriCompile-Reader-1.7B-MLX-8bit

Clean-room Apache-2.0 Apple Silicon MLX 8-bit neuro-symbolic verification compiler fine-tuned from Qwen/Qwen3-1.7B (SFT + execution-verified GRPO).

Instead of emitting free-form prose answers or doing mental arithmetic, this model compiles any financial, legal-contract, statutory, or clinical question into a single-line JSON verification plan (op + verbatim quote snippets) executed deterministically by VeriCompile (zero-dependency Python stdlib engine).

Document + Question
   โ”‚
   โ–ผ  VeriCompile-Reader-1.7B-MLX-8bit (1.83 GB, ~2โ€“3s on Apple Silicon, 100% offline)
{"op":"ADD","args":[{"quote":"43,870"},{"quote":"6,342"},{"quote":"(4,120)"}],"reason":"GAAP + adjustments"}
   โ”‚
   โ–ผ  vericompile deterministic executor (0 deps)
ANSWER: 46092  |  1-to-1 verbatim character spans [start:end]  |  0-token deterministic replay

Quickstart (Apple Silicon Mac)

pip install "git+https://github.com/wasabihu/vericompile.git#egg=vericompile[mlx]"
from vericompile.compiler_mlx import LocalMLXCompiler

compiler = LocalMLXCompiler("wasabihu/VeriCompile-Reader-1.7B-MLX-8bit")

doc = (
    "Q3 Financial Highlights (RMB millions): "
    "GAAP net profit 43,870; share-based compensation 6,342; "
    "fair-value adjustment (4,120)."
)
res = compiler.compile_and_verify(
    doc,
    "Compute Q3 Non-GAAP net profit in RMB millions (GAAP plus both adjustments).",
)
print(res["status"], res["value"])          # ANSWER 46092
print(res["evidence"])                      # exact verbatim character offsets [start:end]
print(res["symbolic"]["replay_identical"])  # True

Supported JSON DSL ops: VALUE, ADD, SUB, ABS_DIFF, COMPARE (max/min), COUNT, TEXT, ABSENT (honest abstention on missing metrics / - / N/A), and CONFLICT.


Clean-Room Training Data & License Audit

This release is 100% clean-room Apache-2.0 (0 non-commercial BY-NC rows, 0 CNINFO/HKEX corporate filings, 0 private/personal data). Full machine-readable provenance is shipped in CLEAN_ROOM_AUDIT.json.

License Category SFT Rows (6,200) GRPO Prompts (300) Sources
CC-BY-4.0 2,707 152 CUAD Commercial Contracts (Atticus Project), EuropePMC Open Access
SEC-Public-Filing 2,212 101 U.S. SEC EDGAR public filings & XBRL tables (public domain)
Clean-Room-Synthetic 840 21 Programmatically generated multi-op, dash-trap, & distractor tables
Public-Domain-CN-Law 441 26 PRC national statutory provisions (Copyright Law Art. 5 public domain)
  • Training recipe: LoRA SFT (2 epochs, final_loss = 0.0011) followed by execution-verified GRPO (100 steps, G = 6, rollout execution accuracy 78.0% โ†’ 85.6%), merged in BF16 and quantized once to MLX 8-bit (bits = 8, group_size = 64, 1.83 GB).
  • Zero-leakage firewall: 108 held-out CUAD contract titles and 11 held-out SEC tickers strictly excluded from both SFT and GRPO splits.

Limitations & Intended Use

  • Designed strictly as a constrained verification compiler paired with VeriCompile's deterministic verifier โ€” do not use raw model outputs without running vericompile.execute_program().
  • Best suited for English/Chinese financial tables (SEC/XBRL), commercial contracts (CUAD), statutory clauses, and clinical abstracts on local Apple Silicon Macs (16 GB+ RAM recommended; ~`2.5 GB` active Metal memory).
  • For ultra-complex historical Chinese/HK cross-accounting-standard edge cases (e.g., IFRS 16 / CAS 21 transitions across multi-hundred-page filings), larger models (e.g., 4B+ or frontier APIs paired with vericompile) provide higher precision.

Local-First Evidence Ecosystem

License & Attribution

Licensed under Apache License 2.0. See LICENSE and NOTICE.

Downloads last month
-
Safetensors
Model size
2B params
Tensor type
U32
ยท
BF16
ยท
MLX
Hardware compatibility
Log In to add your hardware

8-bit

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

Model tree for wasabihu/VeriCompile-Reader-1.7B-MLX-8bit

Finetuned
Qwen/Qwen3-1.7B
Quantized
(576)
this model