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
html.js43 linesDownload Raw Back to lib
1import { inspectList, truncator } from './helpers.js';2export function inspectAttribute([key, value], options) {3    options.truncate -= 3;4    if (!value) {5        return `${options.stylize(String(key), 'yellow')}`;6    }7    return `${options.stylize(String(key), 'yellow')}=${options.stylize(`"${value}"`, 'string')}`;8}9export function inspectNodeCollection(collection, options) {10    return inspectList(collection, options, inspectNode, '\n');11}12export function inspectNode(node, options) {13    switch (node.nodeType) {14        case 1:15            return inspectHTML(node, options);16        case 3:17            return options.inspect(node.data, options);18        default:19            return options.inspect(node, options);20    }21}22// @ts-ignore (Deno doesn't have Element)23export default function inspectHTML(element, options) {24    const properties = element.getAttributeNames();25    const name = element.tagName.toLowerCase();26    const head = options.stylize(`<${name}`, 'special');27    const headClose = options.stylize(`>`, 'special');28    const tail = options.stylize(`</${name}>`, 'special');29    options.truncate -= name.length * 2 + 5;30    let propertyContents = '';31    if (properties.length > 0) {32        propertyContents += ' ';33        propertyContents += inspectList(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute, ' ');34    }35    options.truncate -= propertyContents.length;36    const truncate = options.truncate;37    let children = inspectNodeCollection(element.children, options);38    if (children && children.length > truncate) {39        children = `${truncator}(${element.children.length})`;40    }41    return `${head}${propertyContents}${headClose}${children}${tail}`;42}43 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai