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
math.ts43 linesDownload Raw Back to functions
1import defineFunction from "../defineFunction";2import ParseError from "../ParseError";3 4// Switching from text mode back to math mode5defineFunction({6    type: "styling",7    names: ["\\(", "$"],8    props: {9        numArgs: 0,10        allowedInText: true,11        allowedInMath: false,12    },13    handler({funcName, parser}, args) {14        const outerMode = parser.mode;15        parser.switchMode("math");16        const close = (funcName === "\\(" ? "\\)" : "$");17        const body = parser.parseExpression(false, close);18        parser.expect(close);19        parser.switchMode(outerMode);20        return {21            type: "styling",22            mode: parser.mode,23            style: "text",24            resetFont: true,25            body,26        };27    },28});29 30// Check for extra closing math delimiters31defineFunction({32    type: "text", // Doesn't matter what this is.33    names: ["\\)", "\\]"],34    props: {35        numArgs: 0,36        allowedInText: true,37        allowedInMath: false,38    },39    handler(context, args) {40        throw new ParseError(`Mismatched ${context.funcName}`);41    },42});43 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai