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
consola.DCGIlDNP.cjs76 linesDownload Raw Back to shared
1'use strict';2 3const node_util = require('node:util');4const node_path = require('node:path');5 6function parseStack(stack, message) {7  const cwd = process.cwd() + node_path.sep;8  const lines = stack.split("\n").splice(message.split("\n").length).map((l) => l.trim().replace("file://", "").replace(cwd, ""));9  return lines;10}11 12function writeStream(data, stream) {13  const write = stream.__write || stream.write;14  return write.call(stream, data);15}16 17const bracket = (x) => x ? `[${x}]` : "";18class BasicReporter {19  formatStack(stack, message, opts) {20    const indent = "  ".repeat((opts?.errorLevel || 0) + 1);21    return indent + parseStack(stack, message).join(`22${indent}`);23  }24  formatError(err, opts) {25    const message = err.message ?? node_util.formatWithOptions(opts, err);26    const stack = err.stack ? this.formatStack(err.stack, message, opts) : "";27    const level = opts?.errorLevel || 0;28    const causedPrefix = level > 0 ? `${"  ".repeat(level)}[cause]: ` : "";29    const causedError = err.cause ? "\n\n" + this.formatError(err.cause, { ...opts, errorLevel: level + 1 }) : "";30    return causedPrefix + message + "\n" + stack + causedError;31  }32  formatArgs(args, opts) {33    const _args = args.map((arg) => {34      if (arg && typeof arg.stack === "string") {35        return this.formatError(arg, opts);36      }37      return arg;38    });39    return node_util.formatWithOptions(opts, ..._args);40  }41  formatDate(date, opts) {42    return opts.date ? date.toLocaleTimeString() : "";43  }44  filterAndJoin(arr) {45    return arr.filter(Boolean).join(" ");46  }47  formatLogObj(logObj, opts) {48    const message = this.formatArgs(logObj.args, opts);49    if (logObj.type === "box") {50      return "\n" + [51        bracket(logObj.tag),52        logObj.title && logObj.title,53        ...message.split("\n")54      ].filter(Boolean).map((l) => " > " + l).join("\n") + "\n";55    }56    return this.filterAndJoin([57      bracket(logObj.type),58      bracket(logObj.tag),59      message60    ]);61  }62  log(logObj, ctx) {63    const line = this.formatLogObj(logObj, {64      columns: ctx.options.stdout.columns || 0,65      ...ctx.options.formatOptions66    });67    return writeStream(68      line + "\n",69      logObj.level < 2 ? ctx.options.stderr || process.stderr : ctx.options.stdout || process.stdout70    );71  }72}73 74exports.BasicReporter = BasicReporter;75exports.parseStack = parseStack;76 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai