Team Ai
Datasetpublic

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.

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes3.1kdownloads
crDevTools.js114 linesDownload Raw Back to chromium
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 crDevTools_exports = {};30__export(crDevTools_exports, {31  CRDevTools: () => CRDevTools32});33module.exports = __toCommonJS(crDevTools_exports);34var import_fs = __toESM(require("fs"));35const kBindingName = "__pw_devtools__";36class CRDevTools {37  constructor(preferencesPath) {38    this._preferencesPath = preferencesPath;39    this._savePromise = Promise.resolve();40  }41  install(session) {42    session.on("Runtime.bindingCalled", async (event) => {43      if (event.name !== kBindingName)44        return;45      const parsed = JSON.parse(event.payload);46      let result = void 0;47      if (this.__testHookOnBinding)48        this.__testHookOnBinding(parsed);49      if (parsed.method === "getPreferences") {50        if (this._prefs === void 0) {51          try {52            const json = await import_fs.default.promises.readFile(this._preferencesPath, "utf8");53            this._prefs = JSON.parse(json);54          } catch (e) {55            this._prefs = {};56          }57        }58        result = this._prefs;59      } else if (parsed.method === "setPreference") {60        this._prefs[parsed.params[0]] = parsed.params[1];61        this._save();62      } else if (parsed.method === "removePreference") {63        delete this._prefs[parsed.params[0]];64        this._save();65      } else if (parsed.method === "clearPreferences") {66        this._prefs = {};67        this._save();68      }69      session.send("Runtime.evaluate", {70        expression: `window.DevToolsAPI.embedderMessageAck(${parsed.id}, ${JSON.stringify(result)})`,71        contextId: event.executionContextId72      }).catch((e) => null);73    });74    Promise.all([75      session.send("Runtime.enable"),76      session.send("Runtime.addBinding", { name: kBindingName }),77      session.send("Page.enable"),78      session.send("Page.addScriptToEvaluateOnNewDocument", { source: `79        (() => {80          const init = () => {81            // Lazy init happens when InspectorFrontendHost is initialized.82            // At this point DevToolsHost is ready to be used.83            const host = window.DevToolsHost;84            const old = host.sendMessageToEmbedder.bind(host);85            host.sendMessageToEmbedder = message => {86              if (['getPreferences', 'setPreference', 'removePreference', 'clearPreferences'].includes(JSON.parse(message).method))87                window.${kBindingName}(message);88              else89                old(message);90            };91          };92          let value;93          Object.defineProperty(window, 'InspectorFrontendHost', {94            configurable: true,95            enumerable: true,96            get() { return value; },97            set(v) { value = v; init(); },98          });99        })()100      ` }),101      session.send("Runtime.runIfWaitingForDebugger")102    ]).catch((e) => null);103  }104  _save() {105    this._savePromise = this._savePromise.then(async () => {106      await import_fs.default.promises.writeFile(this._preferencesPath, JSON.stringify(this._prefs)).catch((e) => null);107    });108  }109}110// Annotate the CommonJS export names for ESM import in node:1110 && (module.exports = {112  CRDevTools113});114 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai