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 bidiChromium_exports = {};30__export(bidiChromium_exports, {31 BidiChromium: () => BidiChromium32});33module.exports = __toCommonJS(bidiChromium_exports);34var import_os = __toESM(require("os"));35var import_ascii = require("../utils/ascii");36var import_browserType = require("../browserType");37var import_bidiBrowser = require("./bidiBrowser");38var import_bidiConnection = require("./bidiConnection");39var import_chromiumSwitches = require("../chromium/chromiumSwitches");40var import_chromium = require("../chromium/chromium");41class BidiChromium extends import_browserType.BrowserType {42 constructor(parent) {43 super(parent, "_bidiChromium");44 }45 async connectToTransport(transport, options, browserLogsCollector) {46 const bidiTransport = await require("./bidiOverCdp").connectBidiOverCdp(transport);47 transport[kBidiOverCdpWrapper] = bidiTransport;48 try {49 return import_bidiBrowser.BidiBrowser.connect(this.attribution.playwright, bidiTransport, options);50 } catch (e) {51 if (browserLogsCollector.recentLogs().some((log) => log.includes("Failed to create a ProcessSingleton for your profile directory."))) {52 throw new Error(53 "Failed to create a ProcessSingleton for your profile directory. This usually means that the profile is already in use by another instance of Chromium."54 );55 }56 throw e;57 }58 }59 doRewriteStartupLog(error) {60 if (!error.logs)61 return error;62 if (error.logs.includes("Missing X server"))63 error.logs = "\n" + (0, import_ascii.wrapInASCIIBox)(import_browserType.kNoXServerRunningError, 1);64 if (!error.logs.includes("crbug.com/357670") && !error.logs.includes("No usable sandbox!") && !error.logs.includes("crbug.com/638180"))65 return error;66 error.logs = [67 `Chromium sandboxing failed!`,68 `================================`,69 `To avoid the sandboxing issue, do either of the following:`,70 ` - (preferred): Configure your environment to support sandboxing`,71 ` - (alternative): Launch Chromium without sandbox using 'chromiumSandbox: false' option`,72 `================================`,73 ``74 ].join("\n");75 return error;76 }77 amendEnvironment(env) {78 return env;79 }80 attemptToGracefullyCloseBrowser(transport) {81 const bidiTransport = transport[kBidiOverCdpWrapper];82 if (bidiTransport)83 transport = bidiTransport;84 transport.send({ method: "browser.close", params: {}, id: import_bidiConnection.kBrowserCloseMessageId });85 }86 supportsPipeTransport() {87 return false;88 }89 async defaultArgs(options, isPersistent, userDataDir) {90 const chromeArguments = this._innerDefaultArgs(options);91 chromeArguments.push(`--user-data-dir=${userDataDir}`);92 chromeArguments.push("--remote-debugging-port=0");93 if (isPersistent)94 chromeArguments.push("about:blank");95 else96 chromeArguments.push("--no-startup-window");97 return chromeArguments;98 }99 async waitForReadyState(options, browserLogsCollector) {100 return (0, import_chromium.waitForReadyState)({ ...options, cdpPort: 0 }, browserLogsCollector);101 }102 _innerDefaultArgs(options) {103 const { args = [] } = options;104 const userDataDirArg = args.find((arg) => arg.startsWith("--user-data-dir"));105 if (userDataDirArg)106 throw this._createUserDataDirArgMisuseError("--user-data-dir");107 if (args.find((arg) => arg.startsWith("--remote-debugging-pipe")))108 throw new Error("Playwright manages remote debugging connection itself.");109 if (args.find((arg) => !arg.startsWith("-")))110 throw new Error("Arguments can not specify page to be opened");111 const chromeArguments = [...(0, import_chromiumSwitches.chromiumSwitches)(options.assistantMode)];112 if (import_os.default.platform() === "darwin") {113 chromeArguments.push("--enable-unsafe-swiftshader");114 }115 if (options.devtools)116 chromeArguments.push("--auto-open-devtools-for-tabs");117 if (options.headless) {118 chromeArguments.push("--headless");119 chromeArguments.push(120 "--hide-scrollbars",121 "--mute-audio",122 "--blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4"123 );124 }125 if (options.chromiumSandbox !== true)126 chromeArguments.push("--no-sandbox");127 const proxy = options.proxyOverride || options.proxy;128 if (proxy) {129 const proxyURL = new URL(proxy.server);130 const isSocks = proxyURL.protocol === "socks5:";131 if (isSocks && !options.socksProxyPort) {132 chromeArguments.push(`--host-resolver-rules="MAP * ~NOTFOUND , EXCLUDE ${proxyURL.hostname}"`);133 }134 chromeArguments.push(`--proxy-server=${proxy.server}`);135 const proxyBypassRules = [];136 if (options.socksProxyPort)137 proxyBypassRules.push("<-loopback>");138 if (proxy.bypass)139 proxyBypassRules.push(...proxy.bypass.split(",").map((t) => t.trim()).map((t) => t.startsWith(".") ? "*" + t : t));140 if (!process.env.PLAYWRIGHT_DISABLE_FORCED_CHROMIUM_PROXIED_LOOPBACK && !proxyBypassRules.includes("<-loopback>"))141 proxyBypassRules.push("<-loopback>");142 if (proxyBypassRules.length > 0)143 chromeArguments.push(`--proxy-bypass-list=${proxyBypassRules.join(";")}`);144 }145 chromeArguments.push(...args);146 return chromeArguments;147 }148}149const kBidiOverCdpWrapper = Symbol("kBidiConnectionWrapper");150// Annotate the CommonJS export names for ESM import in node:1510 && (module.exports = {152 BidiChromium153});154 