Skip to content

[WebGPU] Honor model buffer capacity requirements - #899

Open
JCNTH wants to merge 2 commits into
mlc-ai:mainfrom
JCNTH:codex/model-buffer-limits
Open

JCNTH wants to merge 2 commits into
mlc-ai:mainfrom
JCNTH:codex/model-buffer-limits

Conversation

@JCNTH

@JCNTH JCNTH commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Use ModelRecord.buffer_size_required_bytes when creating the WebGPU device so models can request bindings larger than the default 1 GiB. Request a fresh adapter when needed, check features and limits, and clean up failed or cancelled loads.

With #896, Qwen3.8 q8 uses a 1.27 GB binding and completes plain and subgroup Chrome runs at 4,096 context with OPFS and zero WebGPU errors.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants