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
1import defineFunction from "../defineFunction";2import {makeVList} from "../buildCommon";3import {MathNode} from "../mathMLTree";4 5import * as html from "../buildHTML";6import * as mml from "../buildMathML";7 8// \vcenter: Vertically center the argument group on the math axis.9 10defineFunction({11 type: "vcenter",12 names: ["\\vcenter"],13 props: {14 numArgs: 1,15 argTypes: ["original"], // In LaTeX, \vcenter can act only on a box.16 allowedInText: false,17 },18 handler({parser}, args) {19 return {20 type: "vcenter",21 mode: parser.mode,22 body: args[0],23 };24 },25 htmlBuilder(group, options) {26 const body = html.buildGroup(group.body, options);27 const axisHeight = options.fontMetrics().axisHeight;28 const dy = 0.5 * ((body.height - axisHeight) - (body.depth + axisHeight));29 return makeVList({30 positionType: "shift",31 positionData: dy,32 children: [{type: "elem", elem: body}],33 }, options);34 },35 mathmlBuilder(group, options) {36 // There is no way to do this in MathML.37 // Write a class as a breadcrumb in case some post-processor wants38 // to perform a vcenter adjustment.39 // Wrap in mrow to ensure valid MathML when placed inside mo (e.g., \mathrel)40 const mpadded = new MathNode(41 "mpadded", [mml.buildGroup(group.body, options)], ["vcenter"]);42 return new MathNode("mrow", [mpadded]);43 },44});45 