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
index.js153 linesDownload Raw Back to lib
1/* !2 * loupe3 * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>4 * MIT Licensed5 */6import inspectArray from './array.js';7import inspectTypedArray from './typedarray.js';8import inspectDate from './date.js';9import inspectFunction from './function.js';10import inspectMap from './map.js';11import inspectNumber from './number.js';12import inspectBigInt from './bigint.js';13import inspectRegExp from './regexp.js';14import inspectSet from './set.js';15import inspectString from './string.js';16import inspectSymbol from './symbol.js';17import inspectPromise from './promise.js';18import inspectClass from './class.js';19import inspectObject from './object.js';20import inspectArguments from './arguments.js';21import inspectError from './error.js';22import inspectHTMLElement, { inspectNodeCollection } from './html.js';23import { normaliseOptions } from './helpers.js';24const symbolsSupported = typeof Symbol === 'function' && typeof Symbol.for === 'function';25const chaiInspect = symbolsSupported ? Symbol.for('chai/inspect') : '@@chai/inspect';26const nodeInspect = Symbol.for('nodejs.util.inspect.custom');27const constructorMap = new WeakMap();28const stringTagMap = {};29const baseTypesMap = {30    undefined: (value, options) => options.stylize('undefined', 'undefined'),31    null: (value, options) => options.stylize('null', 'null'),32    boolean: (value, options) => options.stylize(String(value), 'boolean'),33    Boolean: (value, options) => options.stylize(String(value), 'boolean'),34    number: inspectNumber,35    Number: inspectNumber,36    bigint: inspectBigInt,37    BigInt: inspectBigInt,38    string: inspectString,39    String: inspectString,40    function: inspectFunction,41    Function: inspectFunction,42    symbol: inspectSymbol,43    // A Symbol polyfill will return `Symbol` not `symbol` from typedetect44    Symbol: inspectSymbol,45    Array: inspectArray,46    Date: inspectDate,47    Map: inspectMap,48    Set: inspectSet,49    RegExp: inspectRegExp,50    Promise: inspectPromise,51    // WeakSet, WeakMap are totally opaque to us52    WeakSet: (value, options) => options.stylize('WeakSet{…}', 'special'),53    WeakMap: (value, options) => options.stylize('WeakMap{…}', 'special'),54    Arguments: inspectArguments,55    Int8Array: inspectTypedArray,56    Uint8Array: inspectTypedArray,57    Uint8ClampedArray: inspectTypedArray,58    Int16Array: inspectTypedArray,59    Uint16Array: inspectTypedArray,60    Int32Array: inspectTypedArray,61    Uint32Array: inspectTypedArray,62    Float32Array: inspectTypedArray,63    Float64Array: inspectTypedArray,64    Generator: () => '',65    DataView: () => '',66    ArrayBuffer: () => '',67    Error: inspectError,68    HTMLCollection: inspectNodeCollection,69    NodeList: inspectNodeCollection,70};71// eslint-disable-next-line complexity72const inspectCustom = (value, options, type, inspectFn) => {73    if (chaiInspect in value && typeof value[chaiInspect] === 'function') {74        return value[chaiInspect](options);75    }76    if (nodeInspect in value && typeof value[nodeInspect] === 'function') {77        return value[nodeInspect](options.depth, options, inspectFn);78    }79    if ('inspect' in value && typeof value.inspect === 'function') {80        return value.inspect(options.depth, options);81    }82    if ('constructor' in value && constructorMap.has(value.constructor)) {83        return constructorMap.get(value.constructor)(value, options);84    }85    if (stringTagMap[type]) {86        return stringTagMap[type](value, options);87    }88    return '';89};90const toString = Object.prototype.toString;91// eslint-disable-next-line complexity92export function inspect(value, opts = {}) {93    const options = normaliseOptions(opts, inspect);94    const { customInspect } = options;95    let type = value === null ? 'null' : typeof value;96    if (type === 'object') {97        type = toString.call(value).slice(8, -1);98    }99    // If it is a base value that we already support, then use Loupe's inspector100    if (type in baseTypesMap) {101        return baseTypesMap[type](value, options);102    }103    // If `options.customInspect` is set to true then try to use the custom inspector104    if (customInspect && value) {105        const output = inspectCustom(value, options, type, inspect);106        if (output) {107            if (typeof output === 'string')108                return output;109            return inspect(output, options);110        }111    }112    const proto = value ? Object.getPrototypeOf(value) : false;113    // If it's a plain Object then use Loupe's inspector114    if (proto === Object.prototype || proto === null) {115        return inspectObject(value, options);116    }117    // Specifically account for HTMLElements118    // @ts-ignore119    if (value && typeof HTMLElement === 'function' && value instanceof HTMLElement) {120        return inspectHTMLElement(value, options);121    }122    if ('constructor' in value) {123        // If it is a class, inspect it like an object but add the constructor name124        if (value.constructor !== Object) {125            return inspectClass(value, options);126        }127        // If it is an object with an anonymous prototype, display it as an object.128        return inspectObject(value, options);129    }130    // last chance to check if it's an object131    if (value === Object(value)) {132        return inspectObject(value, options);133    }134    // We have run out of options! Just stringify the value135    return options.stylize(String(value), type);136}137export function registerConstructor(constructor, inspector) {138    if (constructorMap.has(constructor)) {139        return false;140    }141    constructorMap.set(constructor, inspector);142    return true;143}144export function registerStringTag(stringTag, inspector) {145    if (stringTag in stringTagMap) {146        return false;147    }148    stringTagMap[stringTag] = inspector;149    return true;150}151export const custom = chaiInspect;152export default inspect;153 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai