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 helper_exports = {};20__export(helper_exports, {21 helper: () => helper22});23module.exports = __toCommonJS(helper_exports);24var import_debugLogger = require("./utils/debugLogger");25var import_eventsHelper = require("./utils/eventsHelper");26const MAX_LOG_LENGTH = process.env.MAX_LOG_LENGTH ? +process.env.MAX_LOG_LENGTH : Infinity;27class Helper {28 static completeUserURL(urlString) {29 if (urlString.startsWith("localhost") || urlString.startsWith("127.0.0.1"))30 urlString = "http://" + urlString;31 return urlString;32 }33 static enclosingIntRect(rect) {34 const x = Math.floor(rect.x + 1e-3);35 const y = Math.floor(rect.y + 1e-3);36 const x2 = Math.ceil(rect.x + rect.width - 1e-3);37 const y2 = Math.ceil(rect.y + rect.height - 1e-3);38 return { x, y, width: x2 - x, height: y2 - y };39 }40 static enclosingIntSize(size) {41 return { width: Math.floor(size.width + 1e-3), height: Math.floor(size.height + 1e-3) };42 }43 static getViewportSizeFromWindowFeatures(features) {44 const widthString = features.find((f) => f.startsWith("width="));45 const heightString = features.find((f) => f.startsWith("height="));46 const width = widthString ? parseInt(widthString.substring(6), 10) : NaN;47 const height = heightString ? parseInt(heightString.substring(7), 10) : NaN;48 if (!Number.isNaN(width) && !Number.isNaN(height))49 return { width, height };50 return null;51 }52 static waitForEvent(progress, emitter, event, predicate) {53 const listeners = [];54 const dispose = () => import_eventsHelper.eventsHelper.removeEventListeners(listeners);55 const promise = progress.race(new Promise((resolve, reject) => {56 listeners.push(import_eventsHelper.eventsHelper.addEventListener(emitter, event, (eventArg) => {57 try {58 if (predicate && !predicate(eventArg))59 return;60 resolve(eventArg);61 } catch (e) {62 reject(e);63 }64 }));65 })).finally(() => dispose());66 return { promise, dispose };67 }68 static secondsToRoundishMillis(value) {69 return (value * 1e6 | 0) / 1e3;70 }71 static millisToRoundishMillis(value) {72 return (value * 1e3 | 0) / 1e3;73 }74 static debugProtocolLogger(protocolLogger) {75 return (direction, message) => {76 if (protocolLogger)77 protocolLogger(direction, message);78 if (import_debugLogger.debugLogger.isEnabled("protocol")) {79 let text = JSON.stringify(message);80 if (text.length > MAX_LOG_LENGTH)81 text = text.substring(0, MAX_LOG_LENGTH / 2) + " <<<<<( LOG TRUNCATED )>>>>> " + text.substring(text.length - MAX_LOG_LENGTH / 2);82 import_debugLogger.debugLogger.log("protocol", (direction === "send" ? "SEND \u25BA " : "\u25C0 RECV ") + text);83 }84 };85 }86 static formatBrowserLogs(logs, disconnectReason) {87 if (!disconnectReason && !logs.length)88 return "";89 return "\n" + (disconnectReason ? disconnectReason + "\n" : "") + logs.join("\n");90 }91}92const helper = Helper;93// Annotate the CommonJS export names for ESM import in node:940 && (module.exports = {95 helper96});97 