Skip to content
← All posts

Tagged

Machine Learning

159 posts

ML for Web Devs5 min read

Machine learning for web developers: the only mental model you need

You do not need calculus to work with models. You need one idea, that a model is a function you fit instead of write, and the rest follows from things you already know.

ML for Web Devs4 min read

What an embedding actually is

An embedding is a list of numbers that puts similar things near each other. That one sentence is enough to build search, recommendations and retrieval. Here is how.

ML for Web Devs4 min read

Tokens, context windows, and why your bill is what it is

The unit of billing for language models is not the request or the word. Once you understand tokens and how a context window fills up, the invoice stops being a surprise.

ML for Web Devs4 min read

RAG is just search with extra steps

Retrieval-augmented generation gets written up like an architecture. It is a search query, a string concatenation and one API call, and the search query is the part that decides whether it works.

ML for Web Devs4 min read

A prompt is a spec, so write it like one

Prompt engineering has very little to do with magic words. It is the same skill as writing a clear ticket for a capable contractor who will not ask you any questions.

ML for Web Devs4 min read

Running a model in the browser, and when that is a good idea

Transformers.js and WebGPU put real models on the client. The demo is easy; knowing which features belong there is the part worth thinking about.

ML for Web Devs4 min read

When not to use a model

Half the AI features I have been asked to build should have been a regular expression, a lookup table, or a better form. Here is how to tell before you spend the sprint.

From The Wire

MiniMax retires its M2.5 and M2.7 models today

Pay-as-you-go calls to the two model families stop getting a response from 18 November, a month after MiniMax cut off new signups and began rerouting plan traffic to M3.1 Flash.

via MiniMax

DeepMind finds two AI-assisted weaknesses in 1024-bit RSA

Google DeepMind used AI models guided by outside cryptographers to find a signature-forgery method about 1,600 times faster and a batch-factoring method about 30 times cheaper against legacy 1024-bit RSA keys. Modern 2048-bit RSA is unaffected.

via Google DeepMind

Hugging Face adds native PyTorch support for TPUs

TorchTPU, built by Google with Meta's PyTorch team, drops the torch_xla dependency so PyTorch code runs on TPUs unmodified. Hugging Face reports decoding up to 21.5 times faster on some models.

via Hugging Face