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
presets.mjs65 linesDownload Raw Back to dist
1import { t as toArray } from "./dist-DBY4ctBk.mjs";2import { quansync } from "quansync/macro";3 4//#region src/presets.ts5/**6* Rewrite the config file and extract the options passed to plugin factory7* (e.g. Vite and Rollup plugins)8*/9function sourcePluginFactory(options) {10	const targetModulePattern = new RegExp(`import (.+?) from (['"])${options.targetModule}\\2`);11	return {12		...options,13		transform: (source) => {14			if (!targetModulePattern.test(source)) return "export default undefined;";15			const prefix = `16let __unconfig_data;17let __unconfig_stub = function (data = {}) { __unconfig_data = data };18__unconfig_stub.default = (data = {}) => { __unconfig_data = data };19`;20			const suffix = "export default __unconfig_data;";21			let code = source.replace(targetModulePattern, "const $1 = __unconfig_stub;").replace("export default", "const __unconfig_default = ");22			if (code.includes("__unconfig_default")) code += `\nif (typeof __unconfig_default === "function") __unconfig_default(...${JSON.stringify(options.parameters || [])});`;23			return `${prefix}${code}${suffix}`;24		}25	};26}27function sourceVitePluginConfig(options) {28	const plugins = toArray(options.plugins);29	return {30		files: ["vite.config"],31		rewrite: quansync(function* (obj) {32			const config = yield typeof obj === "function" ? obj(...options.parameters || [{ env: {} }, {}]) : obj;33			if (!config) return config;34			return config.plugins.find((i) => plugins.includes(i.name) && i?.api?.config)?.api?.config;35		})36	};37}38/**39* Get one field of the config object40*/41function sourceObjectFields(options) {42	const fields = toArray(options.fields);43	return {44		...options,45		rewrite: quansync(function* (obj) {46			const config = yield typeof obj === "function" ? obj(...options.parameters || []) : obj;47			if (!config) return config;48			for (const field of fields) if (field in config) return config[field];49		})50	};51}52/**53* Get one field of `package.json`54*/55function sourcePackageJsonFields(options) {56	return sourceObjectFields({57		files: ["package.json"],58		extensions: [],59		parser: "json",60		fields: options.fields61	});62}63 64//#endregion65export { sourceObjectFields, sourcePackageJsonFields, sourcePluginFactory, sourceVitePluginConfig };
Brunobkr/llama.cpp_AlgMor24_github · Team Ai