Files
airllm-fork-nodejs/node_modules/node-llama-cpp/dist/bindings/utils/getBestComputeLayersAvailable.d.ts
2026-02-05 15:27:49 +08:00

10 lines
471 B
TypeScript

import process from "process";
import { BuildGpu } from "../types.js";
import { BinaryPlatform } from "./getPlatform.js";
export declare function getBestComputeLayersAvailable(): Promise<(false | "metal" | "cuda" | "vulkan")[]>;
export declare function detectBestComputeLayersAvailable({ platform, arch, hasCudaWithStaticBinaryBuild }?: {
platform?: BinaryPlatform;
arch?: typeof process.arch;
hasCudaWithStaticBinaryBuild?: boolean;
}): Promise<BuildGpu[]>;