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 ffInput_exports = {};20__export(ffInput_exports, {21 RawKeyboardImpl: () => RawKeyboardImpl,22 RawMouseImpl: () => RawMouseImpl,23 RawTouchscreenImpl: () => RawTouchscreenImpl24});25module.exports = __toCommonJS(ffInput_exports);26function toModifiersMask(modifiers) {27 let mask = 0;28 if (modifiers.has("Alt"))29 mask |= 1;30 if (modifiers.has("Control"))31 mask |= 2;32 if (modifiers.has("Shift"))33 mask |= 4;34 if (modifiers.has("Meta"))35 mask |= 8;36 return mask;37}38function toButtonNumber(button) {39 if (button === "left")40 return 0;41 if (button === "middle")42 return 1;43 if (button === "right")44 return 2;45 return 0;46}47function toButtonsMask(buttons) {48 let mask = 0;49 if (buttons.has("left"))50 mask |= 1;51 if (buttons.has("right"))52 mask |= 2;53 if (buttons.has("middle"))54 mask |= 4;55 return mask;56}57class RawKeyboardImpl {58 constructor(client) {59 this._client = client;60 }61 async keydown(progress, modifiers, keyName, description, autoRepeat) {62 let text = description.text;63 if (text === "\r")64 text = "";65 const { code, key, location } = description;66 await progress.race(this._client.send("Page.dispatchKeyEvent", {67 type: "keydown",68 keyCode: description.keyCodeWithoutLocation,69 code,70 key,71 repeat: autoRepeat,72 location,73 text74 }));75 }76 async keyup(progress, modifiers, keyName, description) {77 const { code, key, location } = description;78 await progress.race(this._client.send("Page.dispatchKeyEvent", {79 type: "keyup",80 key,81 keyCode: description.keyCodeWithoutLocation,82 code,83 location,84 repeat: false85 }));86 }87 async sendText(progress, text) {88 await progress.race(this._client.send("Page.insertText", { text }));89 }90}91class RawMouseImpl {92 constructor(client) {93 this._client = client;94 }95 async move(progress, x, y, button, buttons, modifiers, forClick) {96 await progress.race(this._client.send("Page.dispatchMouseEvent", {97 type: "mousemove",98 button: 0,99 buttons: toButtonsMask(buttons),100 x: Math.floor(x),101 y: Math.floor(y),102 modifiers: toModifiersMask(modifiers)103 }));104 }105 async down(progress, x, y, button, buttons, modifiers, clickCount) {106 await progress.race(this._client.send("Page.dispatchMouseEvent", {107 type: "mousedown",108 button: toButtonNumber(button),109 buttons: toButtonsMask(buttons),110 x: Math.floor(x),111 y: Math.floor(y),112 modifiers: toModifiersMask(modifiers),113 clickCount114 }));115 }116 async up(progress, x, y, button, buttons, modifiers, clickCount) {117 await progress.race(this._client.send("Page.dispatchMouseEvent", {118 type: "mouseup",119 button: toButtonNumber(button),120 buttons: toButtonsMask(buttons),121 x: Math.floor(x),122 y: Math.floor(y),123 modifiers: toModifiersMask(modifiers),124 clickCount125 }));126 }127 async wheel(progress, x, y, buttons, modifiers, deltaX, deltaY) {128 await this._page.mainFrame().evaluateExpression(`new Promise(requestAnimationFrame)`, { world: "utility" });129 await progress.race(this._client.send("Page.dispatchWheelEvent", {130 deltaX,131 deltaY,132 x: Math.floor(x),133 y: Math.floor(y),134 deltaZ: 0,135 modifiers: toModifiersMask(modifiers)136 }));137 }138 setPage(page) {139 this._page = page;140 }141}142class RawTouchscreenImpl {143 constructor(client) {144 this._client = client;145 }146 async tap(progress, x, y, modifiers) {147 await progress.race(this._client.send("Page.dispatchTapEvent", {148 x,149 y,150 modifiers: toModifiersMask(modifiers)151 }));152 }153}154// Annotate the CommonJS export names for ESM import in node:1550 && (module.exports = {156 RawKeyboardImpl,157 RawMouseImpl,158 RawTouchscreenImpl159});160 