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 __create = Object.create;3var __defProp = Object.defineProperty;4var __getOwnPropDesc = Object.getOwnPropertyDescriptor;5var __getOwnPropNames = Object.getOwnPropertyNames;6var __getProtoOf = Object.getPrototypeOf;7var __hasOwnProp = Object.prototype.hasOwnProperty;8var __export = (target, all) => {9 for (var name in all)10 __defProp(target, name, { get: all[name], enumerable: true });11};12var __copyProps = (to, from, except, desc) => {13 if (from && typeof from === "object" || typeof from === "function") {14 for (let key of __getOwnPropNames(from))15 if (!__hasOwnProp.call(to, key) && key !== except)16 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });17 }18 return to;19};20var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(21 // If the importer is in node compatibility mode or this is not an ESM22 // file that has been converted to a CommonJS file using a Babel-23 // compatible transform (i.e. "__esModule" has not been set), then set24 // "default" to the CommonJS "module.exports" for node compatibility.25 isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,26 mod27));28var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);29var webkit_exports = {};30__export(webkit_exports, {31 WebKit: () => WebKit,32 translatePathToWSL: () => translatePathToWSL33});34module.exports = __toCommonJS(webkit_exports);35var import_path = __toESM(require("path"));36var import_wkConnection = require("./wkConnection");37var import_ascii = require("../utils/ascii");38var import_browserType = require("../browserType");39var import_wkBrowser = require("../webkit/wkBrowser");40var import_spawnAsync = require("../utils/spawnAsync");41var import_registry = require("../registry");42class WebKit extends import_browserType.BrowserType {43 constructor(parent) {44 super(parent, "webkit");45 }46 connectToTransport(transport, options) {47 return import_wkBrowser.WKBrowser.connect(this.attribution.playwright, transport, options);48 }49 amendEnvironment(env, userDataDir, isPersistent, options) {50 return {51 ...env,52 CURL_COOKIE_JAR_PATH: process.platform === "win32" && isPersistent ? import_path.default.join(userDataDir, "cookiejar.db") : void 0,53 WEBKIT_EXECUTABLE: options.channel === "webkit-wsl" ? import_registry.registry.findExecutable("webkit-wsl").wslExecutablePath : void 054 };55 }56 doRewriteStartupLog(error) {57 if (!error.logs)58 return error;59 if (error.logs.includes("Failed to open display") || error.logs.includes("cannot open display"))60 error.logs = "\n" + (0, import_ascii.wrapInASCIIBox)(import_browserType.kNoXServerRunningError, 1);61 return error;62 }63 attemptToGracefullyCloseBrowser(transport) {64 transport.send({ method: "Playwright.close", params: {}, id: import_wkConnection.kBrowserCloseMessageId });65 }66 async defaultArgs(options, isPersistent, userDataDir) {67 const { args = [], headless } = options;68 const userDataDirArg = args.find((arg) => arg.startsWith("--user-data-dir"));69 if (userDataDirArg)70 throw this._createUserDataDirArgMisuseError("--user-data-dir");71 if (args.find((arg) => !arg.startsWith("-")))72 throw new Error("Arguments can not specify page to be opened");73 const webkitArguments = ["--inspector-pipe"];74 if (options.channel === "webkit-wsl") {75 if (options.executablePath)76 throw new Error('Cannot specify executablePath when using the "webkit-wsl" channel.');77 webkitArguments.unshift(78 import_path.default.join(__dirname, "wsl/webkit-wsl-transport-server.js")79 );80 }81 if (process.platform === "win32" && options.channel !== "webkit-wsl")82 webkitArguments.push("--disable-accelerated-compositing");83 if (headless)84 webkitArguments.push("--headless");85 if (isPersistent)86 webkitArguments.push(`--user-data-dir=${options.channel === "webkit-wsl" ? await translatePathToWSL(userDataDir) : userDataDir}`);87 else88 webkitArguments.push(`--no-startup-window`);89 const proxy = options.proxyOverride || options.proxy;90 if (proxy) {91 if (process.platform === "darwin") {92 webkitArguments.push(`--proxy=${proxy.server}`);93 if (proxy.bypass)94 webkitArguments.push(`--proxy-bypass-list=${proxy.bypass}`);95 } else if (process.platform === "linux" || process.platform === "win32" && options.channel === "webkit-wsl") {96 webkitArguments.push(`--proxy=${proxy.server}`);97 if (proxy.bypass)98 webkitArguments.push(...proxy.bypass.split(",").map((t) => `--ignore-host=${t}`));99 } else if (process.platform === "win32") {100 webkitArguments.push(`--curl-proxy=${proxy.server.replace(/^socks5:\/\//, "socks5h://")}`);101 if (proxy.bypass)102 webkitArguments.push(`--curl-noproxy=${proxy.bypass}`);103 }104 }105 webkitArguments.push(...args);106 if (isPersistent)107 webkitArguments.push("about:blank");108 return webkitArguments;109 }110}111async function translatePathToWSL(path2) {112 const { stdout } = await (0, import_spawnAsync.spawnAsync)("wsl.exe", ["-d", "playwright", "--cd", "/home/pwuser", "wslpath", path2.replace(/\\/g, "\\\\")]);113 return stdout.toString().trim();114}115// Annotate the CommonJS export names for ESM import in node:1160 && (module.exports = {117 WebKit,118 translatePathToWSL119});120 