Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1import { warnOnce } from "./warn.js";2import { installPackage } from "@antfu/install-pkg";3import { styleText } from "node:util";4let pending;5const tasks = {};6const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));7async function tryInstallPkg(name, autoInstall) {8 if (pending) await pending;9 if (!tasks[name]) {10 console.log(styleText("cyan", `Installing ${name}...`));11 if (typeof autoInstall === "function") tasks[name] = pending = autoInstall(name).then(() => sleep(300)).finally(() => {12 pending = void 0;13 });14 else tasks[name] = pending = installPackage(name, {15 dev: true,16 preferOffline: true17 }).then(() => sleep(300)).catch((e) => {18 warnOnce(`Failed to install ${name}`);19 console.error(e);20 }).finally(() => {21 pending = void 0;22 });23 }24 return tasks[name];25}26export { tryInstallPkg };27 