Skip to content

Problem with WebGPU (windows with amd gpu) #1545

@DarkSorrow

Description

@DarkSorrow

System Info

transfomer.js 3.8.1
brave navigator
windows system AMD gpu with react 19.2
gpu on
Adrenalin Edition 26.1.1

Environment/Platform

  • Website/web-app
  • Browser extension
  • Server-side (e.g., Node.js, Deno, Bun)
  • Desktop app (e.g., Electron)
  • Other (e.g., VSCode extension)

Description

Hello,
Most of the time i have no issues but sometime i'm passing some tool results to the LLM loaded (here i'm with qwen3 4b) and i'm getting this type of error.

I'll paste the error down i think its mostly a driver problem i feel rather than tarnsformers itself but i'm guessing people hererr would have more insight than me :p

Reproduction

ai.js?v=ccd72f33:8695 Failed to execute 'createBuffer' on 'GPUDevice': Failed to read the 'size' property from 'GPUBufferDescriptor': Value is outside the 'unsigned long long' value range.
onError	@	ai.js?v=ccd72f33:8695
transform	@	ai.js?v=ccd72f33:8896
ID3D12Device::GetDeviceRemovedReason failed with DXGI_ERROR_DEVICE_HUNG (0x887A0006)
 - While handling unexpected error type Internal when allowed errors are (Validation|DeviceLost).
    at CheckHRESULTImpl (..\..\third_party\dawn\src\dawn\native\d3d\D3DError.cpp:121)

Backend messages:
 * Device removed reason: DXGI_ERROR_DEVICE_HUNG (0x887A0006)
app:1 ID3D12Device::GetDeviceRemovedReason failed with DXGI_ERROR_DEVICE_HUNG (0x887A0006)
 - While handling unexpected error type Internal when allowed errors are (Validation|DeviceLost).
    at CheckHRESULTImpl (..\..\third_party\dawn\src\dawn\native\d3d\D3DError.cpp:121)

Backend messages:
 * Device removed reason: DXGI_ERROR_DEVICE_HUNG (0x887A0006)


This happens with large tool result (despite the context not being above 8k as i control it).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions