Spaces:
Running
Running
Download src/lib/webgpu.ts from fatih-can/minicpm5-webgpu: direct link, hf CLI and curl.
- Browser
- Download file 225 Bytes
-
https://huggingface.co/spaces/fatih-can/minicpm5-webgpu/resolve/main/src/lib/webgpu.ts
- Command line
-
hf download hf://spaces/fatih-can/minicpm5-webgpu/src/lib/webgpu.ts
-
curl -L -o webgpu.ts https://huggingface.co/spaces/fatih-can/minicpm5-webgpu/resolve/main/src/lib/webgpu.ts
225 Bytes
| export function isWebGPUSupported(): boolean { | |
| return typeof navigator !== "undefined" && typeof navigator.gpu !== "undefined"; | |
| } | |
| export function isWasmSupported(): boolean { | |
| return typeof WebAssembly !== "undefined"; | |
| } | |