Download types/engine/environment.d.ts from nyaaorick/everything-webgpu: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/nyaaorick/everything-webgpu/resolve/main/types/engine/environment.d.ts
- Command line
-
hf download hf://nyaaorick/everything-webgpu/types/engine/environment.d.ts
-
curl -L -o environment.d.ts https://huggingface.co/nyaaorick/everything-webgpu/resolve/main/types/engine/environment.d.ts
1.16 kB
| /** | |
| * Builds the callable `engine.environment` — a function with `.measure()` on it. | |
| * | |
| * A function rather than an object because the common case is asking for the | |
| * whole report, and `environment()` should be the short spelling of that. | |
| * | |
| * @param {import("./engine.js").ScheduledEngine} engine | |
| */ | |
| export function environmentFacade(engine: import("./engine.js").ScheduledEngine): { | |
| (opts?: {}): Promise<{ | |
| lines: { | |
| id: any; | |
| severity: any; | |
| affects: any; | |
| cause: any; | |
| fix: any; | |
| operable: boolean; | |
| }[]; | |
| speed?: any; | |
| scope: string; | |
| ok: boolean; | |
| severity: any; | |
| device: any; | |
| }>; | |
| measure({ tokens }?: { | |
| tokens?: number; | |
| }): Promise<{ | |
| tokens: number; | |
| tokensPerSecond: number; | |
| basis: "measured" | "extrapolated"; | |
| modelBytes: number; | |
| bytesPerSecond: number; | |
| reference?: string; | |
| modelId: string; | |
| }>; | |
| }; | |
| export namespace SEVERITY { | |
| let BLOCKED: string; | |
| let DEGRADED: string; | |
| let TUNE: string; | |
| let INFO: string; | |
| let OK: string; | |
| } | |