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';2 3Object.defineProperty(exports, '__esModule', { value: true });4 5const core = require('./core.cjs');6 7class BrowserReporter {8 options;9 defaultColor;10 levelColorMap;11 typeColorMap;12 constructor(options) {13 this.options = { ...options };14 this.defaultColor = "#7f8c8d";15 this.levelColorMap = {16 0: "#c0392b",17 // Red18 1: "#f39c12",19 // Yellow20 3: "#00BCD4"21 // Cyan22 };23 this.typeColorMap = {24 success: "#2ecc71"25 // Green26 };27 }28 _getLogFn(level) {29 if (level < 1) {30 return console.__error || console.error;31 }32 if (level === 1) {33 return console.__warn || console.warn;34 }35 return console.__log || console.log;36 }37 log(logObj) {38 const consoleLogFn = this._getLogFn(logObj.level);39 const type = logObj.type === "log" ? "" : logObj.type;40 const tag = logObj.tag || "";41 const color = this.typeColorMap[logObj.type] || this.levelColorMap[logObj.level] || this.defaultColor;42 const style = `43 background: ${color};44 border-radius: 0.5em;45 color: white;46 font-weight: bold;47 padding: 2px 0.5em;48 `;49 const badge = `%c${[tag, type].filter(Boolean).join(":")}`;50 if (typeof logObj.args[0] === "string") {51 consoleLogFn(52 `${badge}%c ${logObj.args[0]}`,53 style,54 // Empty string as style resets to default console style55 "",56 ...logObj.args.slice(1)57 );58 } else {59 consoleLogFn(badge, style, ...logObj.args);60 }61 }62}63 64function createConsola(options = {}) {65 const consola2 = core.createConsola({66 reporters: options.reporters || [new BrowserReporter({})],67 prompt(message, options2 = {}) {68 if (options2.type === "confirm") {69 return Promise.resolve(confirm(message));70 }71 return Promise.resolve(prompt(message));72 },73 ...options74 });75 return consola2;76}77const consola = createConsola();78 79exports.Consola = core.Consola;80exports.LogLevels = core.LogLevels;81exports.LogTypes = core.LogTypes;82exports.consola = consola;83exports.createConsola = createConsola;84exports.default = consola;85 