Skip to content

Tag: ai

All the articles with the tag "ai".

Train a Tiny GPT, Part 4: Inference

Train a Tiny GPT, Part 4: Inference

The KV cache sped a 5.8M-parameter GPT up 4.4x on a laptop CPU and did almost nothing for the RTX 3070 at batch 1. Then sampling settings decide how it reads.

Train a Tiny GPT, Part 3: Training

Train a Tiny GPT, Part 3: Training

Train a 5.8M-parameter GPT on Sherlock Holmes: 59 seconds on an RTX 3070 vs 48 minutes on its CPU, and the overfitting that starts near step 1,250 of training.

Train a Tiny GPT, Part 2: Attention

Train a Tiny GPT, Part 2: Attention

Build causal self-attention and RoPE in plain PyTorch, then measure naive vs fused attention on an 8GB GPU: 6400 MiB vs 8.3 MiB of VRAM at 16k tokens.

Train a Tiny GPT, Part 1: Tokenizers

Train a Tiny GPT, Part 1: Tokenizers

Build a byte-level BPE tokenizer in about 100 lines of Python, then compare it to tiktoken's gpt2, cl100k_base and o200k_base on prose, code, YAML and German.

Clef vs Jev: Cloudflare's 4x Tie

Clef vs Jev: Cloudflare's 4x Tie

Cloudflare's Clef decision model tied Jev on accuracy in a private benchmark, abstained on junk better, and cost 4.2x more per decision. Real numbers inside.

Prompt Injection vs Your Coding Agent

Prompt Injection vs Your Coding Agent

Prompt-level defenses against injection are probabilistic and lose to a patient attacker. Here's the capability-level design that holds, with working configs.

Batch Inference: One Model, 100 Users

Batch Inference: One Model, 100 Users

Loading model weights, not math, is your GPU bottleneck. Continuous batching with llama-server serves many concurrent requests for close to the cost of one.

The Update That Broke Confidence

The Update That Broke Confidence

· Updated:

A 2026-09-22 patch left a self-hosted model's weights untouched but made it more confident on nonsense input. Six systems compared, real numbers only.

Docker MCP Toolkit: Trust the Sandbox?

Docker MCP Toolkit: Trust the Sandbox?

Docker MCP Toolkit sandboxes AI agent tools in containers. Here's exactly what that isolation stops, where it silently breaks, and how to configure it safely.

Jev vs Von vs SemIf: Real Numbers

Jev vs Von vs SemIf: Real Numbers

Jev, Von, and SemIf scored head to head on real commit history: a frozen 4B general model beat a purpose-built 395M decision model on every task tested.

NetAlertX MCP: One Token, Twelve Tools

NetAlertX MCP: One Token, Twelve Tools

NetAlertX v26.9.0 ships a built-in MCP server with 12 tools. Learn how to wire it into Claude Code, what it exposes, and when to use Home Assistant instead.