Instructions to use wasabihu/VeriCompile-Reader-1.7B-MLX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use wasabihu/VeriCompile-Reader-1.7B-MLX-8bit with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("wasabihu/VeriCompile-Reader-1.7B-MLX-8bit") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use wasabihu/VeriCompile-Reader-1.7B-MLX-8bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "wasabihu/VeriCompile-Reader-1.7B-MLX-8bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "wasabihu/VeriCompile-Reader-1.7B-MLX-8bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use wasabihu/VeriCompile-Reader-1.7B-MLX-8bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "wasabihu/VeriCompile-Reader-1.7B-MLX-8bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "wasabihu/VeriCompile-Reader-1.7B-MLX-8bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wasabihu/VeriCompile-Reader-1.7B-MLX-8bit", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use wasabihu/VeriCompile-Reader-1.7B-MLX-8bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "wasabihu/VeriCompile-Reader-1.7B-MLX-8bit"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default wasabihu/VeriCompile-Reader-1.7B-MLX-8bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use wasabihu/VeriCompile-Reader-1.7B-MLX-8bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "wasabihu/VeriCompile-Reader-1.7B-MLX-8bit"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "wasabihu/VeriCompile-Reader-1.7B-MLX-8bit" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
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 (100steps,G = 6, rollout execution accuracy78.0% โ 85.6%), merged in BF16 and quantized once to MLX 8-bit (bits = 8, group_size = 64,1.83 GB). - Zero-leakage firewall:
108held-out CUAD contract titles and11held-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
- Engine & CLI: github.com/wasabihu/vericompile (Apache-2.0, zero core deps)
- 384d Bilingual Embedding: wasabihu/xerj-bilingual-fin-law-384 (MIT)
- 0.6B Bilingual Reranker: wasabihu/VeriCorpus-Reranker-0.6B (Apache-2.0)
- Evidence Loop: sessfork โ kbwall โ claimcite โ vericorpus
License & Attribution
Licensed under Apache License 2.0. See LICENSE and NOTICE.
- Downloads last month
- -
8-bit