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
1"use strict";2var __defProp = Object.defineProperty;3var __getOwnPropDesc = Object.getOwnPropertyDescriptor;4var __getOwnPropNames = Object.getOwnPropertyNames;5var __hasOwnProp = Object.prototype.hasOwnProperty;6var __export = (target, all) => {7 for (var name in all)8 __defProp(target, name, { get: all[name], enumerable: true });9};10var __copyProps = (to, from, except, desc) => {11 if (from && typeof from === "object" || typeof from === "function") {12 for (let key of __getOwnPropNames(from))13 if (!__hasOwnProp.call(to, key) && key !== except)14 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });15 }16 return to;17};18var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);19var process_exports = {};20__export(process_exports, {21 ProcessRunner: () => ProcessRunner22});23module.exports = __toCommonJS(process_exports);24var import_utils = require("playwright-core/lib/utils");25var import_util = require("../util");26class ProcessRunner {27 async gracefullyClose() {28 }29 dispatchEvent(method, params) {30 const response = { method, params };31 sendMessageToParent({ method: "__dispatch__", params: response });32 }33}34let gracefullyCloseCalled = false;35let forceExitInitiated = false;36sendMessageToParent({ method: "ready" });37process.on("disconnect", () => gracefullyCloseAndExit(true));38process.on("SIGINT", () => {39});40process.on("SIGTERM", () => {41});42let processRunner;43let processName;44const startingEnv = { ...process.env };45process.on("message", async (message) => {46 if (message.method === "__init__") {47 const { processParams, runnerParams, runnerScript } = message.params;48 void (0, import_utils.startProfiling)();49 (0, import_utils.setTimeOrigin)(processParams.timeOrigin);50 const { create } = require(runnerScript);51 processRunner = create(runnerParams);52 processName = processParams.processName;53 return;54 }55 if (message.method === "__stop__") {56 const keys = /* @__PURE__ */ new Set([...Object.keys(process.env), ...Object.keys(startingEnv)]);57 const producedEnv = [...keys].filter((key) => startingEnv[key] !== process.env[key]).map((key) => [key, process.env[key] ?? null]);58 sendMessageToParent({ method: "__env_produced__", params: producedEnv });59 await gracefullyCloseAndExit(false);60 return;61 }62 if (message.method === "__dispatch__") {63 const { id, method, params } = message.params;64 try {65 const result = await processRunner[method](params);66 const response = { id, result };67 sendMessageToParent({ method: "__dispatch__", params: response });68 } catch (e) {69 const response = { id, error: (0, import_util.serializeError)(e) };70 sendMessageToParent({ method: "__dispatch__", params: response });71 }72 }73});74const kForceExitTimeout = +(process.env.PWTEST_FORCE_EXIT_TIMEOUT || 3e4);75async function gracefullyCloseAndExit(forceExit) {76 if (forceExit && !forceExitInitiated) {77 forceExitInitiated = true;78 setTimeout(() => process.exit(0), kForceExitTimeout);79 }80 if (!gracefullyCloseCalled) {81 gracefullyCloseCalled = true;82 await processRunner?.gracefullyClose().catch(() => {83 });84 if (processName)85 await (0, import_utils.stopProfiling)(processName).catch(() => {86 });87 process.exit(0);88 }89}90function sendMessageToParent(message) {91 try {92 process.send(message);93 } catch (e) {94 try {95 JSON.stringify(message);96 } catch {97 throw e;98 }99 }100}101// Annotate the CommonJS export names for ESM import in node:1020 && (module.exports = {103 ProcessRunner104});105 