TECHNOLOGY

WebLLM v0.2.87: cache fixes and model-specific checks

In this article
THE QUICK TAKE

Verify loaded model binaries and exercise cache boundaries, prefill and schema conformance separately when assessing this release.

WebLLM v0.2.87 updates browser inference behavior in several model-specific paths. The release is worth recording for its cache and context fixes, but the notes do not supply a device benchmark or a numerical speedup that can be carried into capacity estimates.

The update includes more than application code

The official release notes, marked October 30, list an upgrade to web-runtime 0.28.0-dev1 and model binaries v0_2_87, including subgroup variants. The versioned package file confirms the runtime version used by this source release.

The distinction matters for custom integrations: changing a displayed package version does not establish which model executable the browser actually loaded. The tagged README separates the model artifacts from the compiled WebAssembly library. Preserve both identities when checking an upgrade, especially when an application supplies its own model records.

A cached previous artifact and an updated application can produce a confusing mixed environment. Record the loaded artifact before diagnosing a regression as a GPU problem.

Sliding-window fixes need boundary cases

The release names a fix to sliding-window KV-cache handling. The versioned configuration interface exposes context-window size, sliding-window size and attention-sink size as separate fields. They should not be collapsed into one generic context-length label in an experiment report.

A useful regression case begins below the configured sliding boundary, crosses it, and continues generating. Keep an expected behavioral reference and inspect completion or failure at each stage. A short prompt that never reaches the relevant transition cannot establish that the formerly problematic path works.

This check is about the configured state behavior. It does not imply an unlimited conversation or unchanged memory use at every requested context length. The KV-memory accounting guide explains why successful model loading and usable active-request capacity are separate questions.

Gemma changes require phase-specific evidence

The notes identify improved Gemma 4 q4f32 prefill and a Gemma 3 context-handling fix. These are separate entries with different purposes. Do not turn them into a general claim that every Gemma variant decodes faster.

For the prefill path, retain the exact weight format and measure prompt processing separately from generated-token throughput. Keep browser, driver, input and warmup conditions constant across versions. Record the update as a vendor-stated improvement until a controlled local series establishes its size on the intended device.

For the context fix, include tests that exercise the affected model’s configured limits. A plausible short answer says little about a longer session near those limits.

Validate structured output independently

The release also names a Qwen3.5 JSON-schema generation fix. Test complete outputs with both a JSON parser and an independent schema validator. Required properties, types and forbidden extra properties deserve separate fixtures; valid syntax alone cannot prove the schema was respected.

The structured-output conformance guide supplies the relevant distinction. Matching a schema also does not establish that the generated values are factually correct.

Keep the old and new outcomes alongside artifact identifiers. That produces a reviewable release assessment: which named fixes are exercised, which device was measured and which model paths remain unchecked. The release notes establish announced changes, while those local observations establish the narrower application result.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles