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
phantom.ts74 linesDownload Raw Back to functions
1import defineFunction, {ordargument} from "../defineFunction";2import defineMacro from "../defineMacro";3import {makeFragment, makeSpan} from "../buildCommon";4import {MathNode} from "../mathMLTree";5 6import * as html from "../buildHTML";7import * as mml from "../buildMathML";8 9defineFunction({10    type: "phantom",11    names: ["\\phantom"],12    props: {13        numArgs: 1,14        allowedInText: true,15    },16    handler: ({parser}, args) => {17        const body = args[0];18        return {19            type: "phantom",20            mode: parser.mode,21            body: ordargument(body),22        };23    },24    htmlBuilder: (group, options) => {25        const elements = html.buildExpression(26            group.body,27            options.withPhantom(),28            false29        );30 31        // \phantom isn't supposed to affect the elements it contains.32        // See "color" for more details.33        return makeFragment(elements);34    },35    mathmlBuilder: (group, options) => {36        const inner = mml.buildExpression(group.body, options);37        return new MathNode("mphantom", inner);38    },39});40 41defineMacro("\\hphantom", "\\smash{\\phantom{#1}}");42 43defineFunction({44    type: "vphantom",45    names: ["\\vphantom"],46    props: {47        numArgs: 1,48        allowedInText: true,49    },50    handler: ({parser}, args) => {51        const body = args[0];52        return {53            type: "vphantom",54            mode: parser.mode,55            body,56        };57    },58    htmlBuilder: (group, options) => {59        const inner = makeSpan(60            ["inner"],61            [html.buildGroup(group.body, options.withPhantom())]);62        const fix = makeSpan(["fix"], []);63        return makeSpan(64            ["mord", "rlap"], [inner, fix], options);65    },66    mathmlBuilder: (group, options) => {67        const inner = mml.buildExpression(ordargument(group.body), options);68        const phantom = new MathNode("mphantom", inner);69        const node = new MathNode("mpadded", [phantom]);70        node.setAttribute("width", "0px");71        return node;72    },73});74 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai