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
loupe.js623 linesDownload Raw Back to loupe
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);19 20// src/index.ts21var index_exports = {};22__export(index_exports, {23  custom: () => custom,24  default: () => index_default,25  inspect: () => inspect,26  registerConstructor: () => registerConstructor,27  registerStringTag: () => registerStringTag28});29module.exports = __toCommonJS(index_exports);30 31// src/helpers.ts32var ansiColors = {33  bold: ["1", "22"],34  dim: ["2", "22"],35  italic: ["3", "23"],36  underline: ["4", "24"],37  // 5 & 6 are blinking38  inverse: ["7", "27"],39  hidden: ["8", "28"],40  strike: ["9", "29"],41  // 10-20 are fonts42  // 21-29 are resets for 1-943  black: ["30", "39"],44  red: ["31", "39"],45  green: ["32", "39"],46  yellow: ["33", "39"],47  blue: ["34", "39"],48  magenta: ["35", "39"],49  cyan: ["36", "39"],50  white: ["37", "39"],51  brightblack: ["30;1", "39"],52  brightred: ["31;1", "39"],53  brightgreen: ["32;1", "39"],54  brightyellow: ["33;1", "39"],55  brightblue: ["34;1", "39"],56  brightmagenta: ["35;1", "39"],57  brightcyan: ["36;1", "39"],58  brightwhite: ["37;1", "39"],59  grey: ["90", "39"]60};61var styles = {62  special: "cyan",63  number: "yellow",64  bigint: "yellow",65  boolean: "yellow",66  undefined: "grey",67  null: "bold",68  string: "green",69  symbol: "green",70  date: "magenta",71  regexp: "red"72};73var truncator = "\u2026";74function colorise(value, styleType) {75  const color = ansiColors[styles[styleType]] || ansiColors[styleType] || "";76  if (!color) {77    return String(value);78  }79  return `\x1B[${color[0]}m${String(value)}\x1B[${color[1]}m`;80}81function normaliseOptions({82  showHidden = false,83  depth = 2,84  colors = false,85  customInspect = true,86  showProxy = false,87  maxArrayLength = Infinity,88  breakLength = Infinity,89  seen = [],90  // eslint-disable-next-line no-shadow91  truncate: truncate2 = Infinity,92  stylize = String93} = {}, inspect2) {94  const options = {95    showHidden: Boolean(showHidden),96    depth: Number(depth),97    colors: Boolean(colors),98    customInspect: Boolean(customInspect),99    showProxy: Boolean(showProxy),100    maxArrayLength: Number(maxArrayLength),101    breakLength: Number(breakLength),102    truncate: Number(truncate2),103    seen,104    inspect: inspect2,105    stylize106  };107  if (options.colors) {108    options.stylize = colorise;109  }110  return options;111}112function isHighSurrogate(char) {113  return char >= "\uD800" && char <= "\uDBFF";114}115function truncate(string, length, tail = truncator) {116  string = String(string);117  const tailLength = tail.length;118  const stringLength = string.length;119  if (tailLength > length && stringLength > tailLength) {120    return tail;121  }122  if (stringLength > length && stringLength > tailLength) {123    let end = length - tailLength;124    if (end > 0 && isHighSurrogate(string[end - 1])) {125      end = end - 1;126    }127    return `${string.slice(0, end)}${tail}`;128  }129  return string;130}131function inspectList(list, options, inspectItem, separator = ", ") {132  inspectItem = inspectItem || options.inspect;133  const size = list.length;134  if (size === 0) return "";135  const originalLength = options.truncate;136  let output = "";137  let peek = "";138  let truncated = "";139  for (let i = 0; i < size; i += 1) {140    const last = i + 1 === list.length;141    const secondToLast = i + 2 === list.length;142    truncated = `${truncator}(${list.length - i})`;143    const value = list[i];144    options.truncate = originalLength - output.length - (last ? 0 : separator.length);145    const string = peek || inspectItem(value, options) + (last ? "" : separator);146    const nextLength = output.length + string.length;147    const truncatedLength = nextLength + truncated.length;148    if (last && nextLength > originalLength && output.length + truncated.length <= originalLength) {149      break;150    }151    if (!last && !secondToLast && truncatedLength > originalLength) {152      break;153    }154    peek = last ? "" : inspectItem(list[i + 1], options) + (secondToLast ? "" : separator);155    if (!last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength) {156      break;157    }158    output += string;159    if (!last && !secondToLast && nextLength + peek.length >= originalLength) {160      truncated = `${truncator}(${list.length - i - 1})`;161      break;162    }163    truncated = "";164  }165  return `${output}${truncated}`;166}167function quoteComplexKey(key) {168  if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) {169    return key;170  }171  return JSON.stringify(key).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");172}173function inspectProperty([key, value], options) {174  options.truncate -= 2;175  if (typeof key === "string") {176    key = quoteComplexKey(key);177  } else if (typeof key !== "number") {178    key = `[${options.inspect(key, options)}]`;179  }180  options.truncate -= key.length;181  value = options.inspect(value, options);182  return `${key}: ${value}`;183}184 185// src/array.ts186function inspectArray(array, options) {187  const nonIndexProperties = Object.keys(array).slice(array.length);188  if (!array.length && !nonIndexProperties.length) return "[]";189  options.truncate -= 4;190  const listContents = inspectList(array, options);191  options.truncate -= listContents.length;192  let propertyContents = "";193  if (nonIndexProperties.length) {194    propertyContents = inspectList(195      nonIndexProperties.map((key) => [key, array[key]]),196      options,197      inspectProperty198    );199  }200  return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`;201}202 203// src/typedarray.ts204var getArrayName = (array) => {205  if (typeof Buffer === "function" && array instanceof Buffer) {206    return "Buffer";207  }208  if (array[Symbol.toStringTag]) {209    return array[Symbol.toStringTag];210  }211  return array.constructor.name;212};213function inspectTypedArray(array, options) {214  const name = getArrayName(array);215  options.truncate -= name.length + 4;216  const nonIndexProperties = Object.keys(array).slice(array.length);217  if (!array.length && !nonIndexProperties.length) return `${name}[]`;218  let output = "";219  for (let i = 0; i < array.length; i++) {220    const string = `${options.stylize(truncate(array[i], options.truncate), "number")}${i === array.length - 1 ? "" : ", "}`;221    options.truncate -= string.length;222    if (array[i] !== array.length && options.truncate <= 3) {223      output += `${truncator}(${array.length - array[i] + 1})`;224      break;225    }226    output += string;227  }228  let propertyContents = "";229  if (nonIndexProperties.length) {230    propertyContents = inspectList(231      nonIndexProperties.map((key) => [key, array[key]]),232      options,233      inspectProperty234    );235  }236  return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`;237}238 239// src/date.ts240function inspectDate(dateObject, options) {241  const stringRepresentation = dateObject.toJSON();242  if (stringRepresentation === null) {243    return "Invalid Date";244  }245  const split = stringRepresentation.split("T");246  const date = split[0];247  return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, "date");248}249 250// src/function.ts251function inspectFunction(func, options) {252  const functionType = func[Symbol.toStringTag] || "Function";253  const name = func.name;254  if (!name) {255    return options.stylize(`[${functionType}]`, "special");256  }257  return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, "special");258}259 260// src/map.ts261function inspectMapEntry([key, value], options) {262  options.truncate -= 4;263  key = options.inspect(key, options);264  options.truncate -= key.length;265  value = options.inspect(value, options);266  return `${key} => ${value}`;267}268function mapToEntries(map) {269  const entries = [];270  map.forEach((value, key) => {271    entries.push([key, value]);272  });273  return entries;274}275function inspectMap(map, options) {276  if (map.size === 0) return "Map{}";277  options.truncate -= 7;278  return `Map{ ${inspectList(mapToEntries(map), options, inspectMapEntry)} }`;279}280 281// src/number.ts282var isNaN = Number.isNaN || ((i) => i !== i);283function inspectNumber(number, options) {284  if (isNaN(number)) {285    return options.stylize("NaN", "number");286  }287  if (number === Infinity) {288    return options.stylize("Infinity", "number");289  }290  if (number === -Infinity) {291    return options.stylize("-Infinity", "number");292  }293  if (number === 0) {294    return options.stylize(1 / number === Infinity ? "+0" : "-0", "number");295  }296  return options.stylize(truncate(String(number), options.truncate), "number");297}298 299// src/bigint.ts300function inspectBigInt(number, options) {301  let nums = truncate(number.toString(), options.truncate - 1);302  if (nums !== truncator) nums += "n";303  return options.stylize(nums, "bigint");304}305 306// src/regexp.ts307function inspectRegExp(value, options) {308  const flags = value.toString().split("/")[2];309  const sourceLength = options.truncate - (2 + flags.length);310  const source = value.source;311  return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, "regexp");312}313 314// src/set.ts315function arrayFromSet(set) {316  const values = [];317  set.forEach((value) => {318    values.push(value);319  });320  return values;321}322function inspectSet(set, options) {323  if (set.size === 0) return "Set{}";324  options.truncate -= 7;325  return `Set{ ${inspectList(arrayFromSet(set), options)} }`;326}327 328// src/string.ts329var stringEscapeChars = new RegExp(330  "['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]",331  "g"332);333var escapeCharacters = {334  "\b": "\\b",335  "	": "\\t",336  "\n": "\\n",337  "\f": "\\f",338  "\r": "\\r",339  "'": "\\'",340  "\\": "\\\\"341};342var hex = 16;343var unicodeLength = 4;344function escape(char) {345  return escapeCharacters[char] || `\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`;346}347function inspectString(string, options) {348  if (stringEscapeChars.test(string)) {349    string = string.replace(stringEscapeChars, escape);350  }351  return options.stylize(`'${truncate(string, options.truncate - 2)}'`, "string");352}353 354// src/symbol.ts355function inspectSymbol(value) {356  if ("description" in Symbol.prototype) {357    return value.description ? `Symbol(${value.description})` : "Symbol()";358  }359  return value.toString();360}361 362// src/promise.ts363var getPromiseValue = () => "Promise{\u2026}";364var promise_default = getPromiseValue;365 366// src/object.ts367function inspectObject(object, options) {368  const properties = Object.getOwnPropertyNames(object);369  const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];370  if (properties.length === 0 && symbols.length === 0) {371    return "{}";372  }373  options.truncate -= 4;374  options.seen = options.seen || [];375  if (options.seen.includes(object)) {376    return "[Circular]";377  }378  options.seen.push(object);379  const propertyContents = inspectList(380    properties.map((key) => [key, object[key]]),381    options,382    inspectProperty383  );384  const symbolContents = inspectList(385    symbols.map((key) => [key, object[key]]),386    options,387    inspectProperty388  );389  options.seen.pop();390  let sep = "";391  if (propertyContents && symbolContents) {392    sep = ", ";393  }394  return `{ ${propertyContents}${sep}${symbolContents} }`;395}396 397// src/class.ts398var toStringTag = typeof Symbol !== "undefined" && Symbol.toStringTag ? Symbol.toStringTag : false;399function inspectClass(value, options) {400  let name = "";401  if (toStringTag && toStringTag in value) {402    name = value[toStringTag];403  }404  name = name || value.constructor.name;405  if (!name || name === "_class") {406    name = "<Anonymous Class>";407  }408  options.truncate -= name.length;409  return `${name}${inspectObject(value, options)}`;410}411 412// src/arguments.ts413function inspectArguments(args, options) {414  if (args.length === 0) return "Arguments[]";415  options.truncate -= 13;416  return `Arguments[ ${inspectList(args, options)} ]`;417}418 419// src/error.ts420var errorKeys = [421  "stack",422  "line",423  "column",424  "name",425  "message",426  "fileName",427  "lineNumber",428  "columnNumber",429  "number",430  "description",431  "cause"432];433function inspectObject2(error, options) {434  const properties = Object.getOwnPropertyNames(error).filter((key) => errorKeys.indexOf(key) === -1);435  const name = error.name;436  options.truncate -= name.length;437  let message = "";438  if (typeof error.message === "string") {439    message = truncate(error.message, options.truncate);440  } else {441    properties.unshift("message");442  }443  message = message ? `: ${message}` : "";444  options.truncate -= message.length + 5;445  options.seen = options.seen || [];446  if (options.seen.includes(error)) {447    return "[Circular]";448  }449  options.seen.push(error);450  const propertyContents = inspectList(451    properties.map((key) => [key, error[key]]),452    options,453    inspectProperty454  );455  return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;456}457 458// src/html.ts459function inspectAttribute([key, value], options) {460  options.truncate -= 3;461  if (!value) {462    return `${options.stylize(String(key), "yellow")}`;463  }464  return `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}`;465}466function inspectNodeCollection(collection, options) {467  return inspectList(collection, options, inspectNode, "\n");468}469function inspectNode(node, options) {470  switch (node.nodeType) {471    case 1:472      return inspectHTML(node, options);473    case 3:474      return options.inspect(node.data, options);475    default:476      return options.inspect(node, options);477  }478}479function inspectHTML(element, options) {480  const properties = element.getAttributeNames();481  const name = element.tagName.toLowerCase();482  const head = options.stylize(`<${name}`, "special");483  const headClose = options.stylize(`>`, "special");484  const tail = options.stylize(`</${name}>`, "special");485  options.truncate -= name.length * 2 + 5;486  let propertyContents = "";487  if (properties.length > 0) {488    propertyContents += " ";489    propertyContents += inspectList(490      properties.map((key) => [key, element.getAttribute(key)]),491      options,492      inspectAttribute,493      " "494    );495  }496  options.truncate -= propertyContents.length;497  const truncate2 = options.truncate;498  let children = inspectNodeCollection(element.children, options);499  if (children && children.length > truncate2) {500    children = `${truncator}(${element.children.length})`;501  }502  return `${head}${propertyContents}${headClose}${children}${tail}`;503}504 505// src/index.ts506var symbolsSupported = typeof Symbol === "function" && typeof Symbol.for === "function";507var chaiInspect = symbolsSupported ? Symbol.for("chai/inspect") : "@@chai/inspect";508var nodeInspect = Symbol.for("nodejs.util.inspect.custom");509var constructorMap = /* @__PURE__ */ new WeakMap();510var stringTagMap = {};511var baseTypesMap = {512  undefined: (value, options) => options.stylize("undefined", "undefined"),513  null: (value, options) => options.stylize("null", "null"),514  boolean: (value, options) => options.stylize(String(value), "boolean"),515  Boolean: (value, options) => options.stylize(String(value), "boolean"),516  number: inspectNumber,517  Number: inspectNumber,518  bigint: inspectBigInt,519  BigInt: inspectBigInt,520  string: inspectString,521  String: inspectString,522  function: inspectFunction,523  Function: inspectFunction,524  symbol: inspectSymbol,525  // A Symbol polyfill will return `Symbol` not `symbol` from typedetect526  Symbol: inspectSymbol,527  Array: inspectArray,528  Date: inspectDate,529  Map: inspectMap,530  Set: inspectSet,531  RegExp: inspectRegExp,532  Promise: promise_default,533  // WeakSet, WeakMap are totally opaque to us534  WeakSet: (value, options) => options.stylize("WeakSet{\u2026}", "special"),535  WeakMap: (value, options) => options.stylize("WeakMap{\u2026}", "special"),536  Arguments: inspectArguments,537  Int8Array: inspectTypedArray,538  Uint8Array: inspectTypedArray,539  Uint8ClampedArray: inspectTypedArray,540  Int16Array: inspectTypedArray,541  Uint16Array: inspectTypedArray,542  Int32Array: inspectTypedArray,543  Uint32Array: inspectTypedArray,544  Float32Array: inspectTypedArray,545  Float64Array: inspectTypedArray,546  Generator: () => "",547  DataView: () => "",548  ArrayBuffer: () => "",549  Error: inspectObject2,550  HTMLCollection: inspectNodeCollection,551  NodeList: inspectNodeCollection552};553var inspectCustom = (value, options, type, inspectFn) => {554  if (chaiInspect in value && typeof value[chaiInspect] === "function") {555    return value[chaiInspect](options);556  }557  if (nodeInspect in value && typeof value[nodeInspect] === "function") {558    return value[nodeInspect](options.depth, options, inspectFn);559  }560  if ("inspect" in value && typeof value.inspect === "function") {561    return value.inspect(options.depth, options);562  }563  if ("constructor" in value && constructorMap.has(value.constructor)) {564    return constructorMap.get(value.constructor)(value, options);565  }566  if (stringTagMap[type]) {567    return stringTagMap[type](value, options);568  }569  return "";570};571var toString = Object.prototype.toString;572function inspect(value, opts = {}) {573  const options = normaliseOptions(opts, inspect);574  const { customInspect } = options;575  let type = value === null ? "null" : typeof value;576  if (type === "object") {577    type = toString.call(value).slice(8, -1);578  }579  if (type in baseTypesMap) {580    return baseTypesMap[type](value, options);581  }582  if (customInspect && value) {583    const output = inspectCustom(value, options, type, inspect);584    if (output) {585      if (typeof output === "string") return output;586      return inspect(output, options);587    }588  }589  const proto = value ? Object.getPrototypeOf(value) : false;590  if (proto === Object.prototype || proto === null) {591    return inspectObject(value, options);592  }593  if (value && typeof HTMLElement === "function" && value instanceof HTMLElement) {594    return inspectHTML(value, options);595  }596  if ("constructor" in value) {597    if (value.constructor !== Object) {598      return inspectClass(value, options);599    }600    return inspectObject(value, options);601  }602  if (value === Object(value)) {603    return inspectObject(value, options);604  }605  return options.stylize(String(value), type);606}607function registerConstructor(constructor, inspector) {608  if (constructorMap.has(constructor)) {609    return false;610  }611  constructorMap.set(constructor, inspector);612  return true;613}614function registerStringTag(stringTag, inspector) {615  if (stringTag in stringTagMap) {616    return false;617  }618  stringTagMap[stringTag] = inspector;619  return true;620}621var custom = chaiInspect;622var index_default = inspect;623 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai