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
lap.ts74 linesDownload Raw Back to functions
1// Horizontal overlap functions2import defineFunction from "../defineFunction";3import {makeSpan} from "../buildCommon";4import {MathNode} from "../mathMLTree";5import {makeEm} from "../units";6 7import * as html from "../buildHTML";8import * as mml from "../buildMathML";9 10defineFunction({11    type: "lap",12    names: ["\\mathllap", "\\mathrlap", "\\mathclap"],13    props: {14        numArgs: 1,15        allowedInText: true,16    },17    handler: ({parser, funcName}, args) => {18        const body = args[0];19        return {20            type: "lap",21            mode: parser.mode,22            alignment: funcName.slice(5),23            body,24        };25    },26    htmlBuilder: (group, options) => {27        // mathllap, mathrlap, mathclap28        let inner;29        if (group.alignment === "clap") {30            // ref: https://www.math.lsu.edu/~aperlis/publications/mathclap/31            inner = makeSpan(32                [], [html.buildGroup(group.body, options)]);33            // wrap, since CSS will center a .clap > .inner > span34            inner = makeSpan(["inner"], [inner], options);35        } else {36            inner = makeSpan(37                ["inner"], [html.buildGroup(group.body, options)]);38        }39        const fix = makeSpan(["fix"], []);40        let node = makeSpan(41            [group.alignment], [inner, fix], options);42 43        // At this point, we have correctly set horizontal alignment of the44        // two items involved in the lap.45        // Next, use a strut to set the height of the HTML bounding box.46        // Otherwise, a tall argument may be misplaced.47        // This code resolved issue #115348        const strut = makeSpan(["strut"]);49        strut.style.height = makeEm(node.height + node.depth);50        if (node.depth) {51            strut.style.verticalAlign = makeEm(-node.depth);52        }53        node.children.unshift(strut);54 55        // Next, prevent vertical misplacement when next to something tall.56        // This code resolves issue #123457        node = makeSpan(["thinbox"], [node], options);58        return makeSpan(["mord", "vbox"], [node], options);59    },60    mathmlBuilder: (group, options) => {61        // mathllap, mathrlap, mathclap62        const node = new MathNode(63            "mpadded", [mml.buildGroup(group.body, options)]);64 65        if (group.alignment !== "rlap")    {66            const offset = (group.alignment === "llap" ? "-1" : "-0.5");67            node.setAttribute("lspace", offset + "width");68        }69        node.setAttribute("width", "0px");70 71        return node;72    },73});74 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai