72 yesterday

On-device oil & gas decision router (Qwen3.5-2B LoRA, Q8_0). Classifies and routes field requests as one JSON decision behind fail-closed ThoxRoute rules. Never operates equipment. Apache-2.0.

ollama run Thox-ai/thoxqwen-field-mobile

Models

View all →

Readme

ThoxQwen-Field Mobile (Ollama)

The on-device decision router of the ThoxMind Oil & Gas stack, built by THOX.ai. ThoxQwen-Field Mobile is a LoRA fine-tune of Qwen3.5-2B, distilled from the ThoxQwen-Field run 5 decision data, that classifies and routes oil and gas field requests on phones, laptops, ThoxUltra and ThoxMini. It returns one JSON decision per request and runs behind THOX’s deterministic ThoxRoute rules, which fail closed.

Classify. Decide. Route. Verify.

Developer THOX.ai LLC, Cedar Park, Texas
Release Mobile text run 1 (LoRA adapter sha256 c3d6eacf...1c14149), 2026-12-02
Base Qwen3.5-2B (Apache 2.0, Qwen team)
Method MLX LoRA r16, 24 layers, 300 iterations, on an Apple M4 Pro
Builds GGUF Q8_0 1.9 GB; MLX 8-bit 1.9 GB and 4-bit 1.0 GB. GGUF Q4_K_M is held back (blind G1 fail)
Output One JSON routing decision per request, 64-token budget, thinking off
License Apache 2.0
Program gates Blind holdout v2: G1 fail-closed PASS and G2a under-call PASS for four builds. Original G2 exact tier not met (83.33% vs 90%); G2 was split by CTO ruling after results were known

Run

ollama run --think=false Thox-ai/thoxqwen-field-mobile

Ollama 0.40.19 or newer. Use the API with "think": false, temperature 0 and num_predict 64, the settings the model was scored with. The tag carries the GGUF Q8_0 build (sha256 19f1d2f3...669f7ffb).

Output

{"task_class": "reporting", "domain": "production", "risk_tier": "STANDARD",
 "route": "lfm3_on_device", "confidence": 0.9, "abstain": false}

Same 12 task classes, 5 risk tiers and 12 routes as ThoxQwen-Field.

Safety boundary

The system classifies, drafts, routes and verifies. It never operates equipment, never issues a permit and never commands SCADA. Run it behind ThoxRoute rules v1.2 or your own deterministic refusal layer: the model alone does not hold every fail-closed case. SAFETY routes end at a human sign-off.

Results

Blind holdout (MEASURED, producer-scored by CTO ruling, not independent). Predictions were content-blind on an Apple M4 Pro 48 GB; scoring ran on the program’s scoring host. Holdout v2 is the gating set (108 cases, 48 fail-closed); v3 is advisory (108 cases, 60 fail-closed).

Build, behind rules v1.2 v2 fail-closed v2 tier under-calls v2 exact tier v3 fail-closed v3 exact tier
bf16 48⁄48 1 (0 fail-closed) 83.33% 56⁄60 89.81%
MLX 8-bit 48⁄48 1 (0 fail-closed) 83.33% 56⁄60 89.81%
MLX 4-bit 48⁄48 1 (0 fail-closed) 83.33% 57⁄60 89.81%
GGUF Q8_0 48⁄48 1 (0 fail-closed) 83.33% 56⁄60 89.81%
GGUF Q4_K_M 47⁄48 3 (1 fail-closed) 81.48% 57⁄60 88.89%

G1 (fail-closed 48⁄48 on v2) passes for four builds; GGUF Q4_K_M fails it and is not offered. The program’s original G2 (exact risk tier at least 90% on v2) is not met by any build. After these results were known, the CTO split G2: G2a counts only under-calls (a tier less strict than the label), capped at 2% with zero on fail-closed cases; G2b keeps exact tier as advisory. Four builds pass G2a. Of 18 tier misses per passing build, 17 are over-calls, which send a request to more human review than its label asked for.

Development sets (PROVISIONAL). The training lane’s own reads on golden (216 cases) and holdout v1 (108 cases), Apple M4 Pro 48 GB, greedy decoding.

Mobile router development results

Build Model alone, golden fail-closed With rules v1.2, golden fail-closed With rules v1.2, holdout fail-closed Holdout route / tier with rules
Stock Qwen3.5-2B 37⁄86 86⁄86 40⁄43 37.96% / 49.07%
Tuned, bf16 83⁄86 86⁄86 43⁄43 77.78% / 83.33%
GGUF Q8_0 83⁄86 86⁄86 43⁄43 77.78% / 83.33%
GGUF Q4_K_M 82⁄86 86⁄86 43⁄43 77.78% / 82.41%
MLX 8-bit 82⁄86 86⁄86 43⁄43 77.78% / 83.33%
MLX 4-bit 81⁄86 86⁄86 43⁄43 73.15% / 79.63%

Tuning moved the model alone from 21.30% to 88.43% golden route accuracy and from 166 to 216 parsed answers (PROVISIONAL). GGUF Q8_0 answers in 0.47 s at the median with 2.3 GB of server memory (MEASURED, llama-server with Metal on an M4 Pro). Rules v1.3 let one holdout fail-closed case through with both 4-bit builds; use rules v1.2.

Where it runs

Device Build Fit
iPhone and iPad MLX 4-bit, 1.0 GB CALCULATED from file size; on-device latency not yet measured
macOS laptops MLX 8-bit, 1.9 GB MEASURED on an M4 Pro desktop class Mac
ThoxUltra (16 GB) GGUF Q8_0, 1.9 GB CALCULATED; not yet run on the device
ThoxMini GGUF Q8_0, 1.9 GB CALCULATED; not yet run on the device
Desktops and ops servers GGUF Q8_0, 1.9 GB MEASURED with llama-server on an M4 Pro

Training data

650 text decision rows from the ThoxQwen-Field run 5 mix (618 train, 32 validation), all authored-synthetic or verified teacher output. No customer data and no real credentials (fake canary secrets only).

Limitations

  • Original G2 not met on blind v2 (exact risk tier 83.33%). G2a, which passes, was introduced after results were known. Nothing here is a field result.
  • The model over-calls risk tier: expect more requests routed to human review than strictly needed.
  • Advisory set v3 shows 3 to 4 fail-closed cases that pass the rules, two of them as tier under-calls; under review by the rules lane.
  • Holdout risk tier with rules is 79.63% to 83.33%, under the program’s 90% bar.
  • The model alone misses PPE and JSA safety cases; the rules are required, not optional.
  • Text only; vision stays with ThoxQwen-Field.
  • Base-model capability claims are the Qwen team’s, not THOX results.

Links

License

Apache License 2.0, THOX.ai LLC. Base model Qwen3.5-2B: Apache License 2.0 (Qwen team, Alibaba Cloud).

Contact

thox.ai | THOX.ai LLC, Cedar Park, Texas.