First upload version 0.0.1
This commit is contained in:
13
node_modules/node-llama-cpp/dist/bindings/consts.js
generated
vendored
Normal file
13
node_modules/node-llama-cpp/dist/bindings/consts.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
const prettyBuildGpuNames = {
|
||||
metal: "Metal",
|
||||
cuda: "CUDA",
|
||||
vulkan: "Vulkan"
|
||||
};
|
||||
export function getPrettyBuildGpuName(gpu) {
|
||||
if (gpu == null)
|
||||
return "unknown GPU";
|
||||
if (gpu == false)
|
||||
return "no GPU";
|
||||
return prettyBuildGpuNames[gpu] ?? ('"' + gpu + '"');
|
||||
}
|
||||
//# sourceMappingURL=consts.js.map
|
||||
Reference in New Issue
Block a user