Skip to content

Conversation

@fs-eire
Copy link
Contributor

@fs-eire fs-eire commented Oct 15, 2024

Description

This change allows to set EP option "forceCpuNodeNames" in which includes a list of node names that will always be running on CPU.

Usage example:

            opt.executionProviders[0] = {
                name: "webgpu",
                validationMode: 'wgpuOnly',
                storageBufferCacheMode: 'bucket',
+               // force node "/model/embed_tokens/Gather" to be put on CPU
+               forceCpuNodeNames: "/model/embed_tokens/Gather"
            };

@fs-eire fs-eire merged commit cae9dab into fs-eire/webgpu-ep Oct 16, 2024
@fs-eire fs-eire deleted the fs-eire/webgpu-ep-force-cpu-list branch October 16, 2024 20:38
guschmue pushed a commit that referenced this pull request Oct 18, 2024
### Description

This change allows to set EP option "forceCpuNodeNames" in which
includes a list of node names that will always be running on CPU.

Usage example:

```diff
            opt.executionProviders[0] = {
                name: "webgpu",
                validationMode: 'wgpuOnly',
                storageBufferCacheMode: 'bucket',
+               // force node "/model/embed_tokens/Gather" to be put on CPU
+               forceCpuNodeNames: "/model/embed_tokens/Gather"
            };

```
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.

4 participants