Description
I have the same issue as mentioned here:
https://www.reddit.com/r/webgpu/comments/1bzzul0/binding_size_141557760_of_buffer_is_larger_than/
Uncaught (in promise) OperationError: Failed to execute 'requestDevice' on 'GPUAdapter': Required limit (1073741824) is greater than the supported limit (134217728).
- While validating maxStorageBufferBindingSize
- While validating required limits
But code like this
const k1Gig = 1024 * 1024 * 1024 * 2;
const adapter = await navigator.gpu?.requestAdapter();
const device = adapter?.requestDevice({
requiredLimits: { maxBufferSize: k1Gig },
requiredFeatures: [ 'float32-filterable' ],
});
Works without a problem.
Resulting in a maxBufferSize of 2147483648 ~= 2048MB ~= 2GB available (2x the memory need by the model) instead of the 128MB the error claims is the maximum.
Can you fix the memory reservation?
I would love to use your tool.
By the way shader-f16
is available in my Chrome 131.0.6778.109 (Officiële build) (arm64), when WebGPU is enabled.
Testen on
Qualcomm X Elite, 32GB (with 16GB allocated to the NPU/GPU) => architecture: "adreno-8xx"
Chrome 131.0.6778.109 (Officiële build) (arm64), with WebGPU is enabled.