everything-webgpu / types /engine /environment.d.ts
nyaaorick's picture
feat: publish everything-webgpu package, engine source and documentation
1944112 verified
Raw History Blame Contribute Delete
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;
}