You left the rest of the internet behind · Vancouver, BC

MD Ishtiaque Hossain

Training tiny, opinionated neural models from scratch and open weights — and building the playful, stubborn apps around them.

I like building small models (6.9M to 1.7B parameters) that actually run on your own desk, then wiring up the runtimes and software around them myself: custom RoPE + SwiGLU + wf16 ONNX in PorkiCoder 3.0, local MLX search in Shlexball 2.0, Resumehog, Hogmatix, and upstream patches to Apple's MLX.

Workshop Hog · click to boop

You’ve left the rest of the internet behind. No popups, no trackers, just small models and stubborn apps.

Live Software & Developer Tools Production platforms built on this research — try free tools, desktop apps, and MCP connectors
PorkiCoder 3.0 porkicoder.com

Agentic desktop coding IDE with parallel subagents, Living Cards 3.0, and the offline TabNamer-75M semantic engine.

Resumehog resumehog.com

Role-calibrated resume tailoring matched to recruiter screening rubrics, plus free ATS, keyword, and bullet analyzers.

Hogmatix hogmatix.com

Brand-organized scheduling queue for X, TikTok, YouTube, and Instagram — operable on the web or via Claude & ChatGPT MCP.

01 Models & On-Device Inference

Custom-trained specialists, from 6.9M scratch graphs to 1.7B planners

Two new proprietary production models shipped in November 2026 alongside two Apache 2.0 open-weight releases on Hugging Face — co-designed with their tokenizers, quantization formats, and local execution runtimes.

From-Scratch Model · Nov 2026 Proprietary · PorkiCoder 3.0

TabNamer-75M

75,222,144 params · random init

Trained 100% from random initialization (external_weights_loaded: false) under a sub-FLAN ceiling. Replaces FLAN-T5-small's 6E/6D relative-bias graph and untied 32k SentencePiece table with an asymmetric 10-encoder / 4-decoder RoPE + RMSNorm + SwiGLU architecture and tied 24,576 case-preserving BPE tokenizer — shifting +38.6% more parameters into the active Transformer body across UL2 pretraining (1.475B tokens), 48,243-row leak-firewalled SFT, SWA soup, and gentle NLL-tethered DPO.

Active Transformer Body (under 77M parameter cap)

TabNamer-75M (10E/4D)
61.1M (+38.6%)
FLAN-T5-small (6E/6D)
44.1M

Blind Position-Swapped Win % vs Fine-Tuned FLAN (cal-160)

User requests (n=80)
62.8% (27–16)
All messages (n=160)
57.3% (47–35)

ONNX Quantization Exact Parity vs PyTorch FP32 (cal-160)

Weight-only FP16 (wf16)
160/160 (100%)
Dynamic INT8 (SwiGLU flip)
148/160 (92.5%)
45.0 ms Apple Silicon CPU p50
172.8 MB −80.2 MB vs FLAN-T5
4-in-1 pass title, intent, margin, 576d

Claim boundary: Wins head-to-head decisive preference on cal-160 while trailing fine-tuned FLAN-T5 by 5.0 pp on standalone rare-noun usefulness (72.5% vs 77.5%); the 180-case confirmation reserve remains sealed until both gates pass.

Executed Search Planner · Nov 2026 Proprietary · Shlexball 2.0

Tofazzol v3

1.7B params · Qwen3-1.7B SFT

On-device semantic search planner running locally via Apple Silicon MLX inside a strict read-only macOS XPC sandbox. Trained on tightened file (v4) and Outlook mail (mail-v3) contracts using a 3x-accelerated GB10 trainer (answer-only lm_head, FP32 master weights + BF16 compute, torch.compile), and selected strictly by executed retrieval against real filesystem and mailbox fixtures — never token cross-entropy.

Findbench 3.1 File, Doc & Media Executed Pass Rate (746 cases)

Tofazzol v3 (0-shot Mac)
98.5% (735/746)
Gemma 4 31B (30-shot)
98.3% (733/746)
Gemini 3.8 Flash (30-shot)
98.0% (731/746)

Outlook Email Executed Retrieval (v3 vs Open-Weight v2.1)

Tofazzol v3 (240 synth)
97.1% (233/240)
Tofazzol v2.1 (240 synth)
90.4% (217/240)

Held-Back Real Outlook & End-to-End Real-World Suites

Held-back real Outlook
98/100 exact
Real-world E2E tandem
98.0% (49/50)
968 / 986 98.2% Findbench 3.1
634 / 634 Qualification gate
~0.43 s Local MLX plan latency

Methodology note: Cloud/workstation generalists received 30 worked demonstrations per context and still lead on synthetic mail (240/240 vs 233/240); Tofazzol v3 runs zero-shot offline on-device with zero cloud data exposure.

Open Weights · Hugging Face Apache 2.0 · 1.54B

porkr/Tofazzol-v2.1-1.5B

Five-stage continual SFT of Qwen2.5-Coder-1.5B-Instruct with frozen-reference KL regularization and literal-identity weighting. Passes 735/746 (98.5%) executed file searches at ~1/20th Gemma 4 31B's parameter count and 80/100 held-back real-mail queries (up from 66 in v2). Ships with MLX and Transformers runners.

Open Weights · Hugging Face Apache 2.0 · 76.96M

porkr/porkicoder-tab-namer-77m

Leak-checked Title-SFT FLAN-T5-small predecessor for local terminal tab naming. Averaged 7.28 against Google's unchanged base 3.12 (+4.17) on 500 held-out tasks, and scored 7.59 and 7.55 across two sealed 1,000-task confirmation holdouts.

02 Lab Notebook & Experiment Logs

Run logs, eval scripts, and what broke along the way

Working write-ups from my own training runs and eval harnesses (many drafted with AI help from real benchmark logs — informal lab notebooks, not peer-reviewed papers).

Nov 27, 2026

Scratch + DPO

TabNamer-75M: Training a 75.2M Local Semantic Engine from Scratch

10E/4D RoPE + SwiGLU · UL2 · Gentle DPO · ONNX wf16

Reallocating untied vocabulary tables into an asymmetric 10E/4D body (+38.6%) + gentle NLL-tethered DPO (beta=0.3) beat fine-tuned FLAN-T5 57.3% blind head-to-head with zero pretrained weights, while aggressive DPO (beta=2.0) collapsed into subword concatenation and dynamic INT8 flipped 12/160 SwiGLU beams.

Read notes ↗

Nov 8, 2026

Continual SFT

Synthetic Email Gains and Executed Retrieval: Benchmark Blind Spots

20 checkpoints · KL replay · real Outlook cache audit

Across 20 checkpoints, synthetic dev jumped 176/200 -> 199/200 while main executed mail stayed flat at 217/240 (concealing +19 / -19 case churn), and a historical 240/240 synthetic leader underperformed production on real work mail (29/30 vs 30/30).

Read notes ↗

Nov 25, 2026

Trie Decoding

Training Tab Namer 6.9M from Scratch & 18.59M Context Audit

1,200-input 2-judge final test · archive provenance audit

Zero-parameter byte-BPE prefix-trie source-word decoding lifted a 6.9M scratch GPT (91% smaller than FLAN-T5) from 470/738 unrestricted to 645/738 useful (+6.25 pp vs FLAN-T5 on n=1,200 under Gemma 4). Companion 18.59M write-up audited 85 assistant lists back to archive turns to isolate conversational task ambiguity.

Read notes ↗

Nov 2026

Mechanistic MoE

Looped NVFP4 MoE Refusal Geometry & Real-Trace SFT Deconfounding

48-visit recurrent MoE probing · 4,416 executed coding tests

Decomposed refusal writes across 48 recurrent visits of a 3x looped NVFP4 MoE reasoning model on GB10 — proving 90–95% of refusal writes originate in MoE experts rather than BF16 attention, and building a QR coding/negation-orthogonalized Triton runtime projection (0.000000 lexical cosine overlap) after catching a 0/600 negation-coding collapse in embedding row editing.

Lab notes ↗

03 Shipped Platforms, Free Tools & MCP Ecosystem

Production software built and operated end-to-end

Every product below is designed, engineered, deployed, and supported solo — spanning agentic developer environments, career optimization tools, multi-platform social publishing, and private macOS search.

Native macOS On-Device Search

Shlexball 2.0

shlexball.com ↗

Find any file, PDF, Word doc, slide deck, media asset, or Microsoft Outlook email on your Mac by describing what you remember in plain English — 100% locally on Apple Silicon with zero cloud uploads.

  • Powered Locally by Tofazzol v3 (1.7B): Runs entirely offline via Apple Silicon MLX at ~0.43 s per query with multi-folder scope and unified Outlook mail switching.
  • Hardened Read-Only Sandbox: OS-enforced macOS XPC confinement blocks writes, deletions, shells, and outbound file traffic. Signed and Apple-notarized (30 free searches, no account).

04 Open-Source Framework Contributions

Upstream patches to Apple's MLX

Bug fixes across normalization layers, loss functions, tensor initialization, and optimizers in ml-explore/mlx — each pinned down with unit tests verified against PyTorch and NumPy.

ml-explore/mlx · 7 merged, 1 open, 1 closed · synced live from GitHub API View all PRs on GitHub ↗
python/mlx/optimizers/optimizers.py open

MultiOptimizer crashed on empty parameter groups

MultiOptimizer rebuilt each optimizer's parameter subset with tree_unflatten, which returns a list for an empty subset where a dict is expected downstream, raising an IndexError when filters matched no parameters. Empty subsets now return {}, covered by tests for both primary and fallback optimizer slots.

+29 −1 2 files Sep 26, 2026 PR #4570 ↗
@@ MultiOptimizer._split_dictionary @@
-        return [tree_unflatten(p) for p in parts]
+        # tree_unflatten([]) returns a list so use a dict for empty parts
+        return [tree_unflatten(p) if p else {} for p in parts]
python/mlx/nn/layers/normalization.py merged

BatchNorm tracked biased running variance

Training normalized with biased batch variance and wrote that same biased estimate into running_var, causing evaluation statistics to diverge from PyTorch. Running stats now apply Bessel's correction (ddof=1) across 2D, 3D, and 4D tensors while leaving forward batch normalization unchanged.

+113 −37 2 files Jul 8, 2026 PR #3817 ↗
@@ BatchNorm.__call__ @@
         mean, var = self._calc_stats(x)
         if self.training and self.track_running_stats:
             mu = self.momentum
+            _, running_var = self._calc_stats(x, ddof=1)
             self.running_mean = (1 - mu) * self.running_mean + mu * mean
-            self.running_var = (1 - mu) * self.running_var + mu * var
+            self.running_var = (1 - mu) * self.running_var + mu * running_var
python/mlx/optimizers/optimizers.py merged

Adafactor crashed on >2D conv and stacked parameters

Factored second-moment updates recombined row and column factors via a strictly 2D matmul, crashing on >2D parameter tensors. Replaced with broadcasting outer products verified against Hugging Face's reference Adafactor within 4e-9.

+22 −3 2 files Jun 10, 2026 PR #3652 ↗
@@ def _approximate_exp_moving_avg(self, exp_avg_sq_row, exp_avg_sq_col) @@
         c_factor = mx.rsqrt(exp_avg_sq_col)
-        return mx.matmul(
-            mx.expand_dims(r_factor, axis=-1), mx.expand_dims(c_factor, axis=0)
-        )
+        return mx.expand_dims(r_factor, axis=-1) * mx.expand_dims(c_factor, axis=-2)
python/mlx/nn/losses.py merged

nll_loss ignored non-default axis arguments

take_along_axis gathered along axis, but target expansion and squeezing were hardcoded to -1, crashing or silently misreducing non-default axes when trailing dimensions were singleton. Aligned with cross_entropy and verified against NumPy.

+23 −1 2 files Jun 10, 2026 PR #3651 ↗
@@ def nll_loss(inputs, targets, axis=-1, reduction="none") @@
-    loss = -mx.take_along_axis(inputs, targets[..., None], axis).squeeze(-1)
+    loss = -mx.take_along_axis(inputs, mx.expand_dims(targets, axis), axis).squeeze(
+        axis
+    )
python/mlx/nn/layers/upsample.py merged

Upsample divided by zero on singleton outputs

Upsample with align_corners=True scaled indices by (N - 1) / (M - 1), raising ZeroDivisionError whenever an output spatial dimension was 1. Clamped the denominator to max(M - 1, 1) to match PyTorch.

+32 −1 2 files Jun 26, 2026 PR #3769 ↗
@@ _scaled_indices(N, scale, align_corners, dim, ndims) @@
     M = int(scale * N)
     if align_corners:
-        indices = mx.arange(M, dtype=mx.float32) * ((N - 1) / (M - 1))
+        indices = mx.arange(M, dtype=mx.float32) * ((N - 1) / max(M - 1, 1))
python/mlx/nn/layers/normalization.py merged

GroupNorm and InstanceNorm accepted invalid shapes silently

InstanceNorm on inputs without spatial dimensions quietly returned zeros, and GroupNorm accepted num_groups values not dividing dims. Added explicit upfront ValueError guards matching PyTorch.

+31 −0 2 files Jun 10, 2026 PR #3653 ↗
@@ GroupNorm.__init__ @@
+        if dims % num_groups != 0:
+            raise ValueError(
+                f"The number of features ({dims}) must be evenly divisible"
+                f" by the number of groups ({num_groups})."
+            )
python/mlx/nn/layers/convolution_transpose.py & linear.py merged

ConvTranspose spatial kernel repr & Bilinear tensor-order docs

Fixed ConvTranspose2d and ConvTranspose3d slicing off spatial kernel dimensions in _extra_repr (PR #3724), corrected transposed input dimensions in Bilinear and margin_ranking_loss docstrings (PR #3758), and audited row-vs-column sparsity in nn.init.sparse (PR #3725).

+15 −5 4 files Jun 2026 PR #3724 ↗
@@ ConvTranspose2d._extra_repr / ConvTranspose3d._extra_repr @@
-            f"kernel_size={self.weight.shape[1:2]}, stride={self.stride}, "
+            f"kernel_size={self.weight.shape[1:3]}, stride={self.stride}, "
-            f"kernel_size={self.weight.shape[1:3]}, stride={self.stride}, "
+            f"kernel_size={self.weight.shape[1:4]}, stride={self.stride}, "

05 About & How I Build

Half model tinkerer, half ship-the-whole-thing builder

From custom tokenizers and pretraining loops on a desk GB10 to signed macOS sandboxes, ONNX/MLX runtimes, and small web apps I actually run.

Most small-model work stops at a synthetic validation curve, and most applied AI stops at an API wrapper. My work sits intentionally across the seam: designing neural architectures and post-training recipes around concrete product interfaces, then building the deterministic executors, quantized runtimes, and user-facing software that make them reliable in daily use.

Every training run gets strict data hygiene — SHA-256 and token-prefix leak firewalls, session-clustered bootstrap intervals, position-swapped blind judging, and sealed confirmation holdouts that stay unopened until pre-registered gates pass. When an idea faceplants (aggressive DPO gluing subwords together, dynamic INT8 flipping SwiGLU beams, or synthetic email gains masking real-cache churn), I log the faceplant right next to the win so I don’t step on the same rake twice.

Born in Dhaka, educated in Kuala Lumpur, spent several years in Toronto, and now building from Vancouver, BC.

Execution-Grounded Evaluation

Token cross-entropy is logged as a training diagnostic, never a ship gate. Search planners are scored by running greedy completions through real sandboxed executors; generative models are scored under position-swapped blind protocols.

Model-Runtime Co-Design

Architecture decisions — asymmetric 10E/4D depth, tied case-preserving BPE vocabularies, single-pass pooled embeddings, and wf16 weight-only FP16 export — start from CPU/Apple Silicon latency and memory ceilings.

Zero-Handoff Velocity

Dataset curation, PyTorch/Triton training, evaluation harnesses, Rust/Electron desktop engineering, backend billing, and production ops sit in one loop.

01 · Training & Alignment

  • Scratch UL2 denoising pretraining
  • Asymmetric RoPE + SwiGLU + RMSNorm
  • On-policy DPO / SimPO & SWA soups
  • KL-regularized continual SFT
  • Custom BPE & MoE activation steering

02 · Evaluation Science

  • Executed sandbox test harnesses
  • Position-swapped blind judging
  • SHA-256 & 12-gram leak firewalls
  • Sealed confirmation holdout sets
  • Session-clustered bootstrap CIs

03 · Inference & Kernels

  • Apple MLX (upstream contributor)
  • ONNX Runtime (wf16 / INT8 parity)
  • PyTorch · torch.compile · Triton
  • vLLM & speculative decoding
  • Trie-constrained beam decoding

04 · Systems & Product

  • Rust & macOS XPC read-only sandbox
  • TypeScript · Node.js · Electron
  • Parallel multi-agent orchestration
  • Model Context Protocol (MCP)
  • NVIDIA GB10 · Linux · PostgreSQL
YVR · NOW

Vancouver, Canada

Current base — rainy walks, desk GPUs, small models & weird apps.

YYZ · CAN

Toronto, Canada

First years in Canada before heading west.

KUL · MYS

Kuala Lumpur, Malaysia

University studies and a decade building.

DAC · BGD

Dhaka, Bangladesh

Where it all started.