﻿# WebGPU limits: adapter capability is not the created device contract

A browser GPU adapter may advertise a limit that the created device cannot use. Review requiredLimits and device.limits before interpreting a model-buffer validation failure.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/edge-webgpu-adapter-device-required-limits/
Language: en

## The adapter passes but the model buffer fails

A browser inference loader checks its adapter’s maximum buffer capability and approves a model. Later creation or binding fails validation on the device it actually requested. These observations can coexist without a broken GPU or corrupt model. Inspect the boundary between capability discovery and device creation. The meaningful question is which limits govern the operation that failed, not whether an earlier adapter object displayed an encouraging value or the computer has a large advertised memory capacity.

## The created device supplies the validation contract

The [WebGPU specification](https://www.w3.org/TR/webgpu/) explicitly makes API validation depend on device limits, not adapter limits. The device descriptor’s requiredLimits requests the limits needed by the application; an unsupported request fails. Retain the requested settings and resulting device.limits together. Optional features also require their own request contract. Discovering support does not silently enable every possible operation on a device created with another descriptor, and changing a model-loader check alone cannot alter that device’s immutable capabilities.

## Name the particular constrained operation

Distinguish total buffer size, the range bound to a shader and compute-dispatch requirements. A model can satisfy one dimension while violating another, so a generic largest-buffer check is incomplete. Connect each declared requirement to the actual resource layout or operation. If the implementation splits weights into smaller resources, that is another execution design to validate; it is not a proof that merely raising every requested limit will make an existing shader layout or model exporter compatible.

## Exposed capability is not physical memory telemetry

The [WebGPU explainer](https://gpuweb.github.io/gpuweb/explainer/) explains user-agent control over exposed features and limits. Those values support API negotiation; they are not a current free-VRAM meter. Even a valid device contract does not reserve enough memory for all future weights, intermediate buffers and request state. Preserve validation failures separately from allocation failures. A conservative application can choose an alternative supported execution layout or explain incompatibility without inventing a physical-memory reading from a numeric API limit.

## Compare descriptors with the same harmless workload

A proposed fixture records adapter capability, requested descriptor, resulting device limits and the exact operation outcome. Compare a device lacking the needed request with a supported explicit request while keeping the tiny workload unchanged. Also distinguish an unsupported request from later allocation failure. Acceptance is a clear boundary-specific diagnostic and a valid minimal result. No browser GPU workload or allocation stress test ran here; the fixture is a way to collect project evidence, not a reported compatibility result.

## Keep feasibility claims at their own layer

[Browser allocation-budget auditing](/journal/webgpu-bench-browser-token-agreement-memory-budget-audit/) addresses capacity evidence. [Trellis-WebGPU’s short-cache demonstration](/journal/trellis-webgpu-qwen3-8b-four-gb-demo-limits/) addresses a specific runtime and workload. Neither replaces device-limit negotiation. Report advertised support, created-device contract, successful allocation and completed inference as separate observations. This makes a browser model’s failure understandable without promoting one successful device request into a universal claim that the entire conversation workload fits.
