WRITING
Engineering notes, with the numbers and the limits.
How-tos, benchmarks and comparisons. Every number traces to a script in a public repository; client case studies use synthetic data with the same shape as the real problem, and say so.
Self-hosted LLMs
Serving a 27B open model on one rented GPU: setup, quantization and how to test refusals.
- A1How to self-host an uncensored LLMA 27B abliterated Qwen on one rented GPU, behind an OpenAI-compatible API on your own domain: from 4.4 to 34 tokens per second, rebuilt from scratch with one command8 min
- A2Qwen 27B in FP8 vs NVFP4: is the smaller format worth it?Same weights, two precisions, 364 graded tasks: quality was statistically the same, FP8 was at least as fast, and a busy rented GPU cost US$ 0.34 per thousand tasks against US$ 7.97 for a frontier API.7 min
- A3How to test whether an LLM really refuses lessA small, safe refusal probe for any OpenAI-compatible endpoint: 37 lawful prompts, a classifier you can audit, and the statistics that stop a zero from looking like proof5 min
GPU and AI benchmarks
Twenty measured studies from one GPU campaign: LLM serving, quantization, vision, speech, image and video generation, 3D, tooling and what each costs. Every article links its Kaggle notebook and code.
- I1What a GPU benchmark campaign really costsA day and a half of rented GPUs across eight cards cost US$ 50.79. Where the money went and what the campaign taught me.33 min
- I2What fits and what fails across seven GPUs18 models and tools on seven NVIDIA cards, 126 cells: what ran, what failed, what does not apply and what was only estimated.36 min
- I3Cost per token and cost per user for a 27B modelWhat one user costs per month for a 27B model, measured on seven GPUs under one service level and priced at what I actually paid.36 min
- I4The quantization ladder for a 27B modelBF16, FP8, NVFP4 and 4-bit AWQ for a 27B model: the same benchmark battery on all four, and what each step down costs.40 min
- I5Measuring refusal behavior in 27B buildsDoes removing refusals make a model uniformly uncensored? A fixed prompt set run against four builds of the same 27B model.32 min
- I6How much speculative decoding really speeds upSpeculative decoding changes nothing about the output in theory and makes generation faster. How much faster, in practice, measured.38 min
- I7Long context and prefix caching for agentsAgents resend a long prompt at every step. What long context costs and how much prefix caching gives back, measured under load.33 min
- I8A 35-minute soak test on one RTX 5090A one-minute benchmark says how fast a server is. A 35-minute soak test says whether it stays that way. One RTX 5090, measured.32 min
- I9vLLM against SGLang on one RTX 5090The same RTX 5090, the same 9B model in BF16, the same load generator: vLLM against SGLang, with both engines started fairly.37 min
- I10A 27B model on a 24 GB card in three waysQuantize it, offload it, or shrink the context: three ways to answer with a 27B model on a 24 GB card, measured side by side.36 min
- I11NVFP4 on cards without FP4 hardwareNVFP4 does not need Blackwell: it needs memory. The 5090 failed to start the model, an Ada card ran it.34 min
- I12What runs on an ARM GB10 desk machineA 121 GB shared-memory ARM desk machine put through the same battery as the rented cards: what runs, what fails, what it costs.33 min
- I13YOLO11 on eight GPUs and a CPU-bound surpriseFor small YOLO11 models the GPU is not the bottleneck. Three sizes on eight GPUs show why benchmarks of them mislead.30 min
- I14SAM 2 Grounding DINO and Mask R-CNN latencySAM 2, Grounding DINO and Mask R-CNN timed on seven kinds of GPU: latency for the models in the middle of many image pipelines.36 min
- I15How many cameras can one RTX 5090 serveVendors divide detector speed by frame rate. I measured real 1080p RTSP streams on one RTX 5090 to see how many cameras it serves.28 min
- I16Image and video generation cost per outputWhat one image or one second of video costs in GPU time, across four generators and up to eight rented GPUs.34 min
- I17Speech workloads on rented GPUsText to speech, speech to text and real-time conversation: one open tool of each kind measured on rented GPUs, plus a laptop CPU.32 min
- I18Ten attempts to run an image-to-3D toolTen runs of one open image-to-3D tool: two finished, eight failed for six different reasons, and only one was the hardware.28 min
- I19Eighty-three open tools in a disposable sandboxDoes each of 83 open source tools install and do something useful on a small machine without a GPU? Time, memory and disk, measured.38 min
- I20From a benchmark to a price per unitHow to turn benchmark speed into the cost of a unit of work: a million tokens, a thousand images, an hour of speech.33 min
RAG and vector search
Embeddings, pgvector indexes, a RAG agent and a safe text-to-SQL agent over public data.
- B1Vertex AI vs open-source embeddings: which finds more?300 Portuguese queries over 1.25 million procurement notices: a self-hosted Qwen3-Embedding beat Vertex's multilingual model by 10 points of recall@1, and the vector index cost more than either model choice5 min
- B2How to build a RAG agent over your own dataHybrid search that fuses Postgres full-text and pgvector, a SQL agent for questions that need numbers, one model call that routes everything, and answers that cite their records or say they can't: 55 of 60 test questions right on public data5 min
- B3How to build a safe text-to-SQL agentA role that can only read, a validator that runs before the database does, table notes the model reads, one repair attempt, and answers that show their query: 37 of 40 numeric questions right on public data6 min
- B4pgvector at a million rows: IVFFlat or HNSW?Same 768-dimensional vectors, same 300 queries, every setting from probes 1 to ef_search 320: HNSW reached 93% recall in 4 ms where IVFFlat needed 29 ms, and paid for it with a 20-fold longer build5 min
AI agents
A multi-agent platform with LangGraph and the job queue underneath it.
- E1How to build a multi-agent platform with LangGraphA supervisor that talks to the user and calls specialist agents as tools, SQL over eight database engines with writes behind an allow-list, MCP integrations, and the limits that keep a turn from running away6 min
- E2Reliable job queues for AI agents with Redis StreamsRetries, duplicate submissions and workers that die mid-task: a small state contract, Redis consumer groups to enforce it, and the tests that kill a worker on purpose, from Docker Compose to a three-node Kubernetes cluster5 min
BI and data platforms
Metabase on Postgres and a data catalog with lineage, both reproducible from a repository.
- C1How to deploy Metabase on Postgres with DockerA production-shaped BI stack in one compose file: a read-only role, dashboards built from code, a public link and a viewer group, installed from nothing in 56 seconds and checked in CI5 min
- C2How to build a free data catalog with lineage428 tables, 33,891 columns and 261 lineage edges from a BigQuery lake, published as a static site and as a data dictionary inside every dataset, with one Python script and no catalog server5 min
Cloud cost
Cutting the cost of a cloud data lake with partitioning, clustering and a rule-based toolkit.
Data engineering
Slow joins, fan-out and skew in PySpark, measured on a public benchmark.
Machine learning engineering
Drift checks, ranking evaluation without leakage and pseudonymization tested in CI.
- F1Why your data drift check missed a bad batchPopulation stability index passes when a distribution widens around a fixed centre. A pipeline over public education-finance data, the batch that slipped through with 921 false alarms, and the spread gate that now stops it7 min
- F2How to evaluate a ranking model without leakageA temporal split, NDCG and MRR explained from scratch, and baselines that are hard to beat: ranking public procurement notices with a model small enough to read, where every result shows why it is at the top6 min
- F3How to pseudonymize personal data and test it in CIA keyed hash that links records without revealing them, an audit that raises before anything is written, and a privacy policy that fails the build instead of living in a document9 min
Case studies
Client projects told as how-tos: the problem, what we built and what we would change, on synthetic data.
- H1How to measure stockpile volume with drone photosPhotogrammetry with OpenDroneMap, RANSAC to find the ground, HDBSCAN to separate the piles, and a volume you can check: the pipeline we built for a bulk materials producer, rebuilt on synthetic data6 min
- H2Why your recommender only shows best-sellersA model trained for conversion learns to fill the carousel with the product everyone already buys. How we found it in a cinema chain's concession recommender, the two-stage design that limits it, and the trade-off you have to accept, rebuilt on synthetic sales4 min
- H3How to monitor ML models in productionThe alerts that catch a model endpoint that stopped without an error: P90 instead of the mean, a zero-traffic rule with a quiet window, cost by endpoint, and a pipeline that tells you it failed. Rebuilt on synthetic traffic5 min
- H4A two-stage recommender for grocery e-commerceWhy a grocery recommender suggests the 5-litre and the 2-litre oil side by side, and how splitting the decision in two fixes it: one model picks the product type, a second picks the variant. Built for a grocery shop, rebuilt on synthetic orders5 min
- H5How to find interchangeable parts with AI searchGiven a part number, return the five parts from any plant that can replace it. Why text similarity, embeddings included, finds parts that look alike and don't fit, and the pipeline that does better: extract the critical attributes, filter on them, rank what passes, and show fewer than five when fewer fit. With an evaluation on a synthetic catalogue5 min
- H6CrewAI vs Agno vs AutoGen: which one for a chat product?We built the same three-agent chat in each framework in one week, asked all three the same five questions, and moved our product off the framework it started on. What we tested, what each one got wrong, and how to run the same test on your shortlist5 min
- H7How to stop AI agents from inventing numbersWe asked a self-hosted model 24 questions about an income statement two ways: with the whole table in the prompt, and through SQL only. The model didn't invent numbers in either. It ran out of budget in one, and wrote two wrong queries in the other. What that means for financial agents, and the rules we build with5 min
- H8Will we hit the target this month? Forecasting with AI agentsA telecom operator asked three questions about its backlog of service orders: why the monthly revenue target keeps slipping, what this month will deliver, and how big the backlog would need to be. How we answered them with precomputed tables, a probability for each order and a language model that only explains. Rebuilt on synthetic orders6 min
- H9When only one of your AI agents needs an LLMA pricing review for a sugar and ethanol producer was designed as five AI agents. Four of them turned out to be arithmetic, and the hard part was a date. What we kept deterministic, why the as-of join mattered more than the model, and the data platform underneath, rebuilt on synthetic invoices5 min
- H10Fixing accessibility issues with AI agentsAccessibility problems in an online store are found late, fixed slowly and come back with the next release. A design that splits the work into three moments with their own triggers: a daily scan that opens deduplicated tickets, a review on every pull request, and a coding agent that only starts when a person asks. With the dedupe rebuilt on synthetic scans5 min
- H11Multi-tenant AI on AWS: keeping each client isolatedOne conversational AI platform, several client companies, and the rule that none of them can ever see another's data, keys or bill. Two generations of the architecture, the audit that found the gap, and a small check that proves isolation instead of assuming it5 min
- H12Migrating legacy code with spec-driven AIAn AI model can translate COBOL, SAS or Delphi into a modern language in seconds. Proving the translation computes the same thing is the actual project. The design we use: one spec per language pair that generation, validation and sign-off all read, a loop that runs until the outputs match, and a payroll rule that shows why the first plausible fix is usually wrong5 min
- H13Weekly demand forecasting for a manufacturerForecasting every product in every colour, every week, sounds like the obvious target. On sales that behave like a textile maker's, the better plan is to forecast the family and split it by colour. A backtest of four methods on synthetic sales, and the data platform underneath5 min
- H14How to predict loan default with a simple modelA lender for small businesses with a few hundred labelled loans doesn't need deep learning to price risk. It needs a probability it can trust, a validation that respects time, and a cut-off chosen by money rather than by accuracy. The whole method, on synthetic loans you can rerun5 min