---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/transformers_js/helpers/interfaces/GpuBudget.md
description: >-
  A snapshot of the WebGPU device's memory budget, as reported by the
  adapter/device limits.
---

# Interface: GpuBudget

Defined in: [src/batteries/llm/chat\_common/gpu\_budget.ts:37](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/chat_common/gpu_budget.ts#L37)

A snapshot of the WebGPU device's memory budget, as reported by the adapter/device limits.

## Remarks

All sizes are bytes. `maxBufferSize` and `maxStorageBufferBindingSize` are the hard per-allocation
ceilings a single ONNX tensor buffer cannot exceed — the practical wall an over-large context window
hits first (e.g. ~4 GiB on Apple Metal). These are LIMITS, not live usage; pair with
[GpuBufferInstrument](GpuBufferInstrument.md) for live high-water-mark tracking.

## Properties

| Property                                                                          | Type                                                                                                 | Description                                                                                         | Defined in                                                                                                                                            |
| --------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
|  `adapterInfo?`                                  | { `architecture?`: `string`; `description?`: `string`; `device?`: `string`; `vendor?`: `string`; } | Best-effort adapter description (vendor/architecture/device), when the runtime exposes it.          | [src/batteries/llm/chat\_common/gpu\_budget.ts:43](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/chat_common/gpu_budget.ts#L43) |
| `adapterInfo.architecture?`                                                       | `string`                                                                                             | -                                                                                                   | [src/batteries/llm/chat\_common/gpu\_budget.ts:43](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/chat_common/gpu_budget.ts#L43) |
| `adapterInfo.description?`                                                        | `string`                                                                                             | -                                                                                                   | [src/batteries/llm/chat\_common/gpu\_budget.ts:43](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/chat_common/gpu_budget.ts#L43) |
| `adapterInfo.device?`                                                             | `string`                                                                                             | -                                                                                                   | [src/batteries/llm/chat\_common/gpu\_budget.ts:43](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/chat_common/gpu_budget.ts#L43) |
| `adapterInfo.vendor?`                                                             | `string`                                                                                             | -                                                                                                   | [src/batteries/llm/chat\_common/gpu\_budget.ts:43](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/chat_common/gpu_budget.ts#L43) |
|  `available`                                       | `boolean`                                                                                            | `true` when these numbers came from a real `navigator.gpu` device; `false`/absent ⇒ unavailable.    | [src/batteries/llm/chat\_common/gpu\_budget.ts:45](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/chat_common/gpu_budget.ts#L45) |
|  `maxBufferBytes`                             | `number`                                                                                             | Largest single `GPUBuffer` the device will allocate, in bytes (`GPUSupportedLimits.maxBufferSize`). | [src/batteries/llm/chat\_common/gpu\_budget.ts:39](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/chat_common/gpu_budget.ts#L39) |
|  `maxStorageBufferBindingBytes` | `number`                                                                                             | Largest storage-buffer binding, in bytes (`GPUSupportedLimits.maxStorageBufferBindingSize`).        | [src/batteries/llm/chat\_common/gpu\_budget.ts:41](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/chat_common/gpu_budget.ts#L41) |
