SShortSingh.
Back to feed

Two-Day Kernel Debug Traced to a 10x Learning Rate Mismatch in Defaults

0
·31 views

A developer spent two days debugging a browser-based machine learning model whose training loss plateaued at 2.45, initially suspecting WebGPU kernel issues. The root cause turned out to be a default learning rate mismatch: the browser used 3e-3 while the Python reference used 3e-4, a tenfold difference. Kernel parity tests validated numerical operations but never compared configuration defaults, allowing a correctly implemented model to appear broken. The same investigation uncovered two more gaps — a tiny 863-byte default corpus masking model capacity, and a Memory64 benchmark that missed the actual browser bridge used in production. The fix involved adding end-to-end checks across configuration, data, and integration boundaries to ensure test coverage matched real-world workflows.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

PocketBase Cloud CLI pbc Lets Developers Run, Deploy and Manage PocketBase Apps

A new command-line tool called pbc, the PocketBase Cloud CLI, aims to handle the full PocketBase workflow from one terminal. It installs on macOS, Linux and Windows and can scaffold a local PocketBase project with the correct binary and folder structure. The article walks through creating a collection, adding a hook that calculates order totals, and verifying it with a test record. Running pbc deploy then publishes the project to a PocketBase Cloud production instance, where the same admin commands work against the hosted app.

0
ProgrammingDEV Community ·

OneLifeVibe Uses a Single Hub to Route Users to Separate Single-Purpose Sites

The article describes how the builders of OneLifeVibe chose a hub-and-destinations design, with one front door pointing to standalone websites that each handle a distinct area of everyday life. The author argues that people often struggle to remember where useful tools live, so a single consistent entry point helps them find the right service when a need arises. Each destination keeps its own purpose, community, and data rather than being merged into one large app. The author says the hub is kept intentionally thin, focused on routing, and that clear category names written in users' own terms mattered more than analytics. The piece also notes that the hub must stay fast and current, since a slow or cluttered entrance harms every destination behind it.

0
ProgrammingDEV Community ·

Scanned PDFs can silently yield empty text, and OCR should be applied selectively

PDFs made from scanned images store no text, so text extraction can return near-empty pages without raising any error. The article explains how to detect this by counting characters extracted from each page and checking whether most pages are blank. Pages that are fully empty need OCR or rejection, while partially empty documents should have only their blank pages OCRed. Rendering at 300 dpi, setting the document language, and recording per-page confidence scores are recommended to improve OCR accuracy. The author also warns that OCR is slow and can misread digits, so it should not be applied to every page by default.

0
ProgrammingDEV Community ·

Airline checkout blocks AI booking agents because it cannot verify who they act for

United's stance on AI agents booking flights is better read as a question of identity than of agent competence, the author argues. Booking systems cannot tell a human-delegated agent apart from a scripted bulk booker or fraud traffic, so they block anything that does not resemble a person in a browser. Because every signal the checkout evaluates concerns the client rather than the principal it serves, even a flawless agent is treated like abuse. The author expects scoped, revocable credentials tied to a verified human to become a product requirement, starting with travel and spreading to other sectors. Such credentials would include a verified subject, a key-pair-bound actor, narrow scopes, intent binding, short lifetimes, spend caps, and a revocation mechanism, while the unresolved issue is who bears liability for mistakes.